@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400&family=Zen+Kaku+Gothic+New:wght@400;500&display=swap');

:root {
  --white:        #FFFFFF;
  --off-white:    #F4F2F0;
  --light-beige:  #EBE3D9;
  --beige:        #BEA481;
  --sumi:         #333333;
  --ai-sumi:      #0F1A2B;

  --font-mincho:  'Zen Old Mincho', Georgia, serif;
  --font-gothic:  'Zen Kaku Gothic New', sans-serif;

  --sp-xs:  8px;
  --sp-sm:  24px;
  --sp-md:  48px;
  --sp-lg:  80px;
  --sp-xl:  120px;

  --radius: 2px;
  --ease:   0.6s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-gothic);
  font-size: 16px;
  color: var(--sumi);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.btn__arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 29px;
  height: 10px;
  background-color: var(--white);
  -webkit-mask-image: url('../images/arrow.svg');
  mask-image: url('../images/arrow.svg');
  -webkit-mask-size: 29px 10px;
  mask-size: 29px 10px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background-color 0.35s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(6px);
}

/* テキスト系リンクの矢印アニメーション */
.feature__link,
.concept__link,
.longrun-banner__link,
.menu-card__link {
  overflow: hidden;
}

.feature__link span,
.concept__link span,
.longrun-banner__link span,
.menu-card__link span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature__link:hover span,
.concept__link:hover span,
.longrun-banner__link:hover span,
.menu-card__link:hover span {
  transform: translateX(6px);
}

.btn--primary {
  background: var(--beige);
  color: var(--white);
  border: 1px solid var(--beige);
  transition: background 0.35s ease, color 0.35s ease;
}

.btn--primary:hover {
  background: var(--white);
  color: var(--sumi);
  opacity: 1;
}

.btn--primary:hover .btn__arrow {
  background-color: var(--beige);
}

.btn--secondary {
  background: var(--white);
  color: var(--sumi);
  border: 1px solid var(--beige);
}

.btn--secondary .btn__arrow {
  background-color: var(--sumi);
}

.btn--secondary:hover {
  background: var(--beige);
  color: var(--white);
  opacity: 1;
}

.btn--secondary:hover .btn__arrow {
  background-color: var(--white);
}

.btn--dark {
  background: var(--ai-sumi);
  color: var(--white);
  border: 1px solid var(--ai-sumi);
}

.btn--dark:hover {
  background: var(--white);
  color: var(--ai-sumi);
  opacity: 1;
}

.btn--dark:hover .btn__arrow {
  background-color: var(--ai-sumi);
}

.section {
  padding: var(--sp-xl) var(--sp-sm);
}

.section--bg {
  background: var(--off-white);
}

.section--soft-bg {
  background: rgba(244, 242, 240, 0.5);
}

.section--flush {
  padding-inline: 0;
}

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  font-family: var(--font-mincho);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.section__sub {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--beige);
  margin-top: 8px;
}

.section__desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--sumi);
  margin-top: 20px;
}

.section__desc small {
  font-size: 12px;
  color: #888;
}

.inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-sm);
}

/* ========================================
   セクション見出し（h2コンポーネント）
======================================== */
.section-h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 32px;
}

.section-h2__label {
  font-family: var(--font-mincho);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--sumi);
  text-align: center;
  line-height: 1.1;
}

.section-h2__line {
  width: 80px;
  height: 1px;
  background: #c7c7c7;
  flex-shrink: 0;
}

.section-h2__sub {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #9f8d76;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* フェードインアニメーション（スクロール連動） */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Instagram バナー（全ページ共通）
======================================== */
.insta-banner {
  padding: var(--sp-xl) 0;
}

.insta-banner__link {
  display: block;
  position: relative;
  line-height: 0;
}

.insta-banner__bg {
  width: 100%;
  height: auto;
  display: block;
}

.insta-banner__overlay {
  position: absolute;
  inset: 0;
  background: #333333;
  opacity: 0.4;
  transition: opacity 0.8s ease;
}

.insta-banner__link:hover .insta-banner__overlay {
  opacity: 0;
}

.insta-banner__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.insta-banner__icon {
  display: block;
  filter: brightness(0) invert(1);
  width: 40px;
  height: 40px;
}

.insta-banner__label {
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--white);
  text-align: center;
  line-height: 1;
}

/* 画像：ふわっと出現（scale + fade） */
.fade-in-scale {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* section-h2 の子要素：少しずつずれて fade-up */
.section-h2__label,
.section-h2__line,
.section-h2__sub {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-h2.is-visible .section-h2__label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.section-h2.is-visible .section-h2__line {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.section-h2.is-visible .section-h2__sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

/* ユーティリティ */
.sp-only { display: none; }
.price-en { font-size: 0.62em; }

/* ========================================
   トップへ戻るボタン
======================================== */
.pagetop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
  z-index: 900;
}

.pagetop.is-visible {
  opacity: 1;
  visibility: visible;
}

.pagetop:hover {
  background: var(--sumi);
}

.pagetop svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

@media (max-width: 768px) {
  .pagetop {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .pagetop svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   モバイル共通
======================================== */
@media (max-width: 768px) {
  .sp-only { display: inline; }

  .page-cta__btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-cta__btns .btn {
    width: 100%;
  }

  :root {
    --sp-xl: 64px;
    --sp-lg: 48px;
    --sp-md: 32px;
    --sp-sm: 16px;
  }

  .inner {
    padding-inline: 0;
  }

  /* 本文・説明文は左寄せ */
  .coa-intro__text,
  .sp-intro,
  .sp-intro__body,
  .section__desc,
  .flow-v__desc,
  .faq__a,
  .concept__body,
  .price-intro__lead {
    text-align: left;
  }
}
