/* ================================
   和集庵 スタイルシート
   ================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&family=Ubuntu:ital,wght@0,300;0,400&display=swap');

/* ---------- CSS変数 ---------- */
:root {
  --color-brown: #2d2821;
  --color-beige: #7A7773;
  --color-green: #3e4e42;
  --color-text: #ededed;
  --font-mincho: 'Shippori Mincho', sans-serif;
  --font-ubuntu: 'Ubuntu', sans-serif;
  --header-height: 76px;
}

/* @media (min-width: 992px) {
  :root { --header-height: 120px; }
} */

@media (min-width: 1024px) {
  :root { --header-height: 84px; }
}

/* ---------- ベース ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-brown);
  color: var(--color-text);
  font-family: var(--font-mincho);
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体の高さを最低限確保 */
  margin: 0;         /* bodyのデフォルト余白を消す */
}

main {
  flex: 1; /* 余ったスペースをすべて引き伸ばして埋める */
}

img {
  max-width: 100%;
}


ul {
  padding: 0;
  margin: 0;
  line-height: 1.6;
  padding-left: 1.2rem;
  padding-bottom: 10px
  /* list-style: none; */
}

li {
  padding-bottom: 1rem;

}


.btn-primary {
  background: var(--color-text);
  color: var(--color-brown);
  font-family: var(--font-mincho);
  font-size: 14px;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 16px 32px;
  min-width: 164px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #d0d0d0;
}
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(237, 237, 237, 0.4);
  color: var(--color-text);
  padding: 16px 32px;
  font-family: var(--font-mincho);
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 164px;
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

/* .is-mobile {
  display: none;
}
 */

/* @media (max-width: 1200px) {
  .is-pc {
    display: none;
  }
  .is-mobile {
    display: block;
  }
  .is-tablet {
    display: block;
  }
} */
/* @media (max-width: 1400px) {
  .is-tablet {
    display: block;
  }
} */

/* ---------- ローディング画面 ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #3e4e42;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease-in-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-screen__logo {
  width: 50px;
  animation: logo-appear 1.0s ease-out 0.2s both;
}

@media (min-width: 992px) {
  .loading-screen__logo { width: 160px; }
}

/* @media (max-width: 767px) {
  .loading-screen__logo { width: 100px; }
} */

@keyframes logo-appear {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- ヘッダー①（ロゴのみ・常時表示） ---------- */
.header-logo-only {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 49;
  padding: 16px 20px;
}

@media (min-width: 1024px) {
  .header-logo-only {
    padding: 20px 48px;
  }
}

/* ---------- ヘッダー②（茶色背景＋メニュー・スクロール時に降りてくる） ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 20px;
  background-color: var(--color-brown);
  transform: translateY(calc(-100% - 16px));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* border-bottom: 1px solid #110f0d; */
  box-shadow: none;
}

.site-header.is-visible {
  transform: translateY(0);
  box-shadow: 0px 2px 5px 2px rgba(0,0,0,0.1);
}

/* @media (min-width: 992px) {
  .site-header { padding: 32px 48px; }
} */
@media (min-width: 1024px) {
  .site-header {
    padding: 20px 48px;
  }
}

.site-header--scrolled {
  /* background: linear-gradient(
    to bottom,
    rgba(45, 40, 33, 0.85) 0%,
    rgba(45, 40, 33, 0.5) 65%,
    rgba(45, 40, 33, 0) 100%
  ); */
  /* background-color: var(--color-brown);
  padding-top: 14px;
  padding-bottom: 14px; */
}

.site-header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .site-header--scrolled .site-header__nav {
  align-items: center;
} */

.logo {
  width: 112px;
  display: block;
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
  /* .logo { width: 150px; } */
}

.site-header--scrolled .logo {
  transform: scale(0.667);
}

.site-header__menu {
  display: none;
  gap: 32px;
  font-size: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  transform-origin: right center;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header__menu li {
  padding-bottom: 0;
}

@media (min-width: 992px) {
  .site-header__menu { display: flex; }
}

.site-header--scrolled .site-header__menu {
  transform: scale(0.875);
}

/* ---------- ハンバーガーボタン ---------- */
.hamburger-fixed {
  position: fixed;
  top: 20px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0;
  pointer-events: none;
  transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
}

.hamburger-fixed.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hamburger-fixed--scrolled {
  top: 11px;
}

@media (min-width: 992px) {
  .hamburger-fixed { display: none; }
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.hamburger-fixed--open .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-fixed--open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-fixed--open .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- ドロワーメニュー ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  background: var(--color-brown);
  padding: 56px 40px 40px 40px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.drawer.open {
  transform: translateY(0);
  visibility: visible;
}

.drawer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ドロワーアイテムのアニメーション（CSSスタガー） */
.drawer__menu li {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 0;
}
.drawer.open .drawer__menu li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.25s; }
.drawer.open .drawer__menu li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.32s; }
.drawer.open .drawer__menu li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.39s; }
.drawer.open .drawer__menu li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.46s; }
.drawer.open .drawer__menu li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.53s; }
.drawer.open .drawer__menu li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.60s; }

