/* ============================================================
   CSS Variables & Reset
============================================================ */
:root {
  --color-primary:   #40C4AA;  /* ティファニーグリーン */
  --color-primary-dark: #00A37E; /* 深みエメラルド */
  --color-base:      #F9FBFB;  /* オフホワイト */
  --color-accent:    #333C3C;  /* ミッドナイトグレー */
  --color-text:      #2D3535;
  --color-text-muted: #7A8A8A;
  --color-border:    #E2EAEA;
  --color-white:     #FFFFFF;
  --color-section-alt: #F2F7F7;

  --font-en: 'Montserrat', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  --max-width: 1160px;
  --header-h: 72px;
  --radius: 4px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(51, 60, 60, 0.06);
  --shadow-md: 0 8px 32px rgba(51, 60, 60, 0.10);
  --shadow-lg: 0 20px 60px rgba(51, 60, 60, 0.12);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--font-ja); }

/* ============================================================
   Utility
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Fade-in animation (JS adds .is-visible) */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.12s; }
.fade-in:nth-child(3) { transition-delay: 0.24s; }
.fade-in:nth-child(4) { transition-delay: 0.36s; }

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(64, 196, 170, 0.30);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 28px rgba(0, 163, 126, 0.35);
  transform: translateY(-1px);
}
.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
}
.btn--lg { padding: 18px 48px; font-size: 1rem; }
.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   Section Commons
============================================================ */
.section {
  padding: 100px 0;
}
.section--alt {
  background-color: var(--color-section-alt);
}
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--font-ja);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  margin-bottom: 20px;
}
.section__desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.header--scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header--scrolled .header__logo-en,
.header--scrolled .header__logo-ja {
  color: var(--color-accent);
}
.header--scrolled .header__nav-link {
  color: var(--color-accent);
}
.header--scrolled .header__nav-link--cta {
  color: var(--color-white);
}
.header--scrolled .header__burger-line {
  background: var(--color-accent);
}

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

/* Logo */
.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
/* SVGロゴ画像 */
.header__logo {
  display: flex;
  align-items: center;
  padding-left: 4px;
}
.header__logo-img {
  height: 60px;        /* PC: 60px */
  width: auto;
  display: block;
  object-fit: contain; /* 歪み防止 */
  filter: brightness(0) invert(1); /* 透過ヘッダー上では白表示 */
  transition: filter var(--transition);
}
.header--scrolled .header__logo-img,
.header--fixed-light .header__logo-img {
  filter: none; /* 白背景ヘッダーではオリジナルカラー */
}
.footer__logo-img {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(0.85); /* ダークフッター上では明るく */
  margin-bottom: 6px;
}

/* モバイル: 768px以下でロゴを40pxに */
@media (max-width: 768px) {
  .header__logo-img {
    height: 40px;
  }
  .footer__logo-img {
    height: 52px;
  }
}
.header__logo-en {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
  transition: color var(--transition);
}
.header__logo-ja {
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  transition: color var(--transition);
}

/* Nav */
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__nav-link {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: color var(--transition);
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.header__nav-link:hover::after { width: 100%; }
.header__nav-link--cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 22px;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(64,196,170,0.3);
}
.header__nav-link--cta::after { display: none; }
.header__nav-link--cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.header__burger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}
.header__burger.is-open .header__burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.header__burger.is-open .header__burger-line:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.header__burger.is-open .header__burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transition: transform 8s ease;
}
.hero:hover .hero__bg-img { transform: scale(1.03); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 44%, rgba(64, 196, 170, 0.12) 0%, rgba(64, 196, 170, 0) 34%),
    linear-gradient(90deg, rgba(18, 35, 34, 0.78) 0%, rgba(30, 48, 47, 0.58) 48%, rgba(18, 35, 34, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.32) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 840px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}
.hero__label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__title-ja {
  font-family: var(--font-ja);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.hero__title-en {
  font-family: var(--font-en);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}
.hero__desc {
  font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
  color: rgba(255,255,255,0.82);
  line-height: 2;
  margin-bottom: 48px;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   SERVICE
============================================================ */
.service {
  background-color: var(--color-base);
}
.service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.service__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
/* サービスカード上部画像 */
.service__card-img-wrap {
  margin: -48px -40px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 180px;
  max-height: 240px;
  background: var(--color-section-alt);
}
.service__card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 18px;
}
.service__card-img-wrap--logo {
  background: linear-gradient(135deg, rgba(249,251,251,0.96), rgba(226,234,234,0.64));
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 8;
}
.service__card-img-wrap--logo .service__card-img {
  object-fit: contain;
  width: 100%;
  max-width: 82%;
  height: 100%;
  max-height: 118px;
  padding: 20px;
}
.service__card-img-wrap--screenshot {
  aspect-ratio: 16 / 8;
  min-height: 180px;
  max-height: 240px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__card-img-wrap--screenshot .service__card-img {
  object-fit: contain;
  object-position: center;
  padding: 12px;
}
.service__card-icon svg {
  width: 64px;
  height: 64px;
}
.service__card-label {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service__card-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  margin-bottom: 16px;
}
.service__card-desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.85;
}
.service__card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.service__card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.6;
}
.service__check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.service__card-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.service__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  transition: gap var(--transition);
}
.service__card-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.service__card-link:hover { gap: 12px; }

