/* =========================================================
   らふたす｜居宅介護支援事業所
   style.css

   DESIGN
   ・清潔感のあるグリーン × オフホワイト
   ・四つ葉のクローバーをモチーフにした静かなデザイン
   ・スマートフォンを最優先
   ・写真、余白、短いコピーを中心に構成
   ・過剰な装飾、派手なアニメーションは使用しない
========================================================= */

/* =========================================================
   01. 基本設定
========================================================= */

:root {
  --white: #ffffff;
  --off-white: #f8f7f2;
  --cream: #f1eee4;
  --cream-deep: #e6dfcf;

  --green: #789b82;
  --green-deep: #486b55;
  --green-dark: #355440;
  --green-soft: #a8c0ae;
  --green-mist: #e9f0eb;

  --gold: #b59a64;

  --ink: #344039;
  --ink-soft: #6d776f;
  --line: rgba(72, 107, 85, .16);

  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-script: "Caveat", cursive;

  --header-height: 64px;
  --bar-height: 72px;
  --content-width: 1120px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-slow: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1); /* ふわっと弾むイージング */
}

/* =========================================================
   02. リセット
========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden; /* ★追加：横方向のはみ出しをここでも確実にクリップ（左右ズレ対策） */
  width: 100%;        /* ★追加：ビューポート幅を明示的に固定 */
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}

body,
button,
input,
textarea {
  font-family: var(--font-sans);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

p,
h1,
h2,
h3,
h4,
dl,
dd {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   03. 共通
========================================================= */

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

.section {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 82px 22px 96px;
}

.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-mist) 0%, rgba(233, 240, 235, 0) 72%);
  opacity: .72;
  pointer-events: none;
}

/* =========================================================
   04. ヘッダー
========================================================= */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(248, 247, 242, .94);
  border-bottom: 1px solid rgba(72, 107, 85, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .35s ease, background-color .35s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--green-deep);
}

.logo img {
  width: auto;
  height: 29px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: .76rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.logo-text-short {
  display: none;
}

/* =========================================================
   05. メニューボタン
========================================================= */

.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--green-deep);
  transition: transform .35s var(--ease), opacity .25s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================================
   06. ドロワーメニュー
========================================================= */

.drawer {
  position: fixed;
  z-index: 1100;
  top: 0;
  right: 0;
  width: min(88vw, 430px);
  height: 100dvh;
  padding: calc(var(--header-height) + 22px) 24px 28px;
  background: var(--white);
  box-shadow: -20px 0 60px rgba(53, 84, 64, .10);
  transform: translateX(105%);
  transition: transform .45s var(--ease-slow);
  overflow-y: auto;
}

.drawer.active {
  transform: translateX(0);
}

.drawer-inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-leaf {
  position: absolute;
  top: -8px;
  right: 0;
  width: 50px;
  height: 50px;
  background: url("img/logo.png") center / contain no-repeat;
  opacity: .8;
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 34px;
}

.drawer-list li {
  border-bottom: 1px solid var(--line);
}

.drawer-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 2px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .04em;
  transition: color .3s ease, padding-left .3s ease;
}

.drawer-list a:hover,
.drawer-list a:focus-visible {
  color: var(--green-deep);
  padding-left: 8px;
}

.drawer-list .num {
  min-width: 24px;
  color: var(--green-soft);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .08em;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 30px;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.8;
}

.drawer-overlay {
  position: fixed;
  z-index: 1050;
  inset: 0;
  background: rgba(38, 55, 44, .24);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   07. 背景のクローバー
========================================================= */

.clover-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-leaf {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: .12;
  background: url("img/logo.png") center / contain no-repeat;
  animation: leafFloat 9s ease-in-out infinite;
}

.leaf-1 {
  top: 18%;
  left: 7%;
}

.leaf-2 {
  top: 43%;
  right: 6%;
  width: 24px;
  height: 24px;
  animation-delay: -2s;
}

.leaf-3 {
  top: 72%;
  left: 4%;
  width: 14px;
  height: 14px;
  animation-delay: -4s;
}

.leaf-4 {
  top: 84%;
  right: 13%;
  width: 20px;
  height: 20px;
  animation-delay: -6s;
}

@keyframes leafFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* =========================================================
   08. HERO
========================================================= */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 30px) 20px 70px;
}

