/* ============================================================
   株式会社ともえぎ コーポレートサイト — style.css
   Startia風デザイン
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Primary (Teal Green) */
  --color-primary:        #198079;
  --color-primary-dark:   #0F4F4A;
  --color-primary-light:  #E6F5F3;
  --color-primary-mid:    #14665F;

  /* Text */
  --color-text:           #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-text-on-dark:   #FFFFFF;
  --color-text-muted:     #718096;

  /* Background */
  --color-bg:             #FAFBFC;
  --color-bg-alt:         #F0F2F5;
  --color-bg-dark:        #0F4F4A;
  --color-bg-hero:        #0C3C38;
  --color-bg-header:      #2D3748;

  /* Accent */
  --color-accent:         #D4A843;

  /* Border */
  --color-border:         #D1D5DB;
  --color-border-light:   #E5E7EB;

  /* State */
  --color-hover:          #14665F;
  --color-focus:          #198079;

  /* Font */
  --font-sans:  'Noto Sans JP', 'Inter', sans-serif;
  --font-en:    'Inter', 'Noto Sans JP', sans-serif;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;

  /* Size */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.5rem;
  --text-hero: 3.25rem;

  /* Leading */
  --leading-tight:  1.3;
  --leading-normal: 1.8;
  --leading-loose:  2.0;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow: 800px;
  --grid-gap:         2rem;
  --card-radius:      4px;
  --btn-radius:       4px;

  /* Header */
  --header-h:    80px;
  --header-h-sp: 60px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background: #FFFFFF;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Utility --- */
.sp-hide {
  display: inline;
}

/* ============================================================
   Header — Startia style: dark bar, bilingual nav, CTA accent
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-bg-header);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-on-dark);
  font-weight: var(--fw-bold);
  font-size: var(--text-lg);
  flex-shrink: 0;
  text-decoration: none;
}

.header__logo:hover {
  color: rgba(255, 255, 255, 0.85);
}

.header__logo-icon,
.footer__logo-icon {
  display: block;
  object-fit: contain;
}

.header__logo-icon {
  width: 180px;
  height: 60px;
  margin-top: -10px;
}

.footer__logo-icon {
  width: 132px;
  height: 44px;
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  gap: 0;
}

.header__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text-on-dark);
  padding: 0 20px;
  position: relative;
  text-decoration: none;
  height: var(--header-h);
  justify-content: center;
  transition: background 0.2s;
}

.header__nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-on-dark);
}

.header__nav-en {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.header__nav-ja {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
  white-space: nowrap;
}

/* CTA Button in header — accent style like Startia's CONTACT */
.header__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  height: var(--header-h);
  padding: 0 32px;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: 0;
}

.header__cta:hover {
  background: var(--color-hover);
  color: var(--color-text-on-dark);
}

.header__cta-en {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.header__cta-ja {
  font-size: 0.625rem;
  line-height: 1.2;
  opacity: 0.8;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-on-dark);
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero — Startia style: full-bleed photo, left-aligned text
   ============================================================ */
.hero {
  position: relative;
  color: var(--color-text-on-dark);
  padding: 0;
  padding-top: var(--header-h);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;

  /* ============================================
     ヒーロー背景画像の切り替え
     使用したい画像の行のコメントを外し、もう一方をコメントアウトする
     ============================================ */

  /* [現在] 新しい背景画像（都市×緑のフィールド） */
  background:
    linear-gradient(
      to right,
      rgba(12, 60, 56, 0.85) 0%,
      rgba(12, 60, 56, 0.70) 100%
    ),
    url('../img/hero/hero-city.jpg') 60% center / cover no-repeat;

  /* [元の画像に戻す場合はこちらのコメントを外す]
  background:
    linear-gradient(
      to right,
      rgba(12, 60, 56, 0.85) 0%,
      rgba(12, 60, 56, 0.70) 100%
    ),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1920&h=1080&fit=crop') 60% center / cover no-repeat;
  */
}

/* 格子パターンオーバーレイ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.22) 0px,
      rgba(0, 0, 0, 0.22) 1px,
      transparent 1px,
      transparent 4px
    );
  background-size: auto;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 100px 0 120px;
  max-width: none;
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--fw-bold);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero__title-accent {
  color: #5ECEB5;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
}

.hero__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.hero__cta-link::before {
  content: '\\';
  font-size: var(--text-xl);
}

.hero__cta-link::after {
  content: '/';
  font-size: var(--text-xl);
}

.hero__cta-link:hover {
  opacity: 0.8;
  color: var(--color-accent);
}

/* ============================================================
   Service Bar — Startia style: dark bar below hero
   ============================================================ */
.service-bar {
  background: rgba(45, 55, 72, 0.92);
  position: relative;
  z-index: 2;
}

.service-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 32px;
  color: var(--color-text-on-dark);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
}

