@charset "UTF-8";
/* =========================================================
   STUDIO NAGAYU トップ 融合案（現行 studio-nagayu × meo-dash風）
   base.css（meo-dash風の部品）の上に、現行案の見た目（白×紺・写真・リンゴの見出し・細い斜めの帯）を重ねる
   章の余白：上下 PC140／TB112／SP88、見出し→中身 56／44／32（az-ken.com 参考）
   ========================================================= */
:root { --bg: #fff; --tint: #f4f9ff; --script: "Allison", cursive; }
body { background: #fff; }
.hero, .issues, .service, .compare, .about, .reason, .flow, .works, .faq, .message, .news, .cta { background-color: #fff; }
.tint { background-color: var(--tint) !important; }
.wrap { z-index: auto; }

/* 細く淡い斜めの帯（現行案） */
.streak { position: absolute; z-index: -1; display: block; width: 64px; height: 280px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(160, 206, 246, .55)); transform: skewX(-28deg); pointer-events: none; }
.streak--h1 { left: 4%; top: 90px; }
.streak--h2 { left: 9%; top: 300px; width: 28px; height: 160px; opacity: .7; }
.streak--i1 { right: 6%; top: 40px; }
.streak--r1 { left: 3%; top: 60px; }

/* ---------- 見出し：リンゴの線画＋英字ラベル＋左寄せの日本語（現行案） ---------- */
.head { text-align: left; }
.head__pin { display: none; }
.label { font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--blue); line-height: 1.4; }
.head__title { margin-top: 12px; font-size: 38px; line-height: 1.45; }
.head__lead { margin-top: 18px; font-size: 17px; color: var(--text); }
.head--flush { margin-bottom: 0; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.head--row .head__lead { margin: 0 0 8px; max-width: 480px; font-size: 15.5px; }

/* ---------- ボタン ---------- */
.btn--line { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); box-shadow: none; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--lg { min-height: 68px; padding: 0 40px 0 48px; font-size: 19px; }

/* ---------- ヘッダー：今回は相談ボタンだけ ---------- */
@media (min-width: 1100px) and (max-width: 1399px) { .hbtn--blue { display: none; } }

/* ---------- FV：写真＋左に文字＋メダル（100vh） ---------- */
.hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--hh) + 56px) 0 40px; overflow: hidden; }
.hero__photo { position: absolute; z-index: -2; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 80%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0, #fff 26%, rgba(255,255,255,.9) 38%, rgba(255,255,255,0) 60%); }
.hero__grid { display: flex; flex: 1; align-items: center; }
.hero__body { max-width: 640px; }
.hero__title { font-size: clamp(44px, 4vw, 60px); }
.medals { margin-top: 30px; }
.medal { width: 108px; height: 108px; }
.hero__btns { margin-top: 48px; }
.newsbar { margin-top: 40px; border: 1px solid #e3edf8; }

/* ---------- 課題 ---------- */
.issue { padding: 32px 30px 34px; }
.issue__img, .issue__img img { height: 140px; }
.issue__img { place-items: center start; }
.issue__title { margin-top: 20px; }
@media (max-width: 1099px) { .issue__img, .issue__img img { height: 110px; } }
@media (max-width: 767px) { .issue__img, .issue__img img { height: 84px; } .issue__img { place-items: center; } }

/* ---------- サービス ---------- */
.svc__body .btn { align-self: flex-start; }

/* ---------- 私たちについて（現行の縦並び） ---------- */
.about__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: end; }
.about__text p { font-size: 16.5px; line-height: 2; color: var(--text); }
.about__text .btn { margin-top: 28px; }
.about__photo { position: relative; margin-top: 64px; aspect-ratio: auto; height: clamp(360px, 34vw, 520px); border-radius: 28px; }
.about__photo img { object-position: 50% 45%; }
.about__script { position: absolute; left: 6%; top: 12%; transform: rotate(-12deg); font-family: var(--script); color: #fff; font-size: clamp(44px, 4vw, 62px); line-height: .8; text-shadow: 0 2px 12px rgba(30, 90, 170, .35); }
.about__caption { position: absolute; right: 0; bottom: 0; padding: 26px 64px 26px 40px; background: #fff; border-top-left-radius: 24px; color: var(--navy); font-weight: 700; font-size: 18px; line-height: 1.8; letter-spacing: .08em; }

/* ---------- 比較 ---------- */
.compare__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
.compare__phone img { mix-blend-mode: multiply; }
.tag { left: -3%; box-shadow: 0 4px 10px rgba(20, 70, 140, .18); }
.tag--ad { top: 17.5%; } .tag--map { top: 31.5%; } .tag--hp { top: 79%; }
.cmp { border-width: 1px; }

/* ---------- 選ばれる理由（線画アイコン＋番号） ---------- */
.rsn { padding: 48px 24px 30px; }
.rsn__icon { display: block; width: 112px; height: 112px; margin: 0 auto 14px; }
.rsn__text { text-align: center; }

/* ---------- 5ステップ ---------- */
.flow__list { gap: 28px; }
.step { padding: 0; background: none; box-shadow: none; text-align: center; }
.step + .step::before { left: -28px; top: 37px; width: 28px; }
.step__no { position: static; transform: none; display: grid; place-items: center; align-content: center; width: 74px; height: 74px; margin: 0 auto; font-size: 22px; line-height: 1; box-shadow: 0 8px 18px rgba(21, 101, 216, .3); }
.step__no small { display: block; font-size: 10px; letter-spacing: .1em; margin-bottom: 3px; }
.step__card { margin-top: 18px; padding: 26px 14px 24px; }
.step__icon { display: block; width: 84px; height: 84px; margin: 0 auto; }
.step__title { margin-top: 10px; }

/* ---------- 実績 ---------- */
.work { grid-template-columns: 420px minmax(0, 1fr); }

/* ---------- 代表メッセージ（現行案） ---------- */
.message { overflow: hidden; padding-top: 0; padding-bottom: 0; margin: var(--sec) 0; }
.message__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 520px; }
.message__photo { align-self: stretch; position: relative; }
.message__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.message__body { position: relative; padding: 64px max(var(--pad), calc((100vw - var(--wrap)) / 2)) 64px 48px; }
.message__catch { margin-top: 14px; color: var(--navy); font-weight: 900; font-size: 32px; line-height: 1.55; }
.message__text { margin-top: 22px; font-size: 16px; line-height: 2; }
.message__sign { margin-top: 24px; font-weight: 700; color: var(--navy); }
.message__script { position: absolute; right: max(var(--pad), calc((100vw - var(--wrap)) / 2)); bottom: 24px; transform: rotate(-12deg); font-family: var(--script); color: var(--blue); font-size: 46px; line-height: .8; }
.apple-branch { position: absolute; z-index: 1; right: 2%; top: -10px; width: 280px; transform: rotate(-6deg); pointer-events: none; }

/* ---------- お知らせ ---------- */
.news__grid { grid-template-columns: 240px minmax(0, 1fr); }
.news .head { margin-bottom: 0; }
.circle-arrow svg { width: 16px; height: 16px; }

/* ---------- 相談 ---------- */
.cta { padding: 0 0 160px; background: #fff; }
.cta__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 48px 48px 48px 64px; border: 1px solid #e3edf8; }
.cta__title { font-size: 32px; }
.cta__btns { margin-top: 36px; }
.cta__photo { aspect-ratio: 16 / 10; }

/* ---------- フッター（白地・上端にこぎん刺しの帯） ---------- */
.footer { padding: 0 0 28px; background: #fff; color: var(--navy); border-top: 1px solid #edf2f8; }
.footer::before { margin-bottom: 44px; }
.footer__top { display: flex; align-items: center; gap: 40px; }
.footer__tag { margin-top: 6px; font-weight: 500; font-size: 13px; color: #6a7385; }
.footer__nav { margin-left: auto; padding: 0; border: 0; }
.footer__nav ul { display: flex; gap: 28px; grid-template-columns: none; }
.footer__nav a { padding: 0; font-weight: 700; font-size: 14px; }
.footer__nav a::before { content: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #edf2f8; font-size: 13px; color: #6a7385; }
.footer__copy { margin: 0; text-align: left; font-family: var(--en); }
.footer__legal { display: flex; gap: 24px; }
.totop { top: auto; bottom: 90px; right: 24px; background: var(--navy); color: #fff; }

/* =========================================================
   タブレット（768〜1099px）
   ========================================================= */
@media (max-width: 1099px) {
  .head__title { font-size: 32px; }
  .hero { padding-top: calc(var(--hh) + 40px); }
  .hero__photo::after { background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.92) 45%, rgba(255,255,255,.2) 80%); }
  .hero__photo img { object-position: 78% 80%; }
  .about__top { grid-template-columns: 1fr; gap: 24px; }
  .about__photo { margin-top: 44px; height: 340px; }
  .reason__list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .flow__list { gap: 14px; }
  .step + .step::before { left: -14px; width: 14px; }
  .step__no { width: 60px; height: 60px; font-size: 18px; }
  .step + .step::before { top: 30px; }
  .step__icon { width: 60px; height: 60px; }
  .step__card { padding: 18px 8px; }
  .work { grid-template-columns: 300px minmax(0, 1fr); }
  .message__grid { grid-template-columns: 1fr; }
  .message__photo { height: 420px; }
  .message__photo img { -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
  .message__body { padding: 24px var(--pad) 72px; }
  .apple-branch { width: 190px; top: auto; bottom: -10px; }
  .news__grid { grid-template-columns: 1fr; }
  .cta { padding-bottom: 128px; }
  .cta__panel { grid-template-columns: 1fr 1fr; padding: 40px; }
  .cta__title { font-size: 26px; }
  .head--row { display: block; }
  .head--row .head__lead { margin-top: 14px; }
  .footer__top { flex-wrap: wrap; }
  .footer__nav { order: 3; width: 100%; margin-left: 0; }
  .footer__nav ul { flex-wrap: wrap; gap: 12px 24px; }
  .footer__contact { margin-left: auto; }
}

/* =========================================================
   SP（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  .head__title { font-size: 25px; margin-top: 8px; }
  .label { font-size: 13px; }
  .head__lead { font-size: 15.5px; }
  .hero { padding-top: calc(var(--hh) + 28px); padding-bottom: 24px; }
  .hero__photo { inset: auto 0 0; top: auto; height: 46%; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); }
  .hero__photo::after { display: none; }
  .hero__photo img { object-position: 60% 80%; }
  .hero__grid { display: block; flex: 0; }
  .hero__body { display: block; }
  .hero__title { font-size: min(31px, calc(31 * 100vw / 390)); }
  .medals { justify-content: flex-start; }
  .hero__btns { flex-direction: column; margin-top: 28px; }
  .hero__btns .btn { width: 100%; }
  .hero .newsbar { margin-top: auto; }
  .hero > .wrap:last-child { margin-top: 52vw; }
  .issue__title { font-size: 16.5px; }
  .about__photo { height: 240px; border-radius: 20px; }
  .about__caption { padding: 14px 22px; font-size: 14px; border-top-left-radius: 16px; }
  .about__script { font-size: 36px; }
  .compare__grid { grid-template-columns: 1fr; }
  .compare__phone { width: 200px; margin: 0 auto; }
  .rsn__icon { width: 88px; height: 88px; }
  .reason__list { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 28px var(--pad) 12px; scrollbar-width: none; }
  .reason__list::-webkit-scrollbar { display: none; }
  .rsn { flex: none; width: 78%; scroll-snap-align: center; }
  .flow__list { grid-template-columns: 1fr; gap: 18px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; text-align: left; }
  .step + .step::before { left: 27px; top: -18px; width: 0; height: 16px; border-top: 0; border-left: 3px dotted #9cc6f2; }
  .step__no { width: 56px; height: 56px; font-size: 17px; }
  .step__card { margin: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 16px; text-align: left; }
  .step__icon { grid-row: 1 / 3; width: 52px; height: 52px; }
  .step__title { margin: 0; font-size: 16px; }
  .step__text { margin: 0; font-size: 14px; }
  .work { grid-template-columns: 1fr; }
  .message__photo { height: 300px; }
  .message__catch { font-size: 23px; }
  .message__text { font-size: 15.5px; }
  .message__script { font-size: 34px; bottom: 28px; }
  .apple-branch { width: 130px; right: 0; bottom: -6px; }
  .cta { padding-bottom: 100px; }
  .cta__panel { grid-template-columns: 1fr; padding: 28px 20px 20px; }
  .cta__title { font-size: 22px; }
  .cta__btns .btn { width: 100%; }
  .footer__top { justify-content: center; text-align: center; }
  .footer__brand { width: 100%; }
  .footer__nav ul { justify-content: center; }
  .footer__contact { margin: 0 auto; }
  .footer__bottom { flex-direction: column-reverse; gap: 10px; }
  .totop { bottom: 120px; right: 14px; }
}

/* ===== 調整（1回目） ===== */
/* FVは縦並び（flex）なので、中の .wrap が中身の幅に縮まないように */
.hero > .wrap { width: 100%; }
/* 現行サイトの「課題の小見出しは中央」の指定を打ち消す */
.issues .label, .label--center { justify-content: flex-start; }
/* 相談パネルの上にも章の余白 */
.cta { padding-top: var(--sec); }
.message__photo img { object-position: 50% 18%; }
.sub__name { word-break: keep-all; overflow-wrap: normal; }
@media (max-width: 1099px) {
  .apple-branch { top: 12px; bottom: auto; right: 2%; }
}
@media (max-width: 767px) {
  /* 課題：アイコンを上、文字を全幅に */
  .issue { display: block; padding: 22px 20px 24px; }
  .issue__img, .issue__img img { height: 72px; }
  .issue__img { display: block; }
  .issue__img img { width: auto; }
  .issue__title { margin-top: 12px; font-size: 17px; }
  .num { display: inline; margin-right: 8px; }
  /* 5ステップ：カードの中は 左アイコン・右に文字 */
  .step__icon { grid-column: 1; grid-row: 1 / 3; }
  .step__title, .step__text { grid-column: 2; }
  .step__title { align-self: end; }
  .step__text { align-self: start; }
  .apple-branch { width: 120px; top: 8px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .compare__grid { grid-template-columns: 1fr; gap: 36px; }
  .compare__phone { width: 240px; margin: 0 auto; }
}
/* 背の低いPC画面（〜880px）でもFVが1画面に収まるように */
@media (min-width: 1100px) and (max-height: 880px) {
  .hero { padding-top: calc(var(--hh) + 24px); padding-bottom: 24px; }
  .hero__title { font-size: clamp(40px, 6.2vh, 54px); margin-top: 10px; }
  .hero__lead { margin-top: 14px; }
  .medals { margin-top: 20px; }
  .medal { width: 92px; height: 92px; }
  .hero__btns { margin-top: 36px; }
  .newsbar { margin-top: 20px; padding: 12px 28px; }
}

/* =========================================================
   カンプに寄せる調整（2026-11-29）
   ========================================================= */
.label { font-size: 15px; }
.label::before { width: 1.9em; height: 1.9em; }
.head__title { font-size: 40px; }
@media (max-width: 1099px) { .head__title { font-size: 32px; } }
@media (max-width: 767px) { .head__title { font-size: 25px; } .label { font-size: 13px; } }
/* 小見出し（メインサービス等）は線なしの太字 */
.subhead { padding-left: 0; font-size: 21px; }
.subhead::before { content: none; }
/* 課題：イラストを大きく */
.issue__img, .issue__img img { height: 150px; }
.issue__img { place-items: center; }
@media (max-width: 1099px) { .issue__img, .issue__img img { height: 120px; } }
@media (max-width: 767px) { .issue__img, .issue__img img { height: 110px; } }
/* 私たちについて：見出しと本文の間に縦線、写真の右下は斜めの白い帯 */
@media (min-width: 1100px) { .about__text { padding-left: 56px; border-left: 1px solid var(--line); } }
.about__photo { height: clamp(300px, 26vw, 400px); }
.about__script { top: 14%; left: 5%; transform: rotate(-6deg); font-size: clamp(48px, 4.4vw, 68px); }
.about__caption { right: 24px; bottom: 24px; padding: 14px 40px 14px 48px; border-radius: 0; clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%); font-size: 20px; letter-spacing: .1em; box-shadow: none; }
@media (max-width: 767px) { .about__caption { right: 12px; bottom: 12px; padding: 8px 22px 8px 26px; font-size: 14px; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); } }
/* 比較：ラベルは白地に青い枠、線でスマホを指す */
@media (min-width: 768px) {
  .compare__grid { grid-template-columns: 420px minmax(0, 1fr); gap: 48px; }
  .compare__phone { width: 270px; margin-left: auto; }
  .tag { left: auto; right: calc(100% + 26px); padding: 6px 22px; background: #fff !important; color: var(--navy); border: 2px solid var(--blue); font-size: 15px; box-shadow: 0 4px 12px rgba(20, 70, 140, .1); white-space: nowrap; }
  .tag::after { content: ""; position: absolute; left: 100%; top: 50%; width: 58px; border-top: 2px solid var(--blue); transform-origin: left; }
  .tag::before { content: ""; position: absolute; left: calc(100% + 54px); top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); }
}
@media (min-width: 768px) and (max-width: 1099px) { .compare__grid { grid-template-columns: 1fr; } .compare__phone { margin: 0 auto 0 calc(50% - 60px); width: 240px; } }
.cmp__icon { width: 84px; }
.cmp { border: 1px solid #dfe8f3; }
/* FAQ：見出しと説明の間に縦線、開閉は ∨ */
@media (min-width: 1100px) { .head--row { justify-content: flex-start; } .head--row .head__lead { padding-left: 32px; border-left: 1px solid var(--line); max-width: 640px; } }
.qa__pm::before { width: 10px; height: 10px; border-right: 2.4px solid var(--blue); border-bottom: 2.4px solid var(--blue); background: none; border-radius: 0; transform: translate(-50%, -70%) rotate(45deg); }
.qa__pm::after { content: none; }
.qa__q[aria-expanded="true"] .qa__pm::before { transform: translate(-50%, -30%) rotate(-135deg); }
/* 実績：会社名とボタンを1行に */
.work__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.work__foot .work__client { margin: 0; }
.work__body .work__foot .btn { margin-top: 0; }
/* お知らせ：見出しの右に縦線 */
@media (min-width: 1100px) { .news .head { padding-right: 32px; border-right: 1px solid var(--line); } }
/* 比較：新しいスマホ画像（compare-phone-f）の各枠の中央に合わせる */
@media (min-width: 768px) { .tag { transform: translateY(-50%); } .tag--ad { top: 28%; } .tag--map { top: 47.5%; } .tag--hp { top: 86.5%; } }
@media (max-width: 767px) { .compare__phone { width: 210px; } .tag { left: -8%; transform: translateY(-50%); } .tag--ad { top: 28%; } .tag--map { top: 47.5%; } .tag--hp { top: 86.5%; } }
/* フッター上端のこぎん刺しの帯：生成した模様の帯に */
/* 構成v2：りんご入りの帯（kogin.webp）をやめ、こぎん刺しの菱形だけの帯に */
.footer::before { height: 32px; background: var(--kogin-band) left center / 51.2px 32px repeat-x; opacity: .9; }
@media (max-width: 767px) { .footer::before { height: 24px; background-size: 38.4px 24px; } }

/* ===== PC：カンプの密度に合わせて、横幅と文字・アイコンを大きく（章の余白 140px は変えない） ===== */
@media (min-width: 1100px) {
  :root { --wrap: 1320px; }
  .hero__tag { font-size: clamp(17px, 1.35vw, 20px); }
  .hero__title { font-size: clamp(50px, 4.9vw, 72px); }
  .hero__lead { font-size: clamp(17px, 1.3vw, 19px); }
  .medal { width: clamp(110px, 8.8vw, 130px); height: clamp(110px, 8.8vw, 130px); }
  .medal span { font-size: clamp(15px, 1.2vw, 18px); }
  .medal::after { width: 86px; height: 56px; bottom: -28px; }
  .hero__btns .btn { min-height: 64px; font-size: 18px; padding: 0 34px 0 40px; }
  .newsbar { padding: 20px 36px; }
  .newsbar__item { font-size: 16px; }
  .label { font-size: 17px; }
  .head__title { font-size: clamp(42px, 3.5vw, 52px); }
  .head__lead { font-size: 18px; }
  .issue { padding: 28px 30px 34px; }
  .issue__img, .issue__img img { height: 190px; }
  .issue__title { font-size: 23px; }
  .issue__text { font-size: 17px; }
  .subhead { font-size: 24px; margin-bottom: 26px; }
  .svc__title { font-size: 24px; }
  .svc__text { font-size: 17px; }
  .svc__body { padding: 26px 30px 32px; }
  .sub__name { font-size: 16px; }
  .about__text p { font-size: 18px; }
  .compare__grid { grid-template-columns: 460px minmax(0, 1fr); }
  .compare__phone { width: 320px; }
  .tag { font-size: 17px; padding: 8px 26px; }
  .cmp { grid-template-columns: 130px minmax(0, 1fr); padding: 30px 36px 30px 28px; }
  .cmp__icon { width: 110px; }
  .cmp__title { font-size: 25px; }
  .cmp__text { font-size: 17px; }
  .rates li { font-size: 15.5px; padding: 6px 16px; }
  .rsn { padding: 56px 26px 36px; }
  .rsn__icon { width: 150px; height: 150px; }
  .rsn__title { font-size: 22px; }
  .rsn__text { font-size: 16.5px; }
  .step__no { width: 88px; height: 88px; font-size: 26px; }
  .step + .step::before { top: 44px; }
  .step__icon { width: 104px; height: 104px; }
  .step__title { font-size: 21px; }
  .step__text { font-size: 16px; }
  .work { grid-template-columns: 480px minmax(0, 1fr); }
  .work__title { font-size: 26px; }
  .chip { font-size: 15px; }
  .qa__q { padding: 24px 32px; }
  .qa__text { font-size: 20px; }
  .message__catch { font-size: clamp(32px, 2.8vw, 42px); }
  .message__text { font-size: 17.5px; }
  .nrow { padding: 26px 30px 26px 36px; }
  .nrow span, .nrow time { font-size: 17px; }
  .cta__title { font-size: clamp(30px, 2.7vw, 40px); }
}
/* 比較：ラベルが画面からはみ出さないよう、スマホの左に十分な幅を */
@media (min-width: 1100px) { .compare__grid { grid-template-columns: 520px minmax(0, 1fr); } .compare__phone { width: 300px; } }
@media (min-width: 1100px) and (max-width: 1279px) { .compare__grid { grid-template-columns: 480px minmax(0, 1fr); gap: 36px; } .compare__phone { width: 270px; } .tag { font-size: 15px; padding: 6px 18px; } }
/* 背の低いPC画面（〜940px）でもFVが1画面に（大きくした文字の後に書く） */
@media (min-width: 1100px) and (max-height: 940px) {
  .hero { padding-top: calc(var(--hh) + 20px); padding-bottom: 20px; }
  .hero__title { font-size: clamp(42px, 6.4vh, 64px); margin-top: 8px; }
  .hero__lead { margin-top: 12px; font-size: 17px; }
  .medals { margin-top: 18px; }
  .medal { width: clamp(92px, 12vh, 118px); height: clamp(92px, 12vh, 118px); }
  .medal span { font-size: 15px; }
  .medal::after { width: 70px; height: 46px; bottom: -22px; }
  .hero__btns { margin-top: 34px; }
  .hero__btns .btn { min-height: 58px; }
  .newsbar { margin-top: 18px; padding: 12px 30px; }
}
/* ===== SP：カンプどおり「文字→メダル→斜めの写真→ボタン→お知らせ」の順、課題は横長カード ===== */
@media (max-width: 767px) {
  .hero { padding-bottom: 28px; min-height: 0; }
  .hero__grid, .hero__body { display: contents; }
  .hero__tag, .hero__title, .hero__lead, .medals, .hero__btns { margin-left: var(--pad); margin-right: var(--pad); }
  .hero__tag { order: 1; } .hero__title { order: 2; } .hero__lead { order: 3; } .medals { order: 4; }
  .hero__photo { order: 5; position: relative; inset: auto; height: 68vw; margin-top: 30px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%); }
  .hero__photo img { object-position: 62% 70%; }
  .hero__btns { order: 6; margin-top: 20px; }
  .hero > .wrap:last-child { order: 7; margin-top: 20px; }
  .issue { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; }
  .issue__img { grid-row: 1 / 3; }
  .issue__img, .issue__img img { height: 80px; }
  .issue__img img { width: 96px; object-fit: contain; }
  .issue__title { margin-top: 0; font-size: 16px; line-height: 1.5; }
  .issue__text { margin-top: 4px; font-size: 14px; line-height: 1.7; }
  .num { display: block; }
}

/* =========================================================
   5ステップのデザイン（2026-11-29）
   STEPの丸を1本の線でつなぎ、カードは高さをそろえて矢印でつなぐ。最後の「改善」は青く、下にくり返しの一言
   ========================================================= */
.flow { overflow: hidden; }
.flow .kogin-wm--br { right: -120px; bottom: -120px; }
.flow__list { position: relative; align-items: stretch; }
.step + .step::before { content: none; }
.step { display: flex; flex-direction: column; }
.step__no { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--tint), 0 10px 20px rgba(21, 101, 216, .28); }
.step__card { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 30px 18px 28px; border-top: 4px solid var(--blue); border-radius: 18px; }
.step__ic { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; background: #eef6fd; }
.step__ic .step__icon { width: 76px; height: 76px; mix-blend-mode: multiply; }
.step__title { margin-top: 16px; }
.step__text { margin-top: 8px; line-height: 1.75; }
/* 最後の「改善」は青い面に白い文字 */
.step--last .step__card { background: linear-gradient(150deg, #2b8ef0, #1557c9); border-top-color: #0f3d9c; box-shadow: 0 14px 30px rgba(21, 87, 201, .3); }
.step--last .step__title, .step--last .step__text { color: #fff; }
.step--last .step__ic { background: #fff; }
.step--last .step__no { background: linear-gradient(135deg, #e9504b, #d42a37); box-shadow: 0 0 0 8px var(--tint), 0 10px 20px rgba(212, 42, 55, .3); }
/* 下の一言 */
.flow__note { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 48px auto 0; padding: 14px 30px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: 17px; box-shadow: var(--shadow); word-break: keep-all; }
.flow__note svg { width: 24px; height: 24px; color: var(--red-2); }

@media (min-width: 768px) {
  /* STEPの丸をつなぐ線 */
  .flow__list::before { content: ""; position: absolute; z-index: 0; left: 10%; right: 10%; top: calc(var(--no) / 2 - 2px); height: 4px; border-radius: 4px; background: linear-gradient(90deg, #9cc8f6, #1565d8 60%, #e9504b); }
  .flow__list { --no: 88px; }
  /* カードの間の矢印 */
  .step:not(:last-child) .step__card::after { content: ""; position: absolute; z-index: 1; right: -21px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--blue); border-right: 3px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
}
@media (min-width: 1100px) { .flow__list { gap: 32px; } .step__card { margin-top: 22px; } }
@media (min-width: 768px) and (max-width: 1099px) {
  .flow__list { --no: 60px; gap: 22px; }
  .step:not(:last-child) .step__card::after { right: -16px; width: 9px; height: 9px; border-width: 2.5px; }
  .step__card { padding: 20px 8px 20px; }
  .step__ic { width: 78px; height: 78px; } .step__ic .step__icon { width: 52px; height: 52px; }
  .flow__note { font-size: 15.5px; }
}
@media (max-width: 767px) {
  .flow__list { gap: 16px; }
  .flow__list::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #9cc8f6, #1565d8 60%, #e9504b); }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); }
  .step__card { flex-direction: row; align-items: center; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; border-top: 0; border-left: 4px solid var(--blue); border-radius: 14px; }
  .step--last .step__card { border-left-color: #0f3d9c; }
  .step__ic { grid-column: 1; grid-row: 1 / 3; width: 58px; height: 58px; }
  .step__ic .step__icon { width: 38px; height: 38px; }
  .step__title { grid-column: 2; margin: 0; align-self: end; }
  .step__text { grid-column: 2; margin: 2px 0 0; align-self: start; }
  .step__no { box-shadow: 0 0 0 5px var(--tint), 0 6px 14px rgba(21, 101, 216, .28); }
  .flow__note { margin-top: 32px; padding: 12px 20px; font-size: 15px; text-align: center; }
}
.step__no { left: auto; top: auto; transform: none; }
/* 比較：本物の縦横比のスマホ画像（compare-phone-g）に合わせたラベル位置 */
.tag--ad { top: 23.5%; } .tag--map { top: 42%; } .tag--hp { top: 86%; }
@media (max-width: 767px) { .cmp__icon { width: 56px; left: 18px; top: 18px; } .cmp__title { padding-left: 70px; min-height: 56px; } }

/* ===== FVのメダル：E 回る英字のサークル（2026-11-29 採用） ===== */
.medals { gap: 20px; }
.medal { width: 136px !important; height: 136px !important; }
.medal::before { inset: 0; border: 0; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpath id='c' d='M100 100 m-80 0 a80 80 0 1 1 160 0 a80 80 0 1 1 -160 0'/%3E%3C/defs%3E%3Ctext font-family='Helvetica, Arial, sans-serif' font-weight='700' font-size='15' letter-spacing='3.2' fill='%231565d8'%3E%3CtextPath href='%23c'%3ESTUDIO NAGAYU ・ AOMORI ・ STUDIO NAGAYU ・ AOMORI ・%3C/textPath%3E%3C/text%3E%3Ccircle cx='100' cy='100' r='92' fill='none' stroke='%231565d8' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain; box-shadow: none; animation: ringSpin 22s linear infinite; }
.medal::after { content: ""; position: absolute; inset: 30px; z-index: 0; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px rgba(21, 101, 216, .16); clip-path: none; transform: none; width: auto; height: auto; bottom: 30px; left: 30px; }
.medal span { inset: 30px; z-index: 1; font-size: 14px !important; color: var(--navy); }
.medal:nth-child(2)::before { animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .medal::before { animation: none; } }
@media (max-width: 767px) { .medals { gap: 8px; } .medal { width: 104px !important; height: 104px !important; } .medal::after, .medal span { inset: 23px; } .medal::after { bottom: 23px; left: 23px; } .medal span { font-size: 11.5px !important; } }

/* メダルの外周の英字は回さない（2026-11-29） */
.medal::before { animation: none !important; }

/* ===== FVのメダル：E-3 青いスタンプ（2026-11-29 採用・回さない） ===== */
.medals { gap: 20px; }
.medal { width: 136px !important; height: 136px !important; }
.medal::before { inset: 0; border: 0; border-radius: 50%; background: no-repeat center / contain; box-shadow: none; animation: none !important; }
.medal::after { content: ""; position: absolute; z-index: 0; inset: 30px; width: auto; height: auto; left: 30px; bottom: 30px; border-radius: 50%; clip-path: none; transform: none; }
.medal span { inset: 30px; z-index: 1; font-size: 14px !important; }
@media (max-width: 767px) { .medals { gap: 8px; } .medal { width: 104px !important; height: 104px !important; } .medal::after, .medal span { inset: 23px; } .medal::after { left: 23px; bottom: 23px; } .medal span { font-size: 11.5px !important; } }
.medal::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232b8ef0'/%3E%3Cstop offset='1' stop-color='%231557c9'/%3E%3C/linearGradient%3E%3Cpath id='c' d='M100 100 m-80 0 a80 80 0 1 1 160 0 a80 80 0 1 1 -160 0'/%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='97' fill='url(%23b)'/%3E%3Ctext font-family='Helvetica, Arial, sans-serif' font-weight='700' font-size='15' letter-spacing='3.2' fill='%23fff'%3E%3CtextPath href='%23c' textLength='496' lengthAdjust='spacing'%3ESTUDIO NAGAYU %3Ctspan fill='%23ffb4b0'%3E●%3C/tspan%3E AOMORI %3Ctspan fill='%23ffb4b0'%3E●%3C/tspan%3E STUDIO NAGAYU %3Ctspan fill='%23ffb4b0'%3E●%3C/tspan%3E AOMORI %3Ctspan fill='%23ffb4b0'%3E●%3C/tspan%3E%3C/textPath%3E%3C/text%3E%3C/svg%3E"); filter: drop-shadow(0 10px 18px rgba(21, 87, 201, .3)); }
.medal::after { background: #fff; }
.medal span { color: var(--navy); }

/* ===== SPのFV：C 写真の枠にメダルを重ねる（2026-11-30 採用） ===== */
@media (max-width: 767px) {
  .hero { padding-bottom: 24px; }
  .hero__photo { order: 4 !important; position: relative !important; inset: auto !important; height: 72vw !important; margin: 24px var(--pad) 0 !important; clip-path: none !important; border-radius: 22px; overflow: hidden; }
  .hero__photo img { object-position: 66% 72% !important; }
  .medals { order: 5 !important; position: relative; z-index: 1; margin-top: -54px !important; justify-content: center !important; gap: 12px !important; }
  .medal { filter: drop-shadow(0 8px 14px rgba(15, 42, 107, .25)); }
  .hero__btns { order: 6; margin-top: 20px !important; }
}
@media (max-width: 767px) { .streak--h1, .streak--h2 { display: none; } }

/* ===== SPメニュー：ふわっと出す（2026-11-30） ===== */
@media (max-width: 1099px) {
  .spnav { opacity: 0; transform: translateY(-14px) scale(.98); transform-origin: top center; transition: opacity .32s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
  .spnav.is-open { opacity: 1; transform: none; }
  .spnav li, .spnav .btn { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
  .spnav.is-open li, .spnav.is-open .btn { opacity: 1; transform: none; }
  .spnav.is-open > ul > li:nth-child(1) { transition-delay: .06s; }
  .spnav.is-open > ul > li:nth-child(2) { transition-delay: .1s; }
  .spnav.is-open > ul > li:nth-child(3) { transition-delay: .14s; }
  .spnav.is-open > ul > li:nth-child(4) { transition-delay: .18s; }
  .spnav.is-open > ul > li:nth-child(5) { transition-delay: .22s; }
  .spnav.is-open > ul > li:nth-child(6) { transition-delay: .26s; }
  .spnav.is-open .btn { transition-delay: .3s; }
  .spnav__sub li { transition-delay: inherit !important; }
}
@media (prefers-reduced-motion: reduce) { .spnav, .spnav li, .spnav .btn { transition: none !important; transform: none !important; } }

/* ===== 選ばれる理由：SPのスワイプの目印（2026-11-30） ===== */
.swipe { display: none; }
@media (max-width: 767px) {
  .swipe { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
  .swipe__text { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: #eef6fd; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .06em; transition: opacity .4s, transform .4s; }
  .swipe__arrow { display: inline-block; animation: swipeNudge 1.4s ease-in-out infinite; }
  .swipe.is-used .swipe__text { opacity: 0; transform: translateY(-4px); }
  .swipe__dots { display: flex; gap: 8px; }
  .swipe__dots i { width: 8px; height: 8px; border-radius: 999px; background: #c9dcf2; transition: width .3s, background-color .3s; }
  .swipe__dots i.is-on { width: 22px; background: var(--blue); }
  .reason__list { scroll-behavior: smooth; }
}
@keyframes swipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .swipe__arrow { animation: none; } }
@media (max-width: 767px) { .reason__list.is-nudge > li { animation: reasonNudge 1.2s cubic-bezier(.3, .7, .3, 1); } }
@keyframes reasonNudge { 0% { transform: translateX(0); } 35% { transform: translateX(-56px); } 100% { transform: translateX(0); } }
