@charset "UTF-8";

:root {
  --bg: #07111b;
  --bg-sub: #0b1722;
  --panel: #0e1b27;
  --text: #f5f7fa;
  --text-sub: #aeb8c4;
  --line: #243341;
  --accent: #c7df00;
  --max-width: 1200px;
  --section-space: 130px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 6%, rgba(199, 223, 0, .055), transparent 24%),
    linear-gradient(180deg, #06101a, var(--bg));
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.85;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

.container,
.site-header__inner,
.site-footer__inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7,17,27,.94);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.site-brand__mark { width: 56px; }
.site-brand__text,
.footer-brand span { display: flex; flex-direction: column; }

.site-brand__name {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}

.site-brand__tagline {
  margin-top: 6px;
  color: var(--accent);
  font-size: .56rem;
  letter-spacing: .14em;
}

.global-nav ul {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a,
.footer-nav a {
  font-size: .74rem;
  letter-spacing: .08em;
  text-decoration: none;
}

.global-nav a:hover,
.footer-nav a:hover,
.text-link:hover { color: var(--accent); }

.menu-button { display: none; }

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video { object-fit: cover; }

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(4,12,20,.94), rgba(4,12,20,.62) 55%, rgba(4,12,20,.28)),
    linear-gradient(180deg, rgba(4,12,20,.10), rgba(4,12,20,.76));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 135px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .19em;
}

.hero h1 {
  margin: 0 0 26px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 760px;
  margin: 0 0 38px;
  color: #d8e0e7;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.95;
}

.hero-stats {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 38px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  background: rgba(4,12,20,.2);
  backdrop-filter: blur(5px);
}

.hero-stat {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 26px;
}

.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,.15); }

.hero-stat__value {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-stat__value span { color: var(--accent); font-size: .5em; vertical-align: top; }

.hero-stat__value--text {
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.hero-stat__label {
  margin-top: 10px;
  color: var(--accent);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.hero-stat__description {
  margin-top: 5px;
  color: #c9d1d9;
  font-size: .75rem;
}

.hero-stat--adobe {
  align-items: center;
}

.hero-stat__logo {
  display: block;
  width: min(100%, 270px);
  height: auto;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.hero__actions,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  display: inline-block;
  min-width: 200px;
  padding: 13px 24px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.button:hover {
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-2px);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
}

.section { padding: var(--section-space) 0; }
.section--sub { background: rgba(255,255,255,.018); }

.section-heading { max-width: 700px; margin-bottom: 56px; }

.section-heading h2,
.split-feature h2,
.video-feature h2,
.external-cta h2,
.profile-copy h2,
.company-layout h2,
.contact-band h2,
.contact-card h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.section-heading p:last-child,
.split-feature__copy > p,
.video-feature__copy > p,
.external-cta > p,
.profile-copy > p,
.company-layout p,
.contact-band p,
.contact-card p {
  color: var(--text-sub);
}

.accent-line {
  display: block;
  width: 34px;
  height: 2px;
  margin: 20px 0 26px;
  background: var(--accent);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.portal-card {
  min-height: 285px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.012);
}

.portal-card__number {
  margin: 0 0 50px;
  color: var(--accent);
  font-size: .75rem;
}

.portal-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .08em;
}

.portal-card p { color: var(--text-sub); font-size: .9rem; }
.portal-card a { color: var(--accent); font-size: .82rem; text-decoration: none; }

.split-feature,
.video-feature,
.profile-layout,
.company-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mini-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.mini-card-grid img,
.video-feature__visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.roadmap > div { padding: 28px; }
.roadmap > div + div { border-left: 1px solid var(--line); }
.roadmap span { color: var(--accent); font-size: .7rem; letter-spacing: .12em; }
.roadmap strong { display: block; margin-top: 10px; font-weight: 500; }
.roadmap p { margin-bottom: 0; color: var(--text-sub); font-size: .82rem; }

.contact-band {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: center;
  background: url("../images/common/contact-bg.svg") center/cover no-repeat;
}

.contact-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,15,24,.95), rgba(5,15,24,.58));
}

.contact-band__content { position: relative; z-index: 1; padding: 90px 0; }

.page-main { min-height: 70vh; }

.page-hero {
  padding: 110px 0 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.04em;
}

.page-hero p:last-child { max-width: 720px; color: var(--text-sub); }

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.content-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.content-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.content-card > div { padding: 30px; }
.content-card span { color: var(--accent); font-size: .7rem; letter-spacing: .14em; }
.content-card h3 { margin: 7px 0 10px; font-size: 1.25rem; font-weight: 500; }
.content-card p { margin: 0; color: var(--text-sub); font-size: .9rem; }

