/* =========================================================
   HACHINOS LP  — 白・黄・黒 / PC(768px以上)とSP(767px以下)を別デザイン
   ========================================================= */
/* 専用本文内に限定。:where()で既存セレクタの詳細度を維持する。 */
:where(.l-hachinos) {
& {
  --c-yellow: #FFD400;
  --c-yellow-soft: #FFF8D6;
  --c-black: #111;
  --c-gray: #F5F5F2;
  --c-text: #222;
  --c-sub: #5b5b5b;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --header-h: 80px;
}



*, *::before, *::after { box-sizing: border-box; }
/* html/bodyのスクロール・文字組みはテーマ共通CSSに任せる。 */
& {
  margin: 0;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 40px; }
.container--narrow { max-width: 1000px; }
.u-sp { display: none; }
.u-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--c-yellow); color: var(--c-black); box-shadow: 0 6px 0 #c9a600; }
.btn--white { background: #fff; color: var(--c-black); box-shadow: 0 6px 0 #bbb; }
.btn--sm { padding: 10px 22px; font-size: 15px; box-shadow: none; border: 2px solid var(--c-black); }
.btn--lg { min-width: 360px; padding: 24px 40px; font-size: 22px; }

/* ---------- HERO：背景画像1枚＋固定座標CTA ----------
   各ステージは基準幅(--bw)・基準高(--bh)と同じ縦横比で拡縮し、
   CTAは基準座標(--x,--y,--w,--h)を%に換算して配置するため画像とずれない。 */
.hero { background: #fff; }
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--bw) / var(--bh);
  container-type: inline-size;
  overflow: hidden;
}
.hero__stage--sp { display: none; }
.hero__img { width: 100%; height: 100%; object-fit: fill; }
.hero__cta {
  position: absolute;
  left: calc(var(--x) / var(--bw) * 100%);
  top: calc(var(--y) / var(--bh) * 100%);
  width: calc(var(--w) / var(--bw) * 100%);
  height: calc(var(--h) / var(--bh) * 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: calc(var(--fs) / var(--bw) * 100cqw);
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s ease;
}
.hero__cta:hover { filter: brightness(1.08); }
.hero__cta--mail { background: var(--c-black); color: var(--c-yellow); }
.hero__cta--tel { background: #fff; color: var(--c-black); border: calc(4 / var(--bw) * 100cqw) solid var(--c-black); }

/* ---------- セクション共通 ---------- */
.section { padding-block: 140px; }
.section--gray { background: var(--c-gray); }
.section--yellow { background: var(--c-yellow); }
.section__en {
  font-family: Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .2em;
  font-size: 14px; color: var(--c-black); text-align: center;
}
.section__en::before { content: ""; display: block; width: 36px; height: 6px; background: var(--c-yellow); margin: 0 auto 14px; }
.section--yellow .section__en::before { background: var(--c-black); }
.section__title { margin-top: 12px; text-align: center; font-size: 42px; line-height: 1.45; color: var(--c-black); }
.section__lead { margin-top: 24px; text-align: center; color: var(--c-sub); font-size: 17px; }
.subhead { margin-top: 80px; font-size: 26px; color: var(--c-black); padding-left: 18px; border-left: 8px solid var(--c-yellow); }
.note { margin-top: 20px; font-size: 14px; color: var(--c-sub); }

.checklist li { position: relative; padding-left: 34px; margin-top: 12px; font-weight: 700; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-yellow) no-repeat center / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checklist--note { margin-top: 24px; }
.checklist--note li { font-weight: 400; }

/* ---------- 課題 ---------- */
.problems { margin-top: 72px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.problem {
  background: #fff; border-radius: 16px; padding: 40px 16px 36px; text-align: center;
  font-weight: 700; font-size: 16px; line-height: 1.7;
}
.problem img { width: 80px; height: 80px; margin: 0 auto 22px; }
.problems__answer { margin-top: 64px; text-align: center; font-size: 30px; font-weight: 700; color: var(--c-black); }
.problems__answer strong { background: linear-gradient(transparent 60%, var(--c-yellow) 60%); }

/* ---------- ソリューション ---------- */
.steps { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.step { position: relative; border: 3px solid var(--c-black); border-radius: 20px; padding: 48px 28px 36px; text-align: center; background: #fff; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -26px; top: 50%; width: 20px; height: 20px;
  border-top: 5px solid var(--c-black); border-right: 5px solid var(--c-black); transform: translateY(-50%) rotate(45deg);
}
.step__num {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  background: var(--c-black); color: var(--c-yellow); font-family: Helvetica, Arial, sans-serif; font-weight: 700;
  padding: 4px 18px; border-radius: 999px; font-size: 16px;
}
.step img { width: 96px; height: 96px; margin: 0 auto 20px; }
.step h3 { font-size: 24px; }
.step p { margin-top: 12px; font-size: 15px; text-align: left; color: var(--c-sub); }

/* ---------- メリット ---------- */
.merits { margin-top: 72px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.merit { grid-column: span 2; background: #fff; border-radius: 20px; padding: 44px 32px; text-align: center; }
.merit:nth-child(4) { grid-column: 2 / span 2; }
.merit img { width: 96px; height: 96px; margin: 0 auto 20px; }
.merit h3 { font-size: 22px; }
.merit p { margin-top: 12px; font-size: 15px; color: var(--c-sub); }

/* ---------- 機器 ---------- */
.device { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.device__photo img { border-radius: 24px; }
.device__photo figcaption { margin-top: 12px; font-size: 13px; color: var(--c-sub); text-align: center; }
.device__text h3 { font-size: 30px; line-height: 1.5; }
.device__text p { margin-top: 24px; }
.device__text .checklist { margin-top: 24px; }
.diagram { margin-top: 88px; background: var(--c-gray); border-radius: 28px; padding: 40px; }

/* ---------- 基本アプリ ---------- */
.basics { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.basic { display: flex; gap: 28px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 36px; }
.basic:last-child { grid-column: 1 / -1; }
.basic img { flex: 0 0 88px; width: 88px; height: 88px; }
.basic h3 { font-size: 22px; }
.basic p { margin-top: 8px; color: var(--c-sub); font-size: 15px; }

/* ---------- 追加アプリ ---------- */
.addons { margin-top: 64px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.addon { border: 2px solid #e4e4e4; border-radius: 18px; padding: 32px 12px 28px; text-align: center; }
.addon img { width: 80px; height: 80px; margin: 0 auto 16px; }
.addon h3 { font-size: 16px; line-height: 1.5; }
.platform { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform li { background: var(--c-yellow-soft); border-radius: 18px; padding: 32px 24px; }
.platform img { width: 64px; height: 64px; }
.platform h4 { margin-top: 16px; font-size: 18px; }
.platform p { margin-top: 8px; font-size: 14px; color: var(--c-sub); }

/* ---------- 活用例（縦長・大きな写真） ---------- */
.case { margin-top: 96px; background: #fff; border-radius: 28px; overflow: hidden; }
.case:first-of-type { margin-top: 72px; }
.case__photo img { width: 100%; aspect-ratio: 1200 / 760; object-fit: cover; }
.case__body { padding: 56px 64px 64px; }
.case__tag { font-family: Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: .15em; font-size: 14px; display: inline-block; background: var(--c-yellow); padding: 4px 14px; border-radius: 6px; }
.case h3 { margin-top: 16px; font-size: 32px; }
.case__body > p:not(.case__tag) { margin-top: 20px; font-size: 17px; line-height: 2; }
.case__points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.case__points li { border: 2px solid var(--c-black); border-radius: 999px; padding: 6px 20px; font-weight: 700; font-size: 15px; }

/* ---------- テーブル ---------- */
.table-wrap { margin-top: 56px; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
.table th, .table td { padding: 20px 16px; border-bottom: 1px solid #e5e5e5; text-align: right; white-space: nowrap; }
.table thead th { background: var(--c-black); color: #fff; font-size: 14px; text-align: center; }
.table tbody th { text-align: left; }
.table td:last-child { font-weight: 700; background: var(--c-yellow-soft); }

/* ---------- 料金 ---------- */
.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan { background: #fff; border-radius: 20px; padding: 36px 20px; text-align: center; border: 3px solid transparent; }
.plan--pick { border-color: var(--c-yellow); }
.plan__name { font-weight: 700; font-size: 18px; }
.plan__price { margin-top: 12px; font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 34px; color: var(--c-black); line-height: 1.3; }
.plan__price span { display: block; font-family: var(--font); font-size: 13px; color: var(--c-sub); font-weight: 400; }
.plan__meta { margin-top: 14px; font-size: 14px; background: var(--c-gray); border-radius: 999px; padding: 4px 8px; }
.monthly { margin-top: 32px; background: var(--c-black); color: #fff; border-radius: 24px; padding: 48px; text-align: center; }
.monthly__main { font-size: 22px; font-weight: 700; }
.monthly__main strong { font-family: Helvetica, Arial, sans-serif; font-size: 56px; color: var(--c-yellow); margin-inline: 6px; }
.monthly__examples { margin-top: 24px; display: flex; justify-content: center; gap: 20px; }
.monthly__examples li { background: #222; border-radius: 12px; padding: 12px 28px; font-weight: 700; }
.monthly__examples span { color: var(--c-yellow); margin-right: 10px; }
.monthly__desc { margin-top: 20px; font-size: 14px; color: #ccc; }

/* ---------- 導入の流れ ---------- */
.flow { margin-top: 72px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.flow li { position: relative; background: var(--c-gray); border-radius: 18px; padding: 56px 20px 28px; text-align: center; }
.flow__num {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--c-yellow); border: 3px solid var(--c-black);
  display: grid; place-items: center; font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 20px;
}
.flow h3 { font-size: 19px; }
.flow p { margin-top: 10px; font-size: 14px; color: var(--c-sub); text-align: left; }
.story { margin-top: 120px; background: var(--c-yellow-soft); border-radius: 28px; padding: 72px 96px; }
.story__title { margin-top: 12px; text-align: center; font-size: 32px; line-height: 1.5; }
.story > p:not(.section__en):not(.note) { margin-top: 24px; font-size: 17px; line-height: 2.1; }

/* ---------- FAQ ---------- */
.faq { margin-top: 64px; }
.faq__item { background: #fff; border-radius: 16px; margin-top: 16px; }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 28px 72px 28px 76px; font-weight: 700; font-size: 18px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q"; position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--c-black); color: var(--c-yellow);
  display: grid; place-items: center; font-family: Helvetica, Arial, sans-serif;
}
.faq__item summary::after {
  content: ""; position: absolute; right: 30px; top: 50%; width: 12px; height: 12px;
  border-right: 3px solid var(--c-black); border-bottom: 3px solid var(--c-black);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 32px 28px 76px; color: var(--c-sub); }

/* ---------- 最終CTA ---------- */
.final { background: var(--c-black); color: #fff; padding-block: 120px; text-align: center; }
.final__lead { font-size: 18px; color: var(--c-yellow); font-weight: 700; }
.final__title { margin-top: 16px; font-size: 40px; }
.final__buttons { margin-top: 48px; display: flex; justify-content: center; gap: 28px; }
.final__note { margin-top: 28px; font-size: 13px; color: #aaa; }

/* ---------- フッター ---------- */
.footer { background: #000; color: #bbb; padding-block: 48px; text-align: center; font-size: 14px; }
.footer__logo { font-family: Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: .1em; font-size: 22px; color: var(--c-yellow); }
.footer__contact { margin-top: 12px; }
.footer__copy { margin-top: 12px; font-size: 12px; }

.spbar { display: none; }

/* PC中間幅(768〜1199px)：固定座標は維持しつつ、周辺レイアウトのみ詰める */
@media (max-width: 1199px) and (min-width: 768px) {
  .header__nav { gap: 18px; font-size: 14px; }
  .header__tel { display: none; }
  .problems, .addons { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step::after { display: none; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .platform { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .table-wrap { overflow-x: auto; }
}

/* =========================================================
   SP (767px以下) — 別デザイン
   ========================================================= */
@media (max-width: 767px) {
  & { --header-h: 60px; font-size: 15px; padding-bottom: 76px; }
  .u-sp { display: inline; }
  .container { padding-inline: 22px; }

  .header__inner { padding-inline: 16px; gap: 12px; }
  .header__logo { font-size: 20px; }
  .header__logo-mark { width: 24px; height: 27px; box-shadow: inset 0 0 0 3px var(--c-black); }
  .header__nav, .header__tel { display: none; }
  .header__cta { margin-left: auto; }
  .btn--sm { padding: 7px 16px; font-size: 13px; }

  .hero__stage--pc { display: none; }
  .hero__stage--sp { display: block; }

  .section { padding-block: 88px; }
  .section__title { font-size: 25px; }
  .section__lead { font-size: 14px; text-align: left; }
  .subhead { margin-top: 56px; font-size: 20px; }

  .problems { margin-top: 44px; grid-template-columns: 1fr; gap: 12px; }
  .problem { display: flex; align-items: center; gap: 18px; text-align: left; padding: 20px 22px; }
  .problem img { width: 56px; height: 56px; margin: 0; flex: 0 0 56px; }
  .problem br { display: none; }
  .problems__answer { margin-top: 44px; font-size: 21px; }

  .steps { margin-top: 56px; grid-template-columns: 1fr; gap: 44px; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; text-align: left; padding: 34px 22px 26px; }
  .step img { grid-row: 1 / span 2; width: 72px; height: 72px; margin: 0; }
  .step h3 { font-size: 20px; align-self: start; }
  .step p { margin-top: 4px; font-size: 14px; }
  .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -34px; transform: translateX(-50%) rotate(135deg); }

  .merits { margin-top: 44px; grid-template-columns: 1fr; gap: 14px; }
  .merit, .merit:nth-child(4) { grid-column: auto; display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; text-align: left; padding: 24px 20px; }
  .merit img { grid-row: 1 / span 2; width: 64px; height: 64px; margin: 0; }
  .merit h3 { font-size: 18px; }
  .merit p { margin-top: 4px; font-size: 14px; }

  .device { margin-top: 44px; grid-template-columns: 1fr; gap: 32px; }
  .device__text h3 { font-size: 21px; }
  .diagram { margin-top: 48px; padding: 14px; border-radius: 16px; }

  .basics { margin-top: 44px; grid-template-columns: 1fr; gap: 14px; }
  .basic { padding: 24px 20px; gap: 16px; }
  .basic img { flex-basis: 60px; width: 60px; height: 60px; }
  .basic h3 { font-size: 18px; }
  .basic p { font-size: 14px; }

  .addons { margin-top: 36px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .addon { padding: 22px 8px 18px; }
  .addon img { width: 60px; height: 60px; margin-bottom: 10px; }
  .addon h3 { font-size: 14px; }
  .platform { grid-template-columns: 1fr; gap: 12px; }
  .platform li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 20px; }
  .platform img { grid-row: 1 / span 2; width: 52px; height: 52px; }
  .platform h4 { margin-top: 0; font-size: 16px; }
  .platform p { margin-top: 2px; }

  .case { margin-top: 56px; border-radius: 20px; }
  .case:first-of-type { margin-top: 44px; }
  .case__photo img { aspect-ratio: 4 / 3; }
  .case__body { padding: 30px 22px 36px; }
  .case h3 { font-size: 24px; }
  .case__body > p:not(.case__tag) { font-size: 15px; line-height: 1.95; }
  .case__points { flex-direction: column; gap: 8px; }
  .case__points li { font-size: 14px; }

  /* ROI表はSPでカード型に組み替え（横スクロールなし） */
  .table-wrap { margin-top: 36px; }
  .table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table { background: transparent; }
  .table tr { background: #fff; border: 2px solid var(--c-black); border-radius: 16px; margin-top: 14px; overflow: hidden; }
  .table tbody th { background: var(--c-black); color: var(--c-yellow); padding: 12px 18px; font-size: 17px; border: 0; }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; font-size: 14px; white-space: normal; }
  .table td::before { content: attr(data-label); color: var(--c-sub); font-weight: 400; text-align: left; }

  .plans { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .plan { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 20px; column-gap: 12px; }
  .plan__name { font-size: 16px; }
  .plan__price { grid-row: 1 / span 2; grid-column: 2; margin-top: 0; font-size: 26px; text-align: right; }
  .plan__meta { margin-top: 6px; font-size: 12px; justify-self: start; padding: 2px 10px; }
  .monthly { padding: 32px 18px; border-radius: 18px; }
  .monthly__main { font-size: 16px; }
  .monthly__main strong { font-size: 42px; }
  .monthly__examples { flex-direction: column; gap: 8px; }

  .flow { margin-top: 48px; grid-template-columns: 1fr; gap: 14px; }
  .flow li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; text-align: left; padding: 20px; }
  .flow__num { position: static; transform: none; grid-row: 1 / span 2; }
  .flow h3 { font-size: 17px; align-self: end; }
  .flow p { margin-top: 2px; }
  .story { margin-top: 72px; padding: 44px 22px; border-radius: 20px; }
  .story__title { font-size: 22px; }
  .story > p:not(.section__en):not(.note) { font-size: 15px; }

  .faq { margin-top: 40px; }
  .faq__item summary { padding: 20px 44px 20px 58px; font-size: 15px; }
  .faq__item summary::before { left: 14px; width: 30px; height: 30px; font-size: 14px; }
  .faq__item summary::after { right: 20px; }
  .faq__item p { padding: 0 20px 20px 58px; font-size: 14px; }

  .final { padding-block: 80px; }
  .final__title { font-size: 24px; }
  .final__lead { font-size: 15px; }
  .final__buttons { flex-direction: column; gap: 16px; margin-top: 32px; }
  .btn--lg { min-width: 0; width: 100%; font-size: 18px; padding: 20px; }

  .spbar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97); border-top: 1px solid #ddd;
    transform: translateY(110%); transition: transform .25s ease;
  }
  .spbar.is-visible { transform: translateY(0); }
  .spbar__btn { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; }
  .spbar__btn--mail { background: var(--c-black); color: var(--c-yellow); }
  .spbar__btn--tel { background: var(--c-yellow); color: var(--c-black); }
}

/* 検証用パネル（?selfcheck=1 の時だけ表示） */
.selfcheck {
  position: fixed; top: 90px; right: 12px; z-index: 100; width: min(360px, calc(100vw - 24px));
  max-height: 70vh; overflow: auto; background: #111; color: #fff; font: 12px/1.5 monospace;
  padding: 12px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.selfcheck b { color: var(--c-yellow); }
.selfcheck .ng { color: #ff6b6b; }
.selfcheck .ok { color: #7CFC7C; }

/* PCメイン画像は画面幅に収め、1920pxを上限に画像とCTAを一緒に拡縮する。 */
@media (min-width: 768px) {
  .hero__stage--pc {
    width: 100%;
    max-width: 1920px;
    height: auto;
    aspect-ratio: var(--bw) / var(--bh);
    margin-inline: auto;
  }
}

/* Official wordmark extracted from HACHINOS service PDF, page 1. */
.header__logo { flex-shrink: 0; }
.header__logo .official-brand { width: 190px; height: auto; }
.footer__logo .official-brand { width: 230px; height: auto; margin-inline: auto; }
@media(max-width:767px){.header__logo .official-brand{width:150px;}}

/* Requested prominent mail CTA */
.hero__cta--mail { background:#FFD400; color:#111; border:2px solid #111; box-shadow:0 7px 0 #b99b00; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
@media(hover:hover){.hero__cta--mail:hover { transform:translateY(-5px); background:#ffe34d; box-shadow:0 12px 0 #b99b00; }}
.hero__cta--mail:active { transform:translateY(2px); box-shadow:0 3px 0 #b99b00; }
.hero__cta--mail:focus-visible { outline:3px solid #111; outline-offset:5px; }
@media(prefers-reduced-motion:reduce){.hero__cta--mail {transition:none;} .hero__cta--mail:hover{transform:none;}}

/* Problem cards: generous widths and two intentional text lines */
#problems > .container {max-width:1800px; padding-inline:40px;}
#problems .problems {gap:20px; grid-template-columns:repeat(5,minmax(0,1fr));}
#problems .problem {padding:36px 18px 32px; font-size:16px;line-height:1.8;}
#problems .problem img {width:156px;height:156px;object-fit:contain;margin:0 auto 24px;}
#problems .problem p span {white-space:nowrap;}
@media (min-width:768px) and (max-width:1599px){#problems .problems{grid-template-columns:repeat(3,minmax(0,1fr));} #problems .problem{min-height:280px;}}
@media (min-width:768px) and (max-width:1050px){#problems .problems{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){#problems > .container{padding-inline:20px;} #problems .problems{grid-template-columns:1fr;gap:16px;} #problems .problem{display:flex;flex-direction:column;align-items:center;padding:28px 14px;font-size:16px;} #problems .problem img{width:140px;height:140px;margin:0 auto 18px;} #problems .problem p{grid-column:auto;}}

/* Yellow emphasis around all five problem cards. */
#problems .problem { border: 3px solid var(--c-yellow); }

/* Photo-led solution cards with room for concise descriptions. */
#solution > .container { max-width:1600px; padding-inline:40px; }
#solution .steps { grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px; }
#solution .step { display:flex; flex-direction:column; padding:0 0 32px; min-width:0; }
#solution .step__num { z-index:2; }
#solution .step .step__photo { width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; margin:0 0 26px; border-radius:16px 16px 0 0; flex:none; }
#solution .step h3 { padding-inline:24px; font-size:25px; }
#solution .step p { padding-inline:26px; margin-top:12px; font-size:16px; line-height:1.8; }
@media(min-width:768px) and (max-width:1199px) {
 #solution > .container {max-width:1000px;}
 #solution .steps {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px;}
 #solution .step::after {display:none;}
}
@media(max-width:767px) {
 #solution > .container {padding-inline:22px;max-width:520px;}
 #solution .steps {grid-template-columns:1fr;gap:48px;}
 #solution .step {text-align:center;padding:0 0 28px;}
 #solution .step .step__photo {margin-bottom:22px;}
 #solution .step h3 {font-size:23px;}
 #solution .step p {font-size:15px;padding-inline:24px;text-align:left;}
 #solution .step:not(:last-child)::after {display:block;right:auto;left:50%;top:auto;bottom:-34px;transform:translateX(-50%) rotate(135deg);}
}

/* Larger illustrated benefit icons and hero-matched product visual. */
#merits .merit img { width:156px; height:156px; object-fit:contain; margin:0 auto 24px; }
#device .device__photo img { width:100%; aspect-ratio:11/9; object-fit:contain; background:#fff; }
@media(max-width:767px){
 #merits .merit {grid-template-columns:104px 1fr; column-gap:18px;}
 #merits .merit img {width:104px;height:104px;}
}

/* Mobile-only portrait hero; PC hero remains unchanged. */
.hero__sp-copy { display:none; }
@media(max-width:767px){
 .hero__stage--sp .hero__img {object-fit:fill;}
 .hero__sp-copy {
  display:block; position:absolute; inset:0; color:#111;
  font-family:var(--font); font-weight:700; pointer-events:none;
 }
 .hero__sp-copy p {margin:0; position:absolute; left:8%; white-space:nowrap;}
 .hero__sp-badge {
  top:4.3%; padding:1.1% 4.2%; border-radius:999px;
  background:#111; color:#FFD400;
  font-size:calc(28 / 750 * 100cqw); line-height:1.35;
 }
 .hero__sp-line {font-size:calc(48 / 750 * 100cqw); line-height:1.25;}
 .hero__sp-line--first {top:11.6%;}
 .hero__sp-line--strong {
  top:17.7%; font-size:calc(64 / 750 * 100cqw); line-height:1.15;
  background:linear-gradient(transparent 62%,#FFD400 62%);
 }
 .hero__sp-line--last {
  top:24.2%; font-size:calc(52 / 750 * 100cqw);
  background:linear-gradient(transparent 67%,#FFD400 67%);
 }
 .hero__sp-sub {
  top:31.2%; font-size:calc(28 / 750 * 100cqw);
  line-height:1.55; letter-spacing:.01em;
 }
}

/* Larger illustrated icons for the five basic apps. */
#features .basic {align-items:center;}
#features .basic img {flex:0 0 156px;width:156px;height:156px;object-fit:contain;}
@media(max-width:767px){
 #features .basic {grid-template-columns:104px 1fr;align-items:center;column-gap:18px;}
 #features .basic img {grid-row:1 / span 2;flex-basis:104px;width:104px;height:104px;}
}

/* Yellow footer background with the unchanged official header logo. */
.footer {background:var(--c-yellow);color:var(--c-black);}
.footer__logo {color:var(--c-black);}
.footer__logo .official-brand {filter:none;opacity:1;}

/* Wider photo composition, refined app symbols, and source-backed use cases. */
#device > .container {max-width:1600px;}
.diagram--photo {padding:40px;background:#f7f7f4;border:1px solid #e8e8e2;}
.diagram__flow {display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1.1fr) 40px minmax(0,1.35fr);gap:20px;align-items:center;}
.diagram__node {min-width:0;background:#fff;border-radius:20px;padding:22px;text-align:center;border:1px solid #e8e8e2;}
.diagram__label {display:block;font-size:20px;font-weight:700;line-height:1.5;margin-bottom:18px;}
.diagram__visual {width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;}
.diagram__product {width:100%;aspect-ratio:11/9;object-fit:contain;}
.diagram__brand {width:180px;height:auto;margin:8px auto 20px;}
.diagram__node p {font-size:14px;line-height:1.6;margin-top:16px;color:var(--c-sub);}
.diagram__arrow {font-size:36px;color:#aaa;text-align:center;}
.diagram__outputs {display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.diagram__outputs .diagram__node {padding:18px 14px;}
.diagram--photo figcaption {margin-top:28px;text-align:center;font-size:13px;color:var(--c-sub);}
#addons > .container {max-width:1440px;}
.addon {background:#fff;border:1px solid #e9e9e3;padding:30px 16px;border-radius:20px;box-shadow:0 6px 22px #11111105;}
.addon img {width:112px;height:112px;margin-bottom:20px;}
.addon h3 {font-size:16px;}
.case__details {margin-top:36px;border-top:1px solid #e6e6df;}
.case__detail {display:flex;gap:20px;padding:24px 0;border-bottom:1px solid #e6e6df;}
.case__detail:last-child {border-bottom:0;padding-bottom:0;}
.case__detail-num {flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--c-yellow);font-size:14px;font-weight:700;}
.case__detail h4 {font-size:19px;line-height:1.6;color:var(--c-black);}
.case__detail p {margin-top:8px;font-size:15px;line-height:1.9;color:var(--c-sub);}
#roi .table-wrap {border:1px solid #e8e8e1;border-radius:20px;overflow:hidden;box-shadow:0 10px 32px #11111106;}
.table--roi {font-size:15px;}
.table--roi thead th {background:#fff8d6;color:#111;font-weight:700;padding:22px 16px;border-bottom:1px solid #e8dfb7;}
.table--roi tbody th,.table--roi tbody td {padding:24px 16px;border-bottom:1px solid #eeeee8;}
.table--roi tbody tr:last-child th,.table--roi tbody tr:last-child td {border-bottom:0;}
.table--roi tbody tr:nth-child(even) {background:#fafaf8;}
.table--roi td:last-child {background:transparent;color:#111;font-weight:700;}
.table--roi tbody td:nth-last-child(2) {font-weight:700;}
.story--photo {position:relative;isolation:isolate;overflow:hidden;background:#fff8df url("../../images/hachinos/story/story-v2.webp") right center / auto 100% no-repeat;padding:72px 64px;}
.story--photo::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fffdf5 0%,#fffdf5f5 42%,#fffdf5a6 64%,#fffdf510 100%);}
.story--photo > * {max-width:58%;}
.story--photo .section__en,.story--photo .story__title {text-align:left;}
.story--photo .section__en::before {margin-left:0;}
.story--photo .story__title {font-size:30px;}
.story--photo > p:not(.section__en):not(.note) {font-size:16px;line-height:2;}
@media (min-width:768px) and (max-width:1199px) {
 .diagram__flow {grid-template-columns:1fr 30px 1fr;gap:14px;}
 .diagram__flow > .diagram__arrow:nth-of-type(2) {display:none;}
 .diagram__outputs {grid-column:1/-1;max-width:700px;width:100%;margin:10px auto 0;}
 #roi .table-wrap {overflow-x:auto;}
 .story--photo > * {max-width:68%;}
}
@media(max-width:767px) {
 #device > .container {padding-inline:22px;}
 .diagram--photo {padding:22px 16px;}
 .diagram__flow {display:flex;flex-direction:column;gap:18px;}
 .diagram__node {width:100%;padding:20px;}
 .diagram__label {font-size:19px;}
 .diagram__arrow {transform:rotate(90deg);line-height:1;}
 .diagram__outputs {width:100%;grid-template-columns:1fr;gap:18px;}
 .diagram__visual {max-height:240px;}
 .diagram__product {max-height:260px;}
 .addon img {width:88px;height:88px;}
 .addon {padding:24px 10px;}
 .addon h3 {font-size:14px;}
 .case__body {padding:30px 24px;}
 .case__detail {gap:12px;padding:22px 0;}
 .case__detail h4 {font-size:17px;}
 .case__detail p {font-size:14px;}
 #roi .table-wrap {border-radius:16px;box-shadow:none;}
 .table--roi tbody th,.table--roi tbody td {padding:12px 16px;}
 .story--photo {padding:245px 24px 36px;background-size:100% auto;background-position:center top;background-repeat:no-repeat;background-color:#fffdf5;}
 .story--photo::before {background:linear-gradient(180deg,transparent 0%,transparent 160px,#fffdf5 245px);}
 .story--photo > * {max-width:100%;}
 .story--photo .story__title {font-size:24px;}
 .story--photo > p:not(.section__en):not(.note) {font-size:15px;}
}

@media(max-width:767px){#roi .table-wrap{border:0;background:transparent;} .table--roi tbody tr{border:1px solid #e8e8e1;background:#fff;margin-top:16px;} .table--roi tbody th{background:#fff8d6;color:#111;border-bottom:1px solid #e8dfb7;} .table--roi tbody td:last-child{border-bottom:0;}}

/* Story spans the page; addon line weight and flat colors match platform icons. */
#flow > .story {width:calc(100% - 80px);max-width:1800px;margin-inline:auto;padding:80px 72px;}
@media(max-width:767px){#flow > .story{width:calc(100% - 44px);padding:245px 24px 36px;}}

} /* :where(.l-hachinos) */