.hero-visual {
  position: relative;
  margin: 0 0 0 14vw;
  padding-bottom: 90px;
}

.hero-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(var(--shadow-c), .4);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  top: -14px;
  right: -4px;
  background: var(--green-deep);
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1.6;
  padding: 16px 8px;
  border-radius: 2px 2px 0 8px;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
  z-index: 3;
}

.hero-tag:hover {
  transform: translateY(-3px);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(53, 84, 64, .08));
  pointer-events: none;
}

.hero-photo img,
.hero-photo-sub img,
.worries-photo img,
.wide-photo img,
.office-photo img,
.message-photo img,
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-sub {
  position: absolute;
  right: -8px;
  bottom: -45px;
  width: 44%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto;
}

.hero-copy h1 {
  margin-bottom: 27px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .05em;
}

.accent {
  color: var(--green-deep);
}

.lead-block {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 2.15;
  letter-spacing: .04em;
}

/* =========================================================
   09. 運営法人変更のお知らせ
========================================================= */

.news-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 64px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-notice-label {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
  color: var(--green-deep);
  line-height: 1.3;
}

.news-notice-label span:first-child {
  font-family: var(--font-script);
  font-size: 1.05rem;
}

.news-notice-label span:last-child {
  margin-top: 2px;
  font-size: .62rem;
  letter-spacing: .08em;
}

.news-notice-date {
  margin-bottom: 3px;
  color: var(--green-soft);
  font-family: var(--font-sans);
  font-size: .66rem;
  letter-spacing: .06em;
}

.news-notice-content h2 {
  margin-bottom: 5px;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.news-notice-content p:last-child {
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.85;
}

/* =========================================================
   10. お悩み
========================================================= */

.worries {
  max-width: 820px;
  margin: 100px auto 0;
}

.worries-intro {
  margin-bottom: 38px;
}

.worries-photo {
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.worries-lead {
  margin-bottom: 32px;
}

.worries-lead .lead-block {
  margin-bottom: 30px;
}

.worries .section-title {
  margin-bottom: 0;
}

.worry-bubbles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
  overflow: visible;
}

.worry-bubbles li {
  position: relative;
  max-width: 84%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 90px;
  padding: 17px 21px;
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.7;
  box-shadow: 0 10px 26px -16px rgba(var(--shadow-c), .3);
  opacity: 0;
  transform: translateY(20px) scale(.82);
  transition: opacity .75s var(--ease-pop), transform .75s var(--ease-pop);
  will-change: transform, opacity;
}

.worry-bubbles li.in-view {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
.worry-bubbles li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: opacity .35s var(--ease-pop) .38s,
              transform .35s var(--ease-pop) .38s;
}

.worry-bubbles li.in-view::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.worry-bubbles .bubble-l {
  align-self: flex-start;
  transform: translateY(20px) scale(.82) rotate(-4deg);
  transform-origin: left bottom;
}

.worry-bubbles .bubble-l::after {
  left: 26px;
}

.worry-bubbles .bubble-r {
  align-self: flex-end;
  text-align: right;
  transform: translateY(20px) scale(.82) rotate(4deg);
  transform-origin: right bottom;
}

.worry-bubbles .bubble-r::after {
  right: 26px;
}
.worries-note {
  position: relative;
  margin-top: 44px;
  padding: 22px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.worries-note p {
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: .88rem;
  line-height: 2;
  letter-spacing: .05em;
}

.note-leaf {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  background: url("img/logo.png") center / contain no-repeat;
  opacity: .75;
}

/* =========================================================
   11. セクション見出し
========================================================= */

.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .06em;
}

.leaf-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: url("img/logo.png") center / contain no-repeat;
}

