/* ============================================================
   IDEATECH - Main Stylesheet
   Colors: Grand Color（CSS変数で一元管理）
   Fonts: Roboto (heading) × Hiragino Sans (body) × Shippori Mincho (mincho)
   ============================================================ */

/* ----------------------------------------
   1. Custom Properties
   ---------------------------------------- */
:root {
  --kinari: #cec7bc;
  --yomogi: #c0d1ca;
  --kasumi: #cbcada;
  --sora: #6a9bcc;
  --momo: #c46686;
  --daidai: #d97757;
  --karashi: #DAB351;
  --kuro1: #141413;
  --kuro2: #1f1e1d;
  --kuro3: #262624;
  --kuro4: #3d3d3a;
  --shiro1: #faf9f5;
  --shiro2: #F0EEE7;
  --shiro3: #e3dacc;
  --color-focus: #2c84db;
  --color-error: #bf4d43;
  --font-body: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', sans-serif;
  --font-heading: 'Roboto', sans-serif;
  --font-mincho: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* ── 既存コードとの互換エイリアス（段階的に置き換える） ── */
  --slate-dark:   var(--kuro1);
  --slate-medium: var(--kuro4);
  --ivory-light:  var(--shiro1);
  --navy:         var(--kuro1);
  --navy-dark:    var(--kuro1);
  --coral:        var(--daidai);
  --coral-hover:  #e08860;
  --white:        var(--shiro1);

  /* ── 共通設定 ── */
  --max-width:    1200px;
  --header-h:     80px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.2s ease;
}

/* ----------------------------------------
   2. Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body[data-mode="dark"] {
  background: var(--kuro1);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition);
}

ul { list-style: none; }

h1 {
  font-family: var(--font-mincho);
  font-size: 48px;
  line-height: 1.4;
  font-weight: 700;
}

h2 {
  font-family: var(--font-mincho);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
}

h3 {
  font-family: var(--font-mincho);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
}

p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

small {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}

nav, button, .btn {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.section__label,
[class*="__label"],
[class*="__num"] {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ----------------------------------------
   3. Layout Utilities
   ---------------------------------------- */
.section__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 96px 80px;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--daidai);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--kuro1);
  margin-bottom: 16px;
}

.section__title--light { color: var(--ivory-light); }

.section__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--kuro4);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section__desc--light { color: var(--shiro3); }

.section__footer {
  text-align: center;
  margin-top: 56px;
}

/* ----------------------------------------
   4. Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition), opacity var(--transition);
  letter-spacing: 0.02em;
}

/* Coral filled */
.btn--coral {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn--coral:hover {
  background: var(--coral-hover);
  border-color: var(--coral-hover);
  opacity: 1;
  transform: none;
  box-shadow: none;
}

/* Outline (on dark bg) */
.btn--outline {
  background: transparent;
  color: var(--shiro1);
  border-color: var(--shiro1);
}
.btn--outline:hover {
  background: var(--shiro1);
  color: var(--kuro1);
  opacity: 1;
  transform: none;
}

/* Ghost (on dark bg) */
.btn--ghost {
  background: transparent;
  color: var(--shiro1);
  border-color: var(--kuro4);
}
.btn--ghost:hover {
  background: var(--kuro3);
  border-color: var(--shiro3);
  opacity: 1;
  transform: none;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ----------------------------------------
   5. Header
   ---------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--slate-dark);
  border-bottom: 1px solid var(--kuro4);
  transition: background var(--transition);
}

.header.is-scrolled {
  box-shadow: none;
}

.header__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-right: auto;
}
.header__logo:hover { color: var(--shiro3); opacity: 1; }

.header__nav { flex: none; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.header__nav-cta { display: none; }

.header__nav-list a,
.header__dropdown-btn {
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  padding: 0;
  height: auto;
}

.header__nav-list a {
  font-weight: 700;
  color: var(--shiro3);
  letter-spacing: 0.01em;
  position: relative;
}

.header__nav-list a:hover {
  color: var(--shiro1);
  font-weight: 700;
  text-decoration: none;
}

/* Dropdown */
.header__has-dropdown {
  position: relative;
}

.header__dropdown-btn {
  gap: 4px;
  font-weight: 700;
  color: var(--shiro3);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: var(--font-body);
}
.header__dropdown-btn:hover,
.header__dropdown-btn.is-active {
  color: var(--shiro1);
  font-weight: 700;
  text-decoration: none;
}
.header__dropdown-btn.is-active {
  color: var(--white);
}

.header__dropdown-chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.header__has-dropdown.is-open .header__dropdown-chevron {
  transform: rotate(-180deg);
}

.header__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 188px;
  background: var(--kuro2);
  border: 1px solid var(--kuro4);
  border-radius: var(--radius-md);
  padding: 6px 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
  list-style: none;
}
.header__has-dropdown.is-open .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--shiro3);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.header__dropdown-menu li a:hover {
  background: var(--kuro3);
  color: var(--white);
  opacity: 1;
}
.header__dropdown-menu li a::after { display: none; }

