/* ===== Design tokens ===== */
:root {
  /* Red Finback ブランドカラー（ロゴより：明るい赤＋ダークマルーン） */
  --navy: #7a2424;        /* 旧navy→ダークマルーン（見出し・濃色面） */
  --navy-soft: #9a3030;
  --accent: #cb3f3f;      /* 明るいブランドレッド（CTA・アクセント） */
  --ink: #2a2024;
  --muted: #6b5c5f;
  --line: #ecdfe0;
  --bg: #ffffff;
  --bg-alt: #fbf5f5;
  --max: 1080px;
  --radius: 12px;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.container { width: 90%; max-width: var(--max); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.4; color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(214,69,69,.3); }
.btn-cta:hover { background: #c23a3a; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; font-size: .92rem; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--navy); }
.header-cta { padding: .5em 1.2em; font-size: .9rem; }

/* ===== Hero slider ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(74, 19, 19, .92) 0%, rgba(122, 36, 36, .80) 50%, rgba(58, 16, 16, .90) 100%),
    url(../assets/hero.jpg) center / cover no-repeat;
}
.slider { position: relative; z-index: 2; }
.slide {
  display: none;
  padding: 6.5rem 0 5.5rem;
  animation: fade .8s ease;
}
.slide.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-lead { color: #9fc0e6; font-weight: 700; letter-spacing: .1em; margin-bottom: .8rem; }
.hero-copy { color: #fff; font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
.hero-sub { margin: 1.4rem 0 2.2rem; color: #d6e2f0; font-size: 1.05rem; max-width: 640px; }
.hero .btn-ghost { border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }
.slider-dots { position: absolute; bottom: 1.6rem; left: 0; right: 0; display: flex; gap: .6rem; justify-content: center; }
.slider-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.slider-dots .dot.is-active { background: #fff; }

/* ===== Stats ===== */
.stats { background: var(--bg-alt); padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--accent); }
.stat-num .unit { font-size: .9rem; color: var(--navy); margin-left: .15em; }
.stat-label { color: var(--muted); font-weight: 600; }
.stat-label small { color: var(--accent); }
.stats-note { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); text-align: right; }

/* ===== Section ===== */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; text-align: center; }
.section-title::after {
  content: ""; display: block; width: 48px; height: 4px;
  background: var(--accent); border-radius: 2px; margin: .8rem auto 0;
}
.section-desc { text-align: center; color: var(--muted); margin-top: 1rem; }
#partner .section-desc { max-width: 760px; margin-inline: auto; }
.partner-link { text-align: center; margin-top: 1.8rem; }

/* ===== Trouble ===== */
.trouble-list { max-width: 640px; margin: 2.5rem auto 0; list-style: none; display: grid; gap: 1rem; }
.trouble-list li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.3rem; font-weight: 600;
}

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 30px rgba(14,42,71,.1); transform: translateY(-3px); }
.card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.service-meta { color: var(--accent) !important; font-weight: 700; font-size: .82rem !important; margin-bottom: .4rem; }

/* ===== Works / お客様の声 ===== */
.works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.work-card { display: flex; flex-direction: column; }
.work-amount { align-self: flex-start; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; padding: .3em .9em; border-radius: 999px; margin-bottom: .7rem; }
.work-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.work-meta { color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: .5rem; }
.work-result { color: var(--muted); font-size: .95rem; margin-bottom: .2rem; }
.work-voice { margin: .9rem 0 0; padding: .85rem 1rem; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 6px; font-size: .9rem; line-height: 1.8; color: var(--ink); }

.cards-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-no { display: block; font-weight: 800; color: var(--accent); font-size: 1.4rem; margin-bottom: .3rem; }
.section-en { text-align: center; color: var(--accent); font-weight: 800; letter-spacing: .15em; font-size: .85rem; text-transform: uppercase; }
.mini-note { text-align: right; font-size: .8rem; color: var(--muted); margin-top: 1rem; }