.section-sub {
  margin-bottom: 22px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .04em;
}

.body-text {
  max-width: 46em;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 2.15;
  letter-spacing: .025em;
}

/* =========================================================
   12. 最初のあいさつ
========================================================= */

.section-greeting::before {
  top: -70px;
  right: -150px;
}

/* =========================================================
   13. らふたすの特徴(サイトの中心)
========================================================= */

.section-features {
  padding-top: 100px;
  padding-bottom: 120px;
}

.section-features::before {
  top: -80px;
  right: -150px;
  width: 360px;
  height: 360px;
}

.features-heading {
  max-width: 760px;
  margin-bottom: 64px;
}

.features-heading .section-title {
  margin-bottom: 13px;
}

.features-heading .section-sub {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: .8rem;
}

/* --- 特徴ブロック共通 --- */

.feature-block {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 82px;
}

.feature-block:last-of-type {
  margin-bottom: 0;
}

.feature-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream);
}

.feature-photo img {
  transition: transform 1.2s var(--ease);
}

.feature-block:hover .feature-photo img {
  transform: scale(1.025);
}

.feature-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 22px);
  margin: -25px 0 0 auto;
  padding: 27px 23px 29px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(53, 84, 64, .07);
}

.feature-number {
  display: block;
  margin-bottom: 9px;
  color: var(--green-soft);
  font-family: var(--font-script);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: .05em;
}

.feature-copy h3 {
  margin-bottom: 15px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .04em;
}

.feature-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.95;
}

/* --- FEATURE 01(写真＋コピー) --- */

.feature-01 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.feature-01 .feature-copy {
  margin-top: -30px;
}

/* --- FEATURE 02(左右反転) --- */

.feature-02 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.feature-02 .feature-photo {
  order: 1;
}

.feature-02 .feature-copy {
  order: 2;
  margin-top: -25px;
  margin-left: 0;
  margin-right: auto;
}

/* --- 医療・地域メッセージ --- */

.medical-message {
  max-width: 680px;
  margin: 25px auto 0;
  padding: 27px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.medical-message .mini-title {
  margin-bottom: 12px;
  justify-content: center;
}

.medical-message p:last-child {
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.9;
}

/* =========================================================
   15. ご利用の流れ
========================================================= */

.section-flow::before {
  bottom: -100px;
  left: -150px;
}

.wide-photo {
  width: 88%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 58px;
}

.offset-l {
  margin-left: 0;
}

.offset-r {
  margin-left: auto;
}

.flow-timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.flow-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 28px;
  left: 20px;
  width: 1px;
  background: var(--green-soft);
  opacity: .45;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: 41px 1fr;
  gap: 17px;
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.flow-node:last-child {
  margin-bottom: 0;
}

.flow-node.in-view {
  opacity: 1;
  transform: translateY(0);
}

.flow-marker {
  position: relative;
  z-index: 2;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-soft);
  border-radius: 50%;
  background: var(--off-white);
  color: var(--green-deep);
  font-family: var(--font-script);
  font-size: 1rem;
}

.flow-body {
  padding-top: 2px;
}

.flow-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  color: var(--green-soft);
}

.flow-icon svg {
  width: 100%;
  height: 100%;
}

.flow-body h3 {
  margin-bottom: 7px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: .98rem;
  font-weight: 600;
}

.flow-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.9;
}

/* =========================================================
   16. 管理者紹介
========================================================= */