.header__dropdown-divider {
  height: 0.5px;
  background: var(--kuro4);
  margin: 4px 16px;
}

/* Header CTA buttons */
.header__cta .btn {
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 6px;
  line-height: 1.4;
  height: auto;
}

.header .btn--coral {
  background: var(--ivory-light);
  color: var(--slate-dark);
  border-color: var(--ivory-light);
}

.header .btn--coral:hover {
  background: var(--shiro3);
  border-color: var(--shiro3);
  transform: none;
  box-shadow: none;
}

.header .btn--ghost {
  border-color: var(--kuro4);
  color: var(--shiro3);
}

.header .btn--ghost:hover {
  background: var(--kuro3);
  transform: none;
  box-shadow: none;
}

/* Mobile hamburger */
.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.header__menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-btn.is-active span:nth-child(2) { opacity: 0; }
.header__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   5.5 Breadcrumb
   ---------------------------------------- */
.breadcrumb {
  background: var(--kuro1);
  padding: 12px 80px;
  padding-top: calc(var(--header-h) + 12px);
  border-bottom: 0.5px solid var(--kuro4);
}

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 400;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--shiro2);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '>';
  margin: 0 8px;
  color: var(--shiro2);
}

.breadcrumb__link {
  color: var(--shiro2);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__text {
  color: var(--shiro2);
}

.breadcrumb__current {
  color: var(--kinari);
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 12px 24px;
    padding-top: calc(var(--header-h) + 12px);
  }
}

/* ----------------------------------------
   6. Hero
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--slate-dark);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Ambient glow — disabled */
.hero::before,
.hero::after { display: none; }

/* Decorative background text — disabled */
.hero__bg-text { display: none; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 120px 80px 96px;
  width: 100%;
}

.hero__content {
  max-width: none;
  margin-left: 0;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--daidai);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--daidai);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 700;
  color: var(--shiro1);
  line-height: 1.4;
  margin-bottom: 28px;
}

.hero__title em {
  font-style: normal;
  color: var(--shiro1);
}

.hero__desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--shiro3);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__cta .btn {
  border-radius: 9999px;
  padding: 12px 32px;
  font-size: 0.875rem;
}

.hero__cta .btn:hover {
  transform: none;
  box-shadow: none;
}

.hero__cta .btn--coral {
  background: var(--daidai);
  border-color: var(--daidai);
  color: var(--shiro1);
  transform: none;
  box-shadow: none;
}

.hero__cta .btn--coral:hover {
  background: var(--kuro4);
  border-color: var(--kuro4);
  transform: none;
  box-shadow: none;
}

.hero__cta .btn--ghost {
  border-color: var(--kuro4);
  color: var(--shiro1);
  background: transparent;
}

.hero__cta .btn--ghost:hover {
  background: var(--kuro3);
  transform: none;
  box-shadow: none;
}

.hero__cta .btn--kinari {
  background: var(--kinari);
  border-color: var(--kinari);
  color: var(--kuro1);
}
.hero__cta .btn--kinari:hover {
  background: var(--kuro4);
  border-color: var(--kuro4);
  color: var(--shiro1);
  transform: none;
  box-shadow: none;
}

.hero__cta .btn--daidai {
  background: var(--daidai);
  border-color: var(--daidai);
  color: var(--kuro1);
}
.hero__cta .btn--daidai:hover {
  background: var(--kuro4);
  border-color: var(--kuro4);
  color: var(--shiro1);
  transform: none;
  box-shadow: none;
}

/* Stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--kuro4);
}

.hero__stat {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__stat:first-child { padding-left: 0; }

.hero__stat-divider {
  width: 1px;
  height: 56px;
  background: var(--kuro4);
  flex-shrink: 0;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hero__stat-unit {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: var(--daidai);
}

.hero__stat-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--shiro3);
  line-height: 1.8;
}

/* Hero — Light mode variant */
.hero--light {
  background: var(--shiro1);
  min-height: auto;
  padding-top: 0;
}
.hero--light .hero__eyebrow { color: var(--accent); }
.hero--light .hero__eyebrow::before { background: var(--accent); }
.hero--light .hero__title { color: var(--kuro1); }
.hero--light .hero__desc { color: var(--kuro4); }
.hero--light .hero__stats { border-top: none; }
.hero--light .hero__stat-num { color: var(--kuro1); }
.hero--light .hero__stat-unit { color: var(--accent); }
.hero--light .hero__stat-label { color: var(--kuro4); }
.hero--light .hero__stat-divider { display: none; }
.hero--light .hero__cta .btn--coral {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--kuro1);
}
.hero--light .hero__cta .btn--coral:hover {
  background: var(--kuro4);
  border-color: var(--kuro4);
  color: var(--shiro1);
}
.hero--light .hero__cta .btn--ghost {
  border-color: var(--kuro4);
  color: var(--kuro1);
  background: transparent;
}
.hero--light .hero__cta .btn--ghost:hover {
  background: var(--kuro4);
  color: var(--shiro1);
}

/* ----------------------------------------
   7. Downloads
   ---------------------------------------- */
.downloads { background: var(--kuro3); }
.downloads .section__label { color: var(--daidai); }
.downloads .section__title { color: var(--shiro1); }
.downloads .section__desc { color: var(--shiro3); }

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

/* Thumbnail placeholder */
.download-card__thumb {
  height: 172px;
  background: var(--kuro4);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}

.download-card__thumb::before { display: none; }

.download-card__thumb--02 { background: var(--kuro4); }
.download-card__thumb--03 { background: var(--kuro4); }

.download-card__thumb-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--shiro1);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.download-card {
  background: var(--shiro1);
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid var(--shiro3);
  display: flex;
  flex-direction: column;
}

.download-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.download-card__body .cta-dl {
  margin-top: auto;
  display: flex;
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 16px;
}

.download-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--daidai);
  color: var(--shiro1);
  font-size: 14px;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.download-card__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--kuro1);
  line-height: 1.6;
  margin-bottom: 16px;
}

.download-card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--kuro4);
  line-height: 1.8;
  margin-bottom: 20px;
}

.download-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--kuro1);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kuro1);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.download-card__link:hover {
  background: var(--kuro1);
  color: var(--shiro1);
}

/* ----------------------------------------
   8. Services
   ---------------------------------------- */
.services {
  background: var(--kuro2);
  color: var(--shiro1);
}

.services .section__label {
  color: var(--daidai);
}

.services .section__title,
.services h2 {
  color: var(--shiro1);
}

.services .section__lead,
.services .section__desc {
  color: var(--shiro2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}





/* サービスカードのホバー効果を完全削除 */






/* Per-card accent backgrounds */





























/* ----------------------------------------
   9. Footer
   ---------------------------------------- */
.footer {
  background: var(--kuro1);
  color: var(--shiro1);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px 40px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 0.5px solid var(--kuro4);
  margin-bottom: 32px;
  align-items: start;
}

.footer__brand {
  padding-right: 24px;
}

.footer__logo {
  display: block;
}

.footer__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.footer__logo:hover { opacity: 0.8; }

.footer__nav-heading {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--daidai);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-col a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--shiro3);
  transition: color var(--transition);
}

.footer__nav-col a:hover {
  color: var(--shiro1);
  text-decoration: underline;
  opacity: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__copy {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--shiro3);
  line-height: 1.6;
}

.footer__sitemap {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 400;
  color: var(--shiro3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__sitemap:first-of-type {
  margin-left: auto;
}
.footer__sitemap:hover {
  color: var(--shiro1);
  text-decoration: underline;
}

/* ----------------------------------------
   10. Guides section
   ---------------------------------------- */
.guides { background: var(--kuro1); }
.guides .section__label { color: var(--daidai); }
.guides .section__title { color: var(--shiro1); }
.guides .section__desc { color: var(--shiro3); }

.guides__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.guide-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--shiro3);
}

.guide-card__thumb {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.guide-card__thumb--01 { background: var(--kuro4); }
.guide-card__thumb--02 { background: var(--kuro4); }
.guide-card__thumb--03 { background: var(--kuro4); }
.guide-card__thumb--04 { background: var(--kuro4); }

.guide-card__thumb::before { display: none; }

.guide-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--shiro1);
  background: var(--daidai);
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.guide-card__body {
  padding: 28px 28px 32px;
}