.external-cta {
  margin-top: 70px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.tag-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-panel span {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d7dee5;
  font-size: .82rem;
}

.profile-photo {
  margin: 0;
  padding: 28px 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 22%, rgba(199,223,0,.15), transparent 34%),
    linear-gradient(180deg, #122230, #0b1722);
}

.profile-photo img { width: 100%; object-fit: contain; object-position: center bottom; }

.profile-kicker { margin: 0 0 6px; color: var(--text-sub); font-size: .84rem; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.profile-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.profile-stats strong,
.profile-stats span { display: block; }
.profile-stats strong { color: var(--accent); font-weight: 500; }
.profile-stats span { margin-top: 5px; color: var(--text-sub); font-size: .75rem; }

.profile-stat--adobe {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-stat__adobe-logo {
  display: block;
  width: min(100%, 210px);
  height: auto;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.company-table dt { color: var(--text-sub); }
.company-table dd { margin: 0; }

.contact-copy ul {
  margin: 22px 0 0;
  padding-left: 1.3em;
  color: var(--text-sub);
}

.contact-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.small-note { font-size: .76rem; }

.error-page {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page__code {
  margin: 0;
  color: var(--accent);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer__inner {
  min-height: 190px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  padding: 38px 0;
}

.footer-brand img { width: 46px; }
.footer-brand strong { letter-spacing: .1em; }
.footer-brand small,
.site-footer p small { color: var(--text-sub); font-size: .66rem; }
.footer-primary { display: grid; gap: 12px; }
.footer-message { margin: 0; color: var(--text-sub); font-size: .82rem; }
.footer-contact { width: fit-content; color: var(--text); font-size: .82rem; text-decoration: none; }
.footer-contact:hover,
.footer-contact:focus-visible { color: var(--accent); }
.footer-secondary { display: grid; justify-items: end; gap: 18px; text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  :root { --section-space: 105px; }

  .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
  }

  .menu-button span {
    width: 26px;
    height: 2px;
    background: currentColor;
    transition: transform .3s ease, opacity .3s ease;
  }

  .menu-button.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button.is-open span:nth-child(2) { opacity: 0; }
  .menu-button.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 18px 20px 26px;
    border-top: 1px solid var(--line);
    background: #07111b;
  }

  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav a { display: block; padding: 14px 6px; font-size: .9rem; }

  .hero-stats { grid-template-columns: 1fr; max-width: 610px; }
  .hero-stat { min-height: auto; }
  .hero-stat + .hero-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }

  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .roadmap > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .roadmap > div:nth-child(4) { border-top: 1px solid var(--line); }

  .split-feature,
  .video-feature,
  .profile-layout,
  .company-layout,
  .contact-layout { grid-template-columns: 1fr; }

  .content-card-grid { grid-template-columns: 1fr; }

  .site-footer__inner { align-items: flex-start; flex-direction: column; padding: 35px 0; }
  .footer-secondary { justify-items: start; text-align: left; }
}

@media (max-width: 650px) {
  :root { --section-space: 80px; }

  .container,
  .site-header__inner,
  .site-footer__inner { width: calc(100% - 28px); }

  .site-header__inner { min-height: 76px; }
  .site-brand__mark { width: 42px; }
  .site-brand__name { font-size: 1.08rem; }
  .site-brand__tagline { font-size: .45rem; }

  .hero { min-height: calc(100svh - 76px); }
  .hero__content { width: calc(100% - 28px); padding: 80px 0 110px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); line-height: 1.08; }
  .hero-title__line { white-space: nowrap; }
  .hero__lead br { display: none; }

  .hero-stat { padding: 18px 20px; }
  .hero-stat__value { font-size: 2.7rem; }
  .hero-stat__value--text { font-size: 1.6rem; }

  .portal-grid,
  .mini-card-grid,
  .roadmap,
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stat__adobe-logo { width: min(100%, 230px); }

  .roadmap > div + div,
  .roadmap > div:nth-child(3),
  .roadmap > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }

  .portal-card { min-height: auto; }
  .portal-card__number { margin-bottom: 30px; }

  .page-hero { padding: 80px 0 60px; }
  .page-hero h1 { font-size: 2.7rem; }

  .external-cta,
  .contact-card { padding: 28px; }

  .company-table div { grid-template-columns: 94px 1fr; }

  .contact-band h2 { font-size: 1.95rem; }
}

@media (max-width: 430px) {
  .hero-title__line { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================================================
   STACK Official Site Ver.2
   Unified typography for top and lower-level pages
========================================================= */

:root {
  --title-weight: 500;
  --body-weight: 400;
  --lower-page-title-size: clamp(2.45rem, 5vw, 4.35rem);
}

/* Do not use heavy 700/800 weights for visible content headings. */

.page-hero {
  padding: 118px 0 96px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 76% 30%, rgba(199,223,0,.045), transparent 25%),
    rgba(255,255,255,.008);
}

.page-hero__inner {
  max-width: var(--max-width);
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero__line {
  display: block;
  width: 38px;
  height: 2px;
  margin-bottom: 30px;
  background: var(--accent);
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 24px;
  font-size: var(--lower-page-title-size);
  font-weight: var(--title-weight);
  line-height: 1.18;
  letter-spacing: -.045em;
}

.page-hero__lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-sub);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: var(--body-weight);
  line-height: 1.95;
}

/* Section titles */

.section-heading h2,
.split-feature h2,
.video-feature h2,
.external-cta h2,
.profile-copy h2,
.company-layout h2,
.contact-band h2,
.contact-card h2,
.contact-copy h2 {
  font-weight: var(--title-weight);
}

/* Card titles */

.portal-card h3,
.content-card h3 {
  font-weight: var(--title-weight);
}

/* Body copy */

body,
.section-heading p,
.portal-card p,
.content-card p,
.split-feature__copy p,
.video-feature__copy p,
.profile-copy p,
.company-layout p,
.contact-card p,
.contact-copy li {
  font-weight: var(--body-weight);
}

/* Lower pages become editorial rather than catalogue-like. */

.page-main > .section:first-of-type {
  padding-top: 112px;
}

.content-card-grid {
  gap: 34px;
}

.content-card {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.009);
  box-shadow: 0 18px 55px rgba(0,0,0,.11);
}

