[hidden] { display: none !important; }

:root {
  --color-primary: #EC8FAE;
  --color-primary-dark: #D96E92;
  --color-accent: #7FC1E8;
  --color-text: #3A332E;
  --color-text-sub: #6B6058;
  --color-bg: #ffffff;
  --color-bg-alt: #F6FBFE;
  --color-sky: #BFE3F7;
  --color-sky-light: #EAF6FD;
  --color-border: #E7EEF3;
  --rb-red: #F2A6A6;
  --rb-orange: #F5C89E;
  --rb-yellow: #F2DE9A;
  --rb-green: #B7DDAF;
  --rb-blue: #ACD3EA;
  --rb-lavender: #CFC1E6;
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-heading: "M PLUS Rounded 1c", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --max-width: 1120px;
  --radius: 16px;
  /* ワッフル編み風の織り目を疑似的に表現するレイヤー（べた塗り感を軽減） */
  --texture-weave:
    repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0, rgba(255,255,255,.6) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(94,66,40,.09) 0, rgba(94,66,40,.09) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(45deg, rgba(94,66,40,.05) 4px, transparent 5px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 4px, transparent 5px, transparent 9px);
  --texture-shadow: inset 0 2px 6px rgba(120,90,60,.12), inset 0 -1px 2px rgba(255,255,255,.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 112.5%; } /* 16px→18px: ご高齢の方・障がいのある方にも読みやすい文字サイズに */
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
h1, h2, h3 { word-break: keep-all; overflow-wrap: break-word; font-family: var(--font-heading); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

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

/* ---------- Text-wrap helpers ---------- */
.nowrap { white-space: nowrap; }
br.sp-only { display: none; }
@media (max-width: 480px) {
  br.sp-only { display: initial; }
}

/* ---------- Motif background (rainbow / sky / heart accents for otherwise-plain sections) ---------- */
.motif-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-sky-light) 0%, #ffffff 55%);
}
.motif-bg::before,
.motif-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.motif-bg::before {
  top: -110px; right: -90px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(236,143,174,.20) 0%, rgba(236,143,174,0) 70%);
}
.motif-bg::after {
  bottom: -130px; left: -110px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(172,211,234,.24) 0%, rgba(172,211,234,0) 70%);
}
.motif-bg > .inner { position: relative; z-index: 1; }
.motif-watermark {
  position: absolute;
  width: 220px;
  max-width: 45vw;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.motif-watermark--tr { top: 20px; right: -40px; animation: motif-float-tr 7s ease-in-out infinite; }
.motif-watermark--bl { bottom: -10px; left: -50px; animation: motif-float-bl 8s ease-in-out 1.5s infinite; }
@keyframes motif-float-tr {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-14px); }
}
@keyframes motif-float-bl {
  0%, 100% { transform: rotate(-10deg) scaleX(-1) translateY(0); }
  50% { transform: rotate(-10deg) scaleX(-1) translateY(-14px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(236,143,174,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(236,143,174,.45); }
.btn-outline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-line {
  background: #06C755;
  color: #fff;
  box-shadow: 0 8px 20px rgba(6,199,85,.35);
}
.btn-line:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(6,199,85,.45); }
.btn-lg { padding: 18px 44px; font-size: 1.1rem; }
.btn:active { transform: translateY(1px) scale(.99); }

/* カードのホバー浮き上がり（マウス操作の端末のみ） */
@media (hover: hover) {
  .service-card, .reason-card, .staff-card, .voice-card, .flow-card, .faq-item, .ig-card {
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .service-card:hover, .reason-card:hover, .flow-card:hover,
  .staff-card:hover, .voice-card:hover, .faq-item:hover, .ig-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--texture-shadow), 0 14px 28px rgba(90,70,55,.14);
  }
}

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section heading ---------- */
.section-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .88rem;
  margin: 0 0 8px;
  text-align: center;
}
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 20px;
}
/* 見出し下の虹ライン（全セクション共通の装飾） */
.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-blue), var(--rb-lavender));
}
.section-lead {
  text-align: center;
  color: var(--color-text-sub);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  max-width: 1360px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.logo-mark { height: 36px; width: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
.logo-text-sub { font-size: .72rem; font-weight: 600; color: var(--color-text-sub); letter-spacing: .02em; white-space: nowrap; }
.logo-text-main { font-size: 1.05rem; font-weight: 800; color: var(--color-text); white-space: nowrap; font-family: var(--font-heading); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: .86rem;
}
.site-nav a { padding: 8px 0; white-space: nowrap; }
.site-nav .nav-cta {
  background: #06C755;
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-sky-light);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg-21x9.png');
  background-size: cover;
  background-position: center;
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  width: 100%;
}
.hero-panel {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  backdrop-filter: blur(2px);
  border-radius: 24px;
  padding: 44px 48px;
  max-width: 620px;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(58,51,46,.12);
}
.hero-brand-icon { width: 52px; height: auto; flex-shrink: 0; animation: heart-pulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
.hero-brand-sub { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--color-text-sub); letter-spacing: .02em; }
.hero-brand-main { margin: 0; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--color-text); line-height: 1.3; font-family: var(--font-heading); }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.5; margin: 0 0 18px; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.1rem); color: var(--color-text-sub); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section bg image helper ---------- */
.section-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;
}
.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
}
.section-bg .inner { position: relative; z-index: 1; }