.drawer__link {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid rgba(237, 237, 237, 0.12);
  transition: opacity 0.2s ease;
}

.drawer.open .drawer__menu li:nth-child(6) .drawer__link {
   border-bottom: none;
}

.drawer__link-sub {
  font-family: var(--font-ubuntu);
  font-size: 10px;
  letter-spacing: 0.25em;
  opacity: 0.5;
}

.drawer__link-label {
  font-size: 20px;
  letter-spacing: 0.15em;
}

.nav-link {
  transition: all 0.15s ease;
  text-decoration: none;
  color: #fff;
}
.nav-link:hover {
  /* opacity: 0.7; */
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- ヒーロースライドショー ---------- */
.hero-slideshow {
  position: relative;
  overflow: hidden;
  background-color: var(--color-green);
}

.hero-spacer {
  /* height: calc(100svh - var(--header-height)); */
  height: 100svh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ken Burns ズームアニメーション（active とは独立したクラスで管理） */
.hero-slide.zooming .hero-slide__img {
  animation: ken-burns 8800ms linear forwards;
}

@keyframes ken-burns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.15); }
}

/* ---------- スクロールインジケーター ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 0;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.scroll-indicator__text {
  font-family: var(--font-ubuntu);
  font-size: 12px;
  letter-spacing: 0.33em;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.scroll-indicator__line {
  width: 1.5px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  animation: scroll-line 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ヒーローロゴ */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 50px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 992px) {
  .hero-logo { width: 160px; }
}

/* ヒーローオーバーレイ */
.hero-slideshow__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Photo Unit（背景写真ユニット） ---------- */
.photo-unit {
  position: relative;
  height: 100vh;
  height: 800px;
}

.photo-unit__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-unit__spacer {
  height: 100vh;
  height: 2000px;
}

/* ---------- 茶色いカード（セクション共通） ---------- */
.brown-card {
  position: absolute;
  z-index: 10;
  background: var(--color-brown);
  padding-top: 80px;
  padding-bottom: 80px;
  width: 91.6667%;
  /* top: calc(100% - 50px); */
  left: 50%;
  translate: -50%;
  /* will-change: transform; */
}

@media (max-width: 767px) {
  .brown-card {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* ---------- 茶色いカード（セクション個別） ---------- */
/* .brown-card--about {
  top:  calc(35% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--facility {
  top:  calc(25% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--guide {
  top:  calc(45% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--access   {
  top:  calc(55% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--gallery {
  top: 95%;
  transform: translateY(-50%);
} */


.brown-card--about {
  top:  calc(25% + var(--header-height) / 2);
  /* transform: translateY(-50%); */
}
.brown-card--facility {
  top:  calc(25% + var(--header-height) / 2);
  /* transform: translateY(-50%); */
}
.brown-card--guide {
  top:  calc(25% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--access   {
  top:  calc(25% + var(--header-height) / 2);
  transform: translateY(-50%);
}
.brown-card--gallery {
  top: 95%;
  transform: translateY(-50%);
}
@media (max-width: 767px) {
.brown-card--about    { top: calc(100% - 50px); }
.brown-card--facility { top: calc(100% - 50px); }
.brown-card--guide    { top: calc(100% - 50px); }
.brown-card--access   { top: 0 }
.brown-card--gallery  { top: calc(100% - 50px); }
}

/* ---------- セクションアニメーション ---------- */
.animate-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.animate-section--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- セクション内コンテナ ---------- */
.section-inner {
  width: clamp(90%, 100%, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .section-inner { padding-left: 3rem; padding-right: 3rem; }
}

@media (min-width: 992px) {
  .section-inner { padding-left: 4rem; padding-right: 4rem; }
}
@media (min-width: 1024px) {
  .section-inner { padding-left: 120px; padding-right: 120px; }
}

/* ---------- セクション 2カラムレイアウト ---------- */
.section-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .section-row {
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
  }
}

.section-col {
  flex: 1;
  min-width: 0;
}

.drawing-img {
  display: block;
  width: 550px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .drawing-img {
    margin: 0 0 0 auto;
  }
}

/* ---------- セクション テキスト ---------- */
.section-eyebrow {
  font-family: var(--font-ubuntu);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  opacity: 0.8;
}

.section-heading {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  margin-top: 0;
}

@media (min-width: 992px) {
  .section-heading {
    font-size: 28px;
  }
}

p {
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 2;
  margin: 0 0 0.5em;
}

.section-body--small {
  font-size: 14px;
  line-height: 2;
}

.section-col ul li {
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 2.2;
}

/* dl / dt / dd */
.section-data-list {
  letter-spacing: 0.05em;
  width: 100%;
  margin: 0;
  padding: 0;
}

.section-data-list dt {
  margin-top: 1.2em;
  line-height: 1.6;
}

.section-data-list dd {
  line-height: 1.8;
  margin-left: 0;
  padding-bottom: 0.8em;
}

@media (min-width: 480px) {
  .section-data-list {
    display: flex;
    flex-wrap: wrap;
  }

  .section-data-list dt {
    width: 100px;
    font-size: 16px;
    margin-top: 0;
    line-height: 1.6;
    padding: 0.4em 0;
  }

  .section-data-list dd {
    width: calc(100% - 100px);
    margin-bottom: 0;
    padding: 0.4em 0 0.4em 1em;
    line-height: 1.6;
  }

  .section-data-list dt:last-of-type,
  .section-data-list dd:last-child {
    border-bottom: none;
  }
}

@media (min-width: 1600px) {
  .section-row {
    gap: 6rem;
  }
}

@media (min-width: 1901px) {
  /* #facility .section-row .section-col:first-child {
    flex: 8;
  }
  #facility .section-row .section-col:last-child {
    flex: 4;
  } */

  #access .section-row .section-col:first-child {
    flex: 4;
  }
  #access .section-row .section-col:last-child {
    flex: 8;
  }
}

@media (max-width: 1400px) {
  #access .section-row {
    flex-direction: column;
    align-items: stretch;
  }
  p {
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 2;
    margin: 0 0 0.5em;
  }
}

@media (max-width: 1200px) {
  #guide .section-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 568px) {
  p.section-body {
    font-size: 15px;
  }
}

/* ---------- 画像 ---------- */
.section-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- ギャラリーグリッド ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
}

