@charset "utf-8";

/* =========================================================
   株式会社TIL 公式サイト ─ デザイン統一レイヤー（2026-11-29）
   ---------------------------------------------------------
   ★style.css / home.css / demos.css のあとに読みこみます。
   ★機能・文章の意味・住所は変えません。見た目のそろえ方だけです。
   ★そろえる決まり
     文字：12（補足）/ 14（説明）/ 16（本文）/ 18（小見出し）/ 20（カード見出し）
     角丸：8（ボタン・入力）/ 12（カード）/ 999（ラベル）
     余白：4 の倍数
     押す場所：44px 以上
   ========================================================= */

:root {
  --radius:    12px;
  --radius-lg: 12px;
  --radius-sm: 8px;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;

  --warn-bg:     #fff8e8;
  --warn-line:   #f0dfae;
  --warn-text:   #6b5a2e;
}

/* ---------- 角丸を3段階に ---------- */
.btn, .global-nav a, .global-nav .nav-cta a, .sub-toggle { border-radius: var(--radius-sm); }
.field input, .field select, .field textarea,
.svc-shot, .howto-shot, .prob-answer, .svc-price,
.notice, .demo-note { border-radius: var(--radius-sm); }
.hero-devices img { border-radius: var(--radius); }

/* ---------- 文字サイズを5段階に ---------- */
.sub-desc, .svc-tag, .tiny, .flow-d, .price-forsub, .hero-eyebrow,
.footer-head, .footer-bottom, .footer-note, .field-note, .req,
.hero-devices-cap, .breadcrumb, .section-en, .service-en,
.sub-tag, .card-num, .plan-tag, .contact-label { font-size: var(--fs-xs); }

.global-nav a, .sub-toggle, .svc-sub, .svc-points, .svc-price, .prob-answer,
.howto-desc, .pnote p, .dev-item p, .faq p, .card p, .prob-list,
.shot-card figcaption, .form-privacy, .plan ul, .shot p, .entry-card p,
.footer-nav a, .footer-brand p, .cta-band p, .notice, .demo-note,
.price-list, .price-cap, .steps span, .apply-meta, .dl-box p { font-size: var(--fs-sm); }

.hero-body, .hero p, .hero-lead, .faq summary, .btn, .sub-name, .flow b,
table.info th, table.info td, .field label { font-size: var(--fs-md); }

.hero-lead { font-size: clamp(17px, 2.2vw, 20px); }

.card h3, .pnote h3, .dev-item h3, .prose h3, .entry-card h3,
.howto-item h3, .dl-box h3, .plan h3 { font-size: var(--fs-lg); }
.svc h3 { font-size: var(--fs-xl); }

/* ---------- 色のそろえ ---------- */
.demo-note { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }

/* ---------- 押す場所は44px以上 ---------- */
.btn { min-height: 44px; }
.footer-nav a, .breadcrumb a { display: inline-block; padding: 10px 0; }
.footer-nav li { margin-bottom: 0; }
.faq summary { min-height: 44px; }
.logo { min-height: 44px; align-items: center; }
.dev-more a, .company-more a { display: inline-block; padding: 10px 0; }
.sub-toggle, .global-nav a { min-height: 44px; }
.nav-toggle { min-width: 44px; }

/* ---------- キーボードで今どこか見える ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.hero a:focus-visible, .cta-band a:focus-visible, .site-footer a:focus-visible {
  outline-color: #fff;
}

/* ---------- 動きを減らす設定の人へ ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- トップの整理 ---------- */
.about-lead { margin-bottom: 0; }
#about { padding-bottom: 40px; }
/* 1文字だけ次の行に落ちる折り返しを防ぐ */
.hero-body, .svc-sub, .faq p, .card p, .pnote p, .dev-item p { text-wrap: pretty; word-break: auto-phrase; }
.section-lead { text-wrap: balance; word-break: auto-phrase; }
h1, h2, h3, .section-title, .cta-band h2 { text-wrap: balance; }
.center-cta { margin: 32px 0 0; text-align: center; }

/* ファーストビューの画像：公開中のサービスの実画面を、枠つきで見せる */
.hero-shot-frame { margin: 0; }
.hero-shot-frame a { display: block; }
.hero-shot-frame img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  background: #fff;
}
.hero-shot-frame figcaption {
  margin: 10px 0 0; text-align: right; font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .78);
}

/* ---------- 影を1種類に ---------- */
.svc, .prob, .howto-item, .shot-card, .flow li, .price-card, .plan, .card, .entry-card, .apply-box {
  box-shadow: var(--shadow-sm);
}

/* ---------- スマホの下の相談ボタン ---------- */
@media (max-width: 860px) {
  .mobile-cta .btn { font-size: var(--fs-md); }
}

/* =========================================================
   見た目の厚み（2026-11-29 追加）
   ---------------------------------------------------------
   ★白一色・文字だけに見えないよう、画面写真・色の帯・アイコン・
     見出しの印を足す。飾りではなく「何の話か」が目で分かるものだけ。
   ========================================================= */

/* 見出し：左に色の印、英字ラベルを大きめに */
.section-en { font-size: var(--fs-sm); letter-spacing: .2em; }
.section-title { position: relative; padding-left: 18px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: .22em; bottom: .22em;
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

/* 淡い背景の区画：うすい方眼と色のにじみで、のっぺりを避ける */
.section-soft {
  background:
    radial-gradient(900px 360px at 100% 0, rgba(11, 122, 134, .08), transparent 70%),
    radial-gradient(700px 300px at 0 100%, rgba(15, 44, 76, .06), transparent 70%),
    var(--bg-soft);
}

/* 会社の姿勢：3つの印つき */
.about-points {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.about-points li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px;
  align-items: center; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-points .card-icon { grid-row: 1 / span 2; margin: 0; background: #e8f4f5; }
.about-points b { color: var(--brand); font-size: var(--fs-md); line-height: 1.4; }
.about-points li > span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }

/* サービスのカード：画面写真つき・色の線・触ると少し浮く */
.svc { position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.svc:has(.tag-const)::before { background: #1d4a86; }
.svc:has(.tag-shop)::before  { background: #d9772f; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-shot { height: 200px; margin-top: 8px; }
.svc-shot img { object-position: top center; }

/* 開発の3項目：印つき */
.dev-item .card-icon { background: #e8f4f5; }

/* ファーストビュー：右の画像のうしろに、うすい光 */
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 68%); pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .about-points { grid-template-columns: 1fr; }
  .svc-shot { height: 220px; }
}
@media (prefers-reduced-motion: reduce) { .svc, .svc:hover { transform: none; } }
