/* =========================================================
  いのうえ税理士事務所 ホームページ用CSS
  色や余白を変えたい場合は、まず下の :root を編集してください。
========================================================= */
:root {
  --color-bg: #f3f8ef;
  --color-bg-soft: #fbfdf8;
  --color-surface: #ffffff;
  --color-green: #9fbd8f;
  --color-green-deep: #4f765d;
  --color-blue: #cfe4ee;
  --color-pink: #f5d6de;
  --color-cream: #fff8ea;
  --color-text: #26382f;
  --color-muted: #63746b;
  --color-line: #dce9d4;
  --shadow-soft: 0 18px 48px rgba(63, 89, 67, 0.12);
  --radius: 8px;
  --container: 1120px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg-soft);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

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

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

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

/* 共通レイアウト */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, 860px);
}

.section {
  padding: 104px 0;
}

.tint-section {
  background: linear-gradient(180deg, #eef7e8 0%, #f7fbf4 100%);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading h2,
.profile-content h2,
.access-content h2,
.area-grid h2,
.contact-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.35;
}

.section-heading p,
.lead {
  color: var(--color-muted);
  font-size: 1.04rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--color-green-deep);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-green-deep);
}

/* スクロール表示アニメーション
  JavaScriptで .scroll-reveal が付き、画面に入ると .is-visible に変わります。 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* 動きを減らす設定の端末では、アニメーションを止めて読みやすさを優先します。 */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ヘッダー */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(251, 253, 248, 0.9);
  border-bottom: 1px solid rgba(220, 233, 212, 0.8);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.24s ease, transform 0.24s ease;
}

.logo:hover {
  color: var(--color-green-deep);
  transform: translateY(-1px);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--color-green-deep);
  border-radius: 50%;
  font-family: Georgia, serif;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(79, 118, 93, 0.2);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
  transition: color 0.24s ease, transform 0.24s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--color-green-deep);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover {
  color: var(--color-green-deep);
  transform: translateY(-2px);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 9px 16px;
  color: #ffffff;
  background: var(--color-green-deep);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(79, 118, 93, 0.16);
}

.site-nav .nav-contact:hover {
  color: #ffffff;
  background: #42674f;
  box-shadow: 0 12px 24px rgba(79, 118, 93, 0.22);
}

.site-nav .nav-contact::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 7px auto;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a,
  .site-nav a::after,
  .logo,
  .logo-mark {
    transition: none;
  }

  .site-nav a:hover,
  .logo:hover,
  .logo:hover .logo-mark {
    transform: none;
  }
}

/* ファーストビュー */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 82svh, 780px);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-photo,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background-image: url("./assets/hero-office-medium-long.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(246, 251, 242, 0.94) 0%, rgba(246, 251, 242, 0.82) 34%, rgba(246, 251, 242, 0.2) 68%),
    linear-gradient(0deg, rgba(243, 248, 239, 0.92) 0%, rgba(243, 248, 239, 0) 28%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  padding: 74px 0 92px;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 1.22;
}

.hero-catch {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--color-green-deep);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: #45584f;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--color-green-deep);
  box-shadow: 0 12px 24px rgba(79, 118, 93, 0.22);
}

.button-primary:hover {
  background: #41684e;
}

.button-secondary {
  color: var(--color-green-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(79, 118, 93, 0.22);
}

/* 代表メッセージ */
.profile-section {
  background:
    radial-gradient(circle at 12% 22%, rgba(207, 228, 238, 0.5), transparent 28%),
    radial-gradient(circle at 90% 70%, rgba(245, 214, 222, 0.48), transparent 24%),
    var(--color-bg-soft);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.profile-photo {
  margin: 0;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.profile-content p {
  margin: 0 0 18px;
}

.profile-more {
  margin-top: 8px;
  color: var(--color-green-deep);
  background: #ffffff;
  border: 2px solid var(--color-green-deep);
  box-shadow: 0 10px 22px rgba(79, 118, 93, 0.12);
}

.profile-more:hover {
  color: #ffffff;
  background: var(--color-green-deep);
}

.profile-list,
.access-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
}

.profile-list div,
.access-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--color-line);
}