.gallery-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ---------- ライトボックス ---------- */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9990;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, background-color 0.35s ease;
}

.lightbox-overlay--open {
  background: rgba(0, 0, 0, 0.9);
  pointer-events: all;
  opacity: 1;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  transform: scale(0.9);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.lightbox-overlay--open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 50px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .lightbox-overlay { padding: 1rem; }
}


/* ---------- アクセス ---------- */
.access-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 2.2;
  letter-spacing: 0.05em;
}
@media (max-width: 767px) {
  .access-list {
    gap: 0;
  }
}
/* ---------- マップ ---------- */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

@media (min-width: 600px) {
  .map-wrap { aspect-ratio: 4 / 3; }
}

@media (min-width: 992px) {
  .map-wrap { aspect-ratio: 3 / 2; }
}

@media (min-width: 1401px) {
  .map-wrap { aspect-ratio: 16 / 9; }
}

.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.map-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.35);
  white-space: nowrap;
  transition: border-color 0.3s ease;
}

/* 右矢印（デフォルト） */
.arrow-link::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.arrow-link:hover {
  border-color: var(--color-text);
}

.arrow-link:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* 左矢印（back）: ::after を左向きに上書き */
.arrow-link--back::after {
  border-right: none;
  border-left: 1px solid currentColor;
  transform: rotate(-45deg);
  order: -1;
}

.arrow-link--back:hover::after {
  transform: rotate(-45deg) translate(-2px, -2px);
}

@media (max-width: 767px) {
  .map-meta { width: 100%; }
}

/* ---------- フォーム ---------- */

.contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-text);
  padding-left: 12px;
  padding-right: 12px;
  color: var(--color-text);
  font-family: var(--font-mincho);
  font-size: 16px;
  outline: none;
}

.form-input:focus {
  border-color: #ffffff;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--color-brown) inset;
  -webkit-text-fill-color: var(--color-text);
  transition: background-color 9999s ease-in-out 0s;
}

.form-input::placeholder {
  color: rgba(237, 237, 237, 0.35);
  font-size: 13px;
}

button[type="submit"]:disabled {
  /*pointer-events: none;*/
  cursor: wait;
}

/* ---------- フッター上部 ---------- */
.site-footer {
  position: relative;
  background: var(--color-brown);
  padding-bottom: 16px;
  z-index: 20;
}

.footer-top {
  padding-top: 80px;
  padding-bottom: 80px;
}

