/*
Theme Name: Aiwa Cocoon Child
Theme URI: https://kyotokaigo-aiwa.com/
Description: Cocoon 子テーマ（訪問介護 あいわ）
Author: 京都訪問介護事業所 あいわ
Author URI: https://kyotokaigo-aiwa.com/
Template: cocoon-master
Version: 1.0.0
Text Domain: cocoon-child
*/

/* =========================
   00. Design Tokens
   ========================= */
:root {
  /* Brand */
  --ai-brand: #ff7a00;
  /* メイン（オレンジ） */
  --ai-brand-press: #e96d00;
  --ai-accent: #ffd5b2;
  /* Base */
  --ai-bg: #ffffee;
  --ai-surface: #fafafa;
  --ai-text: #1f2937;
  --ai-muted: #6b7280;
  --ai-line: #e5e7eb;
  --ai-focus: #2563eb;

  --aiwa-site-bg: #ffffee;
  --aiwa-ink: #2f2a1f;
  --aiwa-muted: #6b665b;
  --aiwa-btn-surface: #fff;
  /* 通常ボタン面 */
  --aiwa-btn-border: #ffd7b0;
  /* 通常ボタン枠 */
  --aiwa-btn-hover: #fff4e5;
  /* ホバー面 */
  --aiwa-active-surface: #ffe8cc;
  /* アクティブ面（やさしめオレンジ） */
  --aiwa-active-border: #ffb96b;
  /* アクティブ枠 */
  --aiwa-active-text: #5a3a00;
  /* アクティブ文字 */

  /* Layout */
  --ai-radius: 12px;
  --ai-radius-pill: 999px;
  --ai-shadow: 0 1px 0 var(--ai-line);
  --ai-elev: 0 8px 24px rgba(0, 0, 0, .08);
  /* Spacing */

  --ai-gutter: 16px;
  --ai-gap: 12px;
  /* Typography */

  --ai-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --ai-leading: 1.75;
  --ai-fs-14: 14px;
  --ai-fs-16: 16px;
  --ai-fs-18: 18px;
  --ai-fs-20: 20px;
  --ai-fs-24: 24px;
  --ai-fs-32: 32px;
}

/* =========================
   01. Reset (最小限)
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ai-bg);
  color: var(--ai-text);
  font-family: var(--ai-font);
  line-height: var(--ai-leading);
  font-size: var(--ai-fs-16);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

a:where(:focus-visible) {
  outline: 2px solid var(--ai-focus);
  outline-offset: 2px;
}

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

/* =========================
   02. Utils & Helpers
   ========================= */

.container {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding-inline: var(--ai-gutter);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 10000;
  border-radius: 8px;
}

/* =========================
   03. Typography
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.35;
  margin: 1.2em 0 .6em;
}

h1 {
  font-size: var(--ai-fs-32);
}

h2 {
  font-size: var(--ai-fs-24);
}

h3 {
  font-size: var(--ai-fs-20);
}

h4 {
  font-size: var(--ai-fs-18);
}

p {
  margin: 0 0 1em;
}

a:hover {
  color: var(--ai-brand);
}

strong,
b {
  font-weight: 700;
}

/* =========================
   04. Buttons / Links / Badges
   ========================= */

.btn,
.wp-block-button__link,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
  border-radius: var(--ai-radius-pill);
  text-decoration: none;
  cursor: pointer;
  background: var(--ai-brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}

.btn:hover,
.wp-block-button__link:hover,
a.button:hover {
  filter: brightness(.98);
}

.btn:active,
.wp-block-button__link:active,
a.button:active {
  background: var(--ai-brand-press);
  transform: translateY(1px);
}

/* 薄色ボタン */

.btn--outline {
  background: transparent;
  color: var(--ai-brand);
  border: 1px solid var(--ai-brand);
}

.btn--outline:hover {
  background: color-mix(in srgb, var(--ai-brand) 8%, #fff);
}

/* =========================
   05. Header / Global Nav / Drawer
   — header.php のDOMを前提に最小干渉で整形
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ai-bg);
  box-shadow: var(--ai-shadow);
}

.site-header .header-inner {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding: 10px var(--ai-gutter) 0;
}

/* Top row */

.header-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--ai-gap);
  padding-bottom: 10px;
}

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

.brand .custom-logo {
  max-height: 60px;
  height: auto;
  width: auto;
}

.site-name {
  font-size: var(--ai-fs-14);
  color: var(--ai-muted);
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ai-text);
  text-decoration: none;
  font-weight: 700;
}

.tel:hover {
  text-decoration: underline;
}

/* ドキュメント内参照表現（読みやすさ目的） */

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--ai-radius-pill);
  background: var(--ai-brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}

.btn-contact:hover {
  filter: brightness(.98);
}

.btn-contact:active {
  background: var(--ai-brand-press);
  transform: translateY(1px);
}

/* Global Nav (PC) */

.site-nav {
  border-top: 1px solid var(--ai-line);
}

.site-nav .menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 10px 0;
  overflow-x: auto;
}

.site-nav .menu>li {
  position: relative;
}

.site-nav .menu a {
  display: block;
  padding: 8px 2px;
  color: var(--ai-text);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav .menu a:hover {
  color: var(--ai-brand);
}

/* Dropdown */

.site-nav .menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: var(--ai-brand);
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  padding: 8px;
  display: none;
  box-shadow: var(--ai-elev);
}

.site-nav .menu li:hover>.sub-menu {
  display: block;
}