/* ---------- Philosophy ---------- */
#philosophy { background-image: url('../assets/images/philosophy-bg.png'); }
.philosophy-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: 5px solid transparent;
  border-radius: 24px;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-blue), var(--rb-lavender));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 30px rgba(60,50,45,.08);
  padding: 48px 40px;
}
.philosophy-quote p {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 2;
  margin: 0;
}

/* ---------- Representative Message ---------- */
.rep-message {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
  border: 5px solid transparent;
  border-radius: 24px;
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-blue), var(--rb-lavender));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 10px 30px rgba(60,50,45,.08);
  padding: 40px;
}
.rep-message-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rep-message-body p {
  margin: 0 0 16px;
  line-height: 2;
  color: var(--color-text);
}
.rep-message-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  margin: 0;
}
.rep-message-name span {
  font-weight: 400;
  font-size: .85rem;
  color: var(--color-text-sub);
}

/* ---------- Services ---------- */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border-top: 5px solid var(--rb-blue);
}
.service-card:nth-child(3n+1) { border-top-color: var(--rb-red); }
.service-card:nth-child(3n+2) { border-top-color: var(--rb-green); }
.service-card:nth-child(3n+3) { border-top-color: var(--rb-blue); }
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: .1s; }
.services-grid .service-card:nth-child(3) { transition-delay: .2s; }
.service-card img { width: 88px; height: 88px; margin: 0 auto 18px; object-fit: contain; }
.service-card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--color-text-sub); font-size: .92rem; text-align: left; }

.services-sub {
  margin-top: 40px;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.services-sub-lead { margin: 0 0 20px; font-weight: 700; color: var(--color-text-sub); font-size: .92rem; }
.services-sub-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.services-sub-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; }
.services-sub-item img { width: 56px; height: 56px; object-fit: contain; }
.services-sub-item span { font-size: .88rem; color: var(--color-text-sub); line-height: 1.4; }

.services-group-label {
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  display: table;
  margin: 0 auto 28px;
  padding: 8px 24px;
  border-radius: 999px;
}
.services-group-label-2nd { margin-top: 56px; }