.message-block {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.message-photo {
  position: relative;
  width: 82%;
  max-width: 370px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.message-photo img {
  position: relative;
  z-index: 2;
}

.message-photo-frame {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--green-soft);
}

.message-en {
  position: absolute;
  z-index: 3;
  right: -13px;
  bottom: 18px;
  padding: 5px 11px;
  background: var(--off-white);
  color: var(--green-deep);
  font-family: var(--font-script);
  font-size: 1.35rem;
}

.message-copy {
  max-width: 620px;
  margin: 0 auto;
}

.profile-info {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-info h3 {
  margin-bottom: 7px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.profile-role {
  margin: 0;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.9;
}

.greeting-text p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 2;
}

/* =========================================================
   17. 対応圏域
========================================================= */

.section-area::before {
  top: -80px;
  right: -160px;
}

.area-intro {
  margin-bottom: 25px;
}

.area-box {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  padding: 27px 21px;
  background: var(--white);
  border: 1px solid rgba(72, 107, 85, .10);
  box-shadow: 0 12px 32px rgba(53, 84, 64, .05);
}

.area-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-mist);
  color: var(--green-deep);
}

.area-icon svg {
  width: 30px;
  height: 30px;
}

.area-content h3 {
  margin-bottom: 9px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.area-content p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.9;
}

.area-content p:last-child {
  margin-bottom: 0;
}

.area-content .note {
  color: #8a908b;
  font-size: .66rem;
}

/* =========================================================
   18. 事業所情報
========================================================= */

.section-office::before {
  top: -70px;
  right: -150px;
}

.office-photo {
  width: 88%;
  aspect-ratio: 4 / 3;
  margin-bottom: 40px;
  overflow: hidden;
}

.info-table {
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: .74rem;
}

.info-value {
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.8;
}

.info-value a {
  color: var(--green-deep);
  text-decoration: underline;
  text-decoration-color: var(--green-soft);
  text-underline-offset: 3px;
}

.section-office > .body-text {
  margin-top: 30px;
}

/* =========================================================
   19. 重要事項説明書
========================================================= */

.manual-link {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  margin: 34px auto 0;
  padding: 17px;
  background: var(--white);
  border: 1px solid rgba(72, 107, 85, .12);
  transition: transform .3s ease, border-color .3s ease;
}

.manual-link:hover {
  transform: translateY(-2px);
  border-color: var(--green-soft);
}

.manual-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--green-deep);
}

.manual-icon svg {
  width: 100%;
  height: 100%;
}

.manual-text {
  display: flex;
  flex-direction: column;
}

.manual-title {
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: .82rem;
}

.manual-sub {
  color: var(--ink-soft);
  font-size: .62rem;
}

.manual-arrow {
  margin-left: auto;
  color: var(--green-soft);
  font-size: 1.5rem;
  line-height: 1;
}

/* =========================================================
   20. お問い合わせ
========================================================= */

.section-contact {
  padding-bottom: calc(96px + var(--bar-height));
}

.section-contact::before {
  bottom: -80px;
  left: -160px;
}

.section-contact > .section-sub {
  max-width: 600px;
}

.mini-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 42px 0 20px;
  color: var(--green-deep);
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.mini-title.left {
  justify-content: flex-start;
}

.contact-form {
  max-width: 720px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--green-deep);
  font-size: .72rem;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 12px 13px;
  background: var(--white);
  border: 1px solid rgba(72, 107, 85, .15);
  border-radius: 0;
  color: var(--ink);
  font-size: .78rem;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a4aaa5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(168, 192, 174, .15);
}

.form-field textarea {
  resize: vertical;
  min-height: 145px;
  line-height: 1.8;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: .67rem;
  line-height: 1.7;
  cursor: pointer;
}

.confirm-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--green-deep);
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 23px;
  padding: 14px;
  background: #c9d1cb;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: .85rem;
  cursor: not-allowed;
  transition: background-color .3s ease, transform .3s ease;
}

.submit-btn.ready {
  background: var(--green-deep);
  cursor: pointer;
}

.submit-btn.ready:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* =========================================================
   21. 電話お問い合わせ
========================================================= */

.phone-contact {
  max-width: 720px;
  margin-top: 58px;
}