.guide-card__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--kuro1);
  line-height: 1.6;
  margin-bottom: 12px;
}

.guide-card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--kuro4);
  line-height: 1.8;
  margin-bottom: 20px;
}

.guide-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--kuro1);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kuro1);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.guide-card__link:hover {
  background: var(--kuro1);
  color: var(--shiro1);
}

.guide-card__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----------------------------------------
   11. Responsive
   ---------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .section__inner { padding: 80px 32px; }
  .hero__inner    { padding: 100px 32px 80px; }
  .footer__inner  { padding: 64px 32px 36px; }
  .header__inner  { padding: 0 32px; gap: 0; }

  .downloads__grid,
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
  .section__inner { padding: 64px 24px; }
  .hero__inner    { padding: 80px 24px 64px; }
  .footer__inner  { padding: 56px 24px 32px; }
  .header__inner  { padding: 0 24px; gap: 0; }

  /* Hide nav, show hamburger */
  .header__nav        { display: none; }
  .header__menu-btn   { display: flex; }

  /* Mobile nav open */
  .header__nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    background: var(--slate-dark);
    padding: 32px 24px;
    border-top: 1px solid var(--kuro4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__nav.is-open .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .header__nav.is-open .header__nav-list a,
  .header__nav.is-open .header__dropdown-btn {
    font-size: 14px;
  }

  /* Mobile: dropdowns always expanded */
  .header__nav.is-open .header__dropdown-chevron { display: none; }
  .header__nav.is-open .header__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 8px 0 0 16px;
    min-width: 0;
  }
  .header__nav.is-open .header__dropdown-menu li a {
    padding: 6px 0;
    font-size: 13px;
    color: var(--shiro3);
  }
  .header__nav.is-open .header__dropdown-menu li a:hover {
    background: none;
    color: var(--shiro1);
  }
  .header__nav.is-open .header__dropdown-divider { display: none; }

  /* Hero */
  .hero__title { font-size: 32px; }

  .hero__cta {
    flex-direction: column;
  }
  .hero__cta .btn { width: 100%; }

  .hero__stats {
    flex-direction: column;
    gap: 32px;
    margin-top: 64px;
    padding-top: 40px;
  }

  .hero__stat { padding: 0; }
  .hero__stat-divider {
    width: 48px;
    height: 1px;
    background: var(--kuro4);
  }

  /* Grids → 1 column */
  .downloads__grid,
  .services__grid,
  .guides__grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }

  /* ── Mobile responsive improvements ── */

  /* Header CTA: hide on mobile (accessible via hamburger nav) */
  .header__cta { display: none; }

  /* Mobile nav: show CTA links */
  .header__nav.is-open .header__nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 0.5px solid var(--kuro4);
  }
  .header__nav.is-open .header__nav-cta a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Text wrapping & font size */
  .hero__desc--nowrap { white-space: normal; }
  .hero__desc { font-size: 16px; }
  .section__title { font-size: 24px; }
  .page-hero__title { font-size: 32px; }

  /* Button tap target */
  .cta-kuro, .cta-shiro, .cta-dl { padding: 12px 20px; }
  .cta-more { padding: 10px 16px; }
  .cta-submit { width: 100%; justify-content: center; }

  /* Hero CTA: full width */
  .hero__cta .cta-dl,
  .hero__cta .cta-more,
  .hero__cta .cta-kuro,
  .hero__cta .cta-shiro {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Service cards */
  .service-card { padding: 32px 24px; }

  /* Guide / Download cards */
  .guide-card__body { padding: 20px; }
  .download-card__body { padding: 20px; }
  .guide-card__body .cta-dl,
  .guide-card__body .cta-more,
  .download-card__body .cta-dl,
  .download-card__body .cta-more {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  /* Seminar banner */
  .seminar-banner .section__inner { padding-top: 48px; padding-bottom: 48px; }
  .seminar-banner__cta { flex-direction: column; align-items: stretch; }

  /* Footer bottom */
  .footer__bottom { flex-direction: column; align-items: center; gap: 12px; }
  .footer__sitemap:first-of-type { margin-left: 0; }
}

/* Small mobile */
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }

  .hero__bg-text { display: none; }
}

/* サービスカード：ホバー効果を完全削除（詳しく見るボタンのみ残す） */