.service-bar__item:last-child {
  border-right: none;
}

.service-bar__item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-on-dark);
}

.service-bar__icon {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.service-bar__text {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  line-height: 1.6;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  border-radius: var(--btn-radius);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 16px 40px;
}

.btn--primary:hover {
  background: var(--color-hover);
  color: var(--color-text-on-dark);
}

.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 28px;
  font-weight: var(--fw-medium);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
}

.btn--lg {
  padding: 18px 48px;
  font-size: var(--text-lg);
}

.btn--dark {
  background: var(--color-bg-header);
  color: var(--color-text-on-dark);
  padding: 18px 48px;
  font-size: var(--text-base);
  border-radius: 60px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.btn--dark:hover {
  background: #1A202C;
  color: var(--color-text-on-dark);
}

/* ============================================================
   Section Common — Startia style: left-aligned headers, big EN text
   ============================================================ */
.section {
  padding: 100px 0;
}

.section--white {
  background: #FFFFFF;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

/* Section header — Startia style: ja label on top, big EN title below */
.section__header {
  margin-bottom: 60px;
}

.section__label-ja {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.section__title-en {
  font-family: var(--font-en);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.section__desc {
  margin-top: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* Header with row layout (heading left, button right) */
.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
}

.section__header-left {
  flex: 1;
}

/* Dark section overrides */
.section--dark .section__label-ja {
  color: #5ECEB5;
}

.section--dark .section__title-en {
  color: var(--color-text-on-dark);
}

.section__header--light .section__label-ja {
  color: #5ECEB5;
}

.section__header--light .section__title-en {
  color: var(--color-text-on-dark);
}

/* ============================================================
   About — Two-column layout (text left + image right)
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 var(--grid-gap);
  align-items: start;
}

/* PC: lead + content を左列、image を右列に配置 */
.about__lead {
  grid-column: 1;
  grid-row: 1;
}

.about__content {
  grid-column: 1;
  grid-row: 2;
}

.about__image {
  grid-column: 2;
  grid-row: 1 / 3;
}

.about__lead {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-tight);
}

.about__lead::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  margin-top: var(--space-md);
}

.about__text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-normal);
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__emphasis {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.about__highlight {
  font-size: var(--text-lg);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

.about__image {
  display: flex;
  align-items: start;
  justify-content: center;
}

/* ジグザグ配置（2列グリッド + 段差） */
.about__zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  row-gap: 0;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.about__zigzag-item {
  width: 200px;
}

.about__zigzag-item img {
  width: 100%;
  height: auto;
  display: block;
}

.about__zigzag-item:nth-child(1) {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
}

.about__zigzag-item:nth-child(2) {
  grid-row: 2;
  grid-column: 2;
  justify-self: end;
  margin-top: -48px;
}

.about__zigzag-item:nth-child(3) {
  grid-row: 3;
  grid-column: 1;
  justify-self: start;
  margin-top: -48px;
}

.about__zigzag-item:nth-child(4) {
  grid-row: 4;
  grid-column: 2;
  justify-self: end;
  margin-top: -48px;
}

/* PC: 上から順に表示されるスタッガーアニメーション */
.about__zigzag-item.fade-in:nth-child(1) { transition-delay: 0s; }
.about__zigzag-item.fade-in:nth-child(2) { transition-delay: 0.25s; }
.about__zigzag-item.fade-in:nth-child(3) { transition-delay: 0.5s; }
.about__zigzag-item.fade-in:nth-child(4) { transition-delay: 0.75s; }

@media (max-width: 767px) {
  .about__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  /* SP: lead → image → content の順に並べ替え */
  .about__lead {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.75rem;
  }

  .about__image {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    margin-bottom: var(--space-lg);
  }

  .about__content {
    grid-column: 1;
    grid-row: 3;
  }

  /* 2x2 正方形グリッド（ジグザグ解除） */
  .about__zigzag {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-sm);
    max-width: 100%;
  }

  .about__zigzag-item {
    width: auto;
  }

  .about__zigzag-item:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
  }

  .about__zigzag-item:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
    justify-self: center;
    margin-top: 0;
  }

  .about__zigzag-item:nth-child(3) {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
    margin-top: 0;
  }

  .about__zigzag-item:nth-child(4) {
    grid-row: 2;
    grid-column: 2;
    justify-self: center;
    margin-top: 0;
  }

  .about__zigzag-item img {
    width: 100%;
    max-width: none;
  }

  /* SP: スタッガーを解除し、他要素と同時にフェードインさせる */
  .about__zigzag-item.fade-in:nth-child(1),
  .about__zigzag-item.fade-in:nth-child(2),
  .about__zigzag-item.fade-in:nth-child(3),
  .about__zigzag-item.fade-in:nth-child(4) {
    transition-delay: 0s;
  }
}

