:root {
  --terracotta: #c4714f;
  --terracotta-dark: #9d563a;
  --sage: #4a7c6f;
  --sage-soft: #dce8e2;
  --offwhite: #faf7f2;
  --text: #3d3d3d;
  --muted: #756f69;
  --line: #eadfd3;
  --white: #fffdf9;
  --line-green: #06C755;
  --mincho: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --gothic: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--gothic);
  color: var(--text);
  background: var(--offwhite);
  overflow-x: hidden;
}

body {
  padding: 0 0 96px;
}

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

button {
  font: inherit;
}

img {
  max-width: 100%;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--offwhite);
  min-height: 100vh;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px 12px;
  border-bottom: 1px solid rgba(196, 113, 79, .16);
  background: rgba(250, 247, 242, .96);
  backdrop-filter: blur(8px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  position: relative;
  font-family: var(--mincho);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-name::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(74, 124, 111, .45);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 12px 0 0;
  transform: rotate(-18deg);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .2s ease;
}

.header-tel:hover {
  background: var(--terracotta-dark);
}

.header-tel-icon {
  font-size: 14px;
  line-height: 1;
}

.menu-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.drawer[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  z-index: 100;
  padding: 76px 22px 32px;
  background: var(--offwhite);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

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

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.drawer-list a::after {
  content: "›";
  margin-left: auto;
  color: var(--sage);
  font-size: 22px;
  font-weight: 400;
}

.drawer-cta {
  margin-top: 8px;
}

.hero {
  position: relative;
  padding: 26px 18px 24px;
  background:
    linear-gradient(180deg, #fff7ee 0%, var(--offwhite) 62%),
    var(--offwhite);
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
}

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

h1,
h2 {
  font-family: var(--mincho);
  letter-spacing: 0;
}

h1 {
  max-width: 315px;
  margin-bottom: 13px;
  color: #352f2a;
  font-size: 30px;
  line-height: 1.34;
}

.lead {
  max-width: 326px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 113, 79, .18);
  border-radius: 8px;
  background: #f4eadf;
  box-shadow: 0 14px 28px rgba(87, 62, 44, .13);
}

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

.hero-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hero-note span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px 4px;
  border: 1px solid rgba(74, 124, 111, .22);
  border-radius: 8px;
  color: var(--sage);
  background: rgba(255, 253, 249, .9);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

section {
  padding: 31px 18px;
}

.section-head {
  position: relative;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  color: #352f2a;
  font-size: 23px;
  line-height: 1.45;
}

.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

.hero-cta {
  margin-top: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}

.cta:active {
  transform: translateY(1px);
}

.cta-tel {
  background: var(--terracotta);
  color: #fff;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  line-height: 1.1;
}

.cta-tel:hover {
  background: var(--terracotta-dark);
}

.cta-tel-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-tel-num {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.cta-line {
  min-height: 56px;
}

.cta-tel-compact {
  flex-direction: row;
  min-height: 46px;
  padding: 10px 12px;
  line-height: 1;
  gap: 6px;
}

.cta-line {
  background: var(--line-green);
  color: #fff;
}

.cta-line:hover {
  background: #05a647;
}

.cta-icon {
  font-size: 17px;
  line-height: 1;
}

.cta-line-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .22);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}

.cta-section {
  background: linear-gradient(180deg, var(--offwhite) 0%, #f6eee2 100%);
  text-align: center;
}

.cta-section .cta-block {
  margin-top: 14px;
}

.cta-section p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cta-sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(45, 35, 27, .08);
  z-index: 50;
}

.cta-sticky .cta-block {
  gap: 8px;
}

.cta-sticky .cta {
  min-height: 46px;
  font-size: 14px;
  padding: 10px 12px;
}

.mindmap-section {
  background: #fffdf9;
}

.mindmap-card {
  padding: 10px 0 4px;
  overflow: visible;
}

.mindmap {
  display: block;
  width: 100%;
  height: auto;
}

.map-lines line {
  stroke: rgba(196, 113, 79, .45);
  stroke-width: 1.6;
}

.node-link {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(196, 113, 79, .15);
}

.node circle {
  fill: #fff9f3;
  stroke: rgba(74, 124, 111, .38);
  stroke-width: 1.5;
  transition: fill .15s ease, stroke .15s ease;
}

.node-link:hover .node circle,
.node-link:focus-visible .node circle {
  fill: #fff2e6;
  stroke: var(--terracotta);
}

.node-link:focus {
  outline: none;
}

