/* ==========================================================================
   Taps株式会社 コーポレートサイト 共通スタイル
   ========================================================================== */

:root {
  --c-teal: #2ab9c7;
  --c-teal-dark: #198b96;
  --c-pink: #ee4d5e;
  --c-dark: #292526;
  --c-dark-soft: #403a3c;
  --c-bg: #fffaf8;
  --c-bg-soft: #f9f3f1;
  --c-tan: #ebbeaf;
  --c-brown: #a28075;
  --c-white: #ffffff;
  --c-line: rgba(41, 37, 38, 0.1);
  --c-text: #292526;
  --c-text-soft: rgba(41, 37, 38, 0.68);

  --shadow-sm: 0 2px 10px rgba(41, 37, 38, 0.06);
  --shadow-md: 0 12px 32px rgba(41, 37, 38, 0.1);
  --shadow-lg: 0 24px 60px rgba(41, 37, 38, 0.16);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --header-h: 76px;
  --container: 1160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-teal-dark);
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-pink), var(--c-teal));
  border-radius: 2px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 14px;
  line-height: 1.4;
}
.section-lead {
  margin-top: 16px;
  color: var(--c-text-soft);
  font-size: 16px;
  max-width: 620px;
}
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--c-pink), #f2717f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(238, 77, 94, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(238, 77, 94, 0.4); }

.btn-dark {
  background: var(--c-dark);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-2px); background: #000; }

.btn-outline {
  background: transparent;
  border-color: rgba(41, 37, 38, 0.18);
  color: var(--c-dark);
}
.btn-outline:hover { border-color: var(--c-dark); transform: translateY(-2px); }

.btn-outline-light {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 250, 248, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-text);
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--c-teal-dark); background: rgba(42, 185, 199, 0.08); }
.main-nav a.active { color: var(--c-teal-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  position: relative;
  z-index: 1200;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--c-dark);
  transition: transform .3s var(--ease), opacity .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); background: var(--c-dark); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); background: var(--c-dark); }

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 110px) 0 120px;
  background: radial-gradient(120% 140% at 15% -10%, #3a3335 0%, var(--c-dark) 55%);
  color: #fff;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--c-teal); top: -160px; right: -120px; }
.hero-blob.b2 { width: 380px; height: 380px; background: var(--c-pink); bottom: -180px; left: -100px; opacity: 0.4; }

.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero-inner.wide { max-width: 900px; }
.hero .eyebrow { color: #ffd7dc; }
.hero .eyebrow::before { background: linear-gradient(90deg, var(--c-pink), var(--c-teal)); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero h1 .accent { background: linear-gradient(90deg, #ffb3bb, var(--c-teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead {
  margin-top: 24px;
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  padding: calc(var(--header-h) + 72px) 0 64px;
  background: radial-gradient(120% 160% at 10% -20%, #3a3335 0%, var(--c-dark) 60%);
  color: #fff;
}
.page-hero .eyebrow { color: #ffd7dc; }
.page-hero h1 { margin-top: 18px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.4; }
.page-hero p { margin-top: 18px; color: rgba(255,255,255,0.75); max-width: 620px; font-size: 15.5px; }

/* ---------- Sections / generic ---------- */
.section { padding: 100px 0; }
.section.soft { background: var(--c-bg-soft); }
.section.dark { background: var(--c-dark); color: #fff; }
.section.tight { padding: 72px 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--c-teal), var(--c-teal-dark));
  color: #fff;
  margin-bottom: 20px;
}
.icon-badge.pink { background: linear-gradient(135deg, var(--c-pink), #d8384a); }
.icon-badge.dark { background: var(--c-dark); }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--c-text-soft); font-size: 14.5px; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(42, 185, 199, 0.12);
  color: var(--c-teal-dark);
}
.tag.pink { background: rgba(238, 77, 94, 0.1); color: var(--c-pink); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stat-card {
  padding: 36px 30px;
  border-radius: var(--radius-md);
  background: var(--c-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(42,185,199,0.35), transparent 60%);
}
.stat-num { font-size: clamp(34px, 4vw, 46px); font-weight: 800; position: relative; z-index: 1; }
.stat-num span { font-size: 20px; font-weight: 700; margin-left: 4px; }
.stat-label { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,0.7); position: relative; z-index: 1; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-visual { order: 2; }

.visual-panel {
  border-radius: var(--radius-lg);
  padding: 44px;
  background: linear-gradient(150deg, var(--c-bg-soft), #fff);
  border: 1px solid var(--c-line);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.visual-panel::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--c-teal);
  filter: blur(60px);
  opacity: 0.28;
  top: -60px; right: -60px;
}
.visual-panel::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--c-pink);
  filter: blur(60px);
  opacity: 0.22;
  bottom: -50px; left: -50px;
}
.visual-mark { position: relative; z-index: 1; font-size: 15px; font-weight: 700; color: var(--c-text-soft); text-align: center; }
.visual-mark strong { display: block; font-size: 38px; font-weight: 800; color: var(--c-dark); margin-bottom: 8px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
}
.check-list li:last-child { border-bottom: none; }
.check-list .mark {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-teal);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Timeline (steps) ---------- */
.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--c-teal-dark);
}
.step-track { position: relative; }
.step-item { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 36px; position: relative; }
.step-item:last-child { padding-bottom: 0; }
.step-item::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--c-line);
}
.step-item:last-child::before { display: none; }
.step-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 14px; color: var(--c-text-soft); }
.step-phase { font-size: 13px; font-weight: 700; color: var(--c-pink); margin-bottom: 18px; letter-spacing: .04em; }

