/* ========================================
   RAKUSITE — TCD120 BLAZE inspired theme
   ======================================== */

:root {
  /* Teal + Navy palette */
  --accent: #00A3A3;
  --accent-dark: #008E8E;
  --accent-deep: #1F365C;
  --accent-light: #00B5B5;
  --cta: #00B5B5;
  --cta-dark: #009E9E;
  --bg: #F8FBFC;
  --bg-gray: #EEF4F6;
  --text: #1F365C;
  --text-muted: #5A6B82;
  --white: #fff;
  --border: #D8E4EA;
  --container: 1200px;
  --header-h: 80px;
  --font: "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 12px 40px rgba(31, 54, 92, 0.08);
  --accent-sub-dark: color-mix(in srgb, #00A3A3 82%, #1F365C);
  --tcd-header-base-font-color: #fff;
  --tcd-header-base-bg-color: transparent;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99999;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { left: 0; }

body.is-header-sticky { --tcd-header-bar-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); }

/* ===== TCD120 Header ===== */
.l-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  color: #fff;
}

.l-header[data-header-bar-transparent] {
  --tcd-header-bar-box-shadow: none;
  --tcd-header-base-font-color: #fff;
  --tcd-header-base-bg-color: transparent;
}

.p-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding-inline: 40px;
  color: var(--tcd-header-base-font-color, #fff);
  background-color: var(--tcd-header-base-bg-color, transparent);
  box-shadow: var(--tcd-header-bar-box-shadow, none);
}

[data-header-bar-transparent]:not(.is-pre-scroll-sticky):not(.is-scroll-sticky) .p-header-bar {
  border-bottom: 1px solid rgba(221, 221, 221, 0.2);
  transition: background-color 0.18s ease, border-color 0.185s ease;
}

@media (any-hover: hover) {
  [data-header-bar-transparent]:not(.is-pre-scroll-sticky):not(.is-scroll-sticky):hover .p-header-bar {
    border-bottom-color: var(--accent) !important;
  }
  [data-header-bar-transparent]:not(.is-pre-scroll-sticky):not(.is-scroll-sticky):hover {
    --tcd-header-base-bg-color: var(--accent);
  }
}

[data-header-bar-transparent][data-sticky-header="1"].is-pre-scroll-sticky .p-header-bar,
[data-header-bar-transparent][data-sticky-header="1"].is-scroll-sticky .p-header-bar {
  transition: none !important;
}

.l-header[data-header-bar-transparent][data-sticky-header="1"].is-pre-scroll-sticky {
  position: sticky;
  top: calc(var(--header-h) * -1);
  transition: transform 0.4s ease;
  --tcd-header-bar-box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --tcd-header-base-bg-color: var(--accent);
  --tcd-header-base-font-color: #fff;
}

.l-header[data-header-bar-transparent][data-sticky-header="1"].is-pre-scroll-sticky .p-header-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tcd-header-base-bg-color);
  z-index: -1;
}

.l-header[data-header-bar-transparent][data-sticky-header="1"].is-pre-scroll-sticky .p-header-bar {
  border-bottom: none;
}

.l-header[data-header-bar-transparent][data-sticky-header="1"].is-scroll-sticky {
  transform: translateY(100%);
}

.l-header[data-header-bar-transparent][data-sticky-header="1"].is-pre-scroll-sticky.is-scroll-sticky .p-header-bar {
  border-bottom: none;
}

@media (any-hover: hover) {
  .l-header[data-header-bar-transparent]:not(.is-pre-scroll-sticky):not(.is-scroll-sticky):hover .p-header-bar,
  .l-header[data-header-bar-transparent].is-header-hover:not(.is-pre-scroll-sticky):not(.is-scroll-sticky) .p-header-bar {
    background-color: var(--accent);
    border-bottom-color: var(--accent) !important;
  }
}

.p-header-logo {
  flex-shrink: 0;
  margin: 0;
  z-index: 3;
}

.c-logo {
  display: block;
  line-height: 0;
}

.c-logo__image {
  display: block;
  height: 28px;
  width: auto;
}

.c-logo__text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: inherit;
  white-space: nowrap;
}

