/* ==========================================================
   株式会社 D2 Labo ホームページ 共通スタイル
   色・書体は郵送用資料（D2Labo営業/郵送用資料）と揃えている。
   差し色は e.max ブロックの薄紫だけ。
   ========================================================== */
:root {
  --ink: #26282e;      /* ロゴの墨色 */
  --sub: #5d606b;      /* 補足の文字 */
  --rule: #c7c8d1;     /* 罫線 */
  --wash: #f0eef9;     /* 薄紫の地 */
  --lilac: #cbc5ec;    /* e.max ブロックの薄紫 */
  --violet: #463b8c;   /* 強調 */
  --paper: #ffffff;
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-feature-settings: "tnum"; letter-spacing: .02em; }
.sub { color: var(--sub); }
.note { font-size: 13px; line-height: 1.7; color: var(--sub); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--lilac); }
.nav a[aria-current="page"] { border-bottom-color: var(--violet); }
.nav .nav-cta {
  margin-left: 10px; background: var(--ink); color: #fff; border: 0;
  padding: 9px 18px;
}
.nav .nav-cta:hover { background: var(--violet); }
.nav .nav-cta[aria-current="page"] { color: #fff; background: var(--violet); }
.menu-btn {
  display: none; border: 1px solid var(--ink); background: none; color: var(--ink);
  font: 500 14px var(--gothic); padding: 6px 14px; cursor: pointer;
}

@media (max-width: 880px) {
  .site-head .wrap { height: 60px; }
  .brand img { height: 38px; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--violet); }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; padding: 12px; }
}

/* ---------- 見出し ---------- */
/* 明朝＋右へ伸びる細い罫（郵送用資料と同じ形） */
.h2 {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 32px); line-height: 1.4;
  font-feature-settings: "palt"; letter-spacing: .03em;
  margin-bottom: 28px;
}
.h2::after { content: ""; flex: 1; border-top: 1px solid var(--ink); transform: translateY(-.3em); min-width: 24px; }
.h2 small { font-family: var(--gothic); font-weight: 500; font-size: 14px; color: var(--sub); letter-spacing: 0; }
.h3 { font-family: var(--mincho); font-weight: 700; font-size: 21px; line-height: 1.5; font-feature-settings: "palt"; letter-spacing: .02em; }
.lead { font-size: 17px; line-height: 1.95; max-width: 40em; }

section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--rule); }
section.wash { background: var(--wash); border-top: 0; }
section.wash + section { border-top: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px;
  font: 700 15px/1.4 var(--gothic); text-decoration: none;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--violet); border-color: var(--violet); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 帳票の枠（技工指示書の記入欄を模したもの） ---------- */
