@charset "UTF-8";

/* ===========================================
   うぶ助産院 共通スタイル
   =========================================== */

:root {
  --beige-base: #f4ede0;
  --beige-light: #faf6ee;
  --beige-dark: #e8ddc7;
  --beige-paper: #f8f2e5;
  --green-deep: #3d4f3d;
  --green-dark: #2a3a2a;
  --green-mid: #54684e;
  --green-light: #7d8f70;
  --text-main: #3a2e22;
  --text-sub: #6b5a48;
  --text-light: #8c7a64;
  --line-color: #d5c8b0;
  --line-soft: #e3d8be;
  --white-warm: #fffcf5;
  --shadow-soft: 0 8px 30px rgba(58, 46, 34, 0.08);
  --shadow-card: 0 4px 20px rgba(58, 46, 34, 0.06);
  --header-h: 88px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', YuMincho, 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: 1.6rem;
  line-height: 1.9;
  color: var(--text-main);
  background: var(--beige-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* ===========================================
   背景の和紙テクスチャ（控えめ）
   =========================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(213, 200, 176, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 191, 156, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 252, 245, 0.4) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   レイアウト
   =========================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

main {
  position: relative;
  z-index: 1;
}

/* ===========================================
   ヘッダー
   =========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(248, 242, 229, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  height: 72px;
  background: rgba(255, 252, 245, 0.96);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-logo img {
  height: 64px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.site-header.scrolled .site-logo img {
  height: 52px;
}

.site-logo-text {
  font-size: 1.3rem;
  color: var(--text-sub);
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.site-logo-text strong {
  display: block;
  font-size: 1.6rem;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* ナビゲーション */
.gnav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.gnav-list {
  display: flex;
  gap: 28px;
  align-items: center;
}

.gnav-list a {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
  display: inline-block;
}

.gnav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--green-deep);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.gnav-list a:hover {
  opacity: 1;
  color: var(--green-deep);
}

.gnav-list a:hover::after,
.gnav-list a.active::after {
  width: 100%;
  left: 0;
}

.header-cta {
  display: flex;
  gap: 10px;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 30px;
  background: var(--green-deep);
  color: var(--white-warm);
  border: 1px solid var(--green-deep);
  transition: all 0.3s var(--ease);
}

.header-cta-btn:hover {
  opacity: 1;
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 79, 61, 0.3);
}

.header-cta-btn.line {
  background: #06c755;
  border-color: #06c755;
}

.header-cta-btn.line:hover {
  background: #04a045;
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

/* ハンバーガー（モバイル） */
.gnav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 200;
}

.gnav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  width: 28px;
  height: 1.5px;
  background: var(--text-main);
  transition: all 0.4s var(--ease);
}

.gnav-toggle span:nth-child(1) { top: 14px; }
.gnav-toggle span:nth-child(2) { top: 21px; }
.gnav-toggle span:nth-child(3) { top: 28px; }

.gnav-toggle.open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.gnav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.gnav-toggle.open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* ===========================================
   セクション共通
   =========================================== */
.section {
  padding: 120px 0;
  position: relative;
}

.section--narrow {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-head .ja {
  display: block;
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.5;
}

.section-head .deco-line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--green-mid);
  margin: 20px auto;
}

.section-head .lead {
  font-size: 1.5rem;
  color: var(--text-sub);
  letter-spacing: 0.15em;
  line-height: 2;
}

/* セクション区切りの和柄ライン */
.divider-wave {
  display: block;
  width: 100%;
  height: 30px;
  background: linear-gradient(90deg, transparent, var(--line-color), transparent);
  margin: 60px 0;
  position: relative;
}

.divider-wave::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--beige-base);
  border: 1px solid var(--green-mid);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 縦書き装飾 */
.vertical {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.3em;
  line-height: 1.8;
}

.vertical-mixed {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  line-height: 2.2;
}

