/* ヘルシオ有限会社 サイト共通スタイル
   色はリーフレット「AI OCR調査 LUCY」(2026-08-26版)の紺・黄に合わせています */

:root {
  --navy: #1f3c88;
  --navy-deep: #152b66;
  --yellow: #ffd83d;
  --cream: #fff7da;
  --orange: #e8742a;
  --sky: #eaf3fc;
  --text: #1f2933;
  --muted: #5d6b7a;
  --line: #d9e1ea;
  --white: #ffffff;
  --radius: 14px;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }

h1, h2, h3, .round {
  font-family: var(--round);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
  word-break: auto-phrase; /* 見出しを文節の切れ目で改行する */
}

.nb { display: inline-block; } /* この中では改行しない */

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: block;
  flex: none;
  padding: 6px 0;
}

/* ロゴ画像(ヘルシオロゴ.pdf の1段目を切り出したもの) */
.logo img { height: 56px; width: auto; }

.nav {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: .92rem;
  white-space: nowrap;
}

/* メニューは「商品」と「会社案内」の2組。パソコンでは横1列で、間に区切り線 */
.navs { display: flex; align-items: center; gap: 4px; }
.nav-company { border-left: 1px solid var(--line); padding-left: 4px; }

.nav a:hover { background: var(--sky); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav .nav-contact a { background: var(--yellow); color: var(--navy-deep); }

/* ロゴとメニューが横に並びきらない幅(タブレット以下)では、メニューを社名の下に2段で置く */
@media (max-width: 980px) {
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .navs { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 0 10px; }
  .nav { flex-wrap: wrap; }
  .nav-company { border-left: 0; padding-left: 0; }
  .nav a { font-size: .85rem; padding: 6px 10px; }
  .logo { padding: 0 0 4px; }
  .logo img { height: 52px; }
}

/* ---------- ページ見出し(下層ページ) ---------- */

.page-head {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    var(--navy);
  color: var(--white);
  padding: 48px 0 44px;
}

.page-head .en {
  margin: 0;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: .8rem;
}

.page-head h1 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}

.page-head p.lead {
  margin: 14px 0 0;
  max-width: 40em;
}

/* ---------- セクション ---------- */

section { padding: 56px 0; }
section.tint { background: var(--sky); }
section.cream { background: var(--cream); }

h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  color: var(--navy);
  margin: 0 0 24px;
  padding-left: 14px;
  border-left: 6px solid var(--yellow);
}

h3 {
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin: 0 0 8px;
}

.hl { color: var(--orange); }

/* ---------- トップのメインビジュアル ---------- */

.hero {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.8vw, 2.7rem);
  margin: 0;
}

.hero h1 .y { color: var(--yellow); }

.hero .catch {
  display: inline-block;
  margin: 20px 0 0;
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: var(--round);
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
}

.hero p.lead { margin: 22px 0 0; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .ph { width: 70%; max-width: 280px; justify-self: center; }
}

/* ---------- 画像の仮枠(デザイナーさんの画像が届いたら差し替え) ---------- */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(45deg, #e6e9ee 0 12px, #eef1f4 12px 24px);
  color: #6b7684;
  border: 2px dashed #b8c0ca;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.6;
  padding: 16px;
}