.phone-hours {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.8;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 17px 18px;
  background: var(--green-deep);
  color: var(--white);
  transition: background-color .3s ease, transform .3s ease;
}

.phone-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.phone-btn svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.phone-btn > span:nth-child(2) {
  font-size: 1rem;
  letter-spacing: .04em;
}

.phone-btn .chev {
  margin-left: auto;
  font-size: 1.45rem;
  line-height: 1;
}

/* =========================================================
   22. フッター
========================================================= */

.site-footer {
  position: relative;
  padding: 42px 20px calc(42px + var(--bar-height));
  background: var(--green-dark);
  color: rgba(255, 255, 255, .72);
  text-align: center;
}

.footer-leaf {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
  background: url("img/logo.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: .7;
}

.site-footer p {
  margin: 0;
  font-size: .6rem;
  letter-spacing: .05em;
}

/* =========================================================
   23. 固定お問い合わせバー
========================================================= */

.fixed-bar {
  position: fixed;
  z-index: 900;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--bar-height);
  display: grid;
  grid-template-columns: 1.15fr 1.05fr .8fr;
  box-shadow: 0 -8px 25px rgba(53, 84, 64, .08);
}

.bar-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
}

.bar-call {
  background: var(--green-deep);
  color: var(--white);
}

.bar-hours {
  background: var(--cream-deep);
  color: var(--ink);
}

.bar-mail {
  background: var(--gold);
  color: var(--white);
  text-align: center;
}

.bar-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

.bar-icon svg {
  width: 100%;
  height: 23px;
}

.bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
}

.bar-text small,
.bar-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-text small {
  font-size: .53rem;
  opacity: .88;
}