.footer-top .section-row {
  align-items: center;
}
.footer-top .section-row .section-col.left {
  display: grid;
  place-content: center;
}
.footer-top .section-row .section-col.right {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- フッター下部 ---------- */
.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo a img {
  width: 60px;
}

.footer-bottom {
  padding-top: 72px;
  padding-bottom: 32px;
  border-top: 1px solid var(--color-beige);
}

.footer-bottom__right {
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  /* margin-bottom: 16px; */
  justify-content: center;
  list-style: none;
  padding: 60px 0;
}

.footer-copy {
  font-family: var(--font-ubuntu);
  font-size: 12px;
  font-weight: 300;
  margin: 0;
  text-align: center;
  color: #fff;
  opacity: 0.5;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal__link {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.5;
  text-decoration: none;
  transition: 0.2s;
}

.footer-legal__link:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .footer-bottom-row {
    flex-direction: column;
    gap: 48px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-bottom .logo {
    margin-bottom: 24px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 0;
  }
  .footer-bottom__right {
    text-align: left;
  }
  .footer-logo a img {
    width: 45px;
  }
  .contact-form {
    gap: 20px;
  }
}

/* --------------- */

.form-field {
  display: flex;
  flex-direction: column;
}

.form-required {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-brown);
  background: var(--color-text);
  vertical-align: middle;
  font-weight: 800;
}

.form-input--error {
  border-color: #c97070;
  border-color: #ff7070;
}

.form-error {
  margin: 6px 0 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #c97070;
  color: #ff7070;
  line-height: 1.6;
  font-weight: 800;
}

textarea#message {
  min-height: 100px;
  field-sizing: content;
  min-width: 150px;
  max-width: 100%;
  min-height: min-content;
  height: 200px;
  padding: 12px;
}

/* ---------- サブページ共通レイアウト ---------- */
.subpage-section {
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 80px) 0 100px;
}

.subpage-inner {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .subpage-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.subpage-inner--wide {
  max-width: 960px;
}


@media (max-width: 599px) {
  .subpage-section {
    padding: calc(var(--header-height) + 32px) 0 60px;
    align-items: flex-start;
  }
}

/* ---------- 確認ページ ---------- */

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.confirm-table th,
.confirm-table td {
  padding: 16px 0;
  border-bottom: 1px solid rgba(237, 237, 237, 0.15);
  text-align: left;
  font-size: 15px;
  letter-spacing: 0.06em;
  vertical-align: top;
}

.confirm-table th {
  width: 10em;
  opacity: 0.6;
  font-weight: 400;
  white-space: nowrap;
}

.confirm-table td {
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 599px) {
  .confirm-table,
  .confirm-table tbody,
  .confirm-table tr,
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
  }

  .confirm-table tr {
    padding: 16px 0;
    border-bottom: 1px solid rgba(237, 237, 237, 0.15);
  }

  .confirm-table th,
  .confirm-table td {
    border-bottom: none;
    padding: 0;
  }

  .confirm-table th {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .confirm-table td {
    font-size: 15px;
  }

  .confirm-actions {
    flex-direction: column;
  }

  .confirm-actions .btn-secondary,
  .confirm-actions .btn-primary {
    width: 100%;
    text-align: center;
  }
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


.confirm-note {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 2;
}


/* ---------- 送信完了ページ ---------- */

.thanks-body {
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 2.4;
  margin-bottom: 48px;
  opacity: 0.85;
}

.form-submit--link {
  display: inline-block;
  text-decoration: none;
}

.text-center {
  text-align: center;
}

@media (max-width: 599px) {
  .thanks-body {
    font-size: 14px;
    margin-bottom: 36px;
  }

  .thanks-section .btn-primary {
    text-align: center;
  }
}


/* ---------- ドキュメントページ（プライバシーポリシー等） ---------- */

.doc-content a {
  color: inherit;
  word-break: break-all;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.35);
}

.doc-content a:hover {
  border-color: var(--color-text);
  opacity: 1;
}

.doc-content h1 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.doc-lead {
  /* font-size: 14px; */
  line-height: 2;
  opacity: 0.85;
  margin-bottom: 48px;
}
.doc-content h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 48px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.2);
}
.doc-content p {
  line-height: 2;
  margin: 0 0 12px;
}
.doc-content ul {
  line-height: 1.8;
  padding-left: 1.5em;
  margin: 0 0 12px;
  padding-bottom: 0;
}
.doc-content li {
  padding-bottom: 4px;
}
.doc-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.8;
}
.doc-table th,
.doc-table td {
  border: 1px solid rgba(237, 237, 237, 0.2);
  padding: 10px 14px;
  vertical-align: top;
}
.doc-table th {
  background: rgba(237, 237, 237, 0.07);
  font-weight: 500;
  white-space: nowrap;
}
.doc-table a {
  color: inherit;
  word-break: break-all;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.35);
}
.doc-table a:hover {
  color: inherit;
  word-break: break-all;
  text-decoration: none;
  padding-bottom: 2px;
  border-color: var(--color-text);
  opacity: 1;
}


.doc-address {
  line-height: 2;
  opacity: 0.85;
  padding-left: 1em;
  border-left: 2px solid rgba(237, 237, 237, 0.2);
  margin: 12px 0;
}
.doc-updated {
  font-size: 14px;
  opacity: 0.5;
  margin-top: 60px;
}
.arrow-link--back-wrap {
  text-align: center;
  margin-top: 5rem;
}