dt {
  color: var(--color-green-deep);
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--color-muted);
}

.access-inline-note {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(0.66rem, 3vw, 0.88rem);
  line-height: 1.7;
  letter-spacing: 0;
}

.access-method {
  display: grid;
  gap: 7px;
}

.access-method-main {
  color: var(--color-text);
  font-weight: 700;
}

.access-method-note {
  display: block;
  font-size: clamp(0.84rem, 1.8vw, 0.93rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* カード */
.card-grid {
  display: grid;
  gap: 24px;
}

.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.85);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(79, 118, 93, 0.08);
}

.info-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--color-cream);
}

.card-body {
  padding: 26px;
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  color: var(--color-green-deep);
  background: #edf6e8;
  border-radius: 50%;
  font-weight: 700;
}

.feature-panel {
  padding: clamp(28px, 5vw, 48px);
  background: #f6f2eb;
  border: 1px solid rgba(220, 211, 198, 0.82);
  border-radius: var(--radius);
}

.feature-group + .feature-group {
  margin-top: clamp(34px, 6vw, 56px);
}

.feature-group-label {
  margin: 0 0 18px;
  color: var(--color-green-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.feature-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 236px;
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.feature-panel .feature-card {
  min-height: 448px;
}

.feature-panel .feature-card img {
  aspect-ratio: 16 / 8;
}

.feature-panel .feature-card .card-body {
  min-height: 268px;
  padding: 30px 28px 34px;
  justify-content: flex-start;
}

.feature-panel .feature-card h3 {
  margin: 0;
  font-size: clamp(0.96rem, 1.08vw, 1.08rem);
  line-height: 1.5;
  white-space: nowrap;
}

.feature-panel .feature-card .card-body > p:not(.card-number) {
  line-height: 1.92;
}

.service-areas-section {
  background: #f6f2eb;
}

.service-areas-grid {
  gap: 30px;
}

.service-areas-grid .feature-service-card {
  min-height: 462px;
  box-shadow: 0 16px 36px rgba(79, 118, 93, 0.09);
}

.service-areas-grid .feature-card .card-body {
  min-height: 272px;
  padding: 30px 26px;
}

.service-areas-grid .feature-card h3 {
  margin: 0;
  font-size: clamp(1.28rem, 2vw, 1.58rem);
}

.feature-service-card {
  border-top: 5px solid var(--color-green-deep);
}

.feature-service-card:nth-child(2) {
  border-top-color: #3fbda0;
}

.feature-service-card:nth-child(3) {
  border-top-color: #bc8868;
}

.feature-service-card:nth-child(2) .service-tag {
  color: #218570;
  background: #e3f6f1;
}

.feature-service-card .button {
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding-inline: 20px;
}

.button-medical {
  background: #3fbda0;
  box-shadow: 0 12px 24px rgba(63, 189, 160, 0.2);
}

.button-medical:hover {
  background: #319d85;
}

.button-real-estate {
  background: #bc8868;
  box-shadow: 0 12px 24px rgba(188, 136, 104, 0.2);
}

.button-real-estate:hover {
  background: #9f6f51;
}

.tag-real-estate {
  color: #8a6047;
  background: #f3e4d8;
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  line-height: 1.45;
}

.info-card p {
  margin: 0;
  color: var(--color-muted);
}

/* お悩み */
.problem-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1fr;
  gap: clamp(32px, 7vw, 84px);
  align-items: start;
}

.problem-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(79, 118, 93, 0.05);
}

.problem-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-pink));
  border-radius: 50%;
}

/* サービス */
.service-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  color: var(--color-green-deep);
  background: #edf6e8;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* 対応地域 */