/* ══ サービスカード ホバー効果を完全削除 ══ */


/* ══ サービスカード（ホバーなし・グランドカラー準拠） ══ */
.service-card {
  position: relative;
  padding: 48px 36px;
  border-radius: 8px;
  overflow: hidden;
}

.service-card--01 { background: var(--sora);   color: var(--kuro1); }
.service-card--02 { background: var(--daidai); color: var(--kuro1); }
.service-card--03 { background: var(--yomogi); color: var(--kuro1); }
.service-card--04 { background: var(--momo);   color: var(--kuro1); }
.service-card--05 { background: var(--sora); color: var(--kuro1); }
.service-card--06 { background: var(--kasumi); color: var(--kuro1); }
.service-card--07 { background: var(--kinari); color: var(--kuro1); }
.service-card--08 { background: var(--kinari); color: var(--kuro1); }
.service-card--09 { background: var(--karashi); color: var(--kuro1); }

.service-card__num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--kuro1);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.service-card__name {
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--kuro1);
  margin-bottom: 16px;
}

.service-card__catch {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--kuro1);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--kuro1);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--kuro1);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kuro1);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.service-card__link:hover {
  background: var(--kuro1);
  color: var(--shiro1);
}

/* ══ グランドレイアウト：ページヒーロー ══ */
.page-hero {
  background: var(--kuro1);
}
.page-hero__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 64px 80px;
}
.page-hero__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--daidai);
  margin-bottom: 24px;
}
.page-hero__title {
  font-family: var(--font-mincho);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--shiro1);
  margin-bottom: 24px;
}
.page-hero__desc {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--shiro3);
  max-width: 640px;
}
@media (max-width: 768px) {
  .page-hero__inner { padding: 40px 24px; }
}

/* ══ グランドレイアウト：ボタン定義（確定版・8パターン）══ */

/* 共通ベース */
.cta-kuro, .cta-shiro, .cta-more, .cta-dl, .cta-submit {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* ── ライト背景用（デフォルト） ── */

/* cta-kuro on light */
.cta-kuro {
  background: var(--kuro1);
  color: var(--shiro1);
  border-color: var(--kuro1);
  padding: 8px 20px;
}
.cta-kuro:hover {
  background: var(--shiro1);
  color: var(--kuro1);
}

/* cta-shiro on light */
.cta-shiro {
  background: var(--shiro1);
  color: var(--kuro1);
  border-color: var(--kuro1);
  padding: 8px 20px;
}
.cta-shiro:hover {
  background: var(--shiro3);
}

/* cta-more on light */
.cta-more {
  background: transparent;
  color: var(--kuro1);
  border-color: var(--kuro1);
  padding: 8px 14px;
}
.cta-more::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}
.cta-more:hover {
  background: var(--kuro1);
  color: var(--shiro1);
}
.cta-more:hover::after {
  transform: translateX(4px);
}

/* ── ダーク背景用（.mode-dark 配下） ── */

/* cta-kuro on dark */
.mode-dark .cta-kuro {
  background: var(--kuro1);
  color: var(--shiro1);
  border-color: var(--shiro1);
  padding: 8px 20px;
}
.mode-dark .cta-kuro:hover {
  background: var(--kuro3);
}

/* cta-shiro on dark */
.mode-dark .cta-shiro {
  background: var(--shiro1);
  color: var(--kuro1);
  border-color: var(--shiro1);
  padding: 8px 20px;
}
.mode-dark .cta-shiro:hover {
  background: var(--kuro1);
  color: var(--shiro1);
  border-color: var(--shiro1);
}

/* cta-more on dark */
.mode-dark .cta-more {
  background: transparent;
  color: var(--shiro1);
  border-color: var(--shiro1);
  padding: 8px 14px;
}
.mode-dark .cta-more:hover {
  background: var(--shiro1);
  color: var(--kuro1);
}

/* mode-light: mode-dark 内でライトモードに戻す */
.mode-dark .mode-light .cta-more { color: var(--kuro1); border-color: var(--kuro1); }
.mode-dark .mode-light .cta-more:hover { background: var(--kuro1); color: var(--shiro1); }

/* ── cta-dl（ライト背景専用） ── */
.cta-dl {
  background: var(--kuro1);
  color: var(--shiro1);
  border-color: var(--kuro1);
  padding: 8px 20px;
}
.cta-dl:hover {
  background: var(--kuro3);
  border-color: var(--kuro3);
}