/* ---------- Reasons ---------- */
#reasons { background-image: url('../assets/images/reasons-bg.png'); }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.reason-card {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
}
.reason-card > div { min-width: 0; }
.reasons-grid .reason-card:nth-child(1) { transition-delay: 0s; }
.reasons-grid .reason-card:nth-child(2) { transition-delay: .1s; }
.reasons-grid .reason-card:nth-child(3) { transition-delay: .2s; }
.reasons-grid .reason-card:nth-child(4) { transition-delay: .3s; }
.reason-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.reason-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.reason-card p { margin: 0; color: var(--color-text-sub); font-size: .92rem; }

/* ---------- Staff / Voices（アコーディオン） ---------- */
.staff-grid, .voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.staff-card, .voice-card {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.staff-card summary, .voice-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  -webkit-tap-highlight-color: transparent;
}
.staff-card summary::-webkit-details-marker,
.voice-card summary::-webkit-details-marker { display: none; }
.staff-card .avatar, .voice-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.staff-meta, .voice-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.staff-meta strong, .voice-meta strong { font-size: 1rem; }
.staff-tag, .voice-tag { font-size: .85rem; color: var(--color-text-sub); }
.accordion-chevron {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-right: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform .25s ease;
  margin-right: 4px;
}
details[open] .accordion-chevron { transform: rotate(-135deg); }
.staff-card p, .voice-card p {
  margin: 0;
  padding: 0 22px 24px;
  color: var(--color-text-sub);
  font-size: .95rem;
}
.staff-grid .staff-card:nth-child(1), .voices-grid .voice-card:nth-child(1) { transition-delay: 0s; }
.staff-grid .staff-card:nth-child(2), .voices-grid .voice-card:nth-child(2) { transition-delay: .1s; }
.staff-grid .staff-card:nth-child(3), .voices-grid .voice-card:nth-child(3) { transition-delay: .2s; }
.staff-photo {
  display: block;
  width: calc(100% - 44px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  margin: 0 22px 16px;
}

/* ---------- Showcase (Instagram) ---------- */
.showcase { padding: 100px 0; text-align: center; }
.showcase-card {
  max-width: 480px;
  margin: 0 auto;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--texture-shadow), 0 10px 30px rgba(60,50,45,.08);
}
.showcase-card .ig-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.showcase-card h3 { margin: 0 0 8px; }
.showcase-card p { margin: 0 0 24px; color: var(--color-text-sub); }

