/* ============================================================
   結看護師事務所 style.css
   モバイルファースト（〜480px基準 → 768 / 1024 で拡張）
   ============================================================ */

/* ---- デザイントークン ---------------------------------- */
:root {
  --color-primary:      #1e4a3d;   /* 深い森緑 */
  --color-primary-deep: #14322a;   /* 濃色面 */
  --color-accent:       #e58a2e;   /* 安全色アンバー */
  --color-base:         #f1f4f0;   /* 霧白 */
  --color-text:         #1c2a25;   /* 墨緑 */
  --color-subtext:      #58685f;   /* 補助文 */
  --color-border:       rgba(28, 42, 37, 0.14);

  --header-h: 64px;
  --radius-pill: 999px;
  --radius-card: 14px;
  --maxw: 1080px;

  --font-head: "Zen Kaku Gothic New", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-latin: "Outfit", sans-serif;

  /* 告知バナー用（統一仕様） */
  --pn-bg: var(--color-primary-deep);
  --pn-fg: var(--color-base);
  --pn-fg-rgb: 241, 244, 240;
  --pn-accent: var(--color-accent);
  --pn-font: var(--font-body);
}

/* ---- リセット / ベース --------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.85;
  letter-spacing: 0.02em;
  padding-top: var(--header-h);              /* 固定ヘッダー分 */
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.eyebrow {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.eyebrow--light { color: #f3b873; }

/* ---- ボタン -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 138, 46, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229, 138, 46, 0.4); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ============================================================
   告知バナー（統一仕様）
   ============================================================ */
.portfolio-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--pn-bg);
  color: var(--pn-fg);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.6;
  border-bottom: 1px solid var(--pn-accent);
  font-family: var(--pn-font);
}
.portfolio-notice strong {
  color: var(--pn-accent);
  letter-spacing: 0.2em;
  margin-right: 0.6rem;
  font-weight: 600;
}
.portfolio-notice .pn-close {
  background: transparent;
  border: 1px solid rgba(var(--pn-fg-rgb), 0.4);
  color: var(--pn-fg);
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-left: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  font-family: inherit;
}
.portfolio-notice .pn-close:hover {
  background: var(--pn-accent);
  border-color: var(--pn-accent);
  color: var(--pn-bg);
}

/* 告知バナー表示時の押し下げ（固定ヘッダー分も加算） */
body.notice-visible { padding-top: calc(var(--header-h) + 44px); }
body.notice-visible .site-header { top: 44px; }
@media (max-width: 720px) {
  .portfolio-notice { font-size: 0.7rem; padding: 0.5rem 0.8rem; }
  body.notice-visible { padding-top: calc(var(--header-h) + 64px); }
  body.notice-visible .site-header { top: 64px; }
}

/* ============================================================
   ヘッダー（統一仕様：backdrop-filter は ::before に逃がす）
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  border-bottom: 1px solid var(--color-border);
  transition: top 0.3s;
  /* ❌ ここに backdrop-filter / transform / filter を直接書かない */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(241, 244, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -1;
}
.header-inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--color-text); }
.logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: var(--color-primary);
  color: var(--color-base);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 8px;
  font-size: 1.05rem;
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.logo-text small {
  display: block;
  font-family: var(--font-latin);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--color-subtext);
}

.pc-nav { display: none; }
.header-cta { display: none; }

/* ---- ハンバーガー（drawer より上） ---- */
.hamburger {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 220;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- マスク ---- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 50, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 210;
}
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }

/* ---- ドロワー（パターンB：右スライドイン） ---- */
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 80vw;
  max-width: 360px;
  height: 100dvh;
  background: var(--color-base);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 215;
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); box-shadow: -8px 0 32px rgba(20, 50, 42, 0.18); }

body.notice-visible .drawer { padding-top: calc(var(--header-h) + 44px + 1rem); }
@media (max-width: 720px) {
  body.notice-visible .drawer { padding-top: calc(var(--header-h) + 64px + 1rem); }
}

.drawer-list { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 2rem; list-style: none; }
.drawer-list a {
  display: block;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}
.drawer-list a:hover { color: var(--color-primary); }
.drawer-cta {
  margin-top: 0.8rem;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
  text-align: center;
  padding: 0.95rem 1rem !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(229, 138, 46, 0.4);
}
.drawer-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.drawer-tel { font-size: 0.85rem; color: var(--color-subtext); display: flex; flex-direction: column; gap: 0.15rem; }
.drawer-tel a { font-family: var(--font-latin); font-size: 1.25rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.drawer-tel small { font-size: 0.7rem; }

/* ============================================================
   ヒーロー（署名：等高線SVG）
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  padding: clamp(3.5rem, 12vw, 6.5rem) 1.25rem clamp(3rem, 9vw, 5rem);
}
.hero-contour {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(229, 138, 46, 0.35);
  stroke-width: 1.5;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #f3b873;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin-bottom: 1.3rem;
}
.hero-lead {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.hero-actions .btn { flex: 1 1 auto; min-width: 200px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-badges li {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   セクション共通
   ============================================================ */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.8rem; }