.node text {
  fill: #3f3a35;
  font-family: var(--gothic);
  font-size: 10.2px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.node-illu {
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.center-node circle {
  fill: var(--terracotta);
}

.center-node text {
  fill: #fff;
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.center-node .center-small {
  font-family: var(--gothic);
  font-size: 10px;
}

.intro-section {
  background: var(--offwhite);
}

.intro-list {
  display: grid;
  gap: 12px;
}

.intro-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intro-item .intro-illu {
  grid-row: 1 / span 2;
}

.intro-item h3,
.intro-item p {
  grid-column: 2;
}

.intro-illu {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #f6e6dc;
}

.intro-illu svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--terracotta-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-item h3,
.reason-list h3 {
  margin-bottom: 5px;
  color: #38332e;
  font-size: 15px;
}

.intro-item p,
.reason-list p,
.company-table,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.service-section {
  position: relative;
  background: #fffdf9;
}

.doodle {
  position: absolute;
  pointer-events: none;
}

.doodle.plant {
  right: 18px;
  top: 25px;
  width: 46px;
  height: 58px;
  border-bottom: 2px solid rgba(74, 124, 111, .28);
}

.doodle.plant::before,
.doodle.plant::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 20px;
  height: 30px;
  border: 2px solid rgba(74, 124, 111, .28);
  border-radius: 50% 50% 0 50%;
}

.doodle.plant::before {
  left: 4px;
  transform: rotate(-28deg);
}

.doodle.plant::after {
  right: 4px;
  transform: rotate(28deg) scaleX(-1);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 214px;
  align-content: start;
  grid-template-rows: 88px auto auto auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--offwhite);
  transition: transform .15s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(87, 62, 44, .1);
}

.service-card img {
  display: block;
  width: 100%;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
}

.service-card strong {
  min-height: 20px;
  color: #3a342f;
  font-size: 13px;
  line-height: 1.45;
}

.service-card p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.service-card small {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
}

.service-card small::after {
  content: " 〉";
}

.service-card.is-line small {
  color: var(--line-green);
}

.service-card.is-line small::before {
  content: "LINE";
  display: inline-block;
  margin-right: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--line-green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  vertical-align: 1px;
}

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

.reason-list {
  display: grid;
  gap: 10px;
}

.reason-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 253, 249, .92);
}

.reason-list article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--sage);
  font-size: 12px;
  font-weight: 800;
}

.company-section {
  position: relative;
  background: var(--offwhite);
}

.doodle.home {
  right: 23px;
  top: 34px;
  width: 58px;
  height: 44px;
  border: 2px solid rgba(196, 113, 79, .28);
  border-top: 0;
  border-radius: 3px;
}

.doodle.home::before {
  content: "";
  position: absolute;
  left: 9px;
  top: -21px;
  width: 34px;
  height: 34px;
  border-left: 2px solid rgba(196, 113, 79, .28);
  border-top: 2px solid rgba(196, 113, 79, .28);
  transform: rotate(45deg);
}

.company-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.company-table div {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 50px;
  border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
  border-bottom: 0;
}

.company-table dt,
.company-table dd {
  margin: 0;
  padding: 13px 12px;
}

.company-table dt {
  color: var(--sage);
  font-weight: 800;
}

.company-table dd {
  background: rgba(255, 253, 249, .6);
}

.footer {
  padding: 28px 18px 26px;
  color: #fff;
  background: #3f5f58;
}

.footer-cta {
  margin: 0 0 22px;
}

.footer-cta .cta {
  border: 1px solid rgba(255, 255, 255, .14);
}

.footer-brand {
  margin-bottom: 12px;
  font-family: var(--mincho);
  font-size: 22px;
  font-weight: 700;
}

.footer p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 700;
}

/* ===== Media queries ===== */

