/* ============================================================
   めぐりの家 デザイン案B「凛」
   CSS/SVGのみのミニマル・ギャラリー系スタイル
   ============================================================ */

:root {
  --color-bg: #fbfaf7;
  --color-text: #26302b;
  --color-accent: #6f8f75;
  --color-hairline: #ddd8cd;
  --color-accent2: #b58a5f;
  --color-bg-raised: #ffffff;

  --font-gothic: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-mincho: "Yu Mincho", "Hiragino Mincho ProN", serif;

  --content-max: 1040px;
  --section-gap: 96px;
  --header-height: 68px;
}

@media (min-width: 900px) {
  :root {
    --section-gap: 150px;
  }
}

/* ---------- リセット・基本 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  max-width: 100%;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 10px 16px;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- スクロール進捗バー ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: grow-progress linear forwards;
    animation-timeline: scroll(root);
  }
}

@keyframes grow-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-gothic);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__list {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.nav__list a {
  display: inline-block;
  padding: 6px 2px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---------- 共通: セクション見出し ---------- */
main {
  padding-top: var(--header-height);
}

.section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--color-hairline);
  scroll-margin-top: var(--header-height);
  position: relative;
}

.section:last-of-type {
  border-bottom: none;
}

.section-number {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 8rem);
  line-height: 1;
  margin: 0 0 8px;
  color: var(--color-hairline);
  letter-spacing: 0.02em;
}

@supports (-webkit-text-stroke: 1px black) {
  .section-number {
    color: transparent;
    -webkit-text-stroke: 1px var(--color-hairline);
  }
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-gothic);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 40px;
  text-wrap: balance;
}

.lead {
  max-width: 42em;
  margin-bottom: 48px;
  font-size: 1.0625rem;
}

.note {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 2px solid var(--color-accent2);
  background: var(--color-bg-raised);
  font-size: 1rem;
  line-height: 1.85;
}

/* ---------- 出現アニメ（JS有効時のみ） ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 32px) 24px 64px;
}

.hero__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62vmin;
  height: 62vmin;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero__circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__circle-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.6;
  stroke-dasharray: 566;
  stroke-dashoffset: 566;
  animation: draw-circle 1.6s ease-out 0.2s forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__circle-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 620px;
}

.hero__title {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-mincho);
  font-weight: 500;
  /* 画面の高さでも上限をかけ、サブコピーとボタンが1画面に収まりやすくする */
  font-size: clamp(2rem, min(8vw, 5.8svh), 3.25rem);
  letter-spacing: 0.14em;
  line-height: 1.5;
  max-height: 72svh;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__sub {
  font-size: 1rem;
  line-height: 2;
  max-width: 34em;
}

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

.hero__side {
  display: none;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--color-accent);
  z-index: 1;
}

@media (min-width: 1100px) {
  .hero__side {
    display: block;
  }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  position: relative;
  padding: 14px 30px;
  border: 1px solid var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleX(1);
}

.btn:hover,
.btn:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--solid {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.btn--solid::after {
  background: var(--color-bg);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* ---------- 植物線画 ---------- */
.section-flow {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.plant {
  display: block;
  flex-shrink: 0;
}

.plant svg {
  display: block;
  height: 220px;
  width: auto;
  margin: 0 auto;
}

.plant path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.js .plant path {
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  transition: stroke-dashoffset 1.2s ease;
}

html.js .plant path:nth-child(2) { transition-delay: 0.15s; }
html.js .plant path:nth-child(3) { transition-delay: 0.3s; }
html.js .plant path:nth-child(4) { transition-delay: 0.45s; }
html.js .plant path:nth-child(5) { transition-delay: 0.6s; }
html.js .plant path:nth-child(6) { transition-delay: 0.75s; }

html.js .plant.is-drawn path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.js .plant path {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}

@media (min-width: 900px) {
  .section-flow {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .lead {
    margin-bottom: 0;
  }
}

/* ---------- 植物の成長物語（各セクションの段階線画） ---------- */
.section-head {
  margin-bottom: 40px;
}

.section-head .section-title {
  margin-bottom: 24px;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 0 auto;
}

.stage .plant svg {
  height: 150px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.stage__caption {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}

.plant .plant__accent {
  stroke: var(--color-accent2);
}

@media (min-width: 900px) {
  .section-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }

  .section-head .section-title {
    margin-bottom: 0;
    flex: 1;
  }

  .stage {
    flex-shrink: 0;
  }
}

/* ---------- 番号付きリスト ---------- */
.numbered-list {
  display: flex;
  flex-direction: column;
}

.numbered-list__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--color-hairline);
}

.numbered-list__item:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.numbered-list__index {
  font-family: var(--font-gothic);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  position: relative;
  padding-left: 16px;
}

.numbered-list__index::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: -32px;
  width: 1px;
  background: var(--color-hairline);
}

.numbered-list__item:last-child .numbered-list__index::before {
  bottom: 4px;
}

.numbered-list__content h3 {
  font-family: var(--font-gothic);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.125rem;
  margin-bottom: 12px;
  text-wrap: balance;
}

.numbered-list__content p {
  max-width: 46em;
}

@media (min-width: 900px) {
  .numbered-list__item {
    grid-template-columns: 96px 1fr;
  }
}

/* ---------- メニュー / 料金 ---------- */
.price-list {
  border-top: 1px solid var(--color-hairline);
}

.price-list__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--color-hairline);
  transition: background 0.25s ease;
}