.bar-text strong {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.bar-hours .bar-text small {
  font-size: .58rem;
}

.bar-mail .bar-icon {
  width: 17px;
  height: 20px;
  margin-right: 4px;
}

.bar-mail .bar-text strong {
  font-size: .66rem;
  font-weight: 500;
}

/* =========================================================
   24. スクロール出現アニメーション
========================================================= */

.reveal-up,
.reveal-img {
  opacity: 0;
  filter: blur(5px);
  transition: opacity .9s var(--ease-slow), transform .9s var(--ease-slow), filter .9s var(--ease-slow);
}

.reveal-up {
  transform: translateY(24px);
}

.reveal-img {
  transform: translateY(20px) scale(1.025);
}

.reveal-img-slow {
  transition-duration: 1.2s;
}

.reveal-up.in-view,
.reveal-img.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================================================
   25. アニメーション軽減
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-up,
  .reveal-img,
  .floating-leaf,
  .worry-bubbles li,
  .flow-node,
  .menu-btn span,
  .drawer,
  .drawer-overlay {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* 吹き出しのしっぽは45度回転が形状に必要なため個別に指定 */
  .worry-bubbles li::after {
    transition: none;
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}
/* =========================================================
   26. タブレット
========================================================= */

@media (min-width: 600px) {
  :root {
    --header-height: 70px;
    --bar-height: 78px;
  }

  .site-header {
    padding: 0 28px;
  }

  .logo img {
    height: 31px;
  }

  .logo-text {
    font-size: .88rem;
  }

  .section {
    padding: 105px 38px 120px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  /* HERO */

  .hero {
    padding: calc(var(--header-height) + 45px) 36px 90px;
  }

  .hero-visual {
    margin-bottom: 90px;
  }

  .hero-photo {
    aspect-ratio: 16 / 11;
  }

  .hero-photo-sub {
    right: -25px;
    bottom: -55px;
    width: 30%;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

  .hero-copy .lead-block {
    font-size: .9rem;
  }

  /* お知らせ */

  .news-notice {
    margin-top: 75px;
  }

  /* お悩み */

  .worries {
    margin-top: 125px;
  }

  .worries-photo {
    width: 65%;
  }

  /* 特徴 */

  .section-features {
    padding-top: 130px;
    padding-bottom: 150px;
  }

  .features-heading {
    margin-bottom: 85px;
  }

  .feature-block {
    margin-bottom: 125px;
  }

  .feature-photo {
    aspect-ratio: 16 / 10;
  }

  .feature-copy {
    width: 66%;
    margin-top: -55px;
    padding: 34px 34px 38px;
  }

  .feature-copy h3 {
    font-size: 1.3rem;
  }

  .feature-copy p {
    font-size: .78rem;
  }

  .feature-02 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
  }

  .feature-02 .feature-photo {
    order: 2;
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .feature-02 .feature-copy {
    order: 1;
    width: 108%;
    margin: 0 -8% 0 0;
  }

  /* 流れ */

  .wide-photo {
    width: 70%;
  }

  .flow-timeline {
    max-width: 780px;
  }

  /* 管理者 */

  .message-block {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 60px;
  }

  .message-photo {
    width: 100%;
    margin: 0;
  }

  /* 事業所 */

  .office-photo {
    width: 65%;
  }

  /* お問い合わせ */

  .section-contact {
    padding-bottom: calc(120px + var(--bar-height));
  }
}

/* =========================================================
   27. PC
========================================================= */

@media (min-width: 900px) {
  :root {
    --header-height: 74px;
    --bar-height: 80px;
  }

  .site-header {
    padding: 0 42px;
  }

  .logo img {
    height: 33px;
  }

  .logo-text {
    font-size: .95rem;
  }

  .drawer {
    width: 430px;
    padding: calc(var(--header-height) + 28px) 38px 34px;
  }

  .section {
    padding: 135px 60px 150px;
  }

  .section-title {
    font-size: 2.15rem;
  }

  /* HERO */

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 80px;
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 70px) 55px 120px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding-bottom: 80px;
  }

  .hero-photo {
    aspect-ratio: 4 / 5;
  }

  .hero-photo-sub {
    left: -60px;
    right: auto;
    bottom: -55px;
    width: 38%;
  }

  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-top: 80px;
  }

  .hero-copy h1 {
    font-size: 3.15rem;
    line-height: 1.5;
  }

  .hero-copy .lead-block {
    max-width: 32em;
    font-size: .88rem;
  }

  /* お知らせ */

  .news-notice {
    grid-column: 1 / -1;
    width: 85%;
    margin: 40px auto 0;
  }

  /* お悩み */

  .worries {
    grid-column: 1 / -1;
    max-width: 960px;
    margin-top: 110px;
  }

  .worries-intro {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 70px;
    margin-bottom: 55px;
  }

  .worries-photo {
    width: 100%;
    margin: 0;
  }

  .worries-lead {
    align-self: end;
  }

  .worries-lead .lead-block {
    max-width: 34em;
    font-size: .9rem;
  }

  .worry-bubbles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 28px;
  }

  .worry-bubbles li {
    max-width: 100%;
  }

  .worry-bubbles .bubble-r {
    justify-self: end;
  }

  .worries-note {
    margin-top: 58px;
  }

  /* 特徴 */

  .section-features {
    padding-top: 170px;
    padding-bottom: 190px;
  }

  .features-heading {
    max-width: 850px;
    margin-bottom: 110px;
  }

  .feature-block {
    margin-bottom: 170px;
  }

  .feature-01 {
    max-width: 880px;
  }

  .feature-01 .feature-copy {
    width: 62%;
    margin-top: -70px;
    margin-left: auto;
    margin-right: 0;
    padding: 42px 46px 45px;
  }

  .feature-01 .feature-photo {
    width: 88%;
    aspect-ratio: 16 / 10;
  }

  .feature-number {
    font-size: 1.6rem;
  }

  .feature-copy h3 {
    font-size: 1.45rem;
  }

  .feature-copy p {
    max-width: 36em;
    font-size: .78rem;
  }

  .feature-02 {
    max-width: 950px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .feature-02 .feature-copy {
    width: 110%;
    margin-right: -10%;
    padding: 42px 45px;
  }

  .feature-02 .feature-photo {
    aspect-ratio: 1 / 1;
  }

  .medical-message {
    padding: 35px 40px;
  }

  /* 流れ */

  .section-flow {
    padding-top: 160px;
  }

  .wide-photo {
    width: 72%;
  }

  .flow-timeline {
    max-width: 850px;
  }

  /* 管理者 */

  .message-block {
    grid-template-columns: .75fr 1.25fr;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
  }

  .message-photo {
    max-width: 340px;
  }

  /* 対応圏域 */

  .area-box {
    padding: 35px 38px;
  }

  /* 事業所 */

  .office-photo {
    width: 60%;
  }

  .info-table {
    max-width: 850px;
  }

  /* お問い合わせ */

  .contact-form,
  .phone-contact {
    max-width: 780px;
  }

  .section-contact {
    padding-bottom: calc(150px + var(--bar-height));
  }
}

/* =========================================================
   28. 大画面
========================================================= */

@media (min-width: 1200px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding-left: 70px;
    padding-right: 70px;
  }

  .hero-copy h1 {
    font-size: 3.35rem;
  }
}