.content-card > div {
  padding: 36px;
}

.content-card h3 {
  font-size: 1.3rem;
  letter-spacing: -.015em;
}

.content-card p {
  line-height: 1.9;
}

.external-cta {
  margin-top: 88px;
  padding: 54px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.009);
}

.video-feature {
  gap: 82px;
}

.profile-layout {
  gap: 82px;
}

.company-layout {
  gap: 84px;
}

.contact-layout {
  gap: 84px;
}

.contact-card {
  padding: 48px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.009);
}

/* Text rhythm */

.section-heading p:last-child,
.page-hero__lead,
.content-card p,
.profile-copy > p,
.company-layout p,
.contact-card p {
  letter-spacing: .01em;
}

@media (max-width: 1000px) {
  .page-hero {
    padding: 98px 0 78px;
  }

  .page-main > .section:first-of-type {
    padding-top: 96px;
  }

  .video-feature,
  .profile-layout,
  .company-layout,
  .contact-layout {
    gap: 54px;
  }
}

@media (max-width: 650px) {
  .page-hero {
    padding: 76px 0 62px;
  }

  .page-hero .eyebrow {
    margin-bottom: 14px;
  }

  .page-hero__line {
    width: 32px;
    margin-bottom: 24px;
  }

  .page-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 11vw, 3.25rem);
    line-height: 1.2;
  }

  .page-hero__lead {
    font-size: .98rem;
    line-height: 1.9;
  }

  .page-main > .section:first-of-type {
    padding-top: 76px;
  }

  .content-card > div,
  .external-cta,
  .contact-card {
    padding: 28px;
  }
}


/* =========================================================
   STACK Official Site Ver.3 — Quiet credibility
========================================================= */

:root {
  --hero-title-max: 4.6rem;
}

.hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 20, 0.82),
      rgba(4, 12, 20, 0.48) 55%,
      rgba(4, 12, 20, 0.18)
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 20, 0.04),
      rgba(4, 12, 20, 0.58)
    );
}

.hero {
  min-height: calc(92vh - 92px);
}

.hero h1 {
  font-size: clamp(2.8rem, 5.8vw, var(--hero-title-max));
}

.hero__content {
  padding-top: 92px;
  padding-bottom: 118px;
}

.hero-stats {
  width: min(820px, 100%);
  margin-bottom: 34px;
  background: rgba(4, 12, 20, 0.14);
}

.hero-stat {
  min-height: 112px;
  padding: 18px 24px;
}

.hero-stat__value {
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  font-weight: 500;
}

.hero-stat__value--text {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
}