.c-logo__text--footer { font-size: 0.95rem; color: #fff; }

.p-header-bar-spacer { flex: 1; }

.p-header-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}

.p-header-nav__list {
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: auto;
}

.p-header-nav__list > li {
  position: relative;
  display: grid;
  height: 100%;
}

.p-header-nav__list > li > a {
  display: grid;
  place-items: center;
  padding-inline: 22px;
  height: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.p-header-nav__list .menu-item-cta {
  height: auto;
  align-self: center;
}

.p-header-nav__list .menu-item-cta > a {
  margin-left: 6px;
  height: auto !important;
  min-height: 0;
  max-height: none;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  line-height: 1.35;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 1 !important;
  place-items: center;
}

.p-header-nav__list > li > ul.sub-menu {
  position: absolute;
  inset: 100% auto auto 0;
  min-width: 240px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  color: #fff;
  background: var(--accent-sub-dark);
  overflow: hidden;
}

.p-header-nav__list > li > ul.sub-menu::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
  pointer-events: none;
}

.p-header-nav__list ul.sub-menu a {
  display: grid;
  place-items: center start;
  min-height: 50px;
  padding-inline: 20px;
  transition: background 0.2s, color 0.2s;
}

@media (any-hover: hover) {
  .p-header-nav__list.is-hover-enable > li:hover > a { opacity: 0.65; }
  .p-header-nav__list.is-hover-enable > li.has-children:hover > ul.sub-menu {
    opacity: 1;
    pointer-events: auto;
  }
  .p-header-nav__list ul.sub-menu a:hover {
    background: var(--accent);
  }
}

.p-header-nav__list .menu-item-cta > a:hover {
  background: #fff;
  color: var(--accent) !important;
  opacity: 1 !important;
}

.p-header-nav-sp {
  display: none;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: inherit;
  align-items: center;
  justify-content: center;
}

/* Megamenu */
.p-megamenu {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--accent-light);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-item-megamenu-2 > .sub-menu { display: none; }

@media (any-hover: hover) {
  .l-header:has(.p-header-nav__list.is-hover-enable .menu-item-megamenu-2:hover) .p-megamenu02,
  .l-header:has(.p-megamenu02:hover) .p-megamenu02 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .l-header:has(.menu-item-megamenu-2:hover) .menu-item-megamenu-2 > a,
  .l-header:has(.p-megamenu02:hover) .menu-item-megamenu-2 > a {
    opacity: 0.65;
  }
}

.p-megamenu02 {
  color: #fff;
  padding-block: 36px;
  box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, 0.35);
  background: var(--accent-sub-dark);
}

.p-megamenu02__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.p-megamenu02__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.p-megamenu02__item {
  display: grid;
  background: #fff;
  color: var(--text);
  transition: transform 0.25s var(--ease);
}

.p-megamenu02__item:hover { transform: translateY(-3px); }

.p-megamenu02__item-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.p-megamenu02__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-megamenu02__item-content {
  padding: 20px 22px 24px;
}

.p-megamenu02__item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.p-megamenu02__item-catch {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.55;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(31, 54, 92, 0.97);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer__nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-drawer__cta {
  margin-top: 24px;
  text-align: center;
  border: 1px solid #fff !important;
  border-radius: 999px;
  padding: 14px !important;
}

/* Buttons */
.blaze-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.25s var(--ease);
}
.blaze-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}
.blaze-btn--ghost:hover {
  background: #fff;
  color: var(--accent-deep);
}
.blaze-btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.blaze-btn--outline:hover {
  background: var(--accent);
  color: #fff;
}
.blaze-btn--solid {
  background: var(--cta);
  color: #fff;
  border: 1px solid var(--cta);
}
.blaze-btn--solid:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
}

/* Hero (TCD120 p-mv2) */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  --txt-dur: 0.9s;
  --txt-gap: 140ms;
  --slide-edge-y: 110vh;
}

.hero__slides {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 520px;
}

@media screen and (min-width: 991px) and (min-height: 870px) {
  .hero__slides { height: 750px; }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero__slide.is-leaving {
  z-index: 1;
}

.hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  pointer-events: none;
}