@media (max-width: 360px) {
  section {
    padding: 28px 16px;
  }

  .cta-block {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px 16px 22px;
  }

  h1 {
    font-size: 25px;
  }

  .hero-note {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 600px) {
  body {
    background: #f0ece5;
    padding: 24px 0 120px;
  }

  .page {
    max-width: 480px;
    margin: 24px auto;
    box-shadow: 0 0 60px rgba(45, 35, 27, .08);
    border-radius: 16px;
    overflow: hidden;
  }

  .site-header {
    border-radius: 16px 16px 0 0;
  }

  .cta-sticky {
    border-radius: 16px 16px 0 0;
  }
}

/* ===== PC レスポンシブ拡張 (2026-05-27 T-003 追加) ===== */
/* 既存スタイルは変更せず、ここから下のメディアクエリで上書きする */

/* タブレット (640px〜): カラムを 720px へ広げる */
@media (min-width: 640px) {
  .page {
    max-width: 720px;
  }

  .drawer {
    max-width: 720px;
  }

  .cta-sticky {
    max-width: 720px;
  }

  section {
    padding: 40px 28px;
  }

  /* ヒーロー: 写真の高さを少し増す */
  .hero {
    padding: 36px 28px 32px;
  }

  .hero-photo img {
    height: 280px;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
  }

  .lead {
    max-width: 560px;
    font-size: 15px;
  }

  h2 {
    font-size: 26px;
  }

  /* 7事業マインドマップ: 中央に固定幅で配置 */
  .mindmap-card {
    max-width: 460px;
    margin: 0 auto;
  }

  /* 安心の3理由を 3列に */
  .intro-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  /* 選ばれる理由を 2列に */
  .reason-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  /* 会社概要テーブル: 左ラベル幅を広げる */
  .company-table div {
    grid-template-columns: 140px 1fr;
  }
}

/* PC (960px〜): フルブリード化。各セクションは全幅で背景を画面端まで広げ、
   内側コンテンツのみ max-width:1200px で中央寄せ (左右 padding を max() で吸収) */
@media (min-width: 960px) {
  body {
    padding: 0 0 96px;
    background: var(--offwhite);
  }

  /* .page ラッパーの max-width / 角丸 / 影 / 中央余白を解除し全幅化 */
  .page {
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  /* ヘッダー / 各セクション / フッターの左右 padding を max() で
     「内側 1200px 中央寄せ + 画面端まで背景」を実現 */
  .site-header {
    padding-left: max(48px, calc((100% - 1200px) / 2));
    padding-right: max(48px, calc((100% - 1200px) / 2));
    border-radius: 0;
  }

  section {
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left: max(48px, calc((100% - 1200px) / 2));
    padding-right: max(48px, calc((100% - 1200px) / 2));
  }

  .footer {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: max(48px, calc((100% - 1200px) / 2));
    padding-right: max(48px, calc((100% - 1200px) / 2));
  }

  /* ドロワーと sticky CTA は中央寄せのフローティング表示を維持 */
  .drawer {
    max-width: 1080px;
  }

  .cta-sticky {
    max-width: 1080px;
    border-radius: 16px 16px 0 0;
  }

  /* ヒーロー: 左にコピー、右に写真の 2カラム
     全幅 + 内側コンテンツは grid で 2カラム配置。写真をより大きく */
  .hero {
    padding: 64px max(48px, calc((100% - 1200px) / 2)) 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
  }

  .hero .eyebrow {
    grid-column: 1;
  }

  .hero h1 {
    grid-column: 1;
    max-width: 100%;
    font-size: 42px;
    line-height: 1.32;
  }

  .hero .lead {
    grid-column: 1;
    max-width: 100%;
    font-size: 16px;
  }

  .hero-photo {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin: 0;
  }

  .hero-photo img {
    height: 460px;
  }

  .hero-note {
    grid-column: 1;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-cta {
    grid-column: 1;
    max-width: 460px;
  }

  h2 {
    font-size: 30px;
  }

  /* 各セクション見出し / リスト等の内側コンテンツも 1200px 中央寄せ
     (section の padding-left/right が画面端を吸収するので、ここでは width
      制限は不要。grid系は section 内で自動的に広がる) */

  /* 7事業マインドマップ: PC でも適度なサイズを維持 (中央寄せ) */
  .mindmap-card {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 7事業カードを 4列グリッドへ */
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .service-card {
    min-height: 240px;
    grid-template-rows: 110px auto auto auto;
  }

  .service-card img {
    height: 110px;
  }

  .service-card strong {
    font-size: 14px;
  }

  .service-card p {
    font-size: 12px;
  }

  /* 選ばれる理由を 4列に */
  .reason-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* CTA セクション: ボタン群を中央寄せ・幅制限 */
  .cta-section .cta-block,
  .footer-cta {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 会社概要テーブルも幅制限して中央寄せ */
  .company-table {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  /* フッター内コンテンツも中央寄せのインナーレイアウトに */
  .footer-brand,
  .footer > p,
  .footer-links {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    justify-content: center;
  }

  /* sticky CTA: PCではボタン群を中央寄せに (画面下フローティング維持) */
  .cta-sticky .cta-block {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* 大画面 (1200px〜): 余白を一段増す */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-photo img {
    height: 500px;
  }
}