.section-desc { color: var(--color-subtext); font-size: 0.95rem; }
.section-cta { margin-top: 2.5rem; text-align: center; }

/* ---- About ---- */
.section-about { background: #fff; }
.about-grid { display: flex; flex-direction: column; gap: 2rem; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-caption { display: block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--color-subtext); }
.about-body h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1rem; }
.about-body p { margin-bottom: 1rem; color: var(--color-text); }
.about-facts {
  margin-top: 1.8rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.about-facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}
.about-facts dt { font-family: var(--font-head); font-weight: 500; font-size: 0.85rem; color: var(--color-primary); }
.about-facts dd { font-size: 0.92rem; }
.about-facts small, .price-note, .form-note { display: block; font-size: 0.72rem; color: var(--color-subtext); }

/* ---- Services ---- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20, 50, 42, 0.12); }
.card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.3rem 1.6rem; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--color-primary); }
.card-body p { font-size: 0.9rem; color: var(--color-text); }

/* ---- Flow ---- */
.section-flow { background: #fff; }
.flow-list { list-style: none; display: grid; gap: 1.2rem; counter-reset: none; }
.flow-step {
  position: relative;
  background: var(--color-base);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.4rem 1.4rem;
  border-left: 4px solid var(--color-accent);
}
.flow-num {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}
.flow-step h3 { font-size: 1.1rem; margin: 0.2rem 0 0.5rem; }
.flow-step p { font-size: 0.9rem; color: var(--color-subtext); }

/* ---- Price ---- */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.price-card--feature { border-color: var(--color-accent); box-shadow: 0 8px 22px rgba(229, 138, 46, 0.16); }
.price-card h3 { font-size: 1.05rem; color: var(--color-primary); margin-bottom: 0.7rem; }
.price-amount { font-family: var(--font-latin); font-weight: 600; font-size: 2.4rem; color: var(--color-text); line-height: 1.1; }
.price-amount span { font-family: var(--font-body); font-size: 0.85rem; color: var(--color-subtext); margin-left: 0.3rem; }
.price-note { margin-top: 0.6rem; }
.price-disclaimer { margin-top: 1.5rem; font-size: 0.78rem; color: var(--color-subtext); text-align: center; }

/* ---- Works ---- */
.works-list { list-style: none; display: grid; gap: 0.9rem; }
.works-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.works-tag {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  margin-top: 0.2rem;
}
.works-list p { font-size: 0.9rem; }

/* ---- FAQ ---- */
.section-faq { background: #fff; }
.faq-list { display: grid; gap: 0.8rem; }
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0 1.1rem;
  background: var(--color-base);
}
.faq-list summary {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 1.1rem 2rem 1.1rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-latin);
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 1.1rem; font-size: 0.9rem; color: var(--color-subtext); }

/* ---- Contact ---- */
.section-contact { background: var(--color-primary-deep); color: #fff; }
.contact-inner h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.8rem; }
.contact-lead { color: rgba(255, 255, 255, 0.85); margin-bottom: 2.4rem; font-size: 0.95rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; }
.contact-info { display: grid; gap: 0; }
.contact-info > div { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.contact-info dt { font-family: var(--font-head); font-size: 0.85rem; color: #f3b873; }
.contact-info dd { font-size: 0.92rem; }
.contact-info dd a { font-family: var(--font-latin); font-size: 1.1rem; color: #fff; text-decoration: none; }
.contact-info small { display: block; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); }

.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-family: var(--font-head); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 100%;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.contact-form .btn { margin-top: 0.4rem; }
.form-note { color: rgba(255, 255, 255, 0.55) !important; }

/* ---- Footer ---- */
.site-footer { background: #0f261f; color: rgba(255, 255, 255, 0.8); padding: 3rem 0 2.5rem; }
.footer-inner { display: grid; gap: 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-sub { font-family: var(--font-latin); font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.6); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-nav a { font-size: 0.85rem; text-decoration: none; color: rgba(255, 255, 255, 0.8); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-copy { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); line-height: 1.8; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.4rem; }

/* ---- フォーカス可視化 / モーション配慮 ---- */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   タブレット（768px〜）
   ============================================================ */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .pc-nav { display: block; }
  .pc-nav ul { display: flex; gap: 1.6rem; list-style: none; }
  .pc-nav a { font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; text-decoration: none; color: var(--color-text); }
  .pc-nav a:hover { color: var(--color-primary); }
  .header-cta {
    display: inline-flex; align-items: center;
    background: var(--color-accent); color: #fff;
    font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
    padding: 0.55rem 1.2rem; border-radius: var(--radius-pill); text-decoration: none;
  }
  .header-cta:hover { filter: brightness(1.05); }

  .hero-actions .btn { flex: 0 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .works-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { flex-direction: row; align-items: center; }
  .about-photo, .about-body { flex: 1 1 50%; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-copy { grid-column: 1 / -1; }
}

/* ============================================================
   デスクトップ（1024px〜）
   ============================================================ */
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .flow-list { grid-template-columns: repeat(4, 1fr); }
  .hero-title { letter-spacing: 0.02em; }
  .section-head { max-width: 40rem; }
}
