:root {
  --navy: #1f2f46;
  --navy-dark: #162335;
  --navy-soft: #2e4463;
  --beige: #f7f3ee;
  --beige-dark: #ece4da;
  --text: #2d2d2d;
  --subtext: #5d6673;
  --line: #d9dee6;
  --white: #ffffff;
  --accent: #8b6f47;
  --max-width: 1120px;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(20, 32, 48, 0.08);
}

/* Reset / Base
------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  opacity: 0.88;
}

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

/* Header
------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 47, 70, 0.08);
}

.site-header .container {
  width: min(100% - 24px, var(--max-width));
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  min-height: 72px;
}

.logo {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 56px);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-nav {
  margin-left: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav li {
  min-width: 0;
}

.global-nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 44px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  position: absolute;
  left: 10px;
  transition: 0.25s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Buttons
------------------------------------------ */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  text-align: center;
}

.btn.-primary {
  background: var(--white);
  color: var(--navy);
}

.btn.-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn.-navy {
  background: var(--navy);
  color: var(--white);
}

.btn.-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

/* Hero (legacy)
------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 88px 0 78px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero__title {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero__lead {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.hero__badges li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.hero__image img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

/* Home Hero
------------------------------------------ */
.home-hero {
  background: linear-gradient(180deg, var(--navy) 0%, #243a59 100%);
  color: var(--white);
  padding: 64px 0 76px;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 36px;
  align-items: center;
}

.home-hero__copy,
.home-hero__visual {
  min-width: 0;
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-hero__title {
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 700px;
  word-break: keep-all;
}

.home-hero__lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.9;
}

.home-hero__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "main main"
    "sub01 sub02";
  gap: 16px;
}

.home-hero__image {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.08);
}

.home-hero__image.-main {
  grid-area: main;
  height: 360px;
}

.home-hero__image.-sub01 {
  grid-area: sub01;
  height: 170px;
}

.home-hero__image.-sub02 {
  grid-area: sub02;
  height: 170px;
}

.home-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__image.-main img,
.home-hero__image.-sub01 img,
.home-hero__image.-sub02 img {
  object-position: center center;
}

/* Page Hero (lower pages)
------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 84px 0 72px;
}

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-hero__title {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.35;
}

.page-hero__lead {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Lower-page visual section
------------------------------------------ */
.case-hero-visual {
  background: var(--beige);
  padding: 0 0 18px;
}

.case-hero-visual__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
}

.case-hero-visual__frame img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.case-hero-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,47,70,0.68) 0%, rgba(31,47,70,0.38) 45%, rgba(31,47,70,0.18) 100%);
  display: flex;
  align-items: flex-end;
  padding: 34px;
}

.case-hero-visual__text {
  max-width: 620px;
  color: #fff;
}

.case-hero-visual__text .label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.case-hero-visual__text h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 34px;
  line-height: 1.4;
}

.case-hero-visual__text p {
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* Breadcrumb
------------------------------------------ */
.breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--subtext);
}

.breadcrumb a {
  color: var(--subtext);
}

/* Section
------------------------------------------ */
.section {
  padding: 78px 0;
}

.section.-beige {
  background: var(--beige);
}

.section-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--subtext);
  max-width: 820px;
}

/* Layout helpers
------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

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

.card-grid.-four {
  grid-template-columns: repeat(4, 1fr);
}

/* Common cards
------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3,
.card h4 {
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.5;
  font-size: 22px;
}

.card p:last-child,
.card ul:last-child,
.card dl:last-child {
  margin-bottom: 0;
}

.card__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Text box / message box
------------------------------------------ */
.message-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

/* Lists
------------------------------------------ */
.list-check {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.list-check li + li {
  margin-top: 8px;
}

/* Reason cards
------------------------------------------ */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reason-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}

.reason-card__no {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Flow
------------------------------------------ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: 100%;
}

.flow__no {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* News list
------------------------------------------ */
.news-list {
  display: grid;
  gap: 18px;
}

.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.news-item time {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--subtext);
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--navy);
  line-height: 1.5;
}

.news-item p {
  margin: 0;
  color: var(--subtext);
}

/* Access
------------------------------------------ */
.access-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.access-box dl {
  margin: 0;
}

.access-box dt {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--navy);
}

.access-box dd {
  margin: 0 0 16px;
}

