/* ============================================================
   あさひ訪問看護ステーション  共通スタイルシート
   ロゴの配色(リーフグリーン/セージ/マスタード/モーヴ)をベースにした
   温かみのあるデザイン
   ============================================================ */

:root {
  /* ロゴ由来のカラーパレット */
  --green: #8cb761;          /* リーフグリーン */
  --green-deep: #3f7a63;     /* 深い緑(実の色) */
  --sage: #9dbfaa;           /* セージグリーン */
  --sage-light: #e9f1ea;     /* 淡いセージ(背景用) */
  --gold: #c9922f;           /* マスタード(枝・文字の色) */
  --gold-dark: #a87719;      /* 濃いマスタード(リンク等) */
  --mauve: #c48fbb;          /* モーヴピンク(小さな実) */
  --cream: #fffdf8;          /* 生成りの白(ベース背景) */
  --cream-warm: #faf6ec;     /* 温かい生成り(交互背景) */
  --ink: #4a4438;            /* 本文(温かみのある焦げ茶) */
  --ink-soft: #7a7264;       /* 補足テキスト */
  --line: #e7e0d2;           /* 罫線 */
  --white: #ffffff;

  --radius: 16px;
  --shadow: 0 4px 20px rgba(74, 68, 56, 0.08);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  opacity: 0.8;
}

ul,
ol {
  padding-left: 1.4em;
}

/* キーボード操作時のフォーカスを明確に(アクセシビリティ) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- スキップリンク ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- レイアウト共通 ---------- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--cream-warm);
}

.section--sage {
  background: var(--sage-light);
}

/* 見出し:リースの実をイメージした3つのドット付き */
.heading {
  text-align: center;
  margin-bottom: 44px;
}

.heading::before {
  content: "";
  display: inline-block;
  width: 54px;
  height: 10px;
  margin-bottom: 10px;
  background-image: radial-gradient(circle 5px, var(--sage) 98%, transparent),
    radial-gradient(circle 5px, var(--gold) 98%, transparent),
    radial-gradient(circle 5px, var(--mauve) 98%, transparent);
  background-size: 10px 10px;
  background-position: 0 center, 22px center, 44px center;
  background-repeat: no-repeat;
}

.heading h1,
.heading h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.5;
}

.heading .heading-en {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-top: 6px;
  text-transform: uppercase;
}

.lead {
  text-align: center;
  max-width: 720px;
  margin: -20px auto 44px;
  color: var(--ink-soft);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  opacity: 1;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
}

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: auto;
}

.brand-name {
  line-height: 1.3;
}

.brand-name .brand-main {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.brand-name .brand-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.22em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.global-nav a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
}

.global-nav a:hover {
  background: var(--sage-light);
  opacity: 1;
}

.global-nav a[aria-current="page"] {
  color: var(--green-deep);
  font-weight: 700;
  position: relative;
}

.global-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
}

.nav-contact a {
  background: var(--gold);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 20px;
  margin-left: 8px;
}

.nav-contact a:hover {
  background: var(--gold-dark);
}

/* ハンバーガーメニュー(モバイル) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- ヒーロー(トップページ) ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sage-light) 100%);
  padding: 56px 20px 72px;
  text-align: center;
  overflow: hidden;
}

.hero-logo {
  width: min(300px, 68vw);
  margin: 0 auto 28px;
}

.hero-logo img {
  width: 86%;
  margin: 0 auto;
}

/* ロゴの文字はサイト共通の丸ゴシックで、落ち着いたバランスで組む */
.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.hero-name .name-main {
  font-size: clamp(1.7rem, 5.6vw, 2.1rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1.2;
}

.hero-name .name-sub {
  font-size: clamp(0.78rem, 2.4vw, 0.92rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.hero-copy {
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 2;
  margin-bottom: 16px;
}

.hero-text {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--green);
}

.card:nth-child(3n + 2) {
  border-top-color: var(--gold);
}

.card:nth-child(3n) {
  border-top-color: var(--mauve);
}

.card h3 {
  color: var(--green-deep);
  font-size: 1.12rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card .card-icon {
  line-height: 1;
  flex-shrink: 0;
}

.card-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- リスト(葉っぱ風マーカー) ---------- */
.leaf-list {
  list-style: none;
  padding: 0;
}

.leaf-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.leaf-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
}

/* ---------- ご利用の流れ(ステップ) ---------- */
.steps {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin: 0 auto;
  counter-reset: step;
}

.steps li {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 26px 92px;
  margin-bottom: 34px;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 2px;
  height: 22px;
  background: var(--sage);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--green-deep);
  border: 2px solid var(--sage);
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  color: var(--green-deep);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.steps p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- テーブル ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

caption {
  text-align: left;
  font-weight: 700;
  color: var(--green-deep);
  padding: 18px 20px 4px;
}

th,
td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

thead th {
  background: var(--sage-light);
  color: var(--green-deep);
}

tbody th {
  width: 32%;
  background: var(--cream-warm);
  font-weight: 700;
  color: var(--green-deep);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 58px;
  position: relative;
  font-weight: 700;
  color: var(--green-deep);
}

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

.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 4px 24px 22px 58px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-answer::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* ---------- お知らせ ---------- */
.news-list {
  list-style: none;
  padding: 0;
  max-width: 760px;
  margin: 0 auto;
}

.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 16px 8px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.news-list time {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 情報ボックス ---------- */
.info-box {
  background: var(--white);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.info-box h3 {
  color: var(--green-deep);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- CTA(電話・お問い合わせ) ---------- */
.cta {
  background: var(--green-deep);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.cta p {
  color: #d9e6dc;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.cta-tel .tel-icon {
  line-height: 1;
}

.tel-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.cta-hours {
  font-size: 0.88rem;
  color: #d9e6dc;
  margin-bottom: 24px;
}

.cta .btn--outline {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

/* ---------- フォーム ---------- */
.form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.required {
  display: inline-block;
  background: var(--mauve);
  color: #fff;
  font-size: 0.7rem;
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--green);
  outline: 2px solid var(--sage-light);
}

.form button[type="submit"] {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-nav h2 {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  font-size: 0.92rem;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--green-deep);
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--sage-light);
  padding: 14px;
}

/* ---------- ふわっと表示(スクロールアニメーション) ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* アニメーションを好まない設定のユーザーには動きを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---------- レスポンシブ ---------- */
.sp-only {
  display: none;
}

@media (max-width: 600px) {
  .sp-only {
    display: inline;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .global-nav {
    position: fixed;
    inset: 69px 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .global-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
  }

  .global-nav a {
    padding: 14px 12px;
    border-bottom: 1px dashed var(--line);
    border-radius: 0;
  }

  .global-nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-contact a {
    margin: 14px 0 0;
    text-align: center;
    border-bottom: none;
  }

  body.nav-locked {
    overflow: hidden;
  }

  .section {
    padding: 56px 0;
  }

  .steps li {
    padding: 22px 20px 22px 78px;
  }

  .steps li::before {
    left: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .brand-name .brand-main {
    font-size: 1.05rem;
  }

  .heading h1,
  .heading h2 {
    font-size: 1.4rem;
  }

  .form {
    padding: 30px 20px;
  }
}