/* ===========================================
   ボタン
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  border-radius: 40px;
  background: var(--green-deep);
  color: var(--white-warm);
  border: 1px solid var(--green-deep);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-dark);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(61, 79, 61, 0.25);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn--outline::before {
  background: var(--green-deep);
}

.btn--outline:hover {
  color: var(--white-warm);
}

.btn--line {
  background: #06c755;
  border-color: #06c755;
}

.btn--line::before {
  background: #04a045;
}

.btn-arrow {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  margin-left: 6px;
}

.btn-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ===========================================
   カード（共通）
   =========================================== */
.card {
  background: var(--white-warm);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--beige-dark);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 28px;
}

.card-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.card-text {
  font-size: 1.4rem;
  color: var(--text-sub);
  line-height: 2;
}

/* ===========================================
   フッター
   =========================================== */
.site-footer {
  background: var(--green-dark);
  color: var(--beige-light);
  padding: 80px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--beige-base);
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.footer-col h4 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 237, 224, 0.2);
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--beige-base);
  opacity: 0.8;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--white-warm);
}

.footer-info p {
  font-size: 1.3rem;
  line-height: 2;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.footer-sns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-sns a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 237, 224, 0.1);
  border: 1px solid rgba(244, 237, 224, 0.3);
  transition: all 0.3s var(--ease);
}

.footer-sns a:hover {
  opacity: 1;
  background: var(--beige-base);
  color: var(--green-dark);
}

.footer-sns svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(244, 237, 224, 0.15);
  padding-top: 30px;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

/* ===========================================
   ページタイトルセクション
   =========================================== */
.page-hero {
  height: 380px;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--beige-dark) 0%, var(--beige-paper) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(125, 143, 112, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(213, 200, 176, 0.3) 0%, transparent 50%);
}

.page-hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.page-hero-sub {
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--text-sub);
}

/* パンくず */
.breadcrumb {
  background: var(--beige-light);
  padding: 14px 0;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--text-sub);
}

.breadcrumb li:not(:last-child)::after {
  content: "／";
  margin-left: 14px;
  color: var(--line-color);
}

/* ===========================================
   スクロールアニメーション
   =========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}

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

.fade-up-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.fade-up-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-up-stagger.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
.fade-up-stagger.is-visible > *:nth-child(3) { transition-delay: 0.31s; }
.fade-up-stagger.is-visible > *:nth-child(4) { transition-delay: 0.44s; }
.fade-up-stagger.is-visible > *:nth-child(5) { transition-delay: 0.57s; }
.fade-up-stagger.is-visible > *:nth-child(6) { transition-delay: 0.7s; }

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

/* 背景フェードイン（shirahone風のセクションが浮かび上がる演出） */
.section-reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===========================================
   トップへ戻るボタン
   =========================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.3s var(--ease);
  box-shadow: var(--shadow-soft);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  opacity: 1;
  transform: translateY(-4px);
}

.to-top::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ===========================================
   レスポンシブ
   =========================================== */
@media (max-width: 1024px) {
  .gnav-list {
    gap: 18px;
  }
  .gnav-list a {
    font-size: 1.3rem;
  }
  .header-cta-btn {
    padding: 9px 14px;
    font-size: 1.2rem;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  body {
    font-size: 1.5rem;
  }
  .site-header {
    height: var(--header-h);
  }
  .site-logo img {
    height: 48px;
  }
  .site-logo-text {
    display: none;
  }
  .gnav-toggle {
    display: block;
  }
  .gnav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--beige-light);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 90px 32px 32px;
    gap: 0;
    transition: right 0.5s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  .gnav.open {
    right: 0;
  }
  .gnav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin-bottom: 30px;
  }
  .gnav-list li {
    border-bottom: 1px solid var(--line-soft);
  }
  .gnav-list a {
    display: block;
    padding: 16px 8px;
    font-size: 1.5rem;
  }
  .header-cta {
    flex-direction: column;
    gap: 12px;
  }
  .header-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1.4rem;
  }
  .section {
    padding: 70px 0;
  }
  .section-head .ja {
    font-size: 2.4rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-hero {
    height: 240px;
  }
  .page-hero-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }
  .section-head .ja {
    font-size: 2.2rem;
    letter-spacing: 0.15em;
  }
  .section-head .lead {
    font-size: 1.4rem;
  }
}
