:root {
  --wide-width: 1430px;
  --thin-width: 1430px;
}

html {
  margin-top: 0px !important;
}

.br-pc {
  display: block;
}
.br-sp {
  display: none;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body.is-mobile-menu-open {
  overflow: hidden;
}

h3 {
  font-size: min(1.8vw, 40px);
  color: #646868;
  margin: 0 0 20px 0px;
}

/* --- header --- */
.header {
  position: absolute;
  top: 30px;
  left: 30px;
}

#header .logo-box {
  display: block;
  z-index: 1000;
}

.logo {
  font-size: 24px;
}

.logo-sp {
  display: none;
}

.logo-pc {
  display: block;
}

.site-header {
  position: relative;
  left: 0;
  z-index: 10;
  max-width: -webkit-fill-available;
  width: 100%;
  border-bottom: 1px solid #25b7c0;
}

.logo-box {
  width: 160px;
  height: auto;
  position: absolute;
}

.site-logo {
  width: 100%;
  height: auto;
}

.site-logo-link {
  display: block;
}

.site-logo-link:focus-visible {
  outline: 3px solid #163f76;
  outline-offset: 3px;
}

/* --- Navigation --- */
.nav-links {
  background: #fff;
  padding: 0px;
  position: relative;
}

.nav-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: baseline;
  position: relative;
}

.nav-links li {
  margin: 0 25px;
  padding: 4vh 0px;
  color: #646868;
}
.nav-links a,
.nav-links__label {
  text-decoration: none;
  gap: 16px;
  color: #646868;
  border: 1px solid #ffffff;
  font-size: 14px;
}

.organ-item-origin {
  gap: 0 !important;
}

.nav-links a:hover {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* --- サブメニュー全体をホバー対象に含める --- */
.has-submenu:hover .header-organ-submenu,
.has-submenu:focus-within .header-organ-submenu,
.header-organ-submenu:hover {
  display: block;
  opacity: 1;
  visibility: visible;
}

.header-submenu-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hamburger:focus-visible,
.header-submenu-toggle:focus-visible,
.accordion-header-sp:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* グリッドレイアウト */
.header-organ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  max-width: 940px;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
}

.header-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto;
  width: 100%;
  max-width: 940px;
  padding: 10px 16px;
  text-align: center;
  justify-content: center;
}

/* サブメニュー本体 */
.header-organ-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #eaf7f5;
  z-index: 999;
  padding: 24px 0;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.header-search-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #eaf7f5;
  z-index: 999;
  padding: 24px 0;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.1s ease,
    visibility 0.1s ease;
}

/* メニュー項目 */
.header-organ-item {
  background: #fff;
  border-radius: 8px;
  padding: 40px 8px 25px;
  text-decoration: none;
  transition: transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}

.header-organ-item img {
  width: 45px;
  height: 40px;
  margin: 10px 0 10px;
  transition: transform 0.3s ease;
}

.header-organ-item:hover img {
  transform: scale(1.2);
}

.header-organ-item span {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.global-nav li {
  display: inline-block;
  color: #646868;
  cursor: pointer;
  transition: color 0.1s ease;
  font-size: 0.8vw;
}

.global-nav li:hover::after {
  width: 100%;
}

/* --- ハンバーガーメニュー（初期非表示）--- */
.hamburger {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
}

/* --- PCナビゲーションリンク --- */
.nav-links-pc {
  display: flex;
}

.mobile-nav-sp {
  display: none;
}

/* Shared first-view hero. The image remains in HTML for earlier discovery and
 * page-specific alternatives; only presentation is defined here. */
.site-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 25 / 7;
  overflow: hidden;
  background: #dce9e8;
}