.site-nav .menu .sub-menu li a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav .menu .sub-menu li a:hover {
  background: #f8fafc;
}

/* Drawer (SP) */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 86%;
  max-width: 360px;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
  z-index: 1200;
}

#nav-toggle:checked~.drawer {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 14px 20px;
}

.drawer-close {
  cursor: pointer;
  font-size: 18px;
  align-self: flex-end;
  margin-bottom: 8px;
}

.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.drawer-menu li a {
  display: block;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ai-text);
  font-weight: 700;
}

.drawer-menu li a:hover {
  background: #f8fafc;
}

.drawer-cta {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ai-line);
  margin-top: 8px;
}

.drawer .tel.big {
  font-size: 18px;
}

.drawer .btn-contact.big {
  height: 48px;
  min-width: auto;
}

/* =========================
   06. Main / Footer
   ========================= */

.site-main {
  display: block;
}

.site-footer {
  background: var(--ai-surface);
  border-top: 1px solid var(--ai-line);
  margin-top: 32px;
}

.site-footer .footer-inner {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding: 24px var(--ai-gutter);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* =========================
   07. Forms (共通)
   ========================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--ai-brand) 40%, #fff);
}

label {
  display: inline-block;
  font-weight: 700;
  margin: .5em 0 .25em;
}

.wp-block-snow-monkey-forms,
.smf {
  --smf-accent: var(--ai-brand);
}

/* 参考：Snow Monkey Forms があれば */

/* =========================
   08. WP/Gutenberg 調整
   ========================= */

.alignwide {
  max-width: calc(var(--ai-wrap) + 2*var(--ai-gutter));
  margin-inline: auto;
}

.alignfull {
  max-width: none;
}

.wp-block-image img {
  border-radius: 12px;
}

.wp-caption {
  text-align: center;
  color: var(--ai-muted);
  font-size: var(--ai-fs-14);
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--ai-line);
  padding: .6em .8em;
}

thead th {
  background: var(--ai-surface);
}

/* Cocoon 既存余白の影響を軽減（必要に応じて微調整） */

.article {
  padding-top: 0;
}

/* =========================
   09. Responsive
   ========================= */

@media (max-width: 1200px) {

  .site-header .header-inner,
  .site-footer .footer-inner {
    padding-inline: var(--ai-gutter);
  }

}

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .tel {
    display: none;
  }

  /* SPではドロワー側にまとめる */

}