.hero-stat__label {
  margin-top: 8px;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
}

.hero-stat__description {
  display: none;
}

.portal-grid {
  grid-template-columns: repeat(5, 1fr);
}

.portal-card {
  padding: 28px;
}

.portal-card__number {
  margin-bottom: 38px;
}

.course-feature {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}

.course-feature__visual {
  margin: 0;
}

.course-feature__visual img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.course-feature__copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.course-feature__copy > p {
  color: var(--text-sub);
}

.course-note {
  margin-top: 20px;
  color: var(--accent) !important;
  font-size: .86rem;
}

@media (max-width: 1100px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .hero {
    min-height: auto;
  }

  .hero-stats {
    max-width: 560px;
  }

  .course-feature {
    grid-template-columns: 1fr;
    gap: 46px;
  }
}

@media (max-width: 650px) {
  .hero__content {
    padding-top: 72px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10.8vw, 3.35rem);
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat {
    min-height: auto;
    padding: 16px 18px;
  }

  .hero-stat__value {
    font-size: 2.35rem;
  }

  .hero-stat__value--text {
    font-size: 1.45rem;
  }
}


/* =========================================================
   STACK Official Site Ver.4
   Hero Overlay Presets
========================================================= */

/*
HTMLのHeroクラスを変更して使います。

<section class="hero hero--sunrise">
<section class="hero hero--bright">
<section class="hero hero--workspace">
<section class="hero hero--studio">
<section class="hero hero--dark">
<section class="hero hero--minimal">

初期設定は hero--workspace です。
*/

/* 朝日・海・湖・山など */
.hero--sunrise .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(25, 18, 20, 0.76),
      rgba(25, 18, 20, 0.42) 56%,
      rgba(25, 18, 20, 0.10)
    ),
    linear-gradient(
      180deg,
      rgba(18, 12, 14, 0.02),
      rgba(18, 12, 14, 0.48)
    );
}

/* 明るい屋外・空・雪景色・白い背景など */
.hero--bright .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 20, 0.88),
      rgba(4, 12, 20, 0.60) 55%,
      rgba(4, 12, 20, 0.30)
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 20, 0.12),
      rgba(4, 12, 20, 0.68)
    );
}

/* PC作業・動画編集・コーディング画面など */
.hero--workspace .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 20, 0.78),
      rgba(4, 12, 20, 0.44) 55%,
      rgba(4, 12, 20, 0.14)
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 20, 0.03),
      rgba(4, 12, 20, 0.54)
    );
}

/* 人物・講義・セミナー・収録風景など */
.hero--studio .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(10, 14, 18, 0.84),
      rgba(10, 14, 18, 0.52) 48%,
      rgba(10, 14, 18, 0.08) 72%,
      rgba(10, 14, 18, 0.20)
    ),
    linear-gradient(
      180deg,
      rgba(10, 14, 18, 0.04),
      rgba(10, 14, 18, 0.50)
    );
}

/* 夜景・暗い室内・照明演出など */
.hero--dark .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(2, 8, 14, 0.58),
      rgba(2, 8, 14, 0.30) 55%,
      rgba(2, 8, 14, 0.04)
    ),
    linear-gradient(
      180deg,
      rgba(2, 8, 14, 0.00),
      rgba(2, 8, 14, 0.34)
    );
}

/* 静止画、または映像自体で文字の読みやすさを調整済みの場合 */
.hero--minimal .hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 20, 0.44),
      rgba(4, 12, 20, 0.18) 55%,
      rgba(4, 12, 20, 0.02)
    ),
    linear-gradient(
      180deg,
      rgba(4, 12, 20, 0.00),
      rgba(4, 12, 20, 0.22)
    );
}


/* =========================================================
   STACK Official Site Ver.5.2
   Refined typography / Books / PHP contact form
========================================================= */

/*
Webフォント：
- 日本語：Noto Sans JP
- 英字：Inter
ネット接続できない場合は、Yu Gothicなどへフォールバックします。
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500&display=swap");

:root {
  --font-jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --lower-title-size-v5: clamp(1.95rem, 3.2vw, 2.9rem);
  --section-title-size-v5: clamp(1.6rem, 2.35vw, 2.1rem);
}

body {
  font-family: var(--font-jp);
  font-weight: 400;
  letter-spacing: .012em;
}

.site-brand__name,
.site-brand__tagline,
.global-nav a,
.footer-nav a,
.eyebrow,
.content-card__category,
.card-button {
  font-family: var(--font-en);
}

/* 下層ページ：大きさではなく、余白と細さで品位を作る */
.page-hero {
  padding: 94px 0 74px;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: var(--lower-title-size-v5);
  font-weight: 300;
  line-height: 1.36;
  letter-spacing: -.018em;
}

