@charset "utf-8";

/* =========================================================
   株式会社TIL 公式サイト ─ 2026-09-24 の全面改善ぶん
   ---------------------------------------------------------
   ★style.css のあとに読みこみます。
     既存ページを壊さないよう、**新しい名前だけ**を足しています。
     .steps / .shot / .cards / .plan などは製品ページで使っているので触りません。
   ========================================================= */

:root {
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 44, 76, .05), 0 4px 14px rgba(15, 44, 76, .06);
  --shadow-md: 0 2px 6px rgba(15, 44, 76, .07), 0 14px 34px rgba(15, 44, 76, .10);
}

/* 読み上げ・キーボードの方が、本文へ飛べるように */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ★押せるものは、指で押せる大きさに（スマートフォンで押しにくかったため） */
.btn { padding: 14px 26px; min-height: 48px; line-height: 1.4; }
.btn-secondary { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- ヘッダー：「サービス」の中に3つ ---------- */
.global-nav .has-sub { position: relative; }
.sub-toggle {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14.5px; color: var(--text);
  padding: 10px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px;
}
.sub-toggle:hover { background: var(--bg-soft); color: var(--brand); }
.caret {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
/* ★ .global-nav ul が display:flex を持っているので、
     .sub-menu だけでは負けます（開きっぱなしになりました）。
     同じ強さ以上になるよう .global-nav を前に付けます。 */
.global-nav .sub-menu { display: none; list-style: none; margin: 0; padding: 8px; }
.global-nav .has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.sub-tag {
  /* ★11pxは小さすぎました（検査で出ました）。12px以上にします */
  display: inline-block; font-size: 12px; letter-spacing: .06em;
  color: var(--accent-dark); background: #e8f4f5; border-radius: 999px; padding: 2px 8px;
}
.sub-name { display: block; font-weight: 700; color: var(--brand); font-size: 15px; margin-top: 4px; }
.sub-desc { display: block; font-size: 12.5px; color: var(--muted); }

@media (min-width: 861px) {
  .global-nav .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 290px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .global-nav .has-sub:hover > .sub-menu,
  .global-nav .has-sub:focus-within > .sub-menu { display: block; }
  .sub-menu a:hover { background: var(--bg-soft); }
}
@media (max-width: 860px) {
  .sub-toggle {
    display: block; width: 100%; text-align: left; border-radius: 0;
    border-bottom: 1px solid var(--line); padding: 14px 10px;
  }
  .global-nav .sub-menu { padding: 0 0 0 10px; }
  .sub-menu a { border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 10px; }
}

/* ---------- ファーストビュー ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-lead {
  font-size: clamp(17px, 2.2vw, 20px); font-weight: 700;
  color: #fff; margin: 0 0 14px;
}
.hero-body { font-size: 15.5px; }
.hero-shots { position: relative; min-height: 340px; }
.hero-shot {
  display: block; border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .22); background: #fff;
}
.hero-shot-back { width: 100%; max-width: 460px; margin-left: auto; }
.hero-shot-a { position: absolute; left: 0; bottom: -18px; width: 33%; max-width: 150px; }
.hero-shot-b { position: absolute; left: 27%; bottom: -46px; width: 31%; max-width: 140px; }
/* ★縦長のスマホ画面が無いページ用。横長の画面を、右下に重ねて2枚に見せる */
.hero-shot-c { position: absolute; right: -6%; bottom: -34px; width: 48%; max-width: 240px; }

/* ---------- 3つのサービス ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  padding: 24px 22px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.svc-tag {
  display: inline-block; align-self: flex-start; margin: 0 0 10px;
  padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.tag-shop  { background: #fdeee6; color: #9a4a1c; }
.tag-const { background: #e8f0fb; color: #1d4a86; }
.svc h3 { margin: 0 0 6px; font-size: 20px; color: var(--brand); }
.svc-sub { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.svc-shot {
  margin: 0 0 18px; border-radius: 10px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line); height: 190px;
}
.svc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.svc-points { margin: 0 0 18px; padding-left: 1.2em; color: var(--text); font-size: 14.5px; }
.svc-points li { margin-bottom: 7px; }
.svc-price {
  margin: auto 0 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-soft); font-size: 14.5px; color: var(--text);
}
.svc-price b { color: var(--accent-dark); }
.tiny { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.svc-link { margin: 0; }

/* ---------- こんな手間、まだありませんか ---------- */
.prob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prob {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.prob-head { margin: 0 0 14px; }
.prob-for {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 14px;
}
.prob-list { margin: 0 0 18px; padding-left: 1.2em; color: var(--text); font-size: 15px; }
.prob-list li { margin-bottom: 8px; }
.prob-answer {
  margin: 0; padding: 14px 16px; border-radius: 10px;
  background: #e8f4f5; font-size: 14.5px; line-height: 1.8;
}
.prob-arrow { display: block; color: var(--accent-dark); font-weight: 700; }

/* ---------- 実際の画面（3つの場面） ---------- */
.howto {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.howto-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.howto-num {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-dark);
}
.howto-item h3 { margin: 0 0 8px; font-size: 19px; color: var(--brand); }
.howto-desc { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.howto-shot {
  margin: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.howto-shot img { display: block; width: 100%; height: auto; }
.howto-shot.is-phone img { max-width: 210px; margin: 0 auto; }

.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot-card img {
  display: block; width: 100%; height: 230px;
  object-fit: cover; object-position: top center; background: var(--bg-soft);
}
.shot-card figcaption {
  padding: 12px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line);
}

/* ---------- つくり方の流れ ---------- */
.flow {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 16px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.flow li::after {
  content: ""; position: absolute; right: -9px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #c3ccd8; border-top: 2px solid #c3ccd8;
  transform: translateY(-50%) rotate(45deg);
}
.flow li:last-child::after { display: none; }
.flow-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}
.flow b { display: block; color: var(--brand); font-size: 15px; margin-bottom: 4px; }
.flow-d { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.policy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pnote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.pnote h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--brand); }
.pnote p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- 料金 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-for { margin: 0 0 14px; font-weight: 700; color: var(--brand); font-size: 16px; }
.price-forsub { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.price-main { margin: 0; color: var(--brand); font-weight: 700; line-height: 1; }
.price-num { font-size: 52px; letter-spacing: -.02em; }
.price-unit { font-size: 18px; margin-left: 4px; }
.price-cap { margin: 8px 0 18px; font-size: 14px; color: var(--accent-dark); font-weight: 700; }
.price-list { margin: 0 0 20px; padding-left: 1.2em; font-size: 14px; color: var(--muted); }
.price-list li { margin-bottom: 8px; }
.price-list b { color: var(--text); }
.price-card .btn { margin-top: auto; }

/* ---------- Webシステム開発 ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dev-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.dev-item h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--brand); }
.dev-item p { margin: 0; font-size: 14.5px; color: var(--muted); }
.dev-more { margin: 26px 0 0; }
.company-more { margin: 22px 0 0; }

/* ---------- よくあるご質問 ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-weight: 700; color: var(--brand); font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- 最後のCTA ---------- */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-on-dark { color: #fff; }

/* ---------- フッター（3列） ---------- */
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-nav ul { columns: auto; margin: 0; padding: 0; list-style: none; }
.footer-head { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .55); }
.footer-brand a { color: #fff; }

/* ---------- スマートフォンの下に出すCTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 860px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 18px rgba(15, 44, 76, .10);
  }
  .mobile-cta .btn {
    display: block; width: 100%; text-align: center;
    background: var(--brand); color: #fff; border-color: var(--brand);
    padding: 13px 20px; min-height: 46px; font-size: 15px;
  }
  .mobile-cta .btn:hover { background: var(--brand-dark); color: #fff; }
  /* 下に固定したぶん、フッターが隠れないように */
  .site-footer { padding-bottom: 92px; }
}

/* ---------- 画面の幅ごと ---------- */
@media (max-width: 1000px) {
  .svc-grid, .howto, .shot-row, .price-grid, .policy-notes, .dev-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li::after { display: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-shots { min-height: 0; padding-bottom: 44px; }
  .hero-shot-back { max-width: 100%; }
  .hero-shot-a { width: 30%; max-width: 128px; bottom: 0; }
  .hero-shot-b { width: 28%; max-width: 120px; left: 25%; bottom: -14px; }
  .hero-shot-c { width: 44%; max-width: 200px; right: 0; bottom: -18px; }
  .prob-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .svc-grid, .howto, .shot-row, .price-grid, .policy-notes, .dev-grid {
    grid-template-columns: 1fr;
  }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .svc-shot { height: 220px; }
  .shot-card img { height: 260px; }
}

@media (max-width: 430px) {
  .section { padding: 46px 0; }
  .container { padding-inline: 16px; }
  .svc { padding: 20px 18px; }
  .price-num { font-size: 46px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; text-align: center; }
  .flow { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}


/* ---------- お問い合わせフォーム ---------- */
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 22px; }
.field label {
  display: block; font-weight: 700; color: var(--brand); font-size: 15px; margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px;   /* ★16px未満だと、iPhoneが勝手に拡大します */
  color: var(--text); background: #fff;
  border: 1px solid #c8d2df; border-radius: 10px;
  padding: 13px 14px; min-height: 50px;
}
.field textarea { min-height: 150px; line-height: 1.8; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.req {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 4px;
  background: #fdeaea; color: #a32222; font-size: 12px; font-weight: 700; vertical-align: middle;
}
.field-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
/* ★機械よけの空欄。人には見せません */
.hp-field { position: absolute; left: -9999px; }
.form-privacy { margin: 4px 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.form-submit { margin: 0; }
.form-submit .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* ---------- 送信のあとの画面 ---------- */
.done-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 30px; text-align: center; box-shadow: var(--shadow-sm);
}
.done-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: #e8f4f5; color: var(--accent-dark);
  font-size: 30px; line-height: 64px; font-weight: 700;
}
.done-box h1 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 27px); color: var(--brand); }
.done-box p { margin: 0 0 10px; color: var(--text); }
.done-note { margin-top: 20px !important; font-size: 14px; color: var(--muted); line-height: 1.9; }
.done-actions { margin-top: 28px !important; }

@media (max-width: 430px) {
  .form { padding: 22px 18px; }
  .done-box { padding: 34px 20px; }
}

/* =========================================================
   カードのアイコン（2026-09-28 追加）
   ---------------------------------------------------------
   ★文字だけで寂しかった「課題」「立場」「前提」カードに、
     見出しの内容がひと目で分かる印を足す。装飾ではなく、
     3枚を見ただけで内容を見分けられることが目的。
   ========================================================= */
.card-icon {
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--bg-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card-icon svg { width: 24px; height: 24px; }

/* =========================================================
   スクリーンショットの注釈（2026-09-28 追加）
   ---------------------------------------------------------
   ★「画像を貼っているだけ」を直すための仕組み。
     画像そのものには焼き込まず、CSSで枠と番号を重ねる
     （差し替え時に位置を作り直しやすいのと、拡大しても
     文字がにじまないため）。
   ★スマホでは、矢印や長い説明を画像の上に置かず、
     番号だけを画像に残し、意味は画像の下の一覧で説明する。
   ========================================================= */
.shot-callout { position: relative; }
.shot-callout img { display: block; width: 100%; height: auto; }
.shot-callout-box {
  position: absolute; border: 2px solid var(--accent); border-radius: 8px;
  background: rgba(11, 122, 134, .10);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6) inset;
  pointer-events: none;
}
.shot-callout-num {
  position: absolute; top: -12px; left: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28);
}
.shot-callout-points {
  margin: 12px 16px 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.shot-callout-points li { display: flex; gap: 9px; margin-bottom: 7px; align-items: flex-start; }
.shot-callout-points li b {
  flex: none; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media print {
  .mobile-cta, .skip-link { display: none; }
}