.area-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) 1fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.area-panel {
  padding: clamp(24px, 4vw, 34px);
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(79, 118, 93, 0.08);
}

.area-panel p {
  margin: 0 0 16px;
  color: var(--color-green-deep);
  font-weight: 700;
}

.area-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-badges span {
  padding: 8px 14px;
  color: var(--color-text);
  background: #edf6e8;
  border: 1px solid rgba(159, 189, 143, 0.35);
  border-radius: 999px;
  font-weight: 700;
}

.area-map {
  width: 100%;
  margin-top: 24px;
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
  background: #ffffff;
}

/* サービス詳細ページ */
.subpage-hero {
  padding: calc(var(--header-height) + 76px) 0 76px;
  background:
    linear-gradient(135deg, rgba(207, 228, 238, 0.38), rgba(245, 214, 222, 0.32)),
    var(--color-bg);
}

.subpage-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.breadcrumb {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-green-deep);
  font-weight: 700;
}

.subpage-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  line-height: 1.22;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.profile-page .subpage-hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  word-break: keep-all;
  overflow-wrap: normal;
}

.subpage-hero p {
  color: var(--color-muted);
}

.subpage-hero-img {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.subpage-hero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.48fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 38px;
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.profile-person-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.profile-role {
  color: var(--color-muted);
  font-size: 0.58em;
  font-weight: 700;
}

.profile-person-name {
  color: var(--color-text);
}

.detail-block p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.detail-card {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(79, 118, 93, 0.08);
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: normal;
}

.detail-card p {
  margin: 0;
  color: var(--color-muted);
}

.detail-card .profile-list div {
  grid-template-columns: 92px 1fr;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 14px 16px;
  background: #fbfdf8;
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.detail-cta {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(207, 228, 238, 0.44), rgba(245, 214, 222, 0.36)),
    var(--color-bg);
  border-radius: var(--radius);
}

.detail-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.detail-cta p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.sidebar-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list a {
  display: block;
  padding: 12px 14px;
  color: var(--color-green-deep);
  background: #fbfdf8;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-weight: 700;
}

.service-medical-page .section-kicker,
.service-medical-page .breadcrumb a,
.service-medical-page .sidebar-list a {
  color: #218570;
}

.service-medical-page .subpage-hero h1 {
  white-space: nowrap;
  font-size: clamp(1.25rem, 3vw, 3.1rem);
}

.service-medical-page .section-kicker::before,
.service-medical-page .button-primary {
  background: #3fbda0;
}

.service-medical-page .button-primary:hover {
  background: #319d85;
}

.service-medical-page .detail-list li,
.service-medical-page .sidebar-list a {
  background: #f3fbf8;
  border-color: rgba(63, 189, 160, 0.28);
}

.service-real-estate-page .section-kicker,
.service-real-estate-page .breadcrumb a,
.service-real-estate-page .sidebar-list a {
  color: #8a6047;
}

.service-real-estate-page .section-kicker::before,
.service-real-estate-page .button-primary {
  background: #bc8868;
}

.service-real-estate-page .button-primary:hover {
  background: #9f6f51;
}

.service-real-estate-page .detail-list li,
.service-real-estate-page .sidebar-list a {
  background: #fff8f3;
  border-color: rgba(188, 136, 104, 0.3);
}

/* 下層ページの問い合わせ導線 */
.cta-section {
  padding-top: 0;
}

.cta-box {
  padding: clamp(28px, 5vw, 44px);
  background:
    linear-gradient(135deg, rgba(207, 228, 238, 0.44), rgba(245, 214, 222, 0.36)),
    var(--color-bg);
  border-radius: var(--radius);
}

.cta-box h2 {
  margin: 0 0 12px;
}

.cta-box p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(79, 118, 93, 0.06);
}

.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 18px 58px 18px 22px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--color-green-deep);
  background: #edf6e8;
  border-radius: 50%;
  transform: translateY(-50%);
}

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

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--color-muted);
}