/* ---------- Table ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--c-line); }
.info-table tr:first-child { border-top: 1px solid var(--c-line); }
.info-table th, .info-table td {
  text-align: left;
  padding: 22px 20px;
  font-size: 15px;
  vertical-align: top;
}
.info-table th {
  width: 200px;
  color: var(--c-text-soft);
  font-weight: 700;
  background: var(--c-bg-soft);
}
.info-table td { line-height: 1.9; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 64px;
  background: var(--c-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--c-teal); filter: blur(90px); opacity: .35; top: -140px; right: -60px;
}
.cta-band h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; position: relative; z-index: 1; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,0.7); position: relative; z-index: 1; }
.cta-band .actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ---------- News list ---------- */
.news-list .news-item {
  display: flex;
  gap: 26px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--c-line);
}
.news-list .news-item:first-child { border-top: 1px solid var(--c-line); }
.news-date { flex: none; width: 130px; font-size: 14px; color: var(--c-text-soft); font-weight: 600; }
.news-tag { flex: none; }
.news-title { font-size: 15.5px; font-weight: 600; }
.news-item a.news-title-link:hover { color: var(--c-teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-dark); color: rgba(255,255,255,0.7); padding: 80px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 24px; margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.9; max-width: 260px; color: rgba(255,255,255,0.5); }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--c-teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label .req { color: var(--c-pink); margin-left: 4px; font-size: 12px; }
.field input, .field select, .field textarea {
  border: 1px solid rgba(41,37,38,0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(42,185,199,0.14);
}
.field textarea { resize: vertical; min-height: 150px; }
.form-note { font-size: 13px; color: var(--c-text-soft); margin-top: 6px; }
.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(42,185,199,0.12); color: var(--c-teal-dark); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--c-text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-visual { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--c-bg); flex-direction: column; align-items: stretch; padding: 20px; gap: 6px; transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 16px 18px; font-size: 17px; border-radius: 14px; }
  .header-actions .btn-sm.desktop-only { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .cta-band { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .news-item { flex-direction: column; gap: 8px; }
  .news-date { width: auto; }
  .info-table th { width: 130px; padding: 16px 12px; font-size: 13.5px; }
  .info-table td { padding: 16px 12px; font-size: 14px; }
}