.page-hero__lead {
  max-width: 680px;
  font-size: clamp(.95rem, 1.35vw, 1.04rem);
  font-weight: 300;
  line-height: 2;
}

.page-hero__line {
  width: 30px;
  height: 1px;
  margin-bottom: 25px;
}

/* セクションタイトルも一段静かにする */
.section-heading h2,
.split-feature h2,
.video-feature h2,
.course-feature__copy h2,
.external-cta h2,
.profile-copy h2,
.company-layout h2,
.contact-band h2,
.contact-card h2,
.contact-copy h2,
.contact-intro h2 {
  font-size: var(--section-title-size-v5);
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: -.012em;
}

.section-heading {
  margin-bottom: 48px;
}

/* 著書カード */
.content-card-grid--books {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-card img {
  flex: 0 0 auto;
}

.content-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.content-card__category {
  color: var(--accent);
  font-size: .68rem;
  letter-spacing: .14em;
}

.content-card__body h3 {
  margin: 8px 0 11px;
  font-size: 1.16rem;
  font-weight: 400;
  line-height: 1.55;
}

.content-card__body p {
  margin: 0 0 24px;
  line-height: 1.9;
}

.card-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 15px;
  border: 1px solid rgba(199, 223, 0, .68);
  border-radius: 4px;
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .045em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.card-button:hover {
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-1px);
}

/* PHPお問い合わせフォーム */
.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 82px;
  align-items: start;
}

.contact-intro > p,
.contact-intro li {
  color: var(--text-sub);
}

.contact-intro ul {
  margin: 24px 0 0;
  padding-left: 1.25em;
}

.form-panel {
  padding: 42px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.012);
}

.contact-form {
  display: grid;
  gap: 23px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-consent {
  font-size: .86rem;
}

.required {
  margin-left: 5px;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #344554;
  border-radius: 5px;
  padding: 12px 13px;
  color: var(--text);
  background: #0a1722;
  font: inherit;
  line-height: 1.6;
}

.form-field textarea {
  resize: vertical;
  min-height: 210px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(199,223,0,.4);
  outline-offset: 2px;
  border-color: var(--accent);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-sub);
}

.form-consent input {
  margin-top: .45em;
}

.form-submit {
  width: fit-content;
  cursor: pointer;
  color: var(--text);
  background: transparent;
}

.form-message {
  margin-bottom: 26px;
  padding: 18px 20px;
  border-radius: 6px;
  font-size: .86rem;
}

.form-message p {
  margin-top: 0;
}

.form-message--error {
  border: 1px solid rgba(255, 138, 138, .5);
  background: rgba(128, 35, 35, .18);
}

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.thanks-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 70px 0;
}

.thanks-panel {
  max-width: 760px;
}

.thanks-panel h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 300;
  line-height: 1.4;
}

.thanks-panel p:not(.eyebrow) {
  margin-bottom: 32px;
  color: var(--text-sub);
}