/* CTA
------------------------------------------ */
.cta-box {
  background: linear-gradient(135deg, var(--beige) 0%, #f3ede6 100%);
  border: 1px solid var(--beige-dark);
  border-radius: 24px;
  padding: 38px;
}

/* Recruit banner
------------------------------------------ */
.recruit-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f7f3ee 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.recruit-banner__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(31, 47, 70, 0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Footer
------------------------------------------ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 56px 0 28px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr 0.95fr;
  gap: 30px;
  align-items: start;
}

.site-footer__grid > div {
  min-width: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

/* Responsive
------------------------------------------ */
@media (max-width: 1180px) {
  .global-nav ul {
    gap: 14px;
  }

  .global-nav a {
    font-size: 13px;
  }

  .home-hero {
    padding: 56px 0 68px;
  }

  .home-hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-hero__title {
    max-width: 920px;
    font-size: clamp(34px, 5vw, 54px);
  }

  .home-hero__lead {
    max-width: 920px;
    font-size: 17px;
  }

  .home-hero__image.-main {
    height: 340px;
  }

  .home-hero__image.-sub01,
  .home-hero__image.-sub02 {
    height: 180px;
  }
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 36px;
  }

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

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

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    background: #fff;
    border-top: 1px solid rgba(31, 47, 70, 0.08);
    border-bottom: 1px solid rgba(31, 47, 70, 0.08);
    box-shadow: 0 14px 24px rgba(20, 32, 48, 0.08);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0;
  }

  .global-nav li {
    border-bottom: 1px solid rgba(31, 47, 70, 0.08);
  }

  .global-nav li:last-child {
    border-bottom: none;
  }

  .global-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
  }

  .global-nav .btn.-navy {
    display: inline-flex;
    justify-content: center;
    margin: 14px 20px 8px;
  }

  .hero__inner,
  .split,
  .card-grid,
  .card-grid.-two,
  .reason-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 68px 0 58px;
  }

  .hero__title {
    font-size: 31px;
  }

  .page-hero__title {
    font-size: 32px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 27px;
  }

  .case-hero-visual__frame img {
    height: 320px;
  }

  .case-hero-visual__text h2 {
    font-size: 28px;
  }

  .home-hero {
    padding: 52px 0 60px;
  }

  .home-hero__title {
    font-size: 40px;
    line-height: 1.22;
  }

  .home-hero__lead {
    font-size: 16px;
    line-height: 1.8;
  }

  .home-hero__collage {
    gap: 14px;
  }

  .home-hero__image {
    border-radius: 20px;
  }

  .home-hero__image.-main {
    height: 300px;
  }

  .home-hero__image.-sub01,
  .home-hero__image.-sub02 {
    height: 160px;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .site-footer__grid {
    gap: 26px;
  }
}

@media (min-width: 961px) {
  .logo {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .site-header .container {
    width: min(100% - 20px, var(--max-width));
  }

  .site-header__inner {
    min-height: 68px;
  }

  .logo {
    font-size: 16px;
    max-width: calc(100% - 52px);
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .menu-toggle span {
    left: 8px;
  }

  .hero__title {
    font-size: 28px;
  }

  .page-hero__title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .card,
  .reason-card,
  .flow__item,
  .access-box,
  .cta-box,
  .news-item,
  .message-box,
  .recruit-banner {
    padding: 22px;
  }

  .card-grid.-four,
  .flow {
    grid-template-columns: 1fr;
  }

  .case-hero-visual {
    padding: 0 0 10px;
  }

  .case-hero-visual__frame {
    border-radius: 0 0 18px 18px;
  }

  .case-hero-visual__frame img {
    height: 240px;
  }

  .case-hero-visual__overlay {
    padding: 20px;
  }

  .case-hero-visual__text h2 {
    font-size: 22px;
  }

  .home-hero {
    padding: 44px 0 48px;
  }

  .home-hero__title {
    font-size: 30px;
    line-height: 1.24;
    max-width: 100%;
  }

  .home-hero__lead {
    font-size: 15px;
    line-height: 1.8;
    max-width: 100%;
  }

  .home-hero__collage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sub01"
      "sub02";
    gap: 12px;
    width: 100%;
  }

  .home-hero__image {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
  }

  .home-hero__image.-main,
  .home-hero__image.-sub01,
  .home-hero__image.-sub02 {
    width: 100%;
    height: 220px;
  }

  .home-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .site-footer {
    padding: 42px 0 22px;
  }

  .site-footer h2 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .site-footer__grid {
    gap: 22px;
  }

  .site-footer li + li {
    margin-top: 7px;
  }

  .copyright {
    margin-top: 22px;
    padding-top: 16px;
    font-size: 12px;
  }
}