.hero .ph { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #dfe6f3; }

/* ---------- 工程の流れ図 ---------- */
/* LUCYの範囲は黄色、計画策定支援の範囲は紺の細線で囲む */

.flow {
  --pad: 10px;   /* 囲みの内側の余白 */
  --gap: 16px;   /* 2つの囲みの間 */
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: var(--gap);
}

.flow-group {
  border: 2px solid;
  border-radius: var(--radius);
  padding: 0 var(--pad) var(--pad);
  background: var(--white);
}

.group-lucy { border-color: #f2c200; } /* 黄色(白地で見えるよう少し濃いめ) */
.group-plan { border-color: var(--navy); }

.flow .band {
  margin: 0 calc(-1 * var(--pad)) var(--pad);
  text-align: center;
  font-family: var(--round);
  font-weight: 800;
  padding: 6px 8px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.group-lucy .band { background: var(--yellow); color: var(--navy-deep); }
.group-plan .band { background: var(--navy); color: var(--white); }

.flow .steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
}

.flow .step {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  font-weight: 700;
  position: relative;
}

/* 工程と工程の間の矢印(LUCYの最後の工程からは、計画策定支援へ向けて囲みの間に出す) */
.flow .step:not(:last-child)::after,
.group-lucy .step:last-child::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left: 9px solid var(--orange);
}

.group-lucy .step:last-child::after { right: calc(-1 * (var(--pad) + 2px + var(--gap) / 2) - 5px); }

@media (max-width: 760px) {
  /* スマホでは囲みも工程も縦に並べる */
  .flow { grid-template-columns: 1fr; }
  .flow .steps { grid-auto-flow: row; gap: 8px; }
  .flow .step { padding: 12px; }
  .flow .step:not(:last-child)::after,
  .group-lucy .step:last-child::after {
    right: auto; left: 50%; top: auto; bottom: -11px;
    transform: translateX(-50%);
    border: 7px solid transparent; border-top: 9px solid var(--orange);
  }
  .group-lucy .step:last-child::after { bottom: calc(-1 * (var(--pad) + 2px + var(--gap) / 2) - 5px); }
}

/* ---------- カード ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card .tag {
  align-self: flex-start;
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
}

.card h3 { font-size: 1.35rem; }
.card p { margin: 0; flex: 1; }

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: var(--round);
  font-weight: 800;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #d9b21e;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.05); }
.btn::after { content: " ▶"; font-size: .8em; }

.btn-line {
  align-self: flex-start;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
  padding: 8px 22px;
}

/* ---------- 大きな数字の訴求 ---------- */

.bigfact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 3px solid var(--yellow);
}

.bigfact .num {
  font-family: var(--round);
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1;
  text-align: center;
}

.bigfact .num small { display: block; font-size: .9rem; color: var(--navy); margin-top: 8px; }
.bigfact p { margin: 0; }

@media (max-width: 560px) { .bigfact { grid-template-columns: 1fr; text-align: left; } }

/* ---------- 番号付きの手順 ---------- */

ol.steps {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

ol.steps li {
  counter-increment: s;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px 16px 72px;
  position: relative;
  border: 2px solid var(--line);
}

ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--round);
  font-weight: 800;
  display: grid;
  place-items: center;
}

ol.steps strong { display: block; color: var(--navy-deep); font-size: 1.05rem; }

/* ---------- 箇条書き ---------- */

ul.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

ul.check li { padding-left: 1.6em; position: relative; }
ul.check li::before { content: "●"; color: var(--orange); position: absolute; left: 0; font-size: .8em; top: .25em; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

.note-box {
  background: var(--cream);
  border-left: 6px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}

.note-box p { margin: 0; }

/* ---------- 会社概要の表 ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.table th { width: 9em; color: var(--muted); font-weight: 700; white-space: nowrap; }

@media (max-width: 560px) {
  .table th, .table td { display: block; width: auto; border: 0; padding: 0 4px; }
  .table th { padding-top: 14px; font-size: .85rem; }
  .table td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}

/* ---------- お問い合わせフォーム ---------- */

.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form .req { font-size: .75rem; background: var(--orange); color: var(--white); padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }

.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.form textarea { min-height: 10em; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* 迷惑メール対策の隠し欄 */
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); border-color: var(--navy); }

.draft-note {
  background: #fff1f0;
  border: 2px dashed #e5948b;
  color: #9b3127;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
}

/* ---------- 問い合わせへの誘導帯 ---------- */

.cta {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 8px),
    var(--navy);
  color: var(--white);
  text-align: center;
  padding: 48px 0;
}

.cta h2 { color: var(--white); border: 0; padding: 0; }
.cta p { margin: 0 0 24px; }

