@charset "utf-8";

/* =========================================================
   株式会社TIL 公式サイト 共通スタイル
   ========================================================= */

:root {
  --brand:      #0f2c4c;
  --brand-dark: #0a1f37;
  --accent:     #0b7a86;
  --accent-dark:#086570;
  --text:       #1c2430;
  --muted:      #5b6675;
  --line:       #e3e8ef;
  --bg:         #ffffff;
  --bg-soft:    #f6f8fb;
  --radius:     10px;
  --shadow:     0 1px 3px rgba(15, 44, 76, .06), 0 8px 24px rgba(15, 44, 76, .06);
  --maxw:       1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium",
               "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-dark); }
a:hover { color: var(--brand); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-mark {
  font-size: 22px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand);
}
.logo-text { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--brand); transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.global-nav ul {
  display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0; list-style: none;
}
.global-nav a {
  display: block; padding: 10px 14px;
  font-size: 14.5px; color: var(--text); text-decoration: none;
  border-radius: 6px;
}
.global-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.global-nav a[aria-current="page"] {
  color: var(--brand); font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}
.global-nav .nav-cta a {
  margin-left: 8px; padding: 10px 18px;
  background: var(--brand); color: #fff; border-radius: 6px;
}
.global-nav .nav-cta a:hover { background: var(--brand-dark); color: #fff; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, #0f2c4c 0%, #123a63 55%, #0b7a86 160%);
  color: #fff;
  padding: 88px 0 80px;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.5; letter-spacing: .01em;
}
.hero p {
  margin: 0 0 12px; max-width: 46em;
  color: rgba(255, 255, 255, .88); font-size: 16px;
}
.hero-eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px; font-size: 12.5px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ページヘッダー（下層） ---------- */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}
.page-head h1 {
  margin: 0; font-size: clamp(22px, 3.2vw, 30px); color: var(--brand);
}
.page-head .lead { margin: 12px 0 0; color: var(--muted); max-width: 48em; }

.breadcrumb {
  margin: 0 0 14px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.breadcrumb li::after { content: "／"; margin-left: 8px; color: #b9c2ce; }
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: 6px; font-size: 15px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: #fff; color: var(--brand); }
.btn-primary:hover { background: #eef3f9; color: var(--brand-dark); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--brand); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- セクション ---------- */
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-title {
  margin: 0 0 8px; font-size: clamp(20px, 2.8vw, 26px); color: var(--brand);
}
.section-en {
  display: block; margin-bottom: 6px;
  font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700;
}
.section-lead { margin: 0 0 36px; color: var(--muted); max-width: 46em; }

h2, h3, h4 { line-height: 1.6; }
.prose h2 {
  margin: 48px 0 14px; padding-left: 14px;
  font-size: 20px; color: var(--brand);
  border-left: 4px solid var(--accent);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 16.5px; color: var(--brand); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }

/* ---------- カード ---------- */
.cards {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 17px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-num {
  display: inline-block; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent);
}

/* ---------- 事業内容ブロック ---------- */
.service-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.service-block > h3 { margin: 0 0 6px; font-size: 19px; color: var(--brand); }
.service-block .service-en {
  display: block; margin-bottom: 16px;
  font-size: 11.5px; letter-spacing: .16em; color: var(--accent); font-weight: 700;
}
.service-block ul { margin: 14px 0 0; padding-left: 1.3em; color: var(--muted); }
.service-block li { margin-bottom: 6px; }

/* ---------- 表（会社概要など） ---------- */
.table-wrap { overflow-x: auto; }
table.info {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
table.info th, table.info td {
  padding: 18px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }
table.info th {
  width: 190px; white-space: nowrap;
  background: var(--bg-soft); color: var(--brand); font-weight: 700;
}

/* ---------- 注記 ---------- */
.notice {
  margin-top: 28px; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 6px;
  font-size: 14px; color: var(--muted);
}
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- 問い合わせ ---------- */
.contact-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow);
}
.contact-mail {
  display: inline-block; margin: 6px 0 4px;
  font-size: clamp(18px, 3vw, 22px); font-weight: 700;
  color: var(--brand); text-decoration: none; word-break: break-all;
}
.contact-mail:hover { color: var(--accent-dark); text-decoration: underline; }
.contact-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--accent); margin-bottom: 4px;
}
.contact-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- CTA 帯 ---------- */
.cta-band {
  background: var(--brand); color: #fff; padding: 56px 0; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(19px, 2.6vw, 24px); }
.cta-band p { margin: 0 0 26px; color: rgba(255, 255, 255, .85); font-size: 15px; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--brand-dark); color: rgba(255, 255, 255, .78);
  padding: 52px 0 28px; font-size: 14px;
}
.footer-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1.4fr 1fr; align-items: start;
}
.footer-brand .logo-mark { color: #fff; }
.footer-brand p { margin: 10px 0 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; columns: 2; }
.footer-nav li { margin-bottom: 8px; break-inside: avoid; }
.footer-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  font-size: 12.5px; color: rgba(255, 255, 255, .6);
}
.footer-note { margin: 14px 0 0; font-size: 12px; color: rgba(255, 255, 255, .55); line-height: 1.8; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px rgba(15, 44, 76, .08);
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 16px; }
  .global-nav a { padding: 14px 10px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .global-nav a[aria-current="page"] { box-shadow: none; border-left: 3px solid var(--accent); padding-left: 12px; }
  .global-nav .nav-cta a { margin: 12px 0 0; text-align: center; border-bottom: 0; border-radius: 6px; }
  .hero { padding: 62px 0 58px; }
  .section { padding: 56px 0; }
  table.info th, table.info td { display: block; width: auto; white-space: normal; }
  table.info th { border-bottom: 0; padding-bottom: 8px; }
  table.info td { padding-top: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; text-align: center; }
}

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}

