/* ============================================================
   ASVELLA — shared styles (index.html / contact.html)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg2: #f4f6fb;
  --bg3: #0a1f50;
  --border: rgba(10,31,80,0.12);
  --text: #0a1f50;
  --text2: #4a5a80;
  --text3: #8a97b8;
  --accent: #0a1f50;
  --accent2: #f5c800;
  --accent2-dark: #c9a400;
  --radius: 1.25rem;
  --shadow: 0 10px 40px rgba(10,31,80,0.08);
  --max: 1080px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  line-height: 1.75;
  font-feature-settings: "palt";
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-size: 1.15rem; font-weight: 800; letter-spacing: 0.14em; text-decoration: none;
  color: var(--accent);
}
.logo small { display: block; font-size: 0.55rem; letter-spacing: 0.22em; color: var(--text3); font-weight: 600; margin-top: -2px; }

nav { display: flex; align-items: center; gap: 1.75rem; }
nav a {
  color: var(--text2); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }
nav a.nav-cta {
  color: #fff; background: var(--accent); padding: 0.5rem 1.1rem; border-radius: 100px;
  font-weight: 700; font-size: 0.8rem;
}
nav a.nav-cta:hover { background: #142c6b; color: #fff; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 100px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; border: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { background: #142c6b; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,31,80,0.2); }
.btn-gold { background: var(--accent2); color: var(--accent); }
.btn-gold:hover { background: #ffd83d; color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: #f0f3fa; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 6rem 0; }
section.alt { background: var(--bg2); }
.section-head { margin-bottom: 3rem; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.22em; color: var(--accent2-dark);
  text-transform: uppercase; font-weight: 700; margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3;
}
.section-lead { color: var(--text2); margin-top: 1rem; max-width: 620px; font-size: 0.98rem; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 6.5rem 0 5.5rem;
  background:
    radial-gradient(700px 500px at 85% 10%, rgba(245,200,0,0.18), transparent 60%),
    radial-gradient(600px 500px at 10% 90%, rgba(10,31,80,0.08), transparent 60%),
    #fff;
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-label {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent2-dark);
  border: 1px solid rgba(245,200,0,0.6); border-radius: 100px; padding: 0.3rem 1rem;
  margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 700; background: rgba(245,200,0,0.08);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.5rem; }
.nowrap { white-space: nowrap; }
.hero h1 .gold { white-space: nowrap; color: transparent; background: linear-gradient(90deg, #c9a400, #f5c800); -webkit-background-clip: text; background-clip: text; }
.hero p { font-size: 1.02rem; color: var(--text2); max-width: 520px; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-card {
  background: var(--bg3); color: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 30px 60px rgba(10,31,80,0.25);
  position: relative; overflow: hidden;
}
.hero-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,200,0,0.35), transparent 70%); }
.hero-card .k { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--accent2); text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
.stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat .n small { font-size: 0.8rem; font-weight: 700; margin-left: 2px; }
.stat .l { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }
.hero-card .note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; color: rgba(255,255,255,0.8); }

/* ── Services ─────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(245,200,0,0.6); }
.service .num { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent2-dark); font-weight: 700; }
.service h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.35; }
.service h3 small { display: block; font-size: 0.72rem; color: var(--text3); letter-spacing: 0.12em; font-weight: 700; margin-top: 0.25rem; }
.service p { color: var(--text2); font-size: 0.92rem; }
.service ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.25rem; }
.service li { font-size: 0.86rem; color: var(--text2); padding-left: 1.3rem; position: relative; }
.service li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.service .tag { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 100px; background: var(--bg2); color: var(--text2); margin-right: 0.35rem; border: 1px solid var(--border); }
.service .for { font-size: 0.78rem; color: var(--text3); margin-top: auto; padding-top: 0.75rem; border-top: 1px dashed var(--border); }
.service .for b { color: var(--text2); font-weight: 700; }

/* ── Strengths ────────────────────────────────────────────── */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.strength { padding: 1.75rem; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--border); }
.strength .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin-bottom: 1rem; }
.strength h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.strength p { font-size: 0.88rem; color: var(--text2); }