@media (max-width: 640px) {
  .site-header .header-inner {
    padding: 8px 12px 0;
  }

  .header-top {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .site-name {
    display: none;
  }

  .btn-contact {
    min-width: 120px;
    height: 38px;
  }

}

/* =========================
   10. Print
   ========================= */

@media print {

  .site-header,
  .site-nav,
  .drawer,
  .btn,
  .btn-contact {
    display: none !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 12px;
  }

}

/* ===== Header compact tuning ===== */

:root {
  --hdr-wrap: 1200px;
  /* ヘッダーの最大幅 */

  --hdr-pad-x: 16px;
  /* 左右パディング */

  --hdr-pad-y: 6px;
  /* 上下パディング（デスクトップ） */

  --hdr-gap: 10px;
  /* ロゴと要素間の隙間 */

  --logo-max: 48px;
  /* ロゴの最大高さ（PC） */

  --btn-h: 36px;
  /* お問い合わせボタンの高さ（PC） */

  --btn-minw: 120px;
  /* お問い合わせボタンの最小幅 */

  --nav-pad-y: 6px;
  /* グローバルナビ上下パディング */

  --nav-gap: 16px;
  /* ナビ項目の間隔 */

  --fs-menu: 15px;
  /* メニューの文字サイズ */

}

.site-header .header-inner {
  max-width: var(--hdr-wrap);
  padding: var(--hdr-pad-y) var(--hdr-pad-x) 0;
}

.header-top {
  grid-template-columns: 1fr auto;
  gap: var(--hdr-gap);
  padding-bottom: calc(var(--hdr-pad-y) + 2px);
}

.brand-link {
  gap: var(--hdr-gap);
}

.brand .custom-logo {
  max-height: var(--logo-max);
}

.brand img {
  max-height: var(--logo-max);
  height: auto;
  width: auto;
}

.site-name {
  font-size: 13px;
}

.actions {
  gap: 10px;
}

.btn-contact {
  min-width: var(--btn-minw);
  height: var(--btn-h);
  padding: 0 12px;
  font-weight: 700;
}

.tel {
  font-weight: 600;
  font-size: 14px;
}

/* ナビの密度を下げる */

.site-nav {
  border-top: 1px solid var(--ai-line);
}

.site-nav .menu {
  gap: var(--nav-gap);
  padding: var(--nav-pad-y) 0;
}

.site-nav .menu a {
  padding: 6px 0;
  font-size: var(--fs-menu);
}

/* スマホ：さらに詰める */

@media (max-width: 1024px) {
  :root {
    --hdr-pad-y: 6px;
    --logo-max: 42px;
    /* ロゴ少し小さめ */

    --btn-h: 34px;
    --btn-minw: 112px;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .tel {
    display: none;
  }

}

@media (max-width: 640px) {
  :root {
    --hdr-pad-x: 12px;
    --hdr-gap: 8px;
    --logo-max: 38px;
    --btn-h: 34px;
    --btn-minw: 108px;
    --fs-menu: 14px;
  }

  .site-header .header-inner {
    padding: 6px var(--hdr-pad-x) 0;
  }

  .site-name {
    display: none;
  }

  /* モバイルはサイト名を隠して高さ圧縮 */

  .btn-contact {
    padding: 0 10px;
  }

}

:root {}

.site-header .header-inner {
  max-width: var(--ai-wrap);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--ai-surface);
  border-top: 1px solid var(--ai-line);
  margin-top: 40px;
  font-size: 14px;
  color: var(--ai-muted);
}

.site-footer .footer-inner {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding: 24px var(--ai-gutter);
  text-align: center;
}

.footer-nav {
  margin-bottom: 16px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-menu a {
  text-decoration: none;
  color: var(--ai-text);
  font-weight: 600;
}

.footer-menu a:hover {
  color: var(--ai-brand);
}

.site-info {
  font-size: 13px;
  color: var(--ai-muted);
}

/* ===== Front Page ===== */

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
  padding-block: 20px;
}

.hero-title {
  font-size: clamp(24px, 1.6vw, 24px);
  margin: 0 0 .25em;
}

.hero-lead {
  font-size: clamp(15px, 1vw, 15px);
  color: var(--ai-muted);
  margin: 0 0 1em;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.features {
  padding-block: 28px;
}

.features h2 {
  margin-bottom: .6em;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  background: var(--ai-surface);
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  padding: 16px;
}

.services {
  padding-block: 28px;
}

.services h2 {
  margin-bottom: .6em;
}

.svc-head {
  margin: 1.2em 0 .6em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
  list-style: none;
}

.card {
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card h4 {
  margin: .8em .9em .2em;
}

.card p {
  margin: 0 .9em 1em;
  color: var(--ai-muted);
  font-size: .9rem;
}

.card-link {
  margin: .2em .9em 1em;
  text-decoration: none;
  color: var(--ai-brand);
  font-weight: 700;
}

.flow {
  padding-block: 28px;
}

.flow-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-steps li {
  background: var(--ai-surface);
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  padding: 16px;
}

.flow-steps li strong {
  display: block;
  margin-bottom: .4em;
}

.voices {
  padding-block: 28px;
}

.voice-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.voice-item {
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.voice-title {
  display: block;
  font-weight: 700;
  margin-bottom: .3em;
}

.voice-excerpt {
  color: var(--ai-muted);
}

.access {
  padding-block: 28px;
}

.access-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.map-dummy {
  height: 260px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f7f7f7 10px, #f7f7f7 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 700;
  letter-spacing: .2em;
}

/* ===== Access: Google Map embed ===== */
.map-embed {
  position: relative;
  aspect-ratio: 16/9;
  /* レスポンシブで歪まない */
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f2;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.addr p {
  margin: .2em 0 .4em;
}

.addr .btn {
  margin-top: .6em;
}

/* Responsive */

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .voice-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 420px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

}

/* ===== Front Page layout (hero / news / services / cta) ===== */

/* 共通余白・見出し */

.container {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding-inline: var(--ai-gutter);
}

section.container {
  padding-block: clamp(12px, 2vw, 24px);
}

section.container>h2 {
  margin: 0 0 .7em;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .02em;
}

/* ---------- HERO ---------- */

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.hero-visual .hero-dummy {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background-image: url("/wp-content/themes/cocoon-child-master/assets/top.png");
  background-size: 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 700;
  letter-spacing: .2em;
}

/* ---------- NEWS ---------- */

.news {
  background: var(--ai-surface);
  border-block: 1px solid var(--ai-line);
}

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

.news .news-link {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ai-text);
  border-radius: 10px;
}

.news .news-link:hover {
  background: #fff;
  box-shadow: 0 1px 0 var(--ai-line);
}

.news time {
  font-variant-numeric: tabular-nums;
  color: var(--ai-muted);
}

.news .news-title {
  font-weight: 700;
  line-height: 1.5;
}

.badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ai-brand);
  border-radius: 4px;
}

/* ---------- SERVICES ---------- */

.services h2 {
  margin-bottom: .6em;
}

.svc-head {
  margin: 1.2em 0 .6em;
  font-size: clamp(18px, 1.8vw, 20px);
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 16px);
}

.card {
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.card img,
.card .ph {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(180deg, #f6f6f6, #efefef);
  background-size: 100%;
  background-repeat: no-repeat;
}

.card img,
.card .d0 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/home-care/hero.jpg");
}

.card img,
.card .d1 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/intensive-home-care/hero.jpg");
}

/*同行援護*/
.card img,
.card .d2 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/accompanied-support/hero.jpg");
}

.card img,
.card .d3 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/mobility-support/hero.jpg");
}

.card img,
.card .d4 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/visiting-care/hero.jpg");
}

/*介護保険*/
.card img,
.card .k0 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/visiting-care/hero.jpg");
}

.card img,
.card .k1 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/personal-care-help/hero.jpg");
}

.card img,
.card .k2 {
  background-image: url("/wp-content/themes/cocoon-child-master/assets/life-support-help/hero.jpg");
}


.card h4 {
  background: #ffd;
  display: block;
  width: 100%;
  margin: 1.2rem auto .6rem auto;
  padding: 8px 0 8px 16px;
}

.card p {
  margin: 0 .9em .2em;
  line-height: 1.2rem;

  color: var(--ai-muted);
}

.card-link {
  margin: .2em .9em 1em;
  text-decoration: none;
  font-weight: 700;
  color: var(--ai-brand);
}

/* cta */
/* ベースボックスを“面：薄クリーム、枠：淡オレンジ”に */
.c-cta.c-cta--calm {
  margin: clamp(24px, 6vw, 48px) auto;
  padding: 0 clamp(12px, 4vw, 20px);
}