/* =========================================================
   29. 小さいスマートフォン
========================================================= */

@media (max-width: 389px) {
  :root {
    --bar-height: 68px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo-text {
    font-size: .68rem;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .hero-copy h1 {
    font-size: 1.82rem;
  }

  .feature-copy {
    width: calc(100% - 14px);
    padding: 23px 19px 25px;
  }

  .feature-copy h3 {
    font-size: 1rem;
  }

  .fixed-bar {
    grid-template-columns: 1.05fr 1fr .78fr;
  }

  .bar-item {
    padding-left: 5px;
    padding-right: 5px;
  }

  .bar-icon {
    width: 15px;
    height: 15px;
    margin-right: 4px;
  }

  .bar-text small {
    font-size: .47rem;
  }

  .bar-text strong {
    font-size: .68rem;
  }

  .bar-hours .bar-text small {
    font-size: .5rem;
  }

  .bar-mail .bar-icon {
    width: 14px;
    height: 14px;
    margin-right: 3px;
  }

  .bar-mail .bar-text strong {
    font-size: .58rem;
  }
}

/* =========================================================
   30. フォーカス表示
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green-soft);
  outline-offset: 3px;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

/* =========================================================
   重要メッセージ（key-message）
========================================================= */

.key-message {
  margin: 0 0 22px;
  padding: 4px 0 16px;
  font-family: var(--font-serif);
  color: #9A684F;
  line-height: 1.9;
  letter-spacing: .05em;
}

.key-message-line {
  display: inline-block;
  font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease-slow), transform .9s var(--ease-slow);
}

/* 「好きなこと」：ひとまわり大きく */
.key-message-line:nth-child(2) {
  font-size: clamp(1.12rem, 5vw, 1.42rem);
  font-weight: 600;
}

/* 「誰かを思う気持ち。」：最も大きく・改行して余韻を残す */
.key-message-line-last {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.22rem, 5.6vw, 1.62rem);
  font-weight: 600;
  letter-spacing: .06em;
}


/* 表示タイミング（1文字ずつ時間差） */
.key-message.in-view .key-message-line {
  opacity: 1;
  transform: translateY(0);
}

.key-message.in-view .key-message-line:nth-child(1) {
  transition-delay: .05s;
}

.key-message.in-view .key-message-line:nth-child(2) {
  transition-delay: .52s;
}

.key-message.in-view .key-message-line-last {
  transition-delay: .82s;
}

.key-message.in-view .key-message-underline {
  width: 108px;
}

@media (min-width: 900px) {
  .key-message-underline {
    width: 0;
  }

  .key-message.in-view .key-message-underline {
    width: 140px;
  }
}