/* アクセス */
.access-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) 1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 8px 13px;
  color: var(--color-green-deep);
  background: #ffffff;
  border: 1px solid rgba(79, 118, 93, 0.42);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.map-link:hover {
  color: #ffffff;
  background: var(--color-green-deep);
}

/* お問い合わせ */
.contact-section {
  background:
    linear-gradient(135deg, rgba(207, 228, 238, 0.44), rgba(245, 214, 222, 0.36)),
    var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) 1fr;
  gap: clamp(32px, 7vw, 76px);
  align-items: start;
}

.contact-note {
  margin-top: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
}

.contact-note p {
  margin: 0;
  color: var(--color-muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--color-surface);
  border: 1px solid rgba(220, 233, 212, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--color-text);
  background: #fbfdf8;
  border: 1px solid #d7e5d0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-green-deep);
  box-shadow: 0 0 0 4px rgba(159, 189, 143, 0.22);
}

.form-button {
  width: fit-content;
  min-width: 150px;
  border: 0;
  cursor: pointer;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-message {
  min-height: 1.8em;
  margin: 0;
  color: var(--color-green-deep);
  font-weight: 700;
}

.form-message.is-error {
  color: #9b4f43;
}

/* フッター */
.site-footer {
  padding: 34px 0;
  color: #ffffff;
  background: var(--color-green-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo,
.site-footer p {
  margin: 0;
}

.footer-logo {
  font-weight: 700;
}

/* 画面幅が狭い場合の調整 */
@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .nav-contact {
    margin-top: 6px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .hero-photo {
    background-position: 72% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 251, 242, 0.95) 0%, rgba(246, 251, 242, 0.86) 58%, rgba(246, 251, 242, 0.28) 100%),
      linear-gradient(0deg, rgba(243, 248, 239, 0.92) 0%, rgba(243, 248, 239, 0) 28%);
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(4.5px) rotate(42deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-4.5px) rotate(-42deg);
  }

  .three-columns,
  .profile-grid,
  .problem-grid,
  .area-grid,
  .access-grid,
  .contact-grid,
  .subpage-hero-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    max-width: 460px;
  }

  .subpage-hero {
    padding-top: calc(var(--header-height) + 58px);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 66px;
  }

  .container,
  .narrow,
  .hero-inner {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 76px 0;
  }

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

  .logo span:last-child {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-photo {
    background-position: 76% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 251, 242, 0.93) 0%, rgba(246, 251, 242, 0.78) 62%, rgba(246, 251, 242, 0.26) 100%),
      linear-gradient(0deg, rgba(243, 248, 239, 0.92) 0%, rgba(243, 248, 239, 0) 28%);
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .profile-list div,
  .detail-card .profile-list div,
  .access-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .card-body,
  .contact-form {
    padding: 22px;
  }

  .feature-panel {
    padding: 18px;
  }

  .feature-panel .feature-card {
    min-height: 430px;
  }

  .feature-panel .feature-card .card-body {
    padding: 24px 22px;
  }

  .feature-panel .feature-card h3 {
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
  }

  .service-areas-grid .feature-service-card {
    min-height: 462px;
  }

  .service-areas-grid .feature-card h3 {
    font-size: clamp(1.22rem, 6vw, 1.48rem);
  }

  .subpage-hero h1 {
    font-size: clamp(1.18rem, 5.2vw, 1.8rem);
    line-height: 1.35;
  }

  .service-medical-page .subpage-hero h1 {
    font-size: clamp(1.06rem, 4.8vw, 1.34rem);
  }

  .detail-block h2,
  .detail-cta h2 {
    font-size: clamp(1.18rem, 5vw, 1.55rem);
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .detail-main,
  .detail-block,
  .detail-cta,
  .detail-card,
  .detail-list {
    min-width: 0;
  }

  .subpage-hero-img img {
    aspect-ratio: 1 / 1;
  }

  .detail-card,
  .detail-cta {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
