/* ============================================================
   あおぞら工房 — Corporate Site Stylesheet
   ============================================================ */
:root {
  --c-primary: #2f9bd8;
  --c-primary-deep: #1a6fa8;
  --c-sky-pale: #eaf6fd;
  --c-ink: #1b2a3a;
  --c-ink-soft: #51626f;
  --c-line: #dde7ee;
  --c-bg: #ffffff;
  --c-bg-alt: #f5fafd;
  --c-footer: #16293b;
  --c-accent: #f5b942;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(27, 42, 58, .08);
  --shadow-md: 0 6px 24px rgba(27, 42, 58, .10);
  --maxw: 1080px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary-deep); text-decoration: none; }
a:hover { opacity: .85; }
ul { list-style: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--c-ink); }
.brand .logo-mark { height: 40px; width: auto; flex-shrink: 0; }
.brand > span { display: flex; flex-direction: column; justify-content: center; }
.brand .brand-name { font-size: 1.18rem; font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.brand .brand-sub { font-size: .62rem; font-weight: 500; color: var(--c-ink-soft); letter-spacing: .16em; line-height: 1.2; margin-top: 3px; }
.global-nav ul { display: flex; gap: 6px; flex-wrap: wrap; }
.global-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 700; color: var(--c-ink);
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--c-sky-pale); color: var(--c-primary-deep); opacity: 1; }
.global-nav a.nav-cta { background: var(--c-primary); color: #fff; }
.global-nav a.nav-cta:hover { background: var(--c-primary-deep); }

/* ハンバーガーボタン（モバイルのみ表示） */
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    url("../img/hero.png") center top / cover no-repeat,
    linear-gradient(165deg, #d9f0fc 0%, #eaf6fd 45%, #ffffff 100%);
  padding: 96px 0 110px;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 900; line-height: 1.4; letter-spacing: .03em;
}
.hero h1 .accent { color: var(--c-primary-deep); }
.hero .lead { margin-top: 22px; font-size: clamp(.98rem, 1.6vw, 1.08rem); color: var(--c-ink-soft); max-width: 600px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 1; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-deep); }
.btn-ghost { background: #fff; color: var(--c-primary-deep); border: 1.5px solid var(--c-primary); }
.btn-small { padding: 9px 20px; font-size: .87rem; }

/* ---------- Stats strip ---------- */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md);
}
.stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat .num { font-size: 1.9rem; font-weight: 900; color: var(--c-primary-deep); line-height: 1.2; }
.stat .num small { font-size: 1rem; font-weight: 700; margin-left: 2px; }
.stat .label { margin-top: 6px; font-size: .82rem; font-weight: 500; color: var(--c-ink-soft); letter-spacing: .06em; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--c-bg-alt); }
.sec-head { margin-bottom: 42px; }
.sec-head .en {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .26em;
  color: var(--c-primary); text-transform: uppercase; margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); font-weight: 900; letter-spacing: .04em; }
.sec-head p.desc { margin-top: 12px; color: var(--c-ink-soft); font-size: .95rem; max-width: 640px; }
.sec-more { margin-top: 36px; text-align: center; }