/* ── Flow ─────────────────────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--accent2-dark); font-weight: 800; display: block; margin-bottom: 0.6rem; }
.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem; }
.step p { font-size: 0.84rem; color: var(--text2); }

/* ── Company ──────────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--border); }
.company-table th { width: 140px; padding: 1.1rem 1rem 1.1rem 0; text-align: left; font-size: 0.82rem; font-weight: 600; color: var(--text2); letter-spacing: 0.04em; vertical-align: top; white-space: nowrap; }
.company-table td { padding: 1.1rem 0; font-size: 0.95rem; }
.company-table td a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(245,200,0,0.8); text-underline-offset: 3px; }

.rep { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.rep .k { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--accent2-dark); font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.rep h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.15rem; }
.rep .role { font-size: 0.8rem; color: var(--text3); margin-bottom: 0.9rem; }
.rep p { font-size: 0.88rem; color: var(--text2); }

details.articles { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 0.9rem; background: #fff; }
details.articles summary { cursor: pointer; padding: 0.9rem 1.1rem; font-size: 0.85rem; font-weight: 700; color: var(--text2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.articles summary::-webkit-details-marker { display: none; }
details.articles summary::after { content: '＋'; color: var(--accent2-dark); }
details.articles[open] summary::after { content: '－'; }
details.articles ol { padding: 0 1.1rem 1.1rem 2.4rem; font-size: 0.82rem; color: var(--text2); display: flex; flex-direction: column; gap: 0.35rem; }

/* ── CTA band ─────────────────────────────────────────────── */
.cta {
  background: var(--bg3); color: #fff; border-radius: var(--radius);
  padding: 3.5rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.cta::before { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(245,200,0,0.35), transparent 70%); }
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.cta p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.cta .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; position: relative; }

/* ── Footer ───────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--text2); font-size: 0.8rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; color: var(--text2); }
.footer-links a:hover { color: var(--text); }

/* ── Contact page ─────────────────────────────────────────── */
.page-hero { padding: 4.5rem 0 3rem; background: radial-gradient(700px 400px at 90% 0%, rgba(245,200,0,0.16), transparent 60%), #fff; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.page-hero p { color: var(--text2); max-width: 600px; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 88px; }
.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.info-card h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.6rem; }
.info-card p, .info-card li { font-size: 0.86rem; color: var(--text2); }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.info-card li { padding-left: 1.2rem; position: relative; }
.info-card li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); }
.info-card a { color: var(--accent); }

.contact-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: 0.82rem; font-weight: 700; color: var(--text2); letter-spacing: 0.02em; }
label .req { color: #c62828; font-size: 0.7rem; margin-left: 0.35rem; font-weight: 700; border: 1px solid rgba(198,40,40,0.4); border-radius: 4px; padding: 0 0.3rem; vertical-align: middle; }
label .opt { color: var(--text3); font-size: 0.7rem; margin-left: 0.35rem; font-weight: 600; }
.hint { font-size: 0.75rem; color: var(--text3); }

input, textarea, select {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem;
  padding: 0.9rem 1rem; color: var(--text); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; width: 100%;
  appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5a80' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
input:focus, textarea:focus, select:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(245,200,0,0.25); background: #fff; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #c62828; }
textarea { resize: vertical; min-height: 160px; }
input[type="checkbox"] { width: 18px; height: 18px; appearance: auto; -webkit-appearance: auto; accent-color: var(--accent); padding: 0; margin-top: 3px; flex-shrink: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--text2); font-weight: 500; }
.check a { color: var(--accent); }

.form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-size: 0.85rem; color: var(--text2); min-height: 1.2em; }
.form-status.error { color: #c62828; }

.form-success { text-align: center; padding: 3rem 1rem; }
.form-success .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent2); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 1.6rem; font-weight: 800; }
.form-success h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.form-success p { color: var(--text2); font-size: 0.92rem; margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 0.9rem; padding: 0 1.25rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-size: 0.92rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; color: var(--accent2-dark); flex-shrink: 0; }
.faq details[open] summary::after { content: '－'; }
.faq details p { font-size: 0.86rem; color: var(--text2); padding: 0 0 1.1rem; }

/* ── Reveal (subtle) ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 520px; }
  .strengths { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .company-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
  .cta { flex-direction: column; align-items: flex-start; padding: 2.5rem 2rem; }
}
@media (max-width: 640px) {
  section { padding: 4.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  nav a:not(.nav-cta) { display: none; }
  .services { grid-template-columns: 1fr; }
  .service { padding: 1.6rem; }
  .flow { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-wrap { padding: 1.6rem 1.25rem; }
  .faq { grid-template-columns: 1fr; }
  .company-table th { width: 110px; font-size: 0.78rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