.c-cta.c-cta--calm .c-cta__inner {
  max-width: 980px;
  margin: 0 auto;
  background: #fffdf4;
  /* #ffffeeになじむやさしい面 */
  color: var(--aiwa-ink);
  border: 1px solid var(--aiwa-brand-border);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  text-align: center;
}

/* 見出しテキスト右に画像を添える */
.c-cta__lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 左寄せなら flex-start に変更 */
  gap: 12px;
  /* テキストと画像の間隔 */
  flex-wrap: wrap;
}

/* 画像サイズ調整 */
.c-cta__lead-img {
  width: 64px;
  /* 例: 64px（調整可） */
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  /* 丸みが欲しければ */
}

/* スマホでは少し小さく */
@media (max-width: 640px) {
  .c-cta__lead-img {
    width: 48px;
  }
}

/* タイポは強すぎない太さに */
.c-cta__title {
  margin: 0 0 .35em;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: .01em;
}


.underline-red-bold {
  text-decoration-line: underline;
  text-decoration-color: red;
  text-decoration-thickness: 2px;
  /* 線の太さ */
  text-underline-offset: 3px;
  /* テキストとの間隔 */
}

/* ボタン：主＝やさしい塗り、従＝アウトライン */
.c-cta__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: .5em;
}

.c-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .04s ease;
}

.c-cta__btn:active {
  transform: translateY(1px);
}

.c-cta__btn--primary {
  background: var(--aiwa-brand-weak);
  /* 面は薄く */
  color: #6a3b00;
  /* 濃すぎない茶系の文字色 */
  border-color: var(--aiwa-brand-border);
}

.c-cta__btn--primary:hover {
  background: #ffe0bf;
  /* わずかに濃く */
}

.c-cta__btn--secondary {
  background: transparent;
  color: #6a3b00;
  border-color: var(--aiwa-brand-border);
}

.c-cta__btn--secondary:hover {
  background: rgba(255, 234, 205, .45);
  /* うっすら面 */
}

.c-cta__note {
  margin: .5em 0 0;
  font-size: 12.5px;
  color: var(--aiwa-muted);
}

/* SPは全幅で“押しやすいけど圧迫しない” */
@media (max-width: 560px) {
  .c-cta__btn {
    width: 100%;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news .news-link {
    padding: 10px;
  }

}

@media (max-width: 420px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta .btn {
    min-width: 100%;
  }

}

/* ちょいアニメ（好みで） */

@media (prefers-reduced-motion: no-preference) {

  .btn,
  .btn-contact,
  .card {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

}

/* =========================================================
   Front Page — Sections Refresh (scoped to .front-page)
   ========================================================= */

/* レイアウト幅（B方式：clamp） */

:root {}

/* 汎用 */

.front-page .container {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding-inline: var(--ai-gutter);
}

.front-page section.container {
  padding-block: clamp(22px, 4vw, 40px);
}

.front-page section.container>h2 {
  margin: 0 0 .7em;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .02em;
}

/* ボタン（共通） */

.front-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  background: var(--ai-brand);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .06);
}

.front-page .btn:hover {
  filter: brightness(.98);
}

.front-page .btn:active {
  background: var(--ai-brand-press);
  transform: translateY(1px);
}

.front-page .btn--outline {
  background: transparent;
  color: var(--ai-brand);
  border: 1px solid var(--ai-brand);
}

.front-page .btn--outline:hover {
  background: color-mix(in srgb, var(--ai-brand) 10%, #fff);
}

/* ---------------- HERO ---------------- */

.front-page .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}

.front-page .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.front-page .hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* ---------------- NEWS ---------------- */

.front-page .news {
  background: var(--ai-surface);
  border-block: 1px solid var(--ai-line);
}

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

.front-page .news-link {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ai-text);
  border-radius: 10px;
}

.front-page .news-link:hover {
  background: #fff;
  box-shadow: 0 1px 0 var(--ai-line);
}

.front-page .news time {
  font-variant-numeric: tabular-nums;
  color: var(--ai-muted);
  white-space: nowrap;
}

.front-page .news .news-title {
  font-weight: 700;
  line-height: 1.5;
}

/* NEW バッジ（aiwa_is_new 用） */

.front-page .badge-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ai-brand);
  border-radius: 4px;
}

/* ---------------- VOICES ---------------- */

.front-page .voices {
  background: #fff;
}

.front-page .voice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 16px);
}

