/* itsucara.com — hand-written, no framework, light theme only. */

:root {
  --ink:        #16181c;
  --ink-2:      #3d434c;
  --muted:      #5a616b;
  --line:       #e2e6ec;
  --line-soft:  #eef1f5;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fa;
  --accent:     #1b6fb0;
  --accent-ink: #14568a;
  --accent-bg:  #eaf3fb;
  --radius:     12px;
  --wrap:       1100px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; margin: 0; font-weight: 700; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  text-decoration: none; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- language banner (kept from the previous site) ---------- */
.lang-banner { display:flex; align-items:center; min-height:44px; padding-left:44px; background:#22252a; color:#ffffff; font-size:13px; line-height:1.4; }
.lang-banner[hidden] { display:none; }
.lang-banner-msg { flex:1 1 auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:2px 10px; padding:6px 0; text-align:center; }
.lang-banner-link { color:#8fc4ee; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.lang-banner-link:hover { color:#ffffff; }
.lang-banner-close { flex:0 0 auto; width:44px; height:44px; display:flex; align-items:center; justify-content:center; padding:0; border:0; background:none; color:#ffffff; font-size:17px; line-height:1; cursor:pointer; }
.lang-banner-close:hover { color:#8fc4ee; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 26px; width: auto; display: block; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink); font-size: 15px; cursor: pointer; align-items: center; justify-content: center;
}

.site-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- sections ---------- */
main { display: block; }
.section { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section h2, .section-head h1 { font-size: 30px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 84px; border-top: 0; }
.hero h1 { font-size: 46px; letter-spacing: -0.02em; max-width: 15em; margin-bottom: 22px; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 40em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.hero-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-strip img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.hero-strip .strip-note { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 22px;
}
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: block; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
/* :where() keeps this at .card specificity, so the .meta / .card-actions /
   .card-social rules further down can still override it. */
.card > :where(p) { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

.badges {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0;
  align-content: flex-start; align-items: flex-start;
}
.badges li {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}

.meta { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.meta--soon { color: var(--accent-ink); font-weight: 600; }

.card-actions { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card-actions .btn { padding: 8px 16px; font-size: 13.5px; }
.card-social { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.card-social a { margin-right: 4px; }

/* Line the cards up along their bottom edge.
   Every card is a subgrid over the same seven rows -- icon, title, blurb,
   badges, meta, buttons, social -- so the button row and the SNS row land at
   the same height on every card of a row, including the cards that have no
   SNS row at all. Row gutters are 0 here: the margins above keep the rhythm.
   Browsers without subgrid fall back to the flex column above, where
   .card-actions still pushes itself down with margin-top: auto. */
@supports (grid-template-rows: subgrid) {
  .card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 7;
    row-gap: 0;
  }
  .card > .card-actions { margin-top: 0; align-self: end; }
  .card > .card-social { align-self: end; }
}

/* ---------- about ---------- */
.about-lead { font-size: 20px; line-height: 1.7; max-width: 26em; margin: 0 0 48px; color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px 30px; list-style: none; margin: 0; padding: 0; }
.pillars h3 { font-size: 16px; margin-bottom: 8px; }
.pillars p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.pillars .num { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: 0.08em; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; }
.post-list { list-style: none; margin: 0 0 0; padding: 0; }
.post-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list time { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.post-list a { font-size: 15.5px; font-weight: 600; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list .src { font-size: 12.5px; color: var(--muted); font-weight: 400; }

.link-block { margin-bottom: 30px; }
.link-block h3 { font-size: 14px; margin-bottom: 10px; }
.link-block ul { list-style: none; margin: 0; padding: 0; }
.link-block li { padding: 4px 0; font-size: 14.5px; }

/* ---------- company ---------- */
.profile { border-top: 1px solid var(--line); max-width: 760px; }
.profile > div { display: grid; grid-template-columns: 190px 1fr; gap: 8px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0; }
.profile dd { margin: 0; font-size: 15px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 8px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-card h3 { font-size: 15px; margin-bottom: 6px; }
.contact-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }

/* ---------- social icon links ---------- */
.sns {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--muted); text-decoration: none;
  transition: color .12s ease, background-color .12s ease;
}
.sns svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.sns:hover, .sns:focus-visible { background: #ffffff; text-decoration: none; }
.sns[data-sns="x"]:hover, .sns[data-sns="x"]:focus-visible { color: #000000; }
.sns[data-sns="bluesky"]:hover, .sns[data-sns="bluesky"]:focus-visible { color: #1185fe; }
.sns[data-sns="note"]:hover, .sns[data-sns="note"]:focus-visible { color: #41c9b4; }
.sns[data-sns="youtube"]:hover, .sns[data-sns="youtube"]:focus-visible { color: #ff0000; }
.sns[data-sns="reddit"]:hover, .sns[data-sns="reddit"]:focus-visible { color: #ff4500; }

.sns--sm { width: 32px; height: 32px; border-radius: 8px; }
.sns--sm svg { width: 18px; height: 18px; }
.sns--sm:hover, .sns--sm:focus-visible { background: var(--bg-alt); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 44px 0 36px; }

.footer-tier {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 28px;
}
.footer-tier--legal { font-size: 13px; color: var(--muted); }
.footer-tier--legal .copyright { margin: 0; }

.footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--accent-ink); text-decoration: underline; }
.footer-nav .lang a { color: var(--ink-2); font-weight: 600; }

.footer-products { margin: 14px 0 0; }
.footer-products ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.footer-products a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-products a:hover, .footer-products a:focus-visible { color: var(--accent-ink); text-decoration: underline; }

.footer-tier--social {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  justify-content: space-between;
}
.footer-tier--social .footer-blurb { font-size: 13px; color: var(--muted); margin: 0; max-width: 34em; }
.sns-row { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 -8px 0 0; padding: 0; }

/* ---------- contact form ---------- */
.contact-form { max-width: 580px; margin-top: 8px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form-row .req { color: var(--accent-ink); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.form-row textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-row select { appearance: auto; }
.hp-field { position: absolute; left: -10000px; }
.form-status { font-size: 14px; margin: 0 0 20px; }
.form-status.is-error { color: #b3261e; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-actions .btn { border: 0; cursor: pointer; }
.form-actions .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.form-success { max-width: 580px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-success p { margin: 0; font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-tier { justify-content: center; text-align: center; }
  .footer-products ul { justify-content: center; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 33px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 25px; }
  .about-lead { font-size: 18px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; order: 3; width: 100%;
    border-top: 1px solid var(--line); padding: 10px 0 16px;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 9px 2px; font-size: 15px; }

  .profile > div { grid-template-columns: 1fr; padding: 14px 0; }
  .footer-tier { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-nav ul, .footer-products ul { justify-content: center; }
  .footer-tier--social { gap: 16px; }
  .sns-row { margin-right: 0; }
}