/* ============================================================
   Services (Cards) — clean cards with image
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.card {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card as full clickable link */
.card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.card--link:hover {
  color: inherit;
}

.card--link:hover .card__link {
  gap: 12px;
  color: var(--color-hover);
}

.card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

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

.card__icon {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 12px;
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s;
}

.card__link-arrow::after {
  content: '\2192';
}

.card__link:hover {
  gap: 12px;
  color: var(--color-hover);
}

/* ============================================================
   Cases — Cards with images
   ============================================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.case {
  background: #FFFFFF;
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.case__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.case:hover .case__image img {
  transform: scale(1.05);
}

.case__body {
  padding: 24px;
}

.case__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.case__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 8px;
  word-break: auto-phrase;
  overflow-wrap: break-word;
  line-break: strict;
}

.case__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* ============================================================
   Strengths — Startia style: horizontal number + content
   ============================================================ */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
  align-items: stretch;
}

.strength {
  background: #FFFFFF;
  padding: 40px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.strength:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.strength__number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  opacity: 0.18;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.strength__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.strength__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: var(--leading-tight);
  margin-bottom: 12px;
}

.strength__key {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.strength__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  flex: 1;
}

.strength__highlight {
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

/* ============================================================
   Flow — Startia style step process
   ============================================================ */
.flow {
  background: #FFFFFF;
  padding: 48px;
  border: 1px solid var(--color-border-light);
}

.flow__header {
  margin-bottom: 40px;
}

.flow__label-ja {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: 4px;
}

.flow__title-en {
  font-family: var(--font-en);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.1;
}

.flow__steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.flow__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: -4px;
  width: 8px;
  height: 2px;
  background: var(--color-border);
}

.flow__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  font-family: var(--font-en);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  margin: 0 auto 12px;
}