/* ---------- Cards (business) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.biz-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.biz-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--c-sky-pale); margin-bottom: 18px;
}
.biz-card .icon svg { width: 28px; height: 28px; }
.biz-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.biz-card p { font-size: .92rem; color: var(--c-ink-soft); }

/* ---------- News list ---------- */
.news-list li { border-bottom: 1px solid var(--c-line); }
.news-list li:first-child { border-top: 1px solid var(--c-line); }
.news-list a, .news-list .news-row {
  display: flex; gap: 18px; align-items: baseline; padding: 18px 6px; color: var(--c-ink); flex-wrap: wrap;
}
.news-list time { font-size: .85rem; font-weight: 700; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.chip {
  flex-shrink: 0; display: inline-block; padding: 2px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--c-sky-pale); color: var(--c-primary-deep);
}
.chip.release { background: #e8f7ee; color: #1d7a45; }
.news-list .txt { font-size: .94rem; flex: 1; min-width: 240px; }
.news-year { margin: 44px 0 10px; font-size: 1.1rem; font-weight: 900; color: var(--c-primary-deep); letter-spacing: .06em; }
.news-year:first-of-type { margin-top: 0; }

/* ---------- Works ---------- */
.works-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--c-sky-pale); border: 1px solid #cfe9f8; border-radius: var(--radius);
  padding: 16px 20px; font-size: .88rem; color: var(--c-ink-soft); margin-bottom: 38px;
}
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.work-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.work-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--c-sky-pale); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 12px; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .06em;
  background: var(--c-primary); color: #fff; box-shadow: var(--shadow-sm);
}
.badge.new { background: var(--c-accent); color: #5b3b00; }
.badge.upcoming { background: var(--c-ink); color: #fff; }
.badge.anthology { background: #7a4fd0; color: #fff; }
.work-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-title { font-size: 1rem; font-weight: 700; line-height: 1.55; }
.work-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.work-desc {
  font-size: .85rem; color: var(--c-ink-soft); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.work-actions { margin-top: auto; padding-top: 6px; }
.work-actions .btn { width: 100%; justify-content: center; }

/* ---------- About / tables ---------- */
.def-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.def-table th, .def-table td { padding: 18px 22px; border-bottom: 1px solid var(--c-line); font-size: .94rem; text-align: left; vertical-align: top; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }
.def-table th { width: 200px; background: var(--c-bg-alt); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 1.2em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--c-primary); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.2em; }
.prose ol { padding-left: 1.6em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Company banner ---------- */
.company-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #1a6fa8, #2f9bd8);
  border-radius: var(--radius); padding: 40px 44px; color: #fff; box-shadow: var(--shadow-md);
}
.company-banner h3 { font-size: 1.3rem; font-weight: 900; letter-spacing: .04em; }
.company-banner p { font-size: .92rem; opacity: .92; margin-top: 6px; }
.company-banner .btn { background: #fff; color: var(--c-primary-deep); }

/* ---------- Page header (sub pages) ---------- */
.page-head {
  background: linear-gradient(165deg, #d9f0fc 0%, #eef8fe 60%, #fff 100%);
  padding: 64px 0 56px;
}
.page-head .en { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .26em; color: var(--c-primary); text-transform: uppercase; margin-bottom: 6px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 900; letter-spacing: .04em; }
.breadcrumb { margin-top: 14px; font-size: .8rem; color: var(--c-ink-soft); }
.breadcrumb a { color: var(--c-ink-soft); text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 40px 36px; max-width: 720px;
}
.contact-mail { display: flex; align-items: center; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.contact-mail .addr { font-size: 1.25rem; font-weight: 900; color: var(--c-primary-deep); letter-spacing: .02em; }
.note { font-size: .84rem; color: var(--c-ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: #c7d6e2; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { height: 34px; width: auto; }
.footer-brand .brand-name { font-weight: 900; font-size: 1.05rem; }
.site-footer p { font-size: .84rem; }
.site-footer h4 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .14em; margin-bottom: 14px; text-transform: uppercase; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c7d6e2; font-size: .88rem; }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: #8aa3b8; }

/* ---------- Age gate ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13, 28, 41, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; padding: 24px;
}
.agegate[hidden] { display: none; }
.agegate-card {
  background: #fff; border-radius: 20px; max-width: 480px; width: 100%;
  padding: 44px 40px; text-align: center; box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.agegate-card .mark { margin: 0 auto 18px; width: 60px; }
.agegate-card .mark .logo-mark { width: 100%; height: auto; }
.agegate-card h2 { font-size: 1.25rem; font-weight: 900; margin-bottom: 14px; }
.agegate-card p { font-size: .88rem; color: var(--c-ink-soft); margin-bottom: 26px; }
.agegate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate-protected { filter: blur(28px); pointer-events: none; user-select: none; }
body.gate-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 64px 0 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .def-table th { width: 120px; }
  .section { padding: 60px 0; }
  .company-banner { padding: 30px 26px; }
  /* ハンバーガーメニュー */
  .site-header .container { flex-wrap: nowrap; min-height: 60px; }
  .nav-toggle {
    display: block; position: relative; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; flex-shrink: 0; padding: 0;
  }
  .nav-toggle span {
    position: absolute; left: 11px; top: 21px;
    width: 22px; height: 2px; border-radius: 2px;
    background: var(--c-ink); transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle span:nth-child(1) { transform: translateY(-7px); }
  .nav-toggle span:nth-child(3) { transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md); padding: 10px 16px 16px;
    display: none;
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 2px; }
  .global-nav a { display: block; padding: 13px 14px; border-radius: 10px; font-size: .95rem; }
  .global-nav a.nav-cta { text-align: center; margin-top: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 12px; }
  .stat .num { font-size: 1.55rem; }
}
