@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; }
}