.flow__step-title {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.flow__step-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================================
   Company
   ============================================================ */
.company__table {
  max-width: var(--container-narrow);
  margin: 0 auto;
  background: #FFFFFF;
}

.company__row {
  display: flex;
  border-bottom: 1px solid var(--color-border-light);
  padding: 20px 0;
}

.company__row:last-child {
  border-bottom: none;
}

.company__row dt {
  width: 220px;
  flex-shrink: 0;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.company__row dd {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.company__row dd a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   Contact
   ============================================================ */
.contact__content {
  max-width: 640px;
  margin: 0 auto;
}

.contact__lead {
  text-align: center;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-normal);
}

.contact__form-wrapper {
  background: #FFFFFF;
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__group--center {
  text-align: center;
  margin-top: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form__required {
  display: inline-block;
  font-size: var(--text-xs);
  color: #C53030;
  font-weight: var(--fw-bold);
  margin-left: 4px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: #F7F8FA;
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 128, 121, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: #F7F8FA;
  padding-right: 40px;
}

/* ============================================================
   Footer — Startia style
   ============================================================ */
.footer {
  background: var(--color-bg-header);
  color: var(--color-text-on-dark);
  padding: 48px 0 32px;
}

.footer__inner {
  text-align: center;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-on-dark);
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  text-decoration: none;
}

.footer__logo:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color 0.2s;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--color-text-on-dark);
}

.footer__philosophy {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Scroll Animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1023px) {
  :root {
    --text-hero: 2.25rem;
    --text-5xl:  2.5rem;
    --text-3xl:  1.75rem;
  }

  .section {
    padding: 72px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    margin-left: auto;
  }

  .header {
    height: var(--header-h-sp);
  }

  html {
    scroll-padding-top: var(--header-h-sp);
  }

  .hero {
    padding-top: var(--header-h-sp);
    min-height: 70vh;
  }

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

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

  .service-bar__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-bar__item {
    padding: 20px 16px;
    gap: 12px;
  }

  .service-bar__text {
    font-size: var(--text-xs);
  }

  /* Mobile nav overlay */
  .header__nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h-sp);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-header);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .header__nav.is-open .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .header__nav.is-open .header__nav-link {
    font-size: var(--text-xl);
    height: auto;
    padding: 8px 24px;
  }

  .header__nav.is-open .header__nav-en {
    font-size: var(--text-lg);
  }

  .header__nav.is-open .header__nav-ja {
    font-size: var(--text-sm);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --text-hero: 1.75rem;
    --text-5xl:  2rem;
    --text-3xl:  1.5rem;
    --text-2xl:  1.25rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .sp-hide {
    display: none;
  }

  .header__logo-icon {
    width: 144px;
    height: 48px;
  }

  .footer__logo-icon {
    width: 108px;
    height: 36px;
  }

  /* Service bar: stack on mobile */
  .service-bar__inner {
    grid-template-columns: 1fr;
  }

  .service-bar__item {
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
  }

  .service-bar__item:last-child {
    border-bottom: none;
  }


  /* Services: single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Cases: single column */
  .cases__grid {
    grid-template-columns: 1fr;
  }

  /* Section header row: stack on mobile */
  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Strengths: single column */
  .strengths__grid {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .strength {
    padding: 24px 20px;
  }

  .strength__number {
    font-size: 2.25rem;
  }

  .strength__key {
    font-size: var(--text-lg);
  }

  /* Flow: vertical on mobile */
  .flow {
    padding: 24px;
  }

  .flow__steps {
    flex-direction: column;
    gap: var(--space-md);
  }

  .flow__step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-sm);
    padding: 0;
  }

  .flow__step:not(:last-child)::after {
    display: none;
  }

  .flow__step-number {
    flex-shrink: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    font-size: var(--text-sm);
  }

  /* Company */
  .company__row {
    flex-direction: column;
    gap: 4px;
  }

  .company__row dt {
    width: 100%;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .contact__form-wrapper {
    padding: 24px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__nav {
    justify-content: center;
  }
}

/* ============================================
   Hero フェードインアニメーション
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle {
    animation: none;
  }
}