/* ── cta-submit（フォーム送信・背景モード問わず） ── */
.cta-submit {
  background: var(--daidai);
  color: var(--kuro1);
  border-color: var(--daidai);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}
.cta-submit:hover {
  opacity: 0.88;
}
.cta-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* cta-submit の矢印アイコン（SVGインライン） */
.cta-submit::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23141413' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h12M11 5l4 4-4 4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.cta-submit:hover::after {
  transform: translateX(4px);
}

/* cta-dl のダウンロードアイコン（SVGインライン） */
.cta-dl::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf9f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ══ グランドレイアウト：フォーム定義 ══ */

/* ── ラベル ── */
.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--kuro1);
  margin-bottom: 8px;
}

.form-required {
  font-size: 14px;
  font-weight: 700;
  color: var(--daidai);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.form-optional {
  font-size: 13px;
  font-weight: 400;
  color: var(--kuro4);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* ── フォーム要素（共通） ── */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--kuro1);
  background: var(--shiro1);
  border: 0.5px solid var(--kuro4);
  border-radius: 8px;
  transition: border-color 0.2s ease;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--kuro4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--daidai);
}

/* ── セレクト（シェブロン付き） ── */
.form-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='%233d3d3a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

/* ── テキストエリア ── */
.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.75;
}

/* ── フィールド配置 ── */
.form-field {
  margin-bottom: 28px;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── エラー ── */
.form-error {
  display: none;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-error);
  font-weight: 400;
}

.form-field.has-error .form-error {
  display: block;
}

.form-field.has-error .form-input,
.form-field.has-error .form-select,
.form-field.has-error .form-textarea {
  border-color: var(--color-error);
}

/* ── 同意チェックボックス ── */
.form-consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--shiro1);
  border-radius: 8px;
  margin-bottom: 32px;
  border: 0.5px solid var(--kuro4);
  transition: border-color 0.2s ease;
}

.form-consent.is-error {
  border-color: var(--color-error);
}

.form-consent__checkbox {
  width: 18px;
  height: 18px;
  border: 0.5px solid var(--kuro4);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--daidai);
}

.form-consent__text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--kuro4);
  line-height: 1.75;
}

.form-consent__text a {
  color: var(--daidai);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.form-consent__text a:hover {
  opacity: 0.7;
}

/* ── Seminar banner (TOP) ── */
.seminar-banner {
  background: var(--kuro2);
}
.seminar-banner .section__inner {
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}
.seminar-banner__content {
  max-width: 860px;
  margin: 0 auto;
}
.seminar-banner__title {
  margin-bottom: 12px;
  color: var(--shiro1);
}
.seminar-banner__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--shiro3);
  line-height: 1.8;
  margin-bottom: 24px;
}
.seminar-banner__desc strong {
  color: var(--shiro1);
}
.seminar-banner__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Misc utility classes ── */
.hero__desc--nowrap {
  white-space: nowrap;
}
.footer__nav-heading--mt {
  margin-top: 24px;
}
.sm-empty-state {
  text-align: center;
  color: var(--shiro3);
  padding: 32px 0;
}
.sm-archive-label {
  font-size: 13px;
  color: var(--kuro4);
  text-align: right;
}
.ge-closing {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-mincho);
  font-size: 14px;
  color: var(--shiro3);
  line-height: 2;
}
.cta-kuro--full {
  width: 100%;
  justify-content: center;
}
.bf-metric-link-wrap {
  margin-top: 20px;
}
.bf-metric-link {
  color: var(--daidai);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .form-field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ----------------------------------------
   Splash Screen
   ---------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kuro1);
  opacity: 1;
  transition: opacity 0.6s ease;
}

.splash__logo {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash.is-visible .splash__logo {
  opacity: 1;
  transform: scale(1);
}

.splash.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* ===== Skip to Content (accessibility) ===== */
/* フォーカス時のみ表示。視覚的には常に画面外。 */
.skip-to-content {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10000;
  background: #1E50FF;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ===== Page Status Bar (footer-top: version & last updated) ===== */
.page-status,
section.page-status,
div.page-status {
  width: 100%;
  box-sizing: border-box;
  background: #07153D;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px !important;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-status > .page-status__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-align: center;
}
.page-status__live {
  color: #00C6FF;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-status__dot {
  width: 7px;
  height: 7px;
  background: #00C6FF;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.2);
  animation: page-status-pulse 2s infinite;
}
@keyframes page-status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 198, 255, 0.05); }
}