.front-page .voice-item {
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.front-page .voice-title {
  display: block;
  font-weight: 700;
  margin-bottom: .3em;
}

.front-page .voice-excerpt {
  color: var(--ai-muted);
}

/* ---------------- ACCESS ---------------- */

.front-page .access-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.front-page .map-dummy {
  height: clamp(240px, 26vw, 320px);
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #f7f7f7 10px, #f7f7f7 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: 700;
  letter-spacing: .2em;
}

.front-page .addr p {
  margin: .2em 0 .4em;
}

.front-page .addr .btn {
  margin-top: .6em;
}

/* ---------------- CTA ---------------- */

.front-page .cta .cta-box {
  border: 2px solid var(--ai-accent);
  background: color-mix(in srgb, var(--ai-accent) 20%, #fff);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 24px);
  text-align: center;
}

.front-page .cta .cta-box h2 {
  margin: 0 0 .4em;
}

.front-page .cta .cta-box p {
  margin: .2em 0 1em;
  color: var(--ai-muted);
}

.front-page .cta .cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------- Responsive -------------- */

@media (max-width: 1200px) {
  .front-page .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .front-page .voice-list {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 960px) {
  .front-page .hero-inner {
    grid-template-columns: 1fr;
  }

  .front-page .access-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .front-page .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .front-page .news .news-link {
    padding: 10px;
  }

}

@media (max-width: 420px) {
  .front-page .card-grid {
    grid-template-columns: 1fr;
  }

  .front-page .voice-list {
    grid-template-columns: 1fr;
  }

  .front-page .hero-cta .btn {
    min-width: 100%;
  }

}

/* Motion（お好みで） */

@media (prefers-reduced-motion: no-preference) {

  .front-page .btn,
  .front-page .card {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }

}

/********************************************
 * 移動支援ページ（page-accompanied-support.php）
 * cocoon-child-master/style.css に追加
 ********************************************/

/* ---- カラートークン（必要に応じて調整） ---- */

:root {
  --aiwa-orange: #ff8a33;
  /* メイン */

  --aiwa-orange-weak: #fff3ea;
  /* 薄い背景 */

  --aiwa-accent: #f05a28;
  /* 強調 */

  --aiwa-text: #222;
  --aiwa-muted: #666;
  --aiwa-border: #e6e6e6;
  --aiwa-ok: #1b9e5a;
  --aiwa-warn: #d98e00;

  /* 既存の変数があれば自動で拾う／無ければフォールバック */
  --aiwa-brand: var(--aiwa-orange, #ff7a00);
  --aiwa-brand-strong: #ff7a00;
  --aiwa-brand-dark: #e86d00;
  --aiwa-text-on-brand: #ffffff;
  --aiwa-ink: #222;
  /* 通常文字色 */
  --aiwa-surface: #ffffff;
  /* カード色 */
  --aiwa-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}


}

/* ---- ベース（このページ内だけ作用） ---- */

.p-accompanied-support {
  color: var(--aiwa-text);
  line-height: 1.8;
  font-feature-settings: "palt";
}

.p-accompanied-support * {
  box-sizing: border-box;
}

/* ---- ヒーロー ---- */

.p-accompanied-support__hero {
  background: linear-gradient(0deg, #fff 0%, var(--aiwa-orange-weak) 100%);
  border-bottom: 1px solid var(--aiwa-border);
}

.p-accompanied-support__hero .c-container {
  display: grid;
  gap: 16px;
  align-items: center;
}

.p-accompanied-support__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--aiwa-accent);
  border: 1px solid var(--aiwa-accent);
  padding: 4px 8px;
  border-radius: 999px;
}

.p-accompanied-support__title {
  margin: 4px 0 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 700;
}

.p-accompanied-support__lead {
  color: var(--aiwa-muted);
  font-size: clamp(14px, 2.2vw, 16px);
}

/* ---- セクション共通 ---- */

.p-accompanied-support .c-section {
  border-bottom: 1px dashed var(--aiwa-border);
}

.p-accompanied-support .p-accompanied-support .c-section__sub {
  color: var(--aiwa-muted);
  margin: -6px 0 24px;
  font-size: 14px;
}

/* ---- サービスカード（対象・内容・提供時間など） ---- */

.p-accompanied-support .c-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .p-accompanied-support .c-cards {
    grid-template-columns: repeat(3, 1fr);
  }

}

.p-accompanied-support .c-card {
  background: #fff;
  border: 1px solid var(--aiwa-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.p-accompanied-support .c-card__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.p-accompanied-support .c-card__badge {
  background: var(--aiwa-orange);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.p-accompanied-support .c-list {
  margin: 0;
  padding-left: 1.2em;
}

.p-accompanied-support .c-list li+li {
  margin-top: 6px;
}

/* ---- 流れ（ステップ） ---- */

.p-accompanied-support .c-steps {
  list-style-type: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .p-accompanied-support .c-steps {
    grid-template-columns: repeat(4, 1fr);
  }

}

.p-accompanied-support .c-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--aiwa-border);
  border-radius: 14px;
  padding: 16px 16px 16px 48px;
}

.p-accompanied-support .c-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aiwa-orange);
  color: #fff;
  font-weight: 700;
}

/* ---- 料金テーブル（スマホはカード化） ---- */

.p-accompanied-support .c-price {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.p-accompanied-support .c-price th,
.p-accompanied-support .c-price td {
  border: 1px solid var(--aiwa-border);
  padding: 10px 12px;
}

.p-accompanied-support .c-price th {
  background: var(--aiwa-orange);
  text-align: left;
}

/* 料金テーブル（スマホは“必要な時だけ”カード化） */
@media (max-width: 719px) {
  .p-accompanied-support .c-price.c-price--cards thead {
    display: none;
  }

  .p-accompanied-support .c-price.c-price--cards tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid var(--aiwa-border);
    border-radius: 12px;
    overflow: hidden;
  }

  .p-accompanied-support .c-price.c-price--cards td {
    border: 0;
    border-top: 1px solid var(--aiwa-border);
  }

  .p-accompanied-support .c-price.c-price--cards td[data-th]::before {
    content: attr(data-th);
    display: block;
    font-size: 12px;
    color: var(--aiwa-muted);
    margin-bottom: 2px;
  }
}


/* ---- 注意書き（加算・減算、キャンセルポリシー） ---- */

.p-accompanied-support .c-note {
  background: #fff;
  border-left: 4px solid var(--aiwa-accent);
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--aiwa-muted);
}

/* ---- FAQ（details/summaryでJS不要アコーディオン） ---- */

