/* エンディレクション公式サイト 試作 v1（2026-10-28）
   色は会社の色の「青」（10/31 片山さん「青っぽい色でやりたい」）。変えるときは :root だけ直す */
:root {
  --main: #2366ad;       /* 青 */
  --main-dark: #1a4f88;
  --main-deep: #10325a;  /* 紺 */
  --accent: #e09a2b;     /* 山吹色 */
  --accent-soft: #fbdd9a;
  --cta: #e65a3a;        /* 申込み・相談のボタン */
  --cta-dark: #b2411f;
  --bg: #fbfaf7;         /* 生成り */
  --tint: #eaf2fb;       /* 薄い水色 */
  --sand: #f6efe2;       /* 薄い山吹 */
  --line: #dce5ef;
  --ink: #1c2633;
  --sub: #55606e;
  --white: #fff;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 16px;
  --shadow: 0 10px 30px rgba(16, 50, 90, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main-dark); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } .wrap { --gutter: 32px; } }

/* ---------- 上の帯 ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; }
.brand small { display: block; font-size: 10.5px; color: var(--sub); font-weight: 700; letter-spacing: .08em; line-height: 1.3; }
.gnav { display: none; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.gnav a { text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.gnav a:hover { color: var(--main); }
.gnav a[aria-current="page"] { color: var(--main); }
.head-cta { display: none; }
.menu-btn {
  width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sp-menu {
  display: none; position: fixed; inset: 64px 0 0 0; z-index: 49;
  background: var(--white); padding: 12px var(--gutter) 40px; overflow-y: auto;
}
.sp-menu.open { display: block; }
.sp-menu ul { list-style: none; margin: 0 0 24px; padding: 0; }
.sp-menu li a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
@media (min-width: 960px) {
  .gnav { display: block; }
  .head-cta { display: inline-flex; }
  .menu-btn, .sp-menu { display: none !important; }
  .site-head .wrap { height: 76px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 28px; border-radius: 99px;
  font-size: 16.5px; font-weight: 800; letter-spacing: .04em; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--cta); color: var(--white); box-shadow: 0 6px 0 var(--cta-dark); }
.btn-cta:hover { box-shadow: 0 8px 0 var(--cta-dark); }
.btn-line { background: var(--white); color: var(--main-dark); border: 2px solid var(--main); }
.btn-line:hover { background: var(--tint); }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: 14px; box-shadow: 0 4px 0 var(--cta-dark); }
.btn .arrow { font-size: .9em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row .btn { flex: 1 1 240px; }
@media (min-width: 768px) { .btn-row .btn { flex: 0 0 auto; } }
.tel-link { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.4; }
.tel-link b { font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--main-dark); }
.tel-link small { font-size: 13px; color: var(--sub); }

/* ---------- 見出し ---------- */
.sec { padding: 72px 0; }
.sec-tint { background: var(--tint); }
.sec-sand { background: var(--sand); }
.sec-white { background: var(--white); }
@media (min-width: 768px) { .sec { padding: 112px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 800; color: var(--main); letter-spacing: .12em; margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.h2 { margin: 0 0 22px; font-size: 26px; line-height: 1.55; font-weight: 800; letter-spacing: .04em; }
.h2 em { font-style: normal; background: linear-gradient(transparent 64%, var(--accent-soft) 64%); padding: 0 2px; }
.sec-lead { color: var(--sub); font-size: 16px; margin: 0 0 40px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
@media (min-width: 768px) { .h2 { font-size: 34px; } .sec-lead { font-size: 17px; } }

/* ---------- 最初の画面（10/31 案A：明るい背景＋代表の写真） ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); color: var(--ink); overflow: hidden; }
/* スマホは「小さな一文→大見出し→代表の写真→説明文」の順（10/31 片山さん） */
.hero-grid { display: flex; flex-direction: column; padding-top: 28px; padding-bottom: 52px; }
.hero-inner { display: contents; }
.hero-kicker { order: 1; align-self: flex-start; }
.hero h1 { order: 2; }
.hero-photo { order: 3; margin: 0 0 24px; }
.hero-lead { order: 4; }
.hero .btn-row { order: 5; }
.hero-points { order: 6; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 28%; border-radius: 16px; }
.hero-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--main-dark); background: var(--white); border: 1px solid #bcd0e8; border-radius: 99px; padding: 4px 14px; margin: 0 0 18px; }
.hero h1 { margin: 0 0 20px; font-size: 31px; line-height: 1.5; font-weight: 800; letter-spacing: .05em; color: var(--main-deep); }
.hero h1 .ac { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 2px; }
.hero-lead { font-size: 15.5px; line-height: 2; margin: 0 0 30px; color: var(--sub); max-width: 34em; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-points li { font-size: 12.5px; line-height: 1.6; color: var(--sub); }
.hero-points b { display: block; font-size: 15px; color: var(--main-dark); letter-spacing: .04em; }
@media (min-width: 768px) {
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 88px; }
  .hero-inner { display: block; }
  .hero-photo { order: 0; margin: 0; }
  .hero-photo img { aspect-ratio: 4 / 5; border-radius: 20px; object-position: 78% 30%; }
  .hero-kicker { font-size: 13px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 16.5px; }
  .hero-points { gap: 20px; }
  .hero-points li { font-size: 13.5px; }
  .hero-points b { font-size: 17px; }
}
@media (min-width: 1100px) { .hero h1 { font-size: 46px; } .hero-grid { gap: 64px; } }

/* ---------- 3つの場面 ---------- */
.steps3 { display: grid; gap: 18px; counter-reset: s3; }
.step3 {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px 26px;
  border: 1px solid var(--line);
}
.step3-num { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; color: var(--main); font-weight: 800; }
.step3-num span { font-size: 40px; line-height: 1; letter-spacing: 0; color: var(--accent); font-family: Georgia, "Times New Roman", serif; }
.step3 h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: .06em; }
.step3 p { margin: 0 0 16px; color: var(--sub); font-size: 15.5px; }
.step3 .to { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--main-dark); background: var(--tint); border-radius: 99px; padding: 5px 14px; }
@media (min-width: 900px) {
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step3 { border-radius: 0; border-right: 0; padding: 36px 32px; }
  .step3:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .step3:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--line); }
  .step3:not(:last-child)::after {
    content: ""; position: absolute; right: -13px; top: 50%; z-index: 2; width: 24px; height: 24px; margin-top: -12px;
    background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
  }
}
.steps3-note { margin: 32px auto 0; max-width: 720px; text-align: center; font-size: 16px; }