.hero-media {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.site-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.site-hero--position-left .site-hero__image {
  object-position: left center;
}

.site-hero--position-right .site-hero__image {
  object-position: right center;
}

.site-hero__brand {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 33%;
  max-width: 500px;
}

.site-hero__brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-hero__contact {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(720px, calc(100% - 32px));
  box-sizing: border-box;
  border-radius: 0 0 0 12px;
  background: #25b7c0;
  overflow: hidden;
  z-index: 100;
}

.site-hero__contact.is-scrolled {
  top: auto;
  bottom: 0;
  border-radius: 12px 0 0;
}

.site-hero__contact--telephone-only {
  grid-template-columns: minmax(0, 1fr);
  width: min(360px, calc(100% - 32px));
}

.site-hero__telephone {
  display: flex;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 0 0 0 12px;
  background: #fff;
  color: #177b80;
  font-size: clamp(1.05rem, 1.54vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.site-hero__telephone-number {
  color: inherit;
  font-size: clamp(1.4rem, 2.66vw, 2.275rem);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-hero__telephone-number--mobile {
  display: none;
}

.site-hero__contact.is-scrolled .site-hero__telephone {
  border-radius: 12px 0 0;
}

.site-hero__telephone-number--mobile:focus-visible,
.site-hero__reserve:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: -5px;
}

.site-hero__reserve-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}

.site-hero__reserve {
  display: inline-flex;
  min-width: 0;
  min-height: 60px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid #177b80;
  border-radius: 10px;
  background: #fff;
  color: #177b80;
  font-size: clamp(0.945rem, 1.54vw, 1.4rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-hero__reserve img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-hero__reserve:hover,
.site-hero__reserve:focus-visible {
  background: #e9f7f8;
}

.site-header .nav-links > ul {
  max-width: 1600px;
  margin-inline: auto;
}

/* ---END header --- */

@media screen and (min-width: 1024px) {
  .site-header .nav-links li {
    padding-block: 20px;
    font-size: 1rem;
  }

  .site-header .nav-links a,
  .site-header .global-nav li,
  .site-header .header-organ-item span {
    font-size: 1rem;
  }
}

@media screen and (max-width: 1023px) {
  .br-pc {
    display: none !important;
  }

  .br-sp {
    display: block !important;
  }
  .site-hero {
    aspect-ratio: 16 / 7;
    min-height: 220px;
  }

  .site-hero__contact {
    top: auto;
    right: 0;
    bottom: 0;
    width: min(720px, calc(100% - 24px));
    border-radius: 12px 0 0;
  }

  .site-hero__contact--telephone-only {
    width: min(360px, calc(100% - 24px));
  }

  .site-hero__telephone {
    padding-inline: 12px;
  }

  .site-hero__telephone-number--desktop {
    display: none;
  }

  .site-hero__telephone-number--mobile {
    display: inline;
  }

  .site-hero__reserve-list {
    padding: 8px;
  }

  .site-hero__reserve {
    min-height: 60px;
    padding-inline: 8px;
    font-size: clamp(0.7rem, 1.75vw, 0.945rem);
  }

  .site-hero__reserve img {
    width: 30px;
    height: 30px;
  }

  #header .logo-box {
    display: block;
    height: auto;
  }

  .site-logo {
    width: 100%;
    height: inherit;
  }

  .logo-sp {
    display: block;
  }

  .logo-pc {
    display: none;
  }

  .nav-links {
    display: none;
  }

  /* 白背景・写真上のどちらでも線と操作範囲を識別できる共通ボタン。
     開いている間は塗りつぶして「閉じる」ボタンとして目立たせる。
     配色は globalnav.css の .site-header で定義したトークンを使う */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 16px 13px;
    color: var(--mobile-nav-accent);
    background: var(--mobile-nav-surface);
    border: 1px solid var(--mobile-nav-accent);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(35, 100, 106, 0.18);
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    transition:
      color 0.2s ease,
      background-color 0.2s ease;
  }

  .hamburger.active {
    color: var(--mobile-nav-surface);
    background: var(--mobile-nav-accent);
  }

  /* 線の間隔は (内側の高さ 14px - 線 2px) / 2 = 6px。閉じるときはこの分だけ動かして重ねる */
  .hamburger span {
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    display: block;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
    transform-origin: center;
  }

  .hamburger span:nth-child(2) {
    width: 65%;
    align-self: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .tel-text-sp {
    font-size: 14px;
    color: #444;
  }

  .tel-number-sp {
    color: #00a2a8;
  }

  .btn-sp.web-btn-sp {
    background-color: #fff;
    border: 1px solid #00a2a8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #00a2a8;
    text-decoration: none;
  }

  .btn-sp .icon-sp {
    margin-right: 6px;
  }

  .btn-sp .icon-sp img {
    width: 18px;
    height: 18px;
  }

  .contact-sp {
    position: absolute;
    right: 0;
    text-align: right;
    display: flex;
    gap: 5px;
    width: 100%;
    background: #95d0c0;
    align-items: center;
    justify-content: center;
    bottom: auto;
  }

  .contact-sp p {
    background: #fff;
    padding: 24px 20px;
    border-radius: 8px;
    color: #6f7373;
    font-size: 38px;
  }

  .contact-sp a {
    text-decoration: none;
    color: #68b4b3;
    font-size: 40px;
  }

  .contact-sp > .buttons-sp {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .buttons-sp a {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 14px;
    padding: 52px 20px;
  }

  .buttons-sp a {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    font-size: 40px !important;
    padding: 54px 40px;
  }

  .buttons-sp .btn .icon {
    width: 50px;
  }

  .buttons-sp .btn .icon img {
    width: 100%;
  }

  .recruit {
    display: none !important;
  }
}

@media screen and (max-width: 479px) {
  /* 下層ページのロゴもトップページ（.hero .logo-box）と同じ大きさ・位置にそろえる */
  .site-hero__brand {
    top: 16px;
    left: 16px;
    width: clamp(200px, 58vw, 260px);
  }

  .site-hero__contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-hero__telephone {
    min-height: 48px;
    border-radius: 0 0 0 12px;
    font-size: 1.25rem;
  }

  .site-hero__telephone-number {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hamburger,
  .hamburger span,
  .site-hero__reserve {
    transition: none;
  }
}