/* =========================================================
   製品ページ（店舗集客アプリ）用
   ========================================================= */

.hero-product { background: linear-gradient(160deg, #0f2c4c 0%, #123a63 55%, #0b7a86 170%); }
.hero-product .hero-sub {
  margin: 0 0 6px; font-size: 14px; letter-spacing: .08em;
  color: rgba(255,255,255,.8);
}
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none;
}
.hero-points li {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}

/* 図版 */
.figure { margin: 0; }
.figure img {
  display: block; width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.figure figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center;
}

/* 画面ギャラリー */
.shot-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; }
.shot p {
  margin: 0; padding: 14px 16px; font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.shot p strong { display: block; color: var(--brand); font-size: 15px; margin-bottom: 2px; }

/* 手順 */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 62px; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 28px; text-align: center;
}
.steps strong { display: block; color: var(--brand); margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 14.5px; }

/* 料金 */
.plan-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: start;
}
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
}
.plan-main { border: 2px solid var(--accent); }
.plan h3 { margin: 0 0 4px; font-size: 16px; color: var(--brand); }
.plan .plan-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.price {
  display: flex; align-items: baseline; gap: 4px; margin: 0 0 6px;
  color: var(--brand); font-weight: 700;
}
.price .num { font-size: 34px; letter-spacing: -.01em; }
.price .unit { font-size: 15px; }
.plan ul { margin: 18px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 14.5px; }
.plan li { margin-bottom: 6px; }
.plan-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px;
  border-radius: 999px; background: #e6f2f3; color: var(--accent-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}

/* 申し込み */
.apply-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow);
}
.apply-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.apply-meta { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.apply-meta a { font-weight: 700; }

/* 資料ダウンロード */
.dl-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px;
}
.dl-box .dl-text { flex: 1 1 260px; }
.dl-box h3 { margin: 0 0 4px; font-size: 16px; color: var(--brand); }
.dl-box p { margin: 0; font-size: 14px; color: var(--muted); }

/* 免責の帯 */
.demo-note {
  margin: 0 0 28px; padding: 12px 16px;
  background: #fff8e8; border: 1px solid #f0dfae; border-radius: 6px;
  font-size: 13.5px; color: #6b5a2e;
}

@media (max-width: 860px) {
  .apply-actions .btn { width: 100%; text-align: center; }
}

/* 料金カードをリンクにする */
a.plan-link {
  display: block; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.plan-link:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 44, 76, .12);
  transform: translateY(-2px);
}
a.plan-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.plan-cta {
  display: block; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px; font-weight: 700; color: var(--accent-dark);
}
a.plan-link:hover .plan-cta { color: var(--brand); }

/* ---------- 入口（リンクとQR） ---------- */
.entry-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.entry-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px; box-shadow: var(--shadow);
}
.entry-card.is-main { border: 2px solid var(--accent); }
.entry-card img {
  width: 118px; height: auto; flex: 0 0 118px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.entry-card h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--brand); }
.entry-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.entry-card .entry-url {
  display: inline-block; font-size: 13px; word-break: break-all;
}
.entry-card .btn { margin-top: 4px; padding: 10px 18px; font-size: 14px; }

@media (max-width: 460px) {
  .entry-card { flex-direction: column; align-items: center; text-align: center; }
  .entry-card img { flex: none; }
}