/* ---------- サービス ---------- */
.svc-list { display: grid; gap: 28px; }
.svc {
  display: grid; background: var(--white); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.svc-photo { position: relative; aspect-ratio: 16 / 10; background: var(--tint); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-tag { position: absolute; left: 16px; top: 16px; background: var(--white); color: var(--main-dark); font-size: 13px; font-weight: 800; border-radius: 99px; padding: 4px 14px; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.svc-body { padding: 28px 24px 30px; display: flex; flex-direction: column; }
.svc-name { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: .05em; }
.svc-sub { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--main); }
.svc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 18px; padding: 14px 16px; background: var(--sand); border-radius: 10px; }
.svc-price .p0 { font-size: 13.5px; font-weight: 800; }
.svc-price .pm { font-size: 14px; font-weight: 800; }
.svc-price .pm b { font-size: 28px; color: var(--cta-dark); letter-spacing: .01em; margin: 0 2px; }
.svc-price .tax { font-size: 12px; color: var(--sub); }
.svc-price .ask { font-size: 15px; font-weight: 800; color: var(--main-dark); }
.svc-body > p { color: var(--sub); font-size: 15.5px; }
.svc-checks { list-style: none; margin: 0 0 22px; padding: 0; }
.svc-checks li { position: relative; padding-left: 28px; margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.svc-checks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 3px solid var(--main); border-bottom: 3px solid var(--main); transform: rotate(-45deg); }
.svc-body .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1.05fr 1fr; }
  .svc:nth-child(even) .svc-photo { order: 2; }
  .svc-photo { aspect-ratio: auto; min-height: 100%; }
  .svc-body { padding: 44px 48px; }
  .svc-name { font-size: 28px; }
}
.svc-more { margin: 44px 0 0; padding: 26px 24px; border: 1px dashed #b9cbe1; border-radius: var(--radius); background: rgba(255,255,255,.6); }
.svc-more h3 { margin: 0 0 8px; font-size: 17px; }
.svc-more ul { margin: 0; padding-left: 1.2em; color: var(--sub); }

/* ---------- 制作例（スマホ画面が流れる） ---------- */
.works-band { position: relative; overflow: hidden; padding: 10px 0 24px; }
.works-track { display: flex; gap: 22px; width: max-content; animation: worksFlow 90s linear infinite; }
.phone {
  flex: 0 0 auto; width: 168px; border-radius: 24px; padding: 8px; background: #1c2633;
  box-shadow: 0 12px 26px rgba(16,50,90,.18);
}
.phone img { border-radius: 17px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; width: 100%; }
.phone figcaption { color: #fff; font-size: 11.5px; text-align: center; padding: 6px 0 2px; font-weight: 700; letter-spacing: .04em; }
@keyframes worksFlow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 768px) { .phone { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .works-track { animation: none; } .works-band { overflow-x: auto; } }
.works-note { font-size: 13px; color: var(--sub); margin: 8px 0 28px; }

/* ---------- 実績（10/29 オルタナNo.004の形：箱と上の色の線をやめ、大きな細い数字＋縦の細い線＋文） ---------- */
.results { display: grid; gap: 44px; margin-top: 8px; }
.result { padding: 4px 0 6px 24px; border-left: 1px solid #c9b48f; }
.result-no { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--accent); }
.result-label { font-size: 14px; font-weight: 700; color: var(--main-dark); margin: 0 0 4px; letter-spacing: .06em; }
.result-num { font-size: 18px; font-weight: 500; margin: 0 0 16px; line-height: 1.25; color: var(--main-deep); }
.result-num b { font-size: 60px; font-weight: 300; color: var(--main-deep); letter-spacing: 0; margin: 0 2px; font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", sans-serif; }
.result .result-text { margin: 0; color: var(--sub); font-size: 14.5px; line-height: 2; }
.results-note { font-size: 12.5px; color: var(--sub); margin: 48px 0 0; padding-top: 20px; border-top: 1px solid #e3d6bf; line-height: 1.9; }
@media (min-width: 900px) {
  .results { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .result { padding: 6px 36px 8px 36px; }
  .result:last-child { border-right: 1px solid #c9b48f; }
  .result-num b { font-size: 68px; }
}

/* ---------- 代表から ---------- */
.message { display: grid; gap: 34px; align-items: center; }
.message-photo { position: relative; max-width: 380px; margin: 0 auto; }
.message-photo img { border-radius: 20px; position: relative; z-index: 1; }
.message-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 20px; background: var(--accent-soft); }
.message-quote { font-size: 23px; font-weight: 800; line-height: 1.7; margin: 0 0 24px; letter-spacing: .05em; color: var(--main-deep); }
.message-sign { font-weight: 800; margin-top: 20px; }
.message-sign small { display: block; font-size: 13px; color: var(--sub); font-weight: 700; }
@media (min-width: 900px) {
  .message { grid-template-columns: 380px 1fr; gap: 72px; }
  .message-quote { font-size: 28px; }
}

/* ---------- 流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: flow; }
.flow li { counter-increment: flow; background: var(--white); border-radius: var(--radius); padding: 22px 22px 22px 76px; position: relative; border: 1px solid var(--line); }
.flow li::before {
  content: counter(flow); position: absolute; left: 20px; top: 22px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--main); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px;
}
.flow h3 { margin: 0 0 4px; font-size: 18px; }
.flow p { margin: 0; color: var(--sub); font-size: 15px; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .flow li { padding: 74px 22px 26px; }
  .flow li::before { left: 22px; top: 22px; }
}
.flow-note { text-align: center; margin: 26px 0 0; font-weight: 700; }

/* ---------- よくあるご質問 ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 12px; margin: 0 0 12px; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 60px; position: relative; font-weight: 800; font-size: 16.5px; line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "問"; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--main); color: #fff; font-size: 14px; display: grid; place-items: center; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 28px; width: 10px; height: 10px; border-right: 2.5px solid var(--main); border-bottom: 2.5px solid var(--main); transform: rotate(45deg); transition: .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq .ans { padding: 0 24px 22px 60px; position: relative; color: var(--sub); font-size: 15.5px; }
.faq .ans::before { content: "答"; position: absolute; left: 18px; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; display: grid; place-items: center; font-weight: 800; }
.faq .ans p:last-child { margin: 0; }

/* ---------- 相談の案内 ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; padding: 44px 24px; text-align: center; color: var(--white);
  background: radial-gradient(circle at 85% 15%, rgba(224,154,43,.35), transparent 40%), linear-gradient(135deg, var(--main-dark), var(--main-deep));
}
.cta-box h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.6; letter-spacing: .05em; }
.cta-box p { margin: 0 auto 28px; max-width: 36em; color: rgba(255,255,255,.9); }
.cta-box .btn-row { justify-content: center; }
.cta-box .tel-link { color: #fff; margin-top: 8px; }
.cta-box .tel-link b { color: #fff; }
.cta-box .tel-link small { color: rgba(255,255,255,.8); }
.cta-note { font-size: 13px; color: rgba(255,255,255,.8); margin: 18px auto 0 !important; }
@media (min-width: 768px) { .cta-box { padding: 64px 48px; } .cta-box h2 { font-size: 32px; } }

/* ---------- 下の帯 ---------- */
.site-foot { background: #121c29; color: rgba(255,255,255,.82); padding: 56px 0 120px; font-size: 14px; line-height: 1.9; }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #fff; }
.foot-brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.foot-brand b { font-size: 16px; letter-spacing: .05em; }
.site-foot h3 { color: #fff; font-size: 14px; margin: 0 0 10px; letter-spacing: .08em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: rgba(255,255,255,.6); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-foot { padding-bottom: 56px; } }

/* ---------- スマホの下の固定ボタン・上に戻る ---------- */
.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s;
}
.fixed-cta.show { transform: none; }
.fixed-cta a { flex: 1; min-height: 50px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; font-size: 15px; }
.fixed-cta .f-tel { background: var(--white); color: var(--main-dark); border: 2px solid var(--main); flex: .8; }
.fixed-cta .f-form { background: var(--cta); color: #fff; }
@media (min-width: 960px) { .fixed-cta { display: none; } }
.to-top {
  position: fixed; right: 14px; bottom: 86px; z-index: 41; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--main-dark); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.1; box-shadow: 0 6px 16px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top::before { content: ""; display: block; width: 9px; height: 9px; margin: 2px auto 3px; border-left: 2.5px solid #fff; border-top: 2.5px solid #fff; transform: rotate(45deg); }
@media (min-width: 960px) { .to-top { bottom: 28px; right: 28px; } }

/* ---------- 下層ページの見出し ---------- */
.page-head { position: relative; color: #fff; background: var(--main-deep); overflow: hidden; }
.page-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,50,90,.2), rgba(16,50,90,.75)); }
.page-head .wrap { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 54px; }
.page-head h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: .08em; }
.page-head p { margin: 0; color: rgba(255,255,255,.9); }
@media (min-width: 768px) { .page-head .wrap { padding-top: 150px; padding-bottom: 80px; } .page-head h1 { font-size: 42px; } }
.crumb { font-size: 12.5px; color: var(--sub); padding: 14px 0; }
.crumb a { color: var(--sub); }

/* ---------- 会社と代表 ---------- */
.origin { display: grid; gap: 32px; align-items: center; }
.origin-mark { width: 180px; margin: 0 auto; }
.origin-big { font-size: 30px; font-weight: 800; line-height: 1.6; margin: 0 0 22px; letter-spacing: .08em; color: var(--main-deep); }
.origin-big .ac { color: var(--accent); }
@media (min-width: 900px) { .origin { grid-template-columns: 260px 1fr; gap: 64px; } .origin-mark { width: 240px; } .origin-big { font-size: 38px; } }
.values { display: grid; gap: 18px; }
.value { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.value .value-num { font-family: Georgia, serif; font-size: 34px; color: var(--accent); line-height: 1; margin: 0 0 10px; }
.value h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: .05em; }
.value p { margin: 0; color: var(--sub); font-size: 15.5px; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.profile { display: grid; gap: 32px; }
.profile-photo img { border-radius: 20px; }
.profile-name { font-size: 28px; font-weight: 800; letter-spacing: .12em; margin: 0 0 4px; }
.profile-role { color: var(--main); font-weight: 800; margin: 0 0 22px; }
.timeline { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .6em; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--main); }
.timeline b { display: block; font-size: 16.5px; }
.timeline span { color: var(--sub); font-size: 15px; }
@media (min-width: 900px) { .profile { grid-template-columns: 400px 1fr; gap: 64px; align-items: start; } }
.letter { background: var(--white); border-radius: 20px; padding: 36px 24px; box-shadow: var(--shadow); }
.letter h2 { font-size: 24px; line-height: 1.7; margin: 0 0 24px; color: var(--main-deep); }
@media (min-width: 768px) { .letter { padding: 64px 72px; } .letter h2 { font-size: 30px; } }
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.info-table th { width: 30%; background: #f3f7fc; font-weight: 800; color: var(--main-dark); white-space: nowrap; }
.info-table ul { margin: 0; padding-left: 1.2em; }
@media (max-width: 600px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; padding-bottom: 6px; }
  .info-table td { padding-top: 6px; }
}

/* ---------- お問い合わせ ---------- */
.form-box { background: var(--white); border-radius: 20px; padding: 32px 22px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-box { padding: 52px 60px; } }
.field { margin: 0 0 24px; }
.field > label, .field > .label { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 8px; }
.req { font-size: 11.5px; background: var(--cta); color: #fff; border-radius: 4px; padding: 1px 7px; }
.opt { font-size: 11.5px; background: #e8edf4; color: var(--sub); border-radius: 4px; padding: 1px 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1.5px solid #cfdae7; border-radius: 10px; background: #fcfdfd;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 3px rgba(35,102,173,.15); }
.field textarea { min-height: 160px; resize: vertical; }
.checks { display: grid; gap: 10px; }
@media (min-width: 600px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #cfdae7; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 15px; }
.checks input { width: 20px; height: 20px; accent-color: var(--main); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.agree input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--main); }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { width: 100%; max-width: 420px; border: 0; cursor: pointer; font-family: inherit; }
.trial-note { background: var(--sand); border-radius: 10px; padding: 14px 18px; font-size: 14px; margin: 0 0 28px; }

/* ---------- ふわっと出る ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: none; }
.shot .fade { opacity: 1; transform: none; transition: none; }
.shot .works-track { animation: none; }
.shot .fixed-cta, .shot .to-top { display: none; }
.nw { white-space: nowrap; }

/* エンMAP（エンレビューの上位版）：エンレビューのすぐ下に、つながって見えるように（10/28） */
.svc-upper { margin-top: -10px; border: 2px solid var(--accent-soft); }
.svc-upper-label { display: inline-block; align-self: flex-start; margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #8a5a0c; background: var(--accent-soft); border-radius: 99px; padding: 3px 14px; }
.svc-price .tax { flex-basis: 100%; }
.svc-price .pm .tax { flex-basis: auto; }

/* ホームページ制作の段：スマホの画面3つ（10/29 直し）
   札（.svc-tag）の下に画面を置き、札と画面が重ならないようにする */
.svc-phones { background: linear-gradient(135deg, #dfeaf7, #f6efe2); display: flex; flex-direction: column; justify-content: center; padding: 64px 20px 28px; aspect-ratio: auto; }
.mini-phones { display: flex; justify-content: center; align-items: flex-start; gap: 12px; }
.mini-phone { margin: 0; flex: 0 1 31%; max-width: 150px; background: #1c2633; border-radius: 18px; padding: 5px; box-shadow: 0 10px 22px rgba(16,50,90,.18); }
.mini-phone:nth-child(2) { margin-top: -10px; }
.mini-phone:nth-child(1), .mini-phone:nth-child(3) { margin-top: 10px; }
.mini-phone img { width: 100%; height: auto; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; border-radius: 13px; }
@media (min-width: 900px) { .svc-phones { padding: 72px 32px 40px; } .mini-phones { gap: 16px; } }
/* スマホでは画面を2つにして大きく見せる（3つだと1つ80px台で小さすぎる） */
@media (max-width: 599px) {
  .mini-phone:nth-child(3) { display: none; }
  .mini-phone { flex-basis: 42%; max-width: 160px; }
  .mini-phone:nth-child(1) { margin-top: 12px; }
  .mini-phone:nth-child(2) { margin-top: -6px; }
}

/* ================================================================
   10/31 オルタナの分析をもとにした直し（1〜4）
   戻すときは、この下を消すか、保存版 v2_1031 の style.css に戻す
   ================================================================ */

/* 1. 3つの場面とご相談の流れ：箱をやめ、実績の段と同じ「番号＋細い縦の線」に */
.steps3 { gap: 40px; margin-top: 8px; }
.step3 { background: transparent; border: 0; border-left: 1px solid #bcd0e8; border-radius: 0; padding: 4px 0 6px 24px; }
.step3-num { margin: 0 0 14px; }
.step3-num span { font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--accent); }
.step3 h3 { font-size: 21px; font-weight: 700; color: var(--main-deep); }
.step3 .to { background: transparent; padding: 0; border-radius: 0; border-bottom: 1px solid currentColor; font-weight: 700; }
.step3 .to::after { content: "→"; }
@media (min-width: 900px) {
  .steps3 { gap: 0; }
  .step3, .step3:first-child, .step3:last-child { border-radius: 0; padding: 6px 32px 8px; }
  .step3:last-child { border-right: 1px solid #bcd0e8; }
  .step3:not(:last-child)::after { display: none; }
}
.flow { gap: 32px; margin-top: 8px; }
.flow li { background: transparent; border: 0; border-left: 1px solid #bcd0e8; border-radius: 0; padding: 4px 0 6px 24px; }
.flow li::before {
  content: "0" counter(flow); position: static; display: block; width: auto; height: auto; border-radius: 0;
  background: none; color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .2em; margin: 0 0 12px;
}
.flow h3 { font-size: 18px; color: var(--main-deep); }
@media (min-width: 768px) {
  .flow { gap: 0; }
  .flow li { padding: 6px 24px 8px; }
  .flow li:last-child { border-right: 1px solid #bcd0e8; }
}

/* 2. 見出しを少し細く、字の間を少し広く（太字をやめて、大きさで目立たせる） */
.h2 { font-weight: 500; letter-spacing: .07em; font-size: 27px; }
@media (min-width: 768px) { .h2 { font-size: 36px; } }
.hero h1 { font-weight: 700; }
.message-quote { font-weight: 500; letter-spacing: .07em; }
.cta-box h2 { font-weight: 500; letter-spacing: .07em; }

/* 3. 区切りのリズム：相談の案内の前に、横いっぱいの明るい写真を1枚 */
.photo-band { height: clamp(220px, 34vw, 460px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* 4. 代表の写真を大きく */
@media (min-width: 900px) {
  .message { grid-template-columns: 460px 1fr; gap: 80px; }
  .message-photo { max-width: 460px; }
}