/* ---------- 本文ページ(プライバシーポリシー) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.2rem; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }

/* ---------- フッター ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #cfd8ea;
  padding: 40px 0 28px;
  font-size: .9rem;
}

.site-footer .wrap { display: grid; gap: 16px; }
.site-footer .name { font-family: var(--round); font-weight: 800; color: var(--white); font-size: 1.1rem; margin: 0; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--yellow); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; padding: 0; margin: 0; }
.site-footer .links a { display: inline-block; padding: 10px 0; } /* 指で押しやすい高さにする */
.site-footer small { color: #8e9bb8; }

/* ---------- イラスト(デザイナー 佐藤友美さん作) ---------- */

.hero-img { width: 100%; max-width: 400px; justify-self: center; }

@media (max-width: 760px) {
  .hero-img { width: 70%; max-width: 280px; }
}

/* 下層ページの見出しにLUCYを添える */
.page-head .with-chara {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.page-head .chara { width: 180px; margin: -16px 0 -20px; }

@media (max-width: 560px) {
  .page-head .chara { width: 110px; margin: 0; }
}

.page-head .title-logo { width: min(100%, 427px); margin: 10px 0 4px; }

/* 漫画は縦に並べる(吹き出しの文字が小さくならないように) */
.manga { display: grid; gap: 28px; justify-items: center; }
.manga img { width: 100%; max-width: 860px; }
/* 3枚を見本どおりの間隔で並べる(漫画幅1072pxに対し 上→見出し23px、見出し→下46px) */
.manga-set { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.manga-set .manga-midashi { width: 69.4%; margin: 2.15% 0 4.3%; }

.flow-img { width: 100%; margin-top: 32px; }

/* 対応している調査(リーフレットと同じ黄色のプレート) */
.plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plates img { width: auto; max-width: 100%; max-height: 100px; }

/* 見出しを画面には出さず、読み上げソフトにだけ伝える */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site-footer small.credit { color: #c3cce0; }

/* ---------- 実績の数字の帯(トップ) ---------- */

section.facts-band { background: var(--yellow); padding: 28px 0 20px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.facts li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--navy-deep);
  font-weight: 700;
}

.facts .num {
  display: block;
  font-family: var(--round);
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 6px;
  white-space: nowrap;
}

.facts .num small { font-size: .5em; color: var(--navy); margin-left: 2px; }

.facts-more { margin: 12px 0 0; text-align: right; font-weight: 700; }
.facts-more a { color: var(--navy-deep); }
.facts-more a::after { content: " ▶"; font-size: .8em; }

@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- 沿革(年表) ---------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.timeline li {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .year {
  font-family: var(--round);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.6;
}

.timeline strong { display: block; color: var(--navy-deep); }
.timeline .sub { display: block; color: var(--muted); font-size: .9rem; }

@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* 開発実績の表紙 */
.covers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: start;
}

.covers figure { margin: 0; text-align: center; }
.covers img { margin: 0 auto; max-height: 340px; width: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(21,43,102,.18); }
.covers figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.6; }
.covers figcaption strong { display: block; font-family: var(--round); color: var(--navy-deep); font-size: 1.05rem; }

/* 費用の目安 */
.price-example { margin: 16px 0 0; }
.price-example .amount {
  font-family: var(--round);
  font-weight: 800;
  color: var(--orange);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.3;
}
.price-example .amount small { font-size: .5em; color: var(--navy); margin-left: 4px; }
.price-example .label { font-weight: 700; color: var(--navy-deep); margin: 0; }
.price-example .detail { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.card.price-example p { flex: none; }

/* 見本のご案内(LUCYページ) */
.sample-box {
  margin: 32px auto 0;
  max-width: 640px;
  background: var(--cream);
  border: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sample-box .round { color: var(--navy); font-size: 1.2rem; margin: 0 0 6px; }
.sample-box p { margin: 0 0 16px; }

/* デジタルサイネージの動く画面(沿革) */
.signage { margin: 40px auto 0; max-width: 640px; text-align: center; }
.signage img { width: 100%; border-radius: 8px; box-shadow: 0 4px 14px rgba(21,43,102,.18); }
.signage figcaption { margin-top: 12px; font-size: .9rem; line-height: 1.6; }
.signage figcaption strong { display: block; font-family: var(--round); color: var(--navy-deep); font-size: 1.05rem; }