.hero__slides.has-video-bg .hero__cover {
  opacity: 0;
  visibility: hidden;
}

.hero__slides.has-video-bg .hero__overlay {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: color-mix(in srgb, #1F365C 70%, transparent);
  pointer-events: none;
}

.hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: stretch;
  padding-top: var(--header-h);
}

.hero__flex {
  display: flex;
  align-items: stretch;
  gap: clamp(40px, 8vw, 100px);
  block-size: 100%;
  inline-size: min(100%, 1190px);
  margin-inline: auto;
  padding-inline: 0;
}

.hero__flex--reverse {
  flex-direction: row-reverse;
}

.hero__text {
  flex: 0 1 520px;
  display: grid;
  align-content: center;
  gap: clamp(24px, 4vw, 40px);
  color: #fff;
}

.hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.hero__lead {
  font-size: 1rem;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 520px;
}

.hero__btn {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: fit-content;
  min-width: min(300px, 100%);
  height: 60px;
  padding: 0 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero__btn:hover {
  background: var(--cta);
  border-color: var(--cta);
}

.concept__btn { justify-self: center; }

.hero__figure {
  flex: 1 1 420px;
  align-self: center;
  inline-size: min(100%, 570px);
  block-size: clamp(450px, 72vh, 460px);
  max-width: 570px;
  transform: translateY(var(--slide-edge-y)) scale(0.985);
  opacity: 0;
  transition:
    transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 1.5s cubic-bezier(0.16, 0.84, 0.44, 1);
  transition-delay: 0.5s;
}

.hero__figure.is-pos-bottom {
  align-self: flex-end;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Text stagger animation */
.hero .js-fadeup {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--txt-dur) cubic-bezier(0.25, 0.8, 0.25, 1),
    transform var(--txt-dur) cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: var(--d, 0ms);
}

.hero__btn.js-fadeup {
  transition:
    opacity var(--txt-dur) cubic-bezier(0.22, 0.72, 0.25, 1) var(--d, 0ms),
    transform var(--txt-dur) cubic-bezier(0.22, 0.72, 0.25, 1) var(--d, 0ms),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

body:not(.is-ready) .hero .js-fadeup,
body:not(.is-ready) .hero .hero__figure {
  opacity: 0;
  transform: translateY(20px);
}

body.is-ready .hero__slide.is-txt-in .js-fadeup {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero__slide.is-txt-in .hero__figure {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.is-ready .hero__slide.is-leaving .js-fadeup {
  opacity: 0;
  transform: translateY(0) !important;
  transition: opacity var(--txt-dur) linear !important;
}

body.is-ready .hero__slide:not(.is-active) .js-fadeup {
  opacity: 0;
  transform: translateY(0) !important;
}

body.is-ready .hero__slide:not(.is-active) .hero__figure {
  opacity: 0;
}

/* Hero tabs (TCD120 p-header-anchor) */
.hero-tabs {
  display: flex;
  position: relative;
  z-index: 5;
  background: #fff;
  height: 120px;
  padding: 10px 0;
}
.hero-tabs__item {
  flex: 1;
  position: relative;
  padding: 18px 28px 18px 36px;
  text-align: left;
  background: #fff;
  color: var(--text);
  border: none;
  cursor: pointer;
  transform: skewX(-8deg);
  margin-right: -8px;
  transition: background 0.3s, color 0.3s;
  height: 100%;
}
.hero-tabs__item span {
  display: block;
  transform: skewX(8deg);
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 700;
  line-height: 1.5;
}
.hero-tabs__item.is-active {
  background: var(--accent-light);
  color: #fff;
  z-index: 2;
}
.hero-tabs__item:not(.is-active):hover {
  background: var(--bg-gray);
}
.hero__arrow {
  position: absolute;
  top: 42%;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: transparent;
  transition: background 0.2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.hero__arrow--prev::before { transform: rotate(-135deg) translate(-2px, 2px); }
.hero__arrow--next::before { transform: rotate(45deg) translate(-2px, 2px); }

/* Why RAKUSITE */
.why-rakusite {
  padding: 88px 0 96px;
  background: var(--bg);
}
.why-rakusite__title {
  text-align: center;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: var(--accent-deep);
  line-height: 1.5;
  margin-bottom: 48px;
}
.why-rakusite__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(31, 54, 92, 0.06);
  overflow: hidden;
}
.why-card__head {
  margin: 0;
  padding: 22px 24px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #111;
  text-align: center;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.why-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 280px;
  padding: 32px 24px 36px;
}
.why-card__problem {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #111;
}
.why-card__problem--center {
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.why-card__problem--with-illust {
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  padding-inline: 8px;
}
.why-card__problem--with-illust .why-card__value {
  text-align: left;
}
.why-card__illust {
  flex-shrink: 0;
  width: 72px;
  height: auto;
  color: #111;
}
.why-card__label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}
.why-card__value {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.why-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  color: var(--accent-deep);
}
.why-card__solution {
  text-align: center;
  color: var(--accent);
}
.why-card__brand {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.why-card__highlight {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.why-card__highlight--single {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

/* Intro */
.intro {
  padding: 100px 0 90px;
  background: var(--white);
}
.intro__title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.55;
  margin-bottom: 28px;
}
.intro__title span {
  display: block;
  font-size: 0.92em;
  color: var(--accent);
  margin-top: 8px;
}
.intro__lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 64px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.intro-card {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.intro-card:last-child { border-right: none; }
.intro-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.intro-card__icon svg { width: 32px; height: 32px; }
.intro-card__icon--teal { background: var(--accent); }
.intro-card__icon--green { background: #3cb371; }
.intro-card__icon--orange { background: #e8913a; }
.intro-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}
.intro-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

/* Concept (TCD120 fixed_bg) */
.concept {
  position: relative;
}

.concept__wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1450 / 600;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.concept__fixed-bg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0);
  z-index: 0;
}

.concept__fixed-bg img {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.concept__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(31, 54, 92, 0.88), rgba(0, 163, 163, 0.75));
}

.concept__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: clamp(72px, 12vw, 100px) 24px;
}
.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 16px;
}
.concept__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 24px;
}
.concept__text {
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Sections */
.blaze-section {
  padding: 100px 0;
  background: var(--white);
}
.blaze-section--gray { background: var(--bg-gray); }
.section-head {
  margin-bottom: 56px;
}
.section-head__en {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.section-head__ja {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-head__lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* Works (hifactory-style portfolio grid) */
.works {
  padding-top: 96px;
  padding-bottom: 100px;
}
.works-head {
  text-align: center;
  margin-bottom: 36px;
}
.works-head__en {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.works-head__sub {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.works-head__title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 900;
  color: var(--accent-deep);
  line-height: 1.45;
}
.works-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 48px;
}
.works-tags__item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-deep);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.works-tags__item:hover {
  color: var(--accent);
}
.works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
}
.works-card {
  width: calc((100% - 72px) / 4);
  min-width: 0;
}
.works-card__link {
  display: block;
  color: inherit;
  transition: opacity 0.25s ease;
}
.works-card__link:hover {
  opacity: 0.88;
}
.works-card__screens {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  margin-bottom: 14px;
}
.works-card__screen {
  overflow: hidden;
  border: 1px solid #e2e8ec;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 54, 92, 0.08);
}
.works-card__screen--pc {
  flex: 1 1 auto;
  aspect-ratio: 16 / 10;
}
.works-card__screen--sp {
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 9 / 16;
}
.works-card__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}
.works-card__link:hover .works-card__screen img {
  transform: scale(1.03);
}
.works-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.works-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 163, 163, 0.1);
  padding: 4px 10px;
  border-radius: 2px;
  line-height: 1.3;
}
.works-card__name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