/* ===== Work / Article cards ===== */
.work-card .work-amount { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem; padding: .25em .8em; border-radius: 999px; margin-bottom: .7rem; }
.work-card small, .article-card small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.article-card .tag { display: inline-block; background: var(--bg-alt); color: var(--navy-soft); font-weight: 700; font-size: .8rem; padding: .2em .8em; border-radius: 999px; margin-bottom: .6rem; }
.footer-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .88rem; }
.footer-nav a:hover { color: #fff; }

/* ===== Note box ===== */
.note-box {
  margin-top: 2rem; padding: 1.1rem 1.4rem; background: #fff;
  border: 1px dashed var(--navy-soft); border-radius: 8px;
  font-size: .92rem; color: var(--muted);
}
.note-box a { color: var(--accent); font-weight: 700; }

/* ===== Flow ===== */
.flow { max-width: 720px; margin: 2.5rem auto 0; list-style: none; display: grid; gap: 1.2rem; }
.flow li { display: flex; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.flow-step {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.flow h3 { font-size: 1.05rem; }
.flow p { color: var(--muted); font-size: .95rem; }
.flow small { color: var(--navy-soft); font-weight: 700; }

/* ===== Company table ===== */
.company-table { width: 100%; max-width: 720px; margin: 2.5rem auto 0; border-collapse: collapse; }
.company-table th, .company-table td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 30%; color: var(--navy); background: var(--bg-alt); font-weight: 700; }

/* ===== Contact ===== */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; padding: 4.5rem 0; text-align: center; }
.contact h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contact p { color: #d6e2f0; margin-top: .8rem; }
.contact-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.contact .btn-ghost { border-color: #fff; color: #fff; }
.contact .btn-ghost:hover { background: #fff; color: var(--navy); }
.contact-note { font-size: .85rem; color: #9fc0e6; }
.contact-tel { color: #fff; margin-top: 1rem; font-weight: 600; }
.contact-tel a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }

/* ===== Contact form ===== */
.contact-form { max-width: 600px; margin: 2rem auto 0; text-align: left; display: grid; gap: 1.1rem; }
.contact-form .field { display: grid; gap: .35rem; }
.contact-form label { font-size: .88rem; font-weight: 700; color: #fff; }
.contact-form .req { background: var(--accent); color: #fff; font-size: .7rem; padding: .1em .5em; border-radius: 3px; margin-left: .3em; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .75em .9em; border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; color: #fff; }
.contact-consent input { margin-top: .25em; }
.contact-consent a { color: #fff; text-decoration: underline; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: not-allowed; }
.form-status { margin: 0; font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: #c8f5cc; }
.form-status.err { color: #ffd4d4; }
.form-status.sending { color: #fff; }

/* ===== Legal pages ===== */
.legal { line-height: 1.95; }
.legal-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; padding-left: .6rem; border-left: 4px solid var(--accent); }
.legal ul { margin: .4rem 0 .4rem 1.4rem; color: var(--muted); }
.legal p { color: var(--ink); }
.legal-date { margin-top: 2rem; color: var(--muted); font-size: .9rem; }

/* ===== Column / Article ===== */
/* トップのコラムカード（サムネイル上、本文下） */
.article-card { padding: 0; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(122,36,36,.10); }
.article-card-thumb { width: 100%; height: 180px; flex: 0 0 auto; object-fit: cover; display: block; }
.article-card-body { padding: 1.3rem 1.4rem 1.5rem; }
.article-card h3 { font-size: 1.05rem; margin: .5rem 0 0; }
.article-card small { display: block; margin-top: .5rem; }
.column-more { text-align: center; margin-top: 2rem; }

/* パンくず */
.breadcrumb { border-bottom: 1px solid var(--line); font-size: .82rem; }
.breadcrumb .container { padding: .8rem 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--ink); }
.breadcrumb > .container > span { color: var(--line); margin: 0 .15em; }

/* コラム一覧 ページヘッド */
.page-head { padding: 2.6rem 0 1.2rem; }
.page-title { font-size: clamp(1.8rem, 5vw, 2.4rem); text-align: center; }
.page-lead { text-align: center; color: var(--muted); margin-top: .8rem; }

/* コラム一覧 リスト（1行1記事） */
.post-list { list-style: none; margin: 0; }
.post-item { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: .5rem; }
.post-thumb { display: block; border-radius: 10px; overflow: hidden; align-self: start; }
.post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .2s ease; }
.post-thumb:hover img { transform: scale(1.03); }
.post-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.post-meta time { color: var(--muted); font-size: .85rem; font-weight: 600; }
.post-title { font-size: 1.15rem; line-height: 1.5; margin: 0 0 .5rem; }
.post-title a { color: var(--navy); }
.post-title a:hover { color: var(--accent); }
.post-excerpt { color: var(--muted); font-size: .92rem; }

.article-main { padding: 3rem 0 1rem; }
.read-width { max-width: 760px; }
.back-link { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--accent); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; margin-bottom: 1.8rem; }
.article-head .tag { display: inline-block; background: var(--bg-alt); color: var(--navy-soft); font-weight: 700; font-size: .8rem; padding: .2em .8em; border-radius: 999px; margin-bottom: .8rem; }
.article-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.article-date { color: var(--muted); font-size: .85rem; margin-top: .8rem; }
.article-body { line-height: 1.95; }
.article-body h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; padding-left: .6rem; border-left: 4px solid var(--accent); }
.article-body h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; color: var(--navy-soft); }
.article-body p { color: var(--ink); margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: .6rem 0 1.3rem 1.4rem; color: var(--ink); }
.article-body li { margin-bottom: .4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article-body th { background: var(--bg-alt); color: var(--navy); white-space: nowrap; }
.article-note { background: var(--bg-alt); border-left: 4px solid var(--accent); border-radius: 6px; padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); margin: 2rem 0; }
.article-note p { margin: 0; }
.article-note a { color: var(--accent); font-weight: 700; }
/* 記事アイキャッチ */
.article-eyecatch { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 1.8rem; }

/* 目次 */
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.toc-title { font-weight: 800; color: var(--navy); margin-bottom: .6rem; }
.toc ol { margin: 0 0 0 1.2rem; }
.toc li { margin: .3rem 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* あわせて読みたい */
.related-articles { margin: 2.5rem 0 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.related-articles h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-list { list-style: none; margin: 0; display: grid; gap: .9rem; }
.related-list a { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; color: var(--navy); font-weight: 600; }
.related-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.related-list a:hover span { color: var(--accent); }

/* 一覧へ戻る */
.post-back { text-align: center; margin: 2rem 0 1rem; }

/* ===== Footer ===== */
.site-footer { background: #3a1414; color: #d8b9ba; padding: 1.6rem 0; }
.footer-nav a { margin-right: 1rem; }
.footer-nav a:hover { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav { display: none; }
  .stats-inner { grid-template-columns: 1fr; }
  .article-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .post-item { grid-template-columns: 1fr; gap: .9rem; }
  .post-thumb { max-width: 100%; }
}