@media (max-width: 1000px) {
  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 650px) {
  .page-hero {
    padding: 70px 0 57px;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .content-card-grid--books {
    grid-template-columns: 1fr;
  }

  .content-card__body,
  .form-panel {
    padding: 27px;
  }
}


/* =========================================================
   Ver.5.4: ABOUT / ONE STOP
========================================================= */
.hero-stat--link {
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.hero-stat--link:hover,
.hero-stat--link:focus-visible {
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}
.hero-stat--link .hero-stat__label {
  max-width: 260px;
  margin-inline: auto;
  line-height: 1.65;
}
.hero-stat__description {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: .76rem;
  letter-spacing: .06em;
}
.profile-stats .profile-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color .25s ease;
}
.profile-stats .profile-stat-link:hover,
.profile-stats .profile-stat-link:focus-visible { background: rgba(255,255,255,.04); }
.about-intro,
.about-benefits {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}
.about-intro__body p:first-child { margin-top: 0; }
.about-intro__body p,
.about-benefits__list p { color: var(--text-sub); line-height: 2; }
.about-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.about-field-card {
  min-height: 300px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.about-field-card__number {
  margin: 0 0 42px;
  color: var(--accent);
  font-family: Inter, sans-serif;
  font-size: .78rem;
  letter-spacing: .12em;
}
.about-field-card h3,
.about-benefits__list h3 { margin: 0 0 16px; font-weight: 500; }
.about-field-card p { margin: 0; color: var(--text-sub); line-height: 1.9; }
.about-benefits__list { display: grid; gap: 0; }
.about-benefits__list article { padding: 26px 0; border-top: 1px solid var(--line); }
.about-benefits__list article:last-child { border-bottom: 1px solid var(--line); }
.about-benefits__list p { margin: 0; }
@media (max-width: 980px) {
  .about-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .about-intro, .about-benefits { grid-template-columns: 1fr; gap: 34px; }
  .about-field-grid { grid-template-columns: 1fr; }
  .about-field-card { min-height: 0; }
}


/* =========================================================
   Ver.5.5: ONE STOP導線の明確化
========================================================= */
.profile-stats .profile-stat-link small {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .03em;
}
/* Ver.5.6: ABOUTページは本文へ入りやすいよう、タイトル下の余白を少し詰める */
.page-hero--about {
  padding-bottom: 62px;
}

@media (max-width: 650px) {
  .page-hero--about {
    padding-bottom: 49px;
  }
}



/* Ver.5.7: linked thumbnails */
.thumbnail-link {
  display: block;
  border-radius: inherit;
  overflow: hidden;
  cursor: pointer;
}

.thumbnail-link img {
  display: block;
  width: 100%;
  transition: transform .35s ease, filter .35s ease;
}

.thumbnail-link:hover img {
  transform: scale(1.025);
  filter: brightness(.94);
}

.thumbnail-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .thumbnail-link img { transition: none; }
  .thumbnail-link:hover img { transform: none; }
}


/* =========================================================
   Ver.5.10: legal pages / simplified footer
========================================================= */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  margin-top: 0;
}
.footer-legal a {
  color: var(--text-sub);
  font-size: .75rem;
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--accent); }
@media (max-width: 1000px) {
  .footer-legal { justify-content: flex-start; }
}
.form-consent a { color: var(--accent); text-underline-offset: .2em; }
.page-hero--legal { padding-bottom: 62px; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.legal-summary { position: sticky; top: 120px; }
.legal-summary h2 { margin: 0 0 20px; font-weight: 300; line-height: 1.55; }
.legal-summary > p:last-child { color: var(--text-sub); line-height: 1.9; }
.legal-content { max-width: 860px; }
.legal-content section { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 { margin: 0 0 18px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 300; line-height: 1.55; }
.legal-content h3 { margin: 28px 0 12px; font-size: 1rem; font-weight: 500; }
.legal-content p,
.legal-content li,
.legal-content dd { color: var(--text-sub); line-height: 2; }
.legal-content p { margin: 0 0 16px; }
.legal-content ul { margin: 0 0 18px; padding-left: 1.4em; }
.legal-content a { color: var(--accent); overflow-wrap: anywhere; }
.legal-definition { margin: 0; border-top: 1px solid var(--line); }
.legal-definition > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.legal-definition dt { font-weight: 500; }
.legal-definition dd { margin: 0; }
.legal-revision p { font-size: .86rem; }
@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-summary { position: static; }
}
@media (max-width: 650px) {
  .page-hero--legal { padding-bottom: 49px; }
  .legal-definition > div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   Ver.5.11: centered footer
========================================================= */
.site-footer__inner {
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer-primary,
.footer-secondary {
  justify-items: center;
  text-align: center;
}
.footer-brand {
  justify-content: center;
}
.footer-contact {
  margin-inline: auto;
}
.footer-legal {
  justify-content: center;
}

@media (max-width: 1000px) {
  .site-footer__inner {
    align-items: center;
    padding: 35px 0;
  }
  .footer-secondary {
    justify-items: center;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* =========================================================
   STACK Official Site Ver.5.12
   Prevent orphaned punctuation in the mobile hero title
   ========================================================= */
@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    letter-spacing: -0.06em;
  }

  .hero-title__line {
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.95rem;
  }
}

/* =========================================================
   STACK Official Site Ver.5.14
   Keep footer brand text visually centered and preserve contact link
   ========================================================= */
.footer-primary {
  width: 100%;
  justify-items: center;
}

.footer-brand {
  position: relative;
  display: inline-block;
  min-height: 50px;
  padding-inline: 64px;
  text-align: center;
}

.footer-brand img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-contact {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
}

@media (max-width: 430px) {
  .footer-brand {
    min-height: 46px;
    padding-inline: 56px;
  }

  .footer-brand img {
    width: 46px;
    height: 46px;
  }
}