/* ============================================================
   PHILOSOPHY
============================================================ */
.philosophy {
  background: var(--color-white);
}

/* 代表メッセージ */
.philosophy__message {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: start;
  margin-bottom: 100px;
}
/* 代表メッセージ：写真なし（テキスト1列） */
.philosophy__message--no-photo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.philosophy__message-text .section__label { text-align: left; }
.philosophy__message-text .section__title { text-align: left; }
.philosophy__message-body {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 36px;
}
.philosophy__message-sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.philosophy__message-title {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}
.philosophy__message-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.philosophy__message-img {
  width: 320px;
  flex-shrink: 0;
}
.philosophy__message-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* MISSION / VISION / VALUES */
.philosophy__mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.philosophy__mvv-item {
  background: var(--color-base);
  padding: 48px 40px;
  transition: background var(--transition);
}
.philosophy__mvv-item:hover { background: var(--color-white); }
.philosophy__mvv-label {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.philosophy__mvv-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 16px;
}
.philosophy__mvv-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* ============================================================
   COMPANY
============================================================ */
.company {
  background: var(--color-section-alt);
}
.company__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.company__table {
  width: 100%;
  border-collapse: collapse;
}
.company__table tr {
  border-bottom: 1px solid var(--color-border);
}
.company__table tr:first-child {
  border-top: 1px solid var(--color-border);
}
.company__table th,
.company__table td {
  padding: 20px 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  text-align: left;
  vertical-align: top;
}
.company__table th {
  width: 140px;
  font-weight: 500;
  color: var(--color-text-muted);
  padding-right: 24px;
  white-space: nowrap;
}
.company__table td {
  color: var(--color-text);
}
.company__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.company__map-placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* オフィス写真コラージュ（オフセット重ね） */
.company__office-gallery {
  position: relative;
  height: 400px;
}
.company__office-gallery__main,
.company__office-gallery__sub {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.company__office-gallery__main {
  top: 0;
  left: 0;
  width: 70%;
  height: 72%;
  box-shadow: 0 6px 28px rgba(0,0,0,0.13);
  z-index: 1;
}
.company__office-gallery__sub {
  bottom: 0;
  right: 0;
  width: 70%;
  height: 72%;
  box-shadow: 0 10px 36px rgba(0,0,0,0.2);
  z-index: 2;
}
.company__office-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.company__office-gallery img:hover {
  transform: scale(1.04);
}
@media (max-width: 960px) {
  .company__office-gallery { height: 320px; }
}
@media (max-width: 640px) {
  .company__office-gallery {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .company__office-gallery__main,
  .company__office-gallery__sub {
    position: static;
    width: 100%;
    height: 220px;
    box-shadow: var(--shadow-md);
  }
}

/* ============================================================
   CONTACT
============================================================ */
.contact {
  background: var(--color-white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

/* Form */
.form__row { display: flex; gap: 24px; }
.form__row--half > * { flex: 1; }
.form__group { margin-bottom: 28px; }
.form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.form__required {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form__input::placeholder, .form__textarea::placeholder {
  color: #B0BEBE;
}
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(64,196,170,0.15);
}
.form__input:invalid:not(:placeholder-shown),
.form__textarea:invalid:not(:placeholder-shown) {
  border-color: #e57373;
}
.form__input--half { max-width: 280px; }
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237A8A8A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}
.form__textarea { resize: vertical; min-height: 140px; }
.form__error {
  display: block;
  font-size: 0.8125rem;
  color: #e57373;
  margin-top: 6px;
  min-height: 1.2em;
}

/* Privacy */
.form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form__privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.form__privacy-text { font-size: 0.875rem; color: var(--color-text-muted); }
.form__privacy-link { color: var(--color-primary); text-decoration: underline; }

/* Submit */
.form__submit { margin-top: 40px; }
.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px;
  text-align: center;
  background: var(--color-section-alt);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}
.form__success[hidden] { display: none; }
.form__success svg { width: 48px; height: 48px; }
.form__success p { font-size: 1rem; line-height: 1.8; color: var(--color-text); }

/* Contact Info sidebar */
.contact__info { padding-top: 8px; }
.contact__info-item {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: var(--color-section-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.contact__info-icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.contact__info-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.contact__info-value {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.contact__info-value a { color: inherit; }
.contact__info-value a:hover { color: var(--color-primary); }
.contact__info-note { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 4px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--color-accent);
  color: rgba(255,255,255,0.85);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}
.footer__logo-en {
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
}
.footer__logo-ja {
  font-family: var(--font-en);
  font-size: 0.5625rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.footer__tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  font-weight: 300;
}
.footer__nav-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__nav-list a {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer__nav-list a:hover { color: var(--color-primary); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px 24px;
}
.footer__copyright {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   HEADER — 内部ページ用（常に白背景）
============================================================ */
.header--fixed-light {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header--fixed-light .header__logo-en,
.header--fixed-light .header__logo-ja { color: var(--color-accent); }
.header--fixed-light .header__nav-link { color: var(--color-accent); }
.header--fixed-light .header__nav-link--cta { color: var(--color-white); }
.header--fixed-light .header__burger-line { background: var(--color-accent); }

/* ============================================================
   PAGE HERO — 内部ページ用バナー
============================================================ */
.page-hero {
  padding-top: var(--header-h);
  min-height: 320px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1a2828 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(64,196,170,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.page-hero__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero__title {
  font-family: var(--font-ja);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}
.page-hero__desc {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  max-width: 520px;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.breadcrumb__item {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.breadcrumb__item a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.breadcrumb__item a:hover { color: var(--color-primary); }
.breadcrumb__sep { color: rgba(255,255,255,0.25); font-size: 0.625rem; }

/* CTA バナー（ページ下部） */
.cta-banner {
  background: var(--color-primary);
  padding: 80px 0;
  text-align: center;
}
.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}
.cta-banner__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}
.cta-banner .btn--outline {
  border-color: rgba(255,255,255,0.8);
  margin-left: 12px;
}

/* ============================================================
   INDEX — Philosophy Teaser
============================================================ */
.philosophy-teaser {
  background: var(--color-section-alt);
  padding: 100px 0;
  text-align: center;
}
.philosophy-teaser__mission {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.4;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.philosophy-teaser__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 2;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ============================================================
   PAGE TOP BUTTON
============================================================ */
.page-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 90;
}
.page-top[hidden] { display: flex; visibility: hidden; } /* hidden を overrideして位置確保 */
.page-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.page-top:hover { background: var(--color-primary); }
.page-top svg { width: 20px; height: 20px; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 960px)
============================================================ */
@media (max-width: 960px) {
  .section { padding: 80px 0; }

  .service__grid { grid-template-columns: 1fr; gap: 24px; }
  .service__card { padding: 36px 28px; }
  .service__card-img-wrap {
    margin: -36px -28px 24px;
    aspect-ratio: 16 / 7;
    min-height: 170px;
    max-height: 220px;
  }
  .service__card-img-wrap--logo { aspect-ratio: 16 / 7; }
  .service__card-img-wrap--screenshot {
    aspect-ratio: 16 / 7;
    min-height: 170px;
    max-height: 220px;
  }

  .philosophy__message {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  .philosophy__message-img { width: 100%; max-width: 360px; }
  .philosophy__mvv { grid-template-columns: 1fr; }

  .company__inner { grid-template-columns: 1fr; gap: 40px; }

  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__info { order: -1; }
}

/* ============================================================
   RESPONSIVE — Service Images (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  .service__card-img-wrap {
    aspect-ratio: 4 / 3;
    min-height: 0;
    max-height: none;
  }
  .service__card-img-wrap--screenshot {
    aspect-ratio: 16 / 9;
  }
  .service__card-img {
    padding: 14px;
  }
  .service__card-img-wrap--screenshot .service__card-img {
    padding: 10px;
  }
  .service__card-img-wrap--logo .service__card-img {
    max-width: 88%;
    max-height: 96px;
    padding: 18px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .section { padding: 64px 0; }
  .section__header { margin-bottom: 40px; }

  /* Header */
  .header__nav {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .header__nav-list {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .header__nav-link {
    font-size: 1.125rem;
    color: var(--color-accent);
    letter-spacing: 0.15em;
  }
  .header__nav-link--cta {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 40px;
  }
  .header__burger { display: flex; z-index: 101; }
  .header--scrolled .header__burger-line { background: var(--color-accent); }

  /* Hero */
  .hero__bg-img { object-position: 62% center; }
  .hero__title-ja { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(16, 34, 33, 0.76) 0%, rgba(16, 34, 33, 0.66) 52%, rgba(16, 34, 33, 0.78) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  }

  /* Service */
  .service__card { padding: 28px 20px; }
  .service__card-img-wrap {
    margin: -28px -20px 20px;
    aspect-ratio: 4 / 3;
  }
  .service__card-img-wrap--screenshot {
    aspect-ratio: 16 / 9;
  }
  .service__card-img {
    padding: 12px;
  }
  .service__card-img-wrap--screenshot .service__card-img {
    padding: 8px;
  }
  .service__card-img-wrap--logo .service__card-img {
    max-height: 82px;
    padding: 16px;
  }

  /* Philosophy */
  .philosophy__mvv-item { padding: 36px 24px; }

  /* Company */
  .company__table th { width: 100px; font-size: 0.875rem; }
  .company__table td { font-size: 0.875rem; }

  /* Contact */
  .form__row--half { flex-direction: column; }
  .form__input--half { max-width: 100%; }
  .btn--lg { width: 100%; justify-content: center; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav-list { gap: 20px; }

  .page-top { bottom: 20px; right: 16px; width: 44px; height: 44px; }
}