/* Success */
.success-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.success-card {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.blaze-section--gray .success-card { background: #fff; }
.success-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.success-card__text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 20px;
}
.success-card__company {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.success-card__service {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

/* News */
.news-list { border-top: 1px solid var(--border); }
.news-item {
  display: grid;
  grid-template-columns: 110px 100px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.news-item time { color: var(--text-muted); font-size: 0.85rem; }
.news-item__cat {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  border-radius: 2px;
}
.news-item a {
  font-weight: 500;
  transition: color 0.2s;
}
.news-item a:hover { color: var(--accent); }

/* Plans */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.plan-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.plan-card--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 163, 163, 0.15);
}
.plan-card__badge {
  position: absolute;
  top: 0;
  right: 24px;
  transform: translateY(-50%);
  background: var(--cta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan-card__name {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.plan-card__price {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.plan-card__price strong {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 900;
}
.plan-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}
.plan-card__features {
  margin-bottom: 28px;
}
.plan-card__features li {
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.2em;
  position: relative;
}
.plan-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan-card__btn { width: 100%; min-width: 0; }
.plan-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Flow */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flow-step {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-gray);
}
.flow-step__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}
.flow-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.flow-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: left;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: #fff;
  padding: 40px;
  border: 1px solid var(--border);
}
.blaze-section--gray .contact-form { background: #fff; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.req { color: #e05a47; font-size: 0.75rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .blaze-btn { margin-top: 8px; width: 100%; min-width: 0; }
.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-note a { color: var(--accent); text-decoration: underline; }
.contact-aside {
  padding: 32px 0;
}
.contact-aside h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-aside a { color: var(--accent); font-weight: 700; }
.contact-aside__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 28px;
}
.contact-aside .blaze-btn { width: 100%; min-width: 0; }

/* Footer CTA */
.footer-cta {
  position: relative;
  padding: 100px 0;
  background:
    linear-gradient(135deg, rgba(31, 54, 92, 0.9), rgba(0, 163, 163, 0.85)),
    url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1920&q=80") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 12px;
}
.footer-cta p {
  opacity: 0.88;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Footer */
.blaze-footer {
  background: var(--accent-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}
.blaze-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.blaze-footer__brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  opacity: 0.8;
}
.blaze-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.blaze-footer__nav a {
  font-size: 0.85rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.blaze-footer__nav a:hover { opacity: 1; }
.blaze-footer__copy {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

/* Scroll reveal */
.section-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .p-header-nav__list > li > a { padding-inline: 12px; font-size: 0.82rem; }
  .p-megamenu02__track { grid-template-columns: repeat(2, 1fr); }
  .works-card { width: calc((100% - 48px) / 3); }
}

@media (max-width: 991px) {
  .p-header-nav { display: none; }
  .p-megamenu { display: none; }
  .p-header-nav-sp { display: inline-flex; }
  .p-header-bar { padding-inline: 20px; }
}


@media (max-width: 1024px) {
  .hero__flex,
  .hero__flex--reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-block: 0;
  }
  .hero__text { flex: none; width: 100%; }
  .hero__btn { justify-self: center; }
  .hero__figure {
    flex: none;
    inline-size: min(100%, 420px);
    block-size: clamp(280px, 52vh, 360px);
    max-width: none;
    align-self: center;
  }
  .works-card { width: calc((100% - 24px) / 2); }
  .intro__grid { grid-template-columns: 1fr; }
  .why-rakusite__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .intro-card { border-right: none; border-bottom: 1px solid var(--border); }
  .success-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .flow-steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .p-header-nav-sp { display: inline-flex; }
  .hero-tabs {
    flex-direction: column;
    min-height: auto;
  }
  .hero-tabs__item {
    transform: none;
    margin-right: 0;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .hero-tabs__item span { transform: none; }
  .hero__slides {
    height: calc(100svh - var(--header-h) - 200px);
    min-height: 420px;
  }
  .hero__arrow { display: none; }
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .section-head__en { font-size: 2.2rem; }
  .intro, .blaze-section { padding: 72px 0; }
  .works { padding-top: 72px; padding-bottom: 72px; }
  .works-grid { gap: 40px 0; justify-content: center; }
  .works-card { width: 100%; max-width: 380px; }
  .works-tags { gap: 8px 10px; margin-bottom: 36px; }
  .concept__wrap { aspect-ratio: unset; min-height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .section-reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px 80px;
}
.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}
.legal-page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}
.legal-page p, .legal-page li {
  line-height: 1.85;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.legal-page ul { padding-left: 1.25rem; list-style: disc; }
.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.legal-page a { color: var(--accent); }