.ledger {
  display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.ledger > div { padding: 12px 18px 14px; border-left: 1px solid var(--rule); font-weight: 700; font-size: 17px; line-height: 1.5; }
.ledger > div:first-child { border-left: 0; padding-left: 0; }
.ledger span { display: block; font-size: 12.5px; font-weight: 500; color: var(--sub); margin-bottom: 2px; }
@media (max-width: 720px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger > div { padding: 12px 14px; border-top: 1px solid var(--rule); }
  .ledger > div:nth-child(-n+2) { border-top: 0; }
  .ledger > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- トップ：ファーストビュー ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
/* いちばん目立たせる要素：縦書きの見出し */
.hero h1 {
  writing-mode: vertical-rl;
  font-family: var(--mincho); font-weight: 900;
  font-size: clamp(34px, 3.9vw, 50px); line-height: 1.5; letter-spacing: .08em;
  font-feature-settings: "vpal";
  margin: 0; justify-self: start;
}
.hero h1 .line2 { display: block; margin-top: 1.6em; }
.hero-photo { position: relative; min-height: 440px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; position: absolute; inset: 0; }
.hero-body { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; margin-top: 36px; }
.hero-body .tagline { font-family: var(--mincho); font-weight: 700; font-size: 15px; color: var(--violet); margin-bottom: 8px; letter-spacing: .04em; }
.hero .ledger { margin-top: 40px; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { writing-mode: horizontal-tb; font-size: clamp(30px, 8.4vw, 40px); line-height: 1.45; letter-spacing: .04em; font-feature-settings: "palt"; }
  .hero h1 .line2 { margin-top: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-body { grid-template-columns: 1fr; }
}

/* ---------- 実績 ---------- */
.record { --cols: 4; margin-top: 8px; }
.record > div { font-family: var(--mincho); font-weight: 900; font-size: clamp(26px, 3.4vw, 36px); color: var(--violet); }
.record > div small { font-size: 15px; font-weight: 700; margin-left: 4px; color: var(--ink); }
.record b { font-weight: 900; }

/* ---------- 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.reasons img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.reasons .h3 { margin-bottom: 10px; }
.reasons p { font-size: 15px; line-height: 1.9; }
.tag { display: inline-block; margin-top: 12px; padding: 2px 10px; background: var(--wash); color: var(--violet); font-weight: 700; font-size: 13.5px; }
section.wash .tag { background: var(--paper); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } .reasons img { aspect-ratio: 16 / 9; } }

/* ---------- 取り扱い品目（一覧） ---------- */
.items { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.items > li { padding: 18px 18px 22px; border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.items > li:nth-child(4n+1) { border-left: 0; padding-left: 0; }
.items img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; background: var(--wash); }
.items h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.items p { font-size: 14px; line-height: 1.75; color: var(--sub); }
@media (max-width: 900px) {
  .items { grid-template-columns: 1fr 1fr; }
  .items > li:nth-child(4n+1) { border-left: 1px solid var(--rule); padding-left: 18px; }
  .items > li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .items { grid-template-columns: 1fr; }
  .items > li, .items > li:nth-child(4n+1) { border-left: 0; padding-left: 0; padding-right: 0; }
}
.after-items { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }

/* ---------- お試し価格 ---------- */
.trial {
  background: var(--wash); border-left: 8px solid var(--lilac);
  padding: 24px 32px; display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px 40px; align-items: center;
}
section.wash .trial { background: var(--paper); }
.trial h3 { font-family: var(--mincho); font-weight: 700; font-size: 22px; line-height: 1.45; }
.trial .off { border-left: 1px solid var(--lilac); padding-left: 32px; }
.trial .off strong { display: block; font-family: var(--mincho); font-weight: 900; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; color: var(--violet); font-feature-settings: "palt"; white-space: nowrap; }
.trial .off strong small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.trial .off em { display: block; font-style: normal; font-weight: 700; font-size: 15px; margin-top: 4px; }
.trial .off span { display: block; font-size: 13.5px; color: var(--sub); }
@media (max-width: 760px) {
  .trial { grid-template-columns: 1fr; padding: 20px; }
  .trial .off { border-left: 0; border-top: 1px solid var(--lilac); padding: 16px 0 0; }
}

/* ---------- ご利用の流れ（順番があるので番号を振る） ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; counter-reset: step; margin-top: 40px; }
.flow li { position: relative; border-top: 2px solid var(--ink); padding-top: 14px; counter-increment: step; }
.flow li::before { content: counter(step); font-family: var(--mincho); font-weight: 900; font-size: 34px; line-height: 1; color: var(--violet); float: left; margin: 2px 12px 0 0; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -19px; top: -6px; width: 10px; height: 10px;
  border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg);
}
.flow h3 { font-size: 17px; font-weight: 700; line-height: 1.5; padding-top: 4px; }
.flow p { clear: both; font-size: 14.5px; line-height: 1.8; padding-top: 10px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 28px 28px; }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } .flow li::after { display: none; } }

/* ---------- アプリ ---------- */
.apps { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.app { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.app img { width: 96px; height: 96px; border-radius: 22px; border: 1px solid var(--rule); background: #fff; }
.app h3 { font-size: 20px; font-weight: 700; line-height: 1.5; }
.app .for { font-size: 13.5px; color: var(--sub); margin-bottom: 6px; }
.app p { font-size: 15px; line-height: 1.85; max-width: 38em; }
.app .btns { flex-direction: column; align-items: stretch; min-width: 200px; }
@media (max-width: 760px) {
  .app { grid-template-columns: 64px 1fr; }
  .app img { width: 64px; height: 64px; border-radius: 15px; }
  .app .btns { grid-column: 1 / -1; flex-direction: row; min-width: 0; margin-top: 8px; }
}

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); border-bottom: 2px solid var(--ink); }
.page-head h1 { font-family: var(--mincho); font-weight: 900; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.35; letter-spacing: .04em; font-feature-settings: "palt"; }
.page-head p { margin-top: 16px; max-width: 40em; font-size: 16.5px; }
.page-head + section { border-top: 0; }

/* ---------- 品目の詳細（技工サービス） ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.toc a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 4px 14px; border: 1px solid var(--rule); }
.toc a:hover { border-color: var(--violet); color: var(--violet); }
.product { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 48px; align-items: start; }
.product + .product { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--rule); }
.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product .h3 { font-size: 24px; margin-bottom: 4px; }
.product .en { font-size: 13.5px; color: var(--sub); margin-bottom: 14px; }
.product p + p { margin-top: 12px; }
.spec { margin-top: 20px; border-top: 1px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.spec dt { font-weight: 700; }
.product.app-detail { grid-template-columns: 200px 1fr; }
.product.app-detail > img { aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 44px; }
@media (max-width: 760px) {
  .product, .product.app-detail { grid-template-columns: 1fr; }
  .product.app-detail > img { width: 112px; border-radius: 26px; }
  .spec > div { grid-template-columns: 1fr; gap: 0; }
}
.bullets li { position: relative; padding-left: 1.1em; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; background: var(--lilac); }

/* 表 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table thead th { border-bottom: 2px solid var(--ink); font-size: 13.5px; color: var(--sub); font-weight: 500; }
.table tbody th { font-weight: 700; width: 62%; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- データ送信 ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.ways > div { padding: 24px 24px 26px; border-left: 1px solid var(--rule); }
.ways > div:first-child { border-left: 0; }
.ways h3 { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.ways p { font-size: 15px; line-height: 1.8; }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
  .ways > div { border-left: 0; border-top: 1px solid var(--rule); }
  .ways > div:first-child { border-top: 0; }
}
.labno { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border: 1px solid var(--ink); border-top: 0; padding: 12px 24px; }
.labno b { font-family: var(--mincho); font-weight: 900; font-size: 22px; letter-spacing: .08em; color: var(--violet); }
.steps { counter-reset: s; margin-top: 16px; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border: 1.5px solid var(--violet); color: var(--violet); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps code, .copy { font-family: var(--gothic); font-weight: 700; background: var(--wash); padding: 1px 8px; }
.box { border: 1px solid var(--rule); padding: 24px 28px; }
.box + .box { margin-top: 24px; }

/* ---------- よくあるご質問 ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.faq dt { font-weight: 700; font-size: 16px; line-height: 1.6; padding-left: 1.6em; text-indent: -1.6em; }
.faq dt::before { content: "Q"; font-family: var(--mincho); font-weight: 900; color: var(--violet); margin-right: .6em; }
.faq dd { margin-top: 6px; font-size: 15px; line-height: 1.85; padding-left: 1.6em; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---------- 会社概要 ---------- */
.greeting { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 56px; align-items: start; }
.greeting .body { font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 2.1; }
.greeting .body p + p { margin-top: 1em; }
.greeting .sign { margin-top: 24px; text-align: right; font-family: var(--mincho); line-height: 1.8; }
.greeting .sign b { font-size: 22px; letter-spacing: .14em; margin-left: 8px; }
.greeting img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 860px) { .greeting { grid-template-columns: 1fr; } }
.map { width: 100%; height: 340px; border: 0; margin-top: 24px; }
.equip { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.equip li { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.equip li b { font-weight: 700; }
.equip li span { color: var(--sub); }
@media (max-width: 760px) { .equip { grid-template-columns: 1fr; } .equip li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- お問い合わせフォーム ---------- */
.form { display: grid; gap: 22px; max-width: 720px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: #fff; background: var(--violet); padding: 0 6px; line-height: 1.7; vertical-align: 1px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: 16px/1.6 var(--gothic); color: var(--ink);
  padding: 11px 14px; border: 1px solid #9a9cab; background: #fff; border-radius: 0;
}
.field textarea { min-height: 180px; resize: vertical; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radios label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.field .hint { font-size: 13.5px; color: var(--sub); margin-top: 4px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 16px 20px; font-size: 15px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--wash); border-left: 6px solid var(--violet); }
.form-msg.ng { background: #fbeeee; border-left: 6px solid #a23b3b; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- お問い合わせの帯 ---------- */
.contact-band { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.contact-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px 56px; align-items: center; }
.contact-band h2 { font-family: var(--mincho); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.5; letter-spacing: .03em; }
.contact-band p { margin-top: 8px; color: #d5d6de; font-size: 15px; }
.contact-band .tel { display: block; font-family: var(--mincho); font-weight: 900; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: .04em; text-decoration: none; color: #fff; }
.contact-band .hours { font-size: 13.5px; color: #c9cad3; margin-top: 4px; }
.contact-band .btn { background: #fff; color: var(--ink); border-color: #fff; margin-top: 16px; }
.contact-band .btn:hover { background: var(--lilac); border-color: var(--lilac); }
@media (max-width: 760px) { .contact-band .wrap { grid-template-columns: 1fr; } }

/* ---------- フッター ---------- */
.site-foot { padding: 48px 0 32px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 56px; align-items: start; }
.foot-grid img { height: 54px; width: auto; }
.foot-info { line-height: 1.9; }
.foot-info b { font-size: 15px; }
.foot-links li + li { margin-top: 4px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .label { font-size: 12.5px; color: var(--sub); margin-bottom: 4px; }
.copyright { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--sub); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.copyright a { color: var(--sub); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ==========================================================
   2版：旧サイトの構成を土台にした部品
   ========================================================== */
.hero-photo img { object-position: 50% 40%; }
.hero h1 { font-size: clamp(30px, 3.3vw, 44px); letter-spacing: .1em; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 1.2em; }
@media (max-width: 760px) { .hero h1 span + span { margin-top: 0; } }

/* ごあいさつ（トップ） */
.greet { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.greet img { width: 100%; aspect-ratio: 1035 / 962; object-fit: cover; }
.greet .body { font-family: var(--mincho); font-weight: 500; font-size: 17px; line-height: 2.1; }
.greet .body p + p { margin-top: 1em; }
.greet .sign { margin-top: 24px; font-family: var(--mincho); line-height: 1.8; font-size: 15px; }
.greet .sign b { display: block; font-size: 24px; letter-spacing: .14em; margin-top: 4px; }
@media (max-width: 860px) { .greet { grid-template-columns: 1fr; } .greet img { max-width: 420px; } }

/* 技工物（トップ） */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.svc a { display: grid; grid-template-columns: 5fr 6fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: center; }
.svc a:nth-child(-n+2) { border-top: 2px solid var(--ink); }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.svc h3 { font-family: var(--mincho); font-weight: 700; font-size: 22px; line-height: 1.45; }
.svc .en { font-size: 13px; color: var(--sub); letter-spacing: .04em; margin-bottom: 8px; }
.svc p { font-size: 14.5px; line-height: 1.8; }
.svc .more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; border-bottom: 1.5px solid var(--lilac); }
.svc a:hover .more { border-bottom-color: var(--violet); color: var(--violet); }
.svc a:hover h3 { color: var(--violet); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; } .svc a:nth-child(2) { border-top: 0; } }
@media (max-width: 520px) { .svc a { grid-template-columns: 1fr; gap: 14px; } }
.others-line { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; margin-top: 24px; }
.others-line p { font-size: 15px; }
.others-line b { margin-right: 12px; }

/* こだわり */
.kodawari { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.kodawari img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; }
.kodawari h3 { font-family: var(--mincho); font-weight: 700; font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.kodawari p { font-size: 14.5px; line-height: 1.85; }
@media (max-width: 960px) { .kodawari { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kodawari { grid-template-columns: 1fr; } .kodawari img { aspect-ratio: 3 / 2; } }

/* アプリ開発（トップ） */
.devband { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.devband .h2 { margin-bottom: 18px; }
.mini-apps li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.mini-apps li:first-child { border-top: 2px solid var(--ink); }
.mini-apps img { width: 64px; height: 64px; border-radius: 15px; border: 1px solid var(--rule); background: #fff; grid-row: span 2; }
.mini-apps b { font-size: 16.5px; }
.mini-apps span { font-size: 14px; color: var(--sub); line-height: 1.7; }
@media (max-width: 860px) { .devband { grid-template-columns: 1fr; } }

/* アクセス（トップ） */
.access { display: grid; grid-template-columns: 4fr 7fr; gap: 32px 56px; align-items: start; }
.access .map { margin-top: 0; height: 380px; }
@media (max-width: 860px) { .access { grid-template-columns: 1fr; } }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.links a { display: block; border: 1px solid var(--rule); }
.links a:hover { border-color: var(--violet); }
.links img { width: 100%; }
@media (max-width: 640px) { .links { grid-template-columns: 1fr; } }

/* 品目ページ */
.strip { width: 100%; margin: 0 0 40px; }
.strip img { width: 100%; height: auto; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.types > div { padding: 20px 24px 24px; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.types > div:first-child { border-left: 0; padding-left: 0; }
.types h3 { font-family: var(--mincho); font-weight: 700; font-size: 20px; line-height: 1.5; margin-bottom: 4px; }
.types .use { font-size: 13.5px; color: var(--violet); font-weight: 700; margin-bottom: 10px; }
.types p { font-size: 15px; line-height: 1.85; }
@media (max-width: 860px) {
  .types { grid-template-columns: 1fr; }
  .types > div { border-left: 0; padding-left: 0; padding-right: 0; }
}
.fig-guide { margin-top: 24px; border: 1px solid var(--rule); padding: 16px; background: #fff; }
.fig-guide + .fig-guide { margin-top: 12px; }
.fig-guide figcaption { font-size: 13.5px; color: var(--sub); margin-top: 8px; }
.side-fig { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 56px; align-items: start; }
.side-fig img { width: 100%; }
@media (max-width: 860px) { .side-fig { grid-template-columns: 1fr; } }

/* 導入設備（会社概要） */
.eq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.eq img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-bottom: 1px solid var(--rule); padding: 8px; margin-bottom: 12px; }
.eq .maker { font-size: 12.5px; color: var(--sub); }
.eq h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.eq p { font-size: 14px; line-height: 1.75; margin-top: 4px; }
@media (max-width: 900px) { .eq { grid-template-columns: 1fr 1fr; } }
.photos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.photos2 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 640px) { .photos2 { grid-template-columns: 1fr; } }

/* フッターの品目リンク */
.foot-cols { display: grid; grid-template-columns: repeat(2, auto); gap: 0 40px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.more-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--lilac); }
.more-link:hover { border-bottom-color: var(--violet); color: var(--violet); }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(22px, 7.2vw, 32px); letter-spacing: .04em; }
}

/* 3版：トップの写真。iPhone の Safari で高さが 0 になって消えないよう、写真を通常の配置にする */
.hero-grid { align-items: start; }
.hero-photo { min-height: 0; }
.hero-photo img { position: static; width: 100%; height: clamp(300px, 31vw, 440px); object-fit: cover; object-position: 50% 40%; }
.hero h1 { font-size: clamp(24px, 2.4vw, 33px); }
@media (max-width: 760px) {
  .hero-photo { aspect-ratio: auto; }
  .hero-photo img { height: auto; aspect-ratio: 3 / 2; }
  .hero h1 { font-size: clamp(22px, 7.2vw, 32px); }
}