.price-list__row:hover {
  background: rgba(111, 143, 117, 0.06);
}

.price-list__info h3 {
  font-family: var(--font-gothic);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.price-list__info p {
  max-width: 42em;
}

.price-list__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.price-list__time {
  font-size: 0.875rem;
  color: var(--color-text);
  opacity: 0.75;
}

.price-list__amount {
  font-family: var(--font-mincho);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
}

.menu-note {
  margin-top: 32px;
  font-size: 0.9375rem;
  opacity: 0.85;
}

@media (min-width: 900px) {
  .price-list__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .price-list__meta {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    min-width: 160px;
  }
}

/* ---------- プロフィール ---------- */
.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.profile-portrait {
  position: relative;
  flex-shrink: 0;
}

.profile-portrait__frame {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid var(--color-hairline);
  background: var(--color-bg-raised);
  overflow: hidden;
}

.profile-portrait__frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-portrait__frame circle,
.profile-portrait__frame path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.profile-portrait .stage--profile {
  margin-top: 20px;
}

.profile-body {
  max-width: 46em;
}

.profile-name {
  font-family: var(--font-gothic);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.profile-title {
  font-size: 0.9375rem;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.profile-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.profile-history li {
  padding-left: 20px;
  position: relative;
}

.profile-history li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--color-accent2);
}

.profile-message {
  max-width: 42em;
}

@media (min-width: 900px) {
  .profile-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 72px;
  }

  .profile-portrait .stage--profile {
    margin-top: 32px;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--color-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--color-hairline);
}

.faq-item summary {
  padding: 22px 32px 22px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.faq-item[open] summary {
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  border-color: var(--color-accent);
  transform: translateY(-35%) rotate(225deg);
}

.faq-item p {
  padding: 0 24px 26px 0;
  max-width: 46em;
}

@starting-style {
  .faq-item[open] p {
    opacity: 0;
  }
}

.faq-item p {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ---------- お問い合わせ ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
}

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

.form-field label {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: none;
  /* ヘアラインより一段濃くして、入力欄だと分かる濃さにする */
  border-bottom: 1px solid #a8a192;
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-accent);
}

.contact-form .btn--solid {
  align-self: flex-start;
}

.form-status {
  margin-top: 4px;
  padding: 14px 18px;
  border-left: 2px solid var(--color-accent2);
  background: var(--color-bg-raised);
  font-size: 0.9375rem;
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px 0 64px;
  font-size: 0.875rem;
}

.site-footer p {
  margin-bottom: 12px;
}

.site-footer__brand {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 1rem;
}

.site-footer__closing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.site-footer__closing .plant svg {
  height: 44px;
  width: auto;
  margin: 0;
}

.site-footer__closing-text {
  font-family: var(--font-mincho);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  opacity: 0.85;
}

.site-footer__disclaimer {
  max-width: 46em;
  opacity: 0.8;
  line-height: 1.8;
}

.site-footer__copyright {
  margin-top: 24px;
  margin-bottom: 0;
  opacity: 0.7;
}