.p-accompanied-support .c-faq details {
  border: 1px solid var(--aiwa-border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.p-accompanied-support .c-faq details+details {
  margin-top: 10px;
}

.p-accompanied-support .c-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.p-accompanied-support .c-faq summary::-webkit-details-marker {
  display: none;
}

.p-accompanied-support .c-faq summary::after {
  content: "＋";
  float: right;
  transition: transform .2s ease;
}

.p-accompanied-support .c-faq details[open] summary::after {
  content: "－";
}

.p-accompanied-support .c-faq .c-faq__body {
  margin-top: 8px;
  color: var(--aiwa-muted);
}

/* ---- サブナビ（親→子リンク群） ---- */

/* ============================================
   サブナビ（介護保険・障がい福祉共通）
   ============================================ */
.p-accompanied-support nav.c-container {
  padding: 0;
}

.p-accompanied-support .c-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
  padding: 12px 0;
}

.p-accompanied-support .c-subnav li {
  list-style: none;
}

.p-accompanied-support .c-subnav a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--aiwa-border, #e4e4e4);
  border-radius: 999px;
  text-decoration: none;
  color: var(--aiwa-text, #333);
  background: #fff;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

/* hover：少し浮き上がる演出 */
.p-accompanied-support .c-subnav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: var(--aiwa-orange, #f29b38);
  color: var(--aiwa-orange, #f29b38);
}

/* active状態：現在ページ */
.p-accompanied-support .c-subnav a[aria-current="page"] {
  background: var(--aiwa-orange, #f29b38);
  color: #fff;
  border-color: var(--aiwa-orange, #f29b38);
  box-shadow: 0 2px 6px rgba(242, 155, 56, 0.3);
  font-weight: 600;
}

/* スマホ対応：間隔ゆったり */
@media (max-width: 768px) {
  .p-accompanied-support .c-subnav {
    gap: 8px;
    padding: 8px 4px;
  }

  .p-accompanied-support .c-subnav a {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}


/* ---- CTA（問い合わせ） ---- */

.p-accompanied-support .c-cta {
  /*position: sticky;
  bottom: 12px;
  z-index: 30;
  */
}

.p-accompanied-support .c-cta__inner {
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--aiwa-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.p-accompanied-support .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .02s ease, box-shadow .2s ease, background .2s ease;
}

.p-accompanied-support .c-btn--primary {
  background: var(--aiwa-orange);
  color: #fff;
}

.p-accompanied-support .c-btn--ghost {
  background: #fff;
  border-color: var(--aiwa-border);
  color: var(--aiwa-text);
}

.p-accompanied-support .c-btn:active {
  transform: translateY(1px);
}

/* ---- リストのアイコン風（アクセシブルに疑似要素） ---- */

.p-accompanied-support .c-ulcheck {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.p-accompanied-support .c-ulcheck li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: flex-start;
  gap: 8px;
}

.p-accompanied-support .c-ulcheck li::before {
  content: "✔";
  color: var(--aiwa-ok);
  line-height: 1.6;
}

/* ---- ちょい注意の吹き出し ---- */

.p-accompanied-support .c-callout {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--aiwa-border);
  border-radius: 12px;
  background: #fffdf5;
}

.p-accompanied-support .c-callout__icon {
  font-weight: 700;
  color: var(--aiwa-warn);
}

/* ---- 余白ユーティリティ ---- */

.p-accompanied-support .mt-0 {
  margin-top: 0 !important;
}

.p-accompanied-support .mt-8 {
  margin-top: 8px !important;
}

.p-accompanied-support .mt-16 {
  margin-top: 16px !important;
}

.p-accompanied-support .mt-24 {
  margin-top: 24px !important;
}

.p-accompanied-support .mt-32 {
  margin-top: 32px !important;
}

/* ---- 印刷（料金だけ残して簡易化する例） ---- */

@media print {

  .p-accompanied-support .p-accompanied-support__hero,
  .p-accompanied-support .c-cta,
  .p-accompanied-support .c-subnav,
  .p-accompanied-support .c-faq {
    display: none !important;
  }

  .p-accompanied-support .c-section {
    padding: 8px 0;
    border: 0;
  }

}

/* =========================================
   Global Typography & Layout – Aiwa override
   （全ページ共通の字間・行間・可読幅の統一）
   ========================================= */

/* 1) トークン拡張：行間と字間の標準値を明示 */

:root {
  --ai-leading: 1.9;
  /* 本文の行間を広めに */

  --ai-letter: 0.03em;
  /* 本文の字間 */

  --ai-letter-h: 0.02em;
  /* 見出しの字間 */

  --ai-letter-ui: 0.04em;
  /* ナビやボタン等UIの字間 */

  /* レイアウト幅を少しワイドに統一 */

}

/* 2) 本文のベース（全ページ） */

body {
  font-family: "Hannari", "Honoka Maru Gothic", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: var(--ai-leading);
  letter-spacing: var(--ai-letter);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "palt";
  /* プロポーショナル代替で日本語の詰まりを緩和 */

}

/* 3) 見出し（読みやすい密度に） */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.4;
  /* 少しタイトにしてタイトル感を出す */

  letter-spacing: var(--ai-letter-h);
  font-weight: 700;
}

/* 4) 段落・リスト（本文と揃える） */

p,
li {
  line-height: var(--ai-leading);
  letter-spacing: var(--ai-letter);
}

/* 5) ナビやボタン等のUIはやや広めに */

nav a,
.btn,
.btn-contact,
.wp-block-button__link,
a.button,
button {
  letter-spacing: var(--ai-letter-ui);
  line-height: 1.6;
}

/* 6) フォームの可読性 */

input,
textarea,
select {
  font-family: inherit;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 7) コンテナ幅の統一（ヘッダー/フッター/汎用 .container） */

.site-header .header-inner,
.site-footer .footer-inner,
.container {
  max-width: var(--ai-wrap);
}

/* 8) 障がい福祉ページ系の可読幅・余白（既存パーツを上書き） */

.p-accompanied-support .c-container {
  width: min(1280px, 95vw);
  padding: clamp(8px, 2vw, 24px);
  margin: 0 auto;
}

.p-accompanied-support .c-cards {
  gap: 24px;
}

/* カード間隔をゆったり */

/* =======================================
   h2見出しを親しみやすいデザインに変更
   ======================================= */

/* 左アイコン（花やハートなどに差し替え可能） */

.c-section__hd::before {
  content: "";
  /* ← 花のアイコン。例: "💛" "🌸" "☀" などに変更OK */

  font-size: 1.2em;
  color: #ff8a33;
}

/* セクションごとに淡いオレンジを交互に */

.c-section:nth-of-type(even) {
  background: #ffffef;
}

/* =========================================
   白ベースで目立つテーブル（.c-price）
   スマホも表形式を維持
   ========================================= */

.c-price {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #fffaf5;
  /* オレンジ枠で強調 */

  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
}

/* ヘッダー：濃オレンジ背景＋白文字 */

.c-price th {
  background: #ff8a33;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid #e67822;
}

/* 本文セル：白ベース、偶数行を淡いオレンジで区切り */

.c-price td {
  background: #fff;
  color: #333;
  padding: 14px 16px;
  border: 1px solid #f2d8c9;
}

.c-price tbody tr:nth-child(even) td {
  background: #fffaf5;
  /* ほんのり薄いオレンジでリズムを付ける */

}

/* 1列目（項目）は太字で視線を固定 */

.c-price td:first-child {
  font-weight: 600;
  color: #444;
}

/* スマホも同じ表形式で表示（カード化しない） */

@media (max-width: 719px) {
  .c-price thead {
    display: table-header-group;
  }

  .c-price tbody tr {
    display: table-row;
  }

  .c-price td,
  .c-price th {
    display: table-cell;
  }

}

/* =========================================
   禁止事項リスト（注意マーク付き）
   ========================================= */

.c-ulnote {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-ulnote li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: .6em;
  font-size: .9rem;
}

.c-ulnote li::before {
  content: "⚠";
  /* 注意マーク */

  position: absolute;
  left: 0;
  top: 0;
  color: #d9534f;
  /* 赤系で強調 */

  font-size: 1.em;
}

/* 小見出し（h3）：軽やか＆一段下げた強度に */

/* 小見出し直下のテーブルとの間隔を最適化 */

.c-section__subhd+.c-price {
  margin-top: .4em;
}

/* 余白バランス（このセクション全体を少しタイトに） */

#home-care-table #home-care-table .c-container {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ヒーローの基本レイアウト */

.aiwa-assets-check {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 14px;
}

/* assetsデバッグ用 */

.aiwa-assets-check th,
.aiwa-assets-check td {
  border: 1px solid #e6e6e6;
  padding: .5rem .6rem;
  text-align: left;
  background: #fff;
}

.aiwa-assets-check thead th {
  background: #f8f6f4;
}

/* =========================
   Aiwa Global Fix (2025-10-12)
   ========================= */

:root {
  --ai-wrap: clamp(1100px, 92vw, 1280px);
  --ai-gutter: clamp(12px, 3vw, 24px);
}

/* Hero width aligned to nav container */

.c-hero {
  position: relative;
  padding-top: 8px;
  padding-bottom: 16px;
}

.c-hero__inner {
  max-width: var(--ai-wrap);
  margin-inline: auto;
  padding-inline: var(--ai-gutter);
}

.c-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 16/9;
  /* ← 常に16:9で固定 */

}

/* Unify section headings */

.c-section__hd {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  border-left: 6px solid #ff8a33;
  padding-left: .6em;
  display: flex;
  align-items: center;
  gap: .4em;
  color: #3a3a3a;
  margin: 0 0 .8em;
}

.c-section__subhd {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700;
  color: #444;
  padding-left: .5em;
  border-left: 4px solid #ffd3b3;
  margin: 1.2em 0 .6em;
}

/* Fix known shadow typos if any slipped through */

.drawer {
  box-shadow: -8px 0 24px rgba(0, 0, 0, .08);
}

/* ================================
   maintenance
   Hero（1280px制限 & 可読性強化）
=================================== */

/* ================================
   Hero（高コントラスト版・最大幅1280px）
=================================== */

/* --- Hero 全体 --- */

.p-hero-simple {
  background: #80c3f7;
  display: flex;
  justify-content: center;
  /* 全体を中央寄せ */

}

.p-hero-simple__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* ← padding削除で帯と画像の幅を完全一致させる */

}

/* Hero画像部分 */

.p-hero-simple__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 320px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background-image: var(--hero);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.p-hero-simple__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

/* --- オレンジ帯を画像と同幅＆中央 --- */

.p-hero-simple__band {
  width: 100%;
  max-width: 1280px;
  /* 画像と同じ幅制限 */

  margin: 0 auto;
  background: #5d75a2;
  color: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  text-align: center;
}

.p-hero-simple__band-inner {
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 28px);
}

/* テキスト */

.p-hero-simple__title {
  margin: 0 0 4px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  font-size: clamp(22px, 3.6vw, 38px);
}

.p-hero-simple__subtitle {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
  font-size: clamp(14px, 2.2vw, 20px);
  opacity: .98;
}

/* =============================
   ハンバーガー & SPナビ
============================== */

/* チェックボックス本体は非表示 */

.nav-toggle {
  display: none;
}

/* ハンバーガーアイコン */

.hamburger {
  display: block;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1100;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* 開いたときの変化（×マーク） */

.nav-toggle:checked+.hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.nav-toggle:checked+.hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked+.hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* ========= 共通設定 ========= */

.sp-menu-wrap {
  position: relative;
  z-index: 2000;
  /* ヘッダー内の他要素より前面に */

}

/* チェックボックスは非表示 */

.nav-toggle {
  display: none;
}

/* ハンバーガーアイコン */

.hamburger {
  display: none;
  /* PCでは非表示、SPで表示（下の@mediaで上書き） */

  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 2100;
  /* navより前面（クリック可能） */

}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* チェック時（×に変形） */

.nav-toggle:checked+.hamburger span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.nav-toggle:checked+.hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked+.hamburger span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* SPナビのオーバーレイ */

.sp-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle:checked~.sp-nav {
  opacity: 1;
  pointer-events: auto;
}

/* メニューリスト整形 */

.sp-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.sp-nav__list>li {
  margin: 1.1em 0;
}

.sp-nav__list a {
  color: #222;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

/* ========= レイアウト（SP表示時） ========= */

@media (max-width: 1024px) {
  .hamburger {
    display: block;
    /* 右上に固定したい場合は親（ヘッダー）に position:relative が必要 */

    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

}

/* ========= PCではハンバーガー非表示・オーバーレイ無効 ========= */

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  .sp-nav {
    display: none;
  }

}

/* サービス一覧のカード */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0
}

@media (max-width:720px) {
  .c-card-grid {
    grid-template-columns: 1fr
  }
}

.c-card {
  background: #fff;
  border: 1px solid var(--border-color, #eee);
  border-radius: 12px;
  overflow: hidden
}

.c-card a {
  display: block;
  color: inherit;
  text-decoration: none
}

.c-card__media {
  aspect-ratio: 16/9;
  background: #f7f7f7;
  margin: 0
}

.c-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.c-card__body {
  padding: 12px
}

.c-card__title {
  font-size: 1.125rem;
  margin: 0 0 6px
}

.c-card__text {
  margin: 0;
  color: #555;
  line-height: 1.7
}


/* ===============================
   Sub Navigation (四角ボタン)
   =============================== */
.p-subnav.p-subnav--parents {
  background: #fffdf5;
  /* #ffffeeとなじむ薄ベージュ */
  padding: 12px 0;
  text-align: center;
}

/* PCだけナビ追従*/
@media (min-width: 1025px) {
  .p-subnav.p-subnav--parents {
    position: sticky;
    z-index: 1000;
    top: 0;
  }
}

.p-subnav__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.p-subnav__btn {
  display: inline-block;
  min-width: 160px;
  padding: 12px 18px;
  background: var(--aiwa-btn-surface);
  color: #5a3a00;
  border: 1.5px solid var(--aiwa-btn-border);
  border-radius: 10px;
  /* 角丸の四角ボタン */
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .04s ease, box-shadow .2s ease;
}

.p-subnav__btn:hover {
  background: var(--aiwa-btn-hover);
  border-color: #ffb96b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

/* 現在地（フロント or 親配下）は色付き */
.p-subnav__btn.is-active {
  background: var(--aiwa-active-surface);
  border-color: var(--aiwa-active-border);
  color: var(--aiwa-active-text);
  box-shadow: 0 3px 10px rgba(255, 170, 85, .15);
}

/* スマホはほぼ全幅でタップしやすく */
@media (max-width: 560px) {
  .p-subnav__btn {
    flex: 1 1 20%;
    width: 98%;
  }
}

/* ================================
   Maintenance（準備中セクション）
=================================== */

.p-maintenance {
  background: #fff7f0;
  /* やわらかオレンジ背景 */

  text-align: center;
  padding: 80px 20px;
}

.p-maintenance__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 見出し */

.p-maintenance h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--aiwa-orange, #f39c12);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 説明文 */

.p-maintenance p {
  color: #444;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
  margin: 0 auto 2.5rem;
  white-space: pre-line;
  /* 改行反映（2行分割でもOK） */

}

/* ボタン */

.p-maintenance__btn {
  display: inline-block;
  background: var(--aiwa-orange, #f39c12);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 8px;
  margin: 8px auto;
  font-size: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.p-maintenance__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== PDF ボタン（四角＋少し丸＋大きめ） ===== */
.btn-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 33%;
  min-height: 60px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  background: var(--ai-brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  transition: all .15s ease;
  line-height: 21px;
}

/* --- hover時の色が一体化しないように修正 --- */
.btn-doc:hover {
  background: var(--ai-brand-press);
  color: #fff;
}

/* active */
.btn-doc:active {
  transform: translateY(1px);
}

/* ---- outline（白ボタン） ---- */
.btn-doc--outline {
  background: #fff;
  color: var(--ai-brand);
  border: 2px solid var(--ai-brand);
}

.btn-doc--outline:hover {
  background: #fff7ec;
  color: var(--ai-brand);
  border-color: var(--ai-brand-press);
}

.btn-doc--outline:active {
  background: #ffefd9;
}