/* ---------- Instagram自動フィード（カードデザイン2） ---------- */
.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 28px;
  text-align: left;
}
.ig-card {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.ig-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.ig-card-meta { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.ig-card-meta img { width: 24px; height: 24px; object-fit: contain; flex: none; aspect-ratio: auto; border-radius: 0; }
.ig-card-meta-text { min-width: 0; }
.ig-card-account { font-size: .85rem; font-weight: 700; color: var(--color-text); }
.ig-card-date { font-size: .78rem; color: var(--color-text-sub); }
.ig-card-caption {
  margin: 6px 14px 16px;
  font-size: .85rem;
  color: var(--color-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ig-pagination button {
  min-width: 34px; height: 34px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-sub);
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.ig-pagination button.arrow { border-color: transparent; background: transparent; }
.ig-pagination button.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---------- Recruit ---------- */
#recruit { background-image: url('../assets/images/recruit-bg.png'); }
.recruit-box {
  max-width: 620px;
  margin: 0 auto;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
}
.recruit-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 18px;
}
.recruit-conditions {
  text-align: left;
  max-width: 420px;
  margin: 24px auto 32px;
  display: grid;
  gap: 10px;
}
.recruit-conditions li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: .95rem;
}
.recruit-conditions li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  margin-top: 6px;
}
.recruit-detail-table { margin-top: 32px; }

/* ---------- Area ---------- */
.area { padding: 100px 0; background-image: url('../assets/images/area-decoration.png'); background-size: cover; background-position: bottom; }
.area-map-wrap {
  max-width: 520px;
  margin: 0 auto;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: 24px;
  padding: 32px;
}
.area-map-wrap svg { width: 100%; height: auto; max-width: 320px; margin: 0 auto; display: block; }
.map-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 20px 0 0;
  font-size: .9rem;
  color: var(--color-text-sub);
}
.map-legend li { display: flex; align-items: center; gap: 6px; }
.map-legend .dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }
.map-credit { text-align: center; font-size: .78rem; color: var(--color-text-sub); margin: 12px 0 0; opacity: .8; }
.map-credit a { text-decoration: underline; }
.area-detail {
  max-width: 640px;
  margin: 24px auto 0;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.area-detail h3 { margin: 0 0 14px; font-size: 1rem; text-align: center; }
.area-detail p { margin: 0 0 10px; font-size: .95rem; color: var(--color-text-sub); }
.area-detail p:last-child { margin-bottom: 0; }
.area-note { text-align: center; color: var(--color-text-sub); font-size: .95rem; margin-top: 16px; }

/* ---------- About ---------- */
#about { background-image: url('../assets/images/about-bg.png'); }
.about-table {
  max-width: 640px;
  margin: 0 auto;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-table dl { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.about-table dt, .about-table dd {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}
.about-table dt { font-weight: 700; color: var(--color-text-sub); font-size: .9rem; }
.about-table dl > *:nth-last-child(-n+2) { border-bottom: none; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; text-align: center; }
.contact-card {
  max-width: 420px;
  margin: 0 auto;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 40px 32px;
}
.contact-line-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: #06C755;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em;
}
.contact-card p { color: var(--color-text-sub); margin: 0 0 24px; }
.contact-card .btn-line { width: 100%; white-space: normal; }
.contact-tel { margin-top: 32px; font-size: .95rem; color: var(--color-text-sub); }
.contact-tel a { font-weight: 800; font-size: 1.3rem; color: var(--color-text); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; text-align: center; }
.site-footer .logo { justify-content: center; margin-bottom: 16px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; font-weight: 600; font-size: .9rem; }
.site-footer .copyright { color: var(--color-text-sub); font-size: .85rem; margin: 0; }

/* =========================================================
   Responsive — Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .reasons-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Responsive — Mobile
   ========================================================= */
/* ナビの項目数が多いため、狭いデスクトップ幅でも横並びが窮屈になる場合は
   768pxより広い段階でハンバーガーメニューに切り替える（項目追加時の必須チェック） */
@media (max-width: 1340px) {
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .site-nav.is-open { max-height: 500px; overflow-y: auto; }
  .site-nav a { width: 100%; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
  .site-nav .nav-cta { width: calc(100% - 40px); margin: 16px 20px; text-align: center; border-bottom: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .inner { padding: 0 20px; }

  .hero { min-height: 88vh; }
  .hero-panel { padding: 32px 26px; border-radius: 20px; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .section-bg, .services, .showcase, .contact { padding: 64px 0; }
  .section-title { margin-bottom: 16px; }
  .section-lead { margin-bottom: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .staff-grid, .voices-grid { grid-template-columns: 1fr; }
  /* 狭い幅では文字がボタンからはみ出すため折り返しを許可する */
  .hero-cta .btn { white-space: normal; }
  .philosophy-quote, .recruit-box { padding: 32px 24px; }

  .about-table dl { grid-template-columns: 1fr; }
  .about-table dt { padding-bottom: 4px; border-bottom: none; }
  .about-table dd { padding-top: 4px; }

  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
}

@media (max-width: 420px) {
  .hero-panel { padding: 24px 20px; }
  .hero h1 { font-size: 1.4rem; line-height: 1.6; }
  .recruit-conditions { max-width: 100%; }
  .hero-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-brand-icon { width: 40px; }
}

/* ---------- ヒーローのスクロール誘導 ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 4px 14px rgba(60,50,45,.14);
  animation: scroll-cue-bob 2.4s ease-in-out infinite;
}
.scroll-cue-arrow {
  width: 12px; height: 12px;
  border-right: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: rotate(45deg) translate(-2px, -2px);
}
@keyframes scroll-cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ---------- Flow（ご利用開始までの流れ） ---------- */
.flow { padding: 100px 0; position: relative; overflow: hidden; }
.flow-rainbow {
  position: absolute;
  top: 40px; left: 50%;
  transform: translateX(-50%);
  width: min(760px, 108%);
  height: auto;
  opacity: .3;
  pointer-events: none;
  z-index: 0;
}
.flow-arc {
  stroke-dasharray: var(--arc-len, 900);
  stroke-dashoffset: var(--arc-len, 900);
}
.flow.is-visible .flow-arc {
  animation: flow-arc-draw 1.6s ease-out forwards;
}
.flow.is-visible .flow-arc:nth-child(2) { animation-delay: .08s; }
.flow.is-visible .flow-arc:nth-child(3) { animation-delay: .16s; }
.flow.is-visible .flow-arc:nth-child(4) { animation-delay: .24s; }
.flow.is-visible .flow-arc:nth-child(5) { animation-delay: .32s; }
.flow.is-visible .flow-arc:nth-child(6) { animation-delay: .40s; }
@keyframes flow-arc-draw { to { stroke-dashoffset: 0; } }
.flow > .inner { position: relative; z-index: 1; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.flow-card {
  position: relative;
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  padding: 30px 22px 26px;
  text-align: center;
}
/* ステップ間をつなぐ矢印 */
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -14px;
  width: 9px; height: 9px;
  border-right: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: translateY(-50%) rotate(-45deg);
  opacity: .55;
}
.flow-num {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  box-shadow: 0 5px 12px rgba(90,70,55,.16);
}
.flow-num-1 { background: var(--color-primary); }
.flow-num-2 { background: #EFB27C; }
.flow-num-3 { background: #8FC98A; }
.flow-num-4 { background: #7FB4DB; }
.flow-card h3 { margin: 0 0 10px; font-size: 1.02rem; }
.flow-card p { margin: 0; color: var(--color-text-sub); font-size: .92rem; text-align: left; }
.flow-steps .flow-card:nth-child(1) { transition-delay: 0s; }
.flow-steps .flow-card:nth-child(2) { transition-delay: .12s; }
.flow-steps .flow-card:nth-child(3) { transition-delay: .24s; }
.flow-steps .flow-card:nth-child(4) { transition-delay: .36s; }
.flow-note {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: .92rem;
  color: var(--color-text-sub);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 14px 24px;
}

/* ---------- FAQ ---------- */
.section-bg-plain {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--color-sky-light), #fffdfa);
}
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background-image: var(--texture-weave), url('../assets/images/card-texture-beige.jpg');
  background-size: auto, cover;
  background-position: center;
  box-shadow: var(--texture-shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-heading);
}
.faq-question { flex: 1; min-width: 0; font-weight: 700; font-size: .98rem; }
.faq-item p {
  margin: 0;
  padding: 0 22px 22px 68px;
  color: var(--color-text-sub);
  font-size: .95rem;
}

/* ---------- スマホ追従CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  white-space: nowrap;
}
.sticky-cta-icon { display: flex; flex-shrink: 0; }
.sticky-cta-tel { background: var(--color-primary); box-shadow: 0 4px 12px rgba(236,143,174,.35); }
.sticky-cta-line { background: #06C755; box-shadow: 0 4px 12px rgba(6,199,85,.35); }
.sticky-cta-btn:active { transform: translateY(1px) scale(.99); }

/* 上記の新セクション群はレスポンシブ指定より後ろにあるため、
   スマホ用の上書きはここにまとめて置く(順序が逆だと効かない) */
@media (max-width: 768px) {
  .flow, .section-bg-plain { padding: 64px 0; }
  .flow-steps { grid-template-columns: 1fr; gap: 26px; }
  /* SPではステップ間の矢印を下向きに */
  .flow-card:not(:last-child)::after {
    top: auto; right: auto;
    bottom: -19px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }
  .flow-card p { text-align: center; }
  .flow-note { border-radius: var(--radius); }
  .faq-item summary { padding: 18px 16px; gap: 12px; }
  .faq-item p { padding: 0 16px 20px 16px; }

  /* 追従CTA(スマホのみ表示)。フッターに被らないよう本文下に余白を確保 */
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }

  .rep-message {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .rep-message-body p { text-align: left; }
}

/* ---------- Loader（ページ読み込み演出） ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: linear-gradient(160deg, var(--color-sky-light), #fffdfa);
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-logo { position: relative; width: min(160px, 40vw); aspect-ratio: 469 / 233; }
.loader-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-heart {
  opacity: 0;
  transform: translateY(-90px) scale(.9);
  transform-origin: center;
  animation: logo-heart-drop .9s cubic-bezier(.32,.1,.4,1) forwards;
}
.loader-rainbow {
  opacity: 0;
  animation: logo-rainbow-in .5s ease-out .8s forwards;
}
@keyframes logo-heart-drop {
  0%   { opacity: 0; transform: translateY(-90px) scale(.9); }
  10%  { opacity: 1; }
  45%  { transform: translateY(0) scale(1.06); }
  60%  { transform: translateY(-12px) scale(.98); }
  75%  { transform: translateY(0) scale(1.03); }
  87%  { transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes logo-rainbow-in {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.loader-brand { margin: 0; font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 800; color: var(--color-text); font-family: var(--font-heading); }
.loader-letters .letter { display: inline-block; opacity: 0; transform: translateX(-6px); animation: logo-letter-in .4s ease-out forwards; }
.loader-letters .letter:nth-child(1) { animation-delay: 1.35s; }
.loader-letters .letter:nth-child(2) { animation-delay: 1.42s; }
.loader-letters .letter:nth-child(3) { animation-delay: 1.49s; }
.loader-letters .letter:nth-child(4) { animation-delay: 1.56s; }
.loader-letters .letter:nth-child(5) { animation-delay: 1.63s; }
.loader-letters .letter:nth-child(6) { animation-delay: 1.70s; }
@keyframes logo-letter-in {
  to { opacity: 1; transform: translateX(0); }
}
.loader-bar { width: min(200px, 55vw); height: 3px; border-radius: 3px; background: rgba(58,51,46,.1); overflow: hidden; }
.loader-bar i {
  display: block;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--rb-red), var(--rb-orange), var(--rb-yellow), var(--rb-green), var(--rb-blue), var(--rb-lavender));
  transform: translateX(-100%);
  animation: loader-bar-sweep 1.3s .3s ease-out forwards;
}
@keyframes loader-bar-sweep { to { transform: translateX(0); } }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .fade-in, .motif-watermark, .hero-brand-icon { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .motif-watermark { opacity: .07 !important; }
  .loader-heart, .loader-rainbow, .loader-letters .letter, .loader-bar i {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .scroll-cue { animation: none !important; }
  .scroll-cue { transform: translateX(-50%) !important; }
  .flow-arc { stroke-dashoffset: 0 !important; animation: none !important; }
  .sticky-cta { transition: none !important; }
  .service-card:hover, .reason-card:hover, .flow-card:hover,
  .staff-card:hover, .voice-card:hover, .faq-item:hover, .ig-card:hover { transform: none !important; }
}

/* Instagramフィードグリッドのスマホ表示（末尾に追記: CSS記述順の罠(feedback_css_source_order_media_query)を踏まえ、
   768pxの既存ブロックに混ぜず新しいメディアクエリとして独立させる） */
@media (max-width: 640px) {
  .ig-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ig-card-meta { padding: 10px 10px 2px; }
  .ig-card-caption { margin: 6px 10px 12px; font-size: .8rem; }
}
