/* ============================================================
   TSS Website CSS
   ============================================================

   ▼ カラーを変更したい場合はここだけ編集してください
   ============================================================ */
:root {
  --color-navy: #162c3f;
  /* メインネイビー（ヘッダーボタン・Aboutボタン等） */
  --color-navy-dark: #11212f;
  /* 濃いネイビー（ヒーロータイトル・強調色） */
  --color-navy-card: #162c3f;
  /* ニュースカード背景・事業内容背景 */

  /* ── テキスト ── */
  --color-text: #3A3A3A;
  /* 本文テキスト */
  --color-title: #3F3F3F;
  /* 内ページタイトル */
  --color-text-mid: #6B6B6B;
  /* サブテキスト */
  --color-text-light: #ABABAB;
  /* 薄いテキスト */
  --color-text-hero: #687177;
  /* ヒーロー説明文 */

  /* ── 背景 ── */
  --color-bg: #F5F5F4;
  /* サイト全体ベース背景 */
  --color-white: #FFFFFF;
  --color-dark-bg: #11212f;
  /* フッター背景 */

  /* ── ボーダー・区切り ── */
  --color-border: #DDDBD7;
  --color-border-sub: #EAEAE8;
  --color-chip: #E2E2E1;

  /* ── フォント ── */
  --font-en: 'Chelsea Market', cursive;
  /* 英数字・見出し用 */
  --font-ja: 'Noto Sans JP', sans-serif;
  /* 日本語・文章用 */
  --font: 'Noto Sans JP', sans-serif;
  /* デフォルト（日本語） */

  /* ── サイズ・その他 ── */
  --radius: 24px;
  --radius-sm: 16px;
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ============================================================
   END OF VARIABLES
   ============================================================ */


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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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


/* ============================================================
   全画面背景（ヒーロー背景と同期・site-bg）
   ─ JS（main.js）が自動で画像を切り替えます
   ─ 画像を変えたい場合は .hbg-1〜4 の background-image を変更
============================================================ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-bg .hbg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0.4, 0, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.site-bg .hbg.active {
  opacity: 1;
}

.site-bg .hbg-1 {
  background-image: url(../images/bg-1.jpg);
}

.site-bg .hbg-2 {
  background-image: url(../images/bg-2.jpg);
}

.site-bg .hbg-3 {
  background-image: url(../images/bg-3.jpg);
}

.site-bg .hbg-4 {
  background-image: url(../images/bg-4.jpg);
}


/* ============================================================
   NAV（ヘッダー）
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  transition: background .4s, box-shadow .4s;
}

.nav.solid {
  background: rgba(245, 245, 244, .80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--color-text);
  flex-shrink: 0;
  font-family: var(--font-en);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-text-mid);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-navy) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(31, 30, 35, .22);
  transition: background .2s, transform .2s !important;
}

.nav-cta:hover {
  background: var(--color-navy-dark) !important;
  transform: translateY(-1px) !important;
}

/* ── ハンバーガー ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 600;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .35s var(--ease-spring), opacity .25s;
}

body.menu-open .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── モバイルメニュー ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 244, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 左寄せ */
  justify-content: flex-start;
  /* 上から並べる */
  padding: 100px 40px 40px;
  /* ヘッダー分の上余白 */
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-spring), visibility .35s;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

/* メインリンク */
.mobile-menu a {
  font-family: var(--font-en);
  font-size: 1.4rem;
  /* 少し小さく */
  font-weight: 900;
  color: var(--color-text);
  padding: 10px 0;
  letter-spacing: .02em;
  transition: color .2s;
  text-decoration: none;
  display: block;
  width: 100%;
}

.mobile-menu a:hover {
  color: var(--color-navy);
}

/* お問い合わせボタン */
.mobile-menu .m-cta {
  margin-top: 28px;
  background: var(--color-navy);
  color: #fff !important;
  padding: 14px 32px !important;
  border-radius: 100px;
  font-size: .95rem !important;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* 区切り線 */
.mobile-menu .m-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

/* 小さめリンク（プライバシー等） */
.mobile-menu .m-small {
  font-family: var(--font-ja);
  font-size: .75rem !important;
  font-weight: 500 !important;
  color: var(--color-text-mid) !important;
  padding: 6px 0 !important;
}


/* ============================================================
   HERO（全画面ビジュアル）
============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(20px, 5vw, 60px) 60px;
  z-index: 1;
  overflow: hidden;
}

.h-title-static {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  font-weight: 900;
  letter-spacing: -.02em;
  font-family: var(--font-en);
  color: var(--color-navy);
  line-height: 1.05;
  position: relative;
  z-index: 2;
  margin-bottom: 16px;
  opacity: 0;
  animation:
    suBig 1s cubic-bezier(.16, 1, .3, 1) .1s both,
    poyoyon2 5s ease-in-out 1.2s infinite;
}

@keyframes poyoyon2 {

  0% {
    transform: scale(1.0, 1.0) translate(0, 0);
    opacity: 1;
  }

  3% {
    transform: scale(0.98, 0.9) translate(0, 5px);
  }

  6% {
    transform: scale(1.02, 1.0) translate(0, 8px);
  }

  10% {
    transform: scale(0.98, 1.05) translate(0, -8px);
  }

  14% {
    transform: scale(1.0, 0.9) translate(0, 5px);
  }

  20% {
    transform: scale(1.0, 1.0) translate(0, 0);
    opacity: 1;
  }

  100% {
    transform: scale(1.0, 1.0) translate(0, 0);
    opacity: 1;
  }
}

.h-sub {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-navy-dark);
  letter-spacing: .06em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fu .7s ease .55s both;
}


.h-desc {
  font-size: clamp(.8rem, 2vw, .9rem);
  color: var(--color-text-hero);
  line-height: 2.1;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fu .7s ease .75s both;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: fu .8s ease 1.2s both;
}

.scroll-hint span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--color-text-light);
}

.sh-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--color-navy-dark), transparent);
  animation: shl 2s ease-in-out 1.4s infinite;
}

@keyframes shl {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes suBig {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   CONTENT WRAPPER（Service セクションを包む白い板）
============================================================ */
.content {
  position: relative;
  z-index: 10;
  background: rgba(245, 245, 244, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, .10);
}


/* ============================================================
   ABOUT US
============================================================ */
.content-section {
  position: relative;
  padding: 0;
  background: transparent;
  color: #000;
  overflow: visible;
  z-index: 5;
  /* 画像サイズ・比率 */
  width: min(78vw, 720px);
  margin: 0 auto 80px;
  /* ← 下に余白 */
  aspect-ratio: 4 / 3;
}

/* 枠線画像：セクション全体に敷く */
.section-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.bg-art-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* テキストを画像の上・中央に重ねる */
.container {
  position: absolute;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0 8%;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  color: var(--color-navy-dark);
}

.section-lead {
  font-size: clamp(.85rem, 1.8vw, 1rem);
  font-weight: 400;
  line-height: 2.2;
  color: #3a3a3a;
}

.btn-wrapper {
  margin-top: 32px;
}

.casual-btn {
  display: inline-block;
  background-color: var(--color-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 18px 45px;
  border-radius: 100px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.casual-btn:hover {
  background-color: var(--color-navy-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* スクロールフェードイン（About用） */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.js-reveal.visible {
  opacity: 1;
  transform: none;
}

.js-reveal:nth-child(2) {
  transition-delay: .1s;
}

.js-reveal:nth-child(3) {
  transition-delay: .2s;
}

.js-reveal:nth-child(4) {
  transition-delay: .3s;
}


/* ============================================================
   SERVICE（事業内容スライダー）
============================================================ */
.svc {
  background-color: var(--color-navy-card);
  /* ← 事業内容背景色 */
  padding: clamp(56px, 8vw, 96px) 0;
}

.svc .stitle {
  color: #fff;
}

.svc .slead {
  color: rgba(255, 255, 255, 0.6);
}

.svc .slbl {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.svc .sec-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.slider-wrap {
  display: block;
  overflow: hidden;
  padding: 8px 0 20px;
}

.slider-track {
  display: flex;
  gap: clamp(14px, 2vw, 20px);
  padding: 0 clamp(20px, 4vw, 48px);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.slider-track:active {
  cursor: grabbing;
}

.scard {
  flex: 0 0 clamp(240px, 28vw, 320px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  border: 1.5px solid transparent;
  transition: border-color .25s, transform .3s, box-shadow .3s;
  cursor: default;
}

.scard:hover {
  border-color: var(--color-chip);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(31, 30, 35, .10);
}

.scard-img {
  width: 100%;
  aspect-ratio: 10/7;
  overflow: hidden;
  background: var(--color-chip);
}

.scard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.scard:hover .scard-img img {
  transform: scale(1.04);
}

.scard-body {
  padding: clamp(16px, 2.5vw, 22px) clamp(16px, 2.5vw, 20px) clamp(20px, 3vw, 28px);
}

.scard h3 {
  font-size: clamp(.82rem, 1.8vw, .92rem);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: left;
  color: var(--color-text);
}

.scard p {
  font-size: clamp(.67rem, 1.4vw, .72rem);
  line-height: 1.9;
  color: var(--color-text-mid);
  text-align: left;
}

/* スライダー操作ボタン */
.slider-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(20px, 3vw, 32px);
}

.sc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .25);
  padding: 0;
}

.sc-btn:hover {
  background: var(--color-navy);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(17, 33, 47, .35);
}

/* 矢印画像：通常はネイビー、ホバーで白に切替 */
.sc-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  transition: filter .2s;
}

/* 前へボタンは左反転 */
.sc-arrow-prev {
  transform: scaleX(-1);
}

/* ホバー時にネイビー画像→白画像に切替（filter で反転） */
.sc-btn:hover .sc-arrow {
  filter: brightness(0) invert(1);
}

.sc-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  /* ← 非アクティブドット */
  transition: background .25s, width .3s cubic-bezier(.34, 1.2, .64, 1);
  cursor: pointer;
}

.dot.active {
  width: 24px;
  background: #fff;
  /* ← アクティブドット */
  border-radius: 100px;
}


/* ============================================================
   共通セクションスタイル
============================================================ */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.sec-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.slbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  margin-bottom: 12px;
}

.stitle {
  font-family: var(--font-en);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: inherit;
}

.slead {
  font-size: clamp(.8rem, 2vw, .875rem);
  line-height: 2.1;
  color: var(--color-text-mid);
  margin-top: 12px;
}

/* スクロールフェードイン（.jr） */
.jr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.jr.on {
  opacity: 1;
  transform: none;
}

.jr[data-d="1"] {
  transition-delay: .08s;
}

.jr[data-d="2"] {
  transition-delay: .16s;
}

.jr[data-d="3"] {
  transition-delay: .24s;
}

.jr[data-d="4"] {
  transition-delay: .32s;
}


/* ============================================================
   NEWS（ニュース）
============================================================ */
.news {
  background: transparent;
  padding: clamp(56px, 8vw, 96px) 0;
  color: var(--color-navy-dark);
  position: relative;
  z-index: 15;
}

/* NEWSセクション内のラベル・タイトル・ボタン色 */
.news .stitle {
  color: var(--color-navy-dark);
}

.news .slbl {
  background: rgba(22, 44, 63, 0.1);
  color: var(--color-navy-dark);
}

.news .news-more {
  color: var(--color-navy-dark);
}

.news-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.news-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px);
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: clamp(14px, 2vw, 18px);
  padding: clamp(16px, 2.5vw, 20px) clamp(28px, 4vw, 40px);
  font-size: clamp(.82rem, 1.8vw, .9rem);
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, transform .25s var(--ease-spring);
  white-space: nowrap;
  border: none;
}

.news-more:hover {
  transform: translateX(4px);
}

.news-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 4vw, 40px);
  height: clamp(34px, 4vw, 40px);
  border-radius: 10px;
  background: var(--color-navy-dark);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}

.news-more-arrow .arr-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.news-more:hover .news-more-arrow {
  background: var(--color-navy);
  transform: translateX(3px);
}

/* ニュース一覧 */
.nl {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 14px);
}

.ni {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  /* 通常：白背景・ネイビー枠 */
  background: #fff;
  border-radius: clamp(14px, 2vw, 18px);
  padding: clamp(20px, 3vw, 28px);
  transition: background .2s, transform .25s var(--ease-spring), border .2s;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--color-navy-dark);
}

/* ホバー：ネイビー背景・白文字 */
.ni:hover {
  background: var(--color-navy-card);
  transform: translateX(4px);
  border-color: var(--color-navy-card);
}

.ni:hover .nd {
  color: rgba(255, 255, 255, 0.9);
}

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

.ni:hover .ni-divider {
  background: rgba(255, 255, 255, 0.2);
}

.ni:hover .ni-arrow {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.nd {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--color-navy-dark);
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
  letter-spacing: -.01em;
}

.ni-divider {
  width: 1px;
  height: 32px;
  background: rgba(17, 33, 47, 0.15);
  flex-shrink: 0;
}

.ntxt {
  font-size: clamp(.82rem, 1.8vw, .9rem);
  font-weight: 400;
  flex: 1;
  color: var(--color-text);
  min-width: 0;
  line-height: 1.6;
}

.ni-arrow {
  width: clamp(34px, 4vw, 40px);
  height: clamp(34px, 4vw, 40px);
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--color-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background .2s, border-color .2s;
}

/* 2枚の画像を重ねて、表示切替でネイビー↔白を切り替える */
.ni-arrow .arr-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  position: absolute;
  transition: opacity .2s;
}

/* 通常：ネイビー表示・白非表示 */
.ni-arrow .arr-n {
  opacity: 1;
}

.ni-arrow .arr-w {
  opacity: 0;
}

/* ホバー：白表示・ネイビー非表示 */
.ni:hover .ni-arrow .arr-n {
  opacity: 0;
}

.ni:hover .ni-arrow .arr-w {
  opacity: 1;
}


/* ============================================================
   CTA（お問い合わせ・採用）
   contact-image.png はアスペクト比 687:515 ≒ 4:3 の横長素材。
   カードを画像のアスペクト比に合わせ、contain で完全表示する。
   テキストは画像中央エリア（白〜グレーグラデ）に重ねる。
============================================================ */
.cta {
  background: transparent;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
  position: relative;
  z-index: 15;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── カード：画像全体を余白なく表示 ── */
.cc {
  position: relative;
  text-decoration: none;
  cursor: pointer;
  /* 画像のアスペクト比 687:515 に合わせてカード高さを決める */
  aspect-ratio: 687 / 515;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* ← これで ::before がカードに収まる */
  border-radius: 18px;
  transition: transform .35s var(--ease-spring), box-shadow .35s;
  /* box-shadow: 0 8px 32px rgba(17, 33, 47, .22); */
}

.cc:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 20px 48px rgba(17, 33, 47, .35); */
}

/* contact-image.png をカード全体にぴったり表示 */
.cc::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../images/cta-bg1.png);
  background-size: 100% 100%;
  /* 縦横ともカードサイズに合わせる */
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .5s ease;
  z-index: 0;
}

.cc:hover::before {
  transform: scale(1.03);
}

/* ── テキストを画像の中央（明るいエリア）に配置 ── */
.cc-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 縦中央 */
  padding: clamp(20px, 6%, 52px) clamp(24px, 16%, 60px);
}

/* 大見出し */
/* .cc-en {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #EAEAE8;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 6px;
} */

.cc-en {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #EAEAE8;
  line-height: 1;
  margin: 0 0 6px;
}

/* 日本語サブタイトル */
.cc-ja {
  font-size: clamp(.72rem, 1.4vw, .85rem);
  /* color: rgba(17, 33, 47, 0.6); */
  color: #ABABAB;
  margin: 0 0 clamp(16px, 3vw, 28px);
  letter-spacing: .08em;
}

/* 説明文 */
.cc-desc {
  font-size: clamp(.78rem, 1.5vw, .88rem);
  /* color: rgba(17, 33, 47, 0.75); */
  color: #EAEAE8;
  line-height: 1.9;
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* ボタン：#11212f 背景・白文字・角丸ピル型 */
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-navy-dark);
  /* #11212f */
  color: #fff;
  font-size: clamp(.75rem, 1.3vw, .85rem);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  align-self: flex-start;
  letter-spacing: .04em;
  transition: opacity .2s, transform .25s;
  box-shadow: 0 4px 16px rgba(17, 33, 47, .25);
}

.cc-btn:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

.cc-sep {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.arr-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  transition: transform .25s;
}

.cc-btn:hover .arr-btn {
  transform: translateX(3px);
}




/* ============================================================
   FOOTER（フッター）
============================================================ */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-mid);
  padding: clamp(40px, 6vw, 64px) clamp(28px, 5vw, 60px) clamp(20px, 3vw, 32px);
  position: relative;
  z-index: 20;
  margin-top: clamp(48px, 6vw, 80px);
  /* フッター上の余白 */
}

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
}

/* 上段：ロゴ＋ナビ */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--color-border);
  gap: 24px;
  flex-wrap: wrap;
}

.f-logo-wrap {
  display: flex;
  flex-direction: column;
  /* 縦並び：ロゴ→Pマーク */
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.f-logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: none;
  opacity: 1;
}

.f-pmark {
  width: 64px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

.f-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.f-nav a {
  font-size: clamp(.72rem, 1.4vw, .82rem);
  color: var(--color-text-mid);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
  position: relative;
}

.f-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-navy);
  transform: scaleX(0);
  transition: transform .25s;
}

.f-nav a:hover {
  color: var(--color-navy);
}

.f-nav a:hover::after {
  transform: scaleX(1);
}

/* 中段：住所＋SNS */
.footer-mid-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
  flex-wrap: wrap;
  gap: 24px;
}

.f-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-address p {
  font-size: clamp(.72rem, 1.4vw, .82rem);
  color: var(--color-text-mid);
  line-height: 1.7;
}

.f-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(.72rem, 1.3vw, .8rem);
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  margin-top: 8px;
  transition: opacity .2s;
}

.f-map:hover {
  opacity: .7;
}

.f-map-icon {
  font-size: .7rem;
}

.f-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

.f-sns {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 44, 63, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-mid);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.f-sns:hover {
  background: rgba(22, 44, 63, 0.14);
  color: var(--color-navy);
}

/* 下段：コピーライト＋ポリシー */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: clamp(16px, 2.5vw, 22px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.f-copy {
  font-size: .7rem;
  color: var(--color-text-light);
  letter-spacing: .04em;
}

.f-policy {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}

.f-policy a {
  font-size: .7rem;
  color: var(--color-text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: .03em;
  transition: color .2s;
}

.f-policy a:hover {
  color: var(--color-navy);
}



/* ============================================================
   手書き区切り線（page-hero 下・各ページタイトル下）
============================================================ */
.page-hero-line {
  display: block;
  width: min(320px, 40vw);
  height: auto;
  margin: 4% auto 5%;
  opacity: 0;
  animation: fu .6s ease .6s both;
}

/* TOPページ stitle 下のライン */
.stitle-line {
  display: block;
  width: min(200px, 50vw);
  height: auto;
  margin: 6px auto 0;
  opacity: 0.85;
}

/* ============================================================
   内ページ共通（旧インラインCSSをstyle.cssに統合）
============================================================ */
.inner-page {
  position: relative;
  z-index: 5;
  padding-top: 80px;
}

.inner-privacy {
  position: relative;
  z-index: 5;
  padding-top: 0;
}

.page-hero {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 60px) clamp(40px, 5vw, 60px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero-en {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fu .8s cubic-bezier(.16, 1, .3, 1) .1s both;
}

.page-hero-ja {
  font-size: clamp(.82rem, 2vw, .95rem);
  color: var(--color-text-mid);
  letter-spacing: .14em;
  opacity: 0;
  animation: fu .7s ease .35s both;
}

.page-content {
  position: relative;
  z-index: 10;
  /* background: rgba(245, 245, 244, .92); */
  /* backdrop-filter: blur(18px); */
  /* -webkit-backdrop-filter: blur(18px); */
  border-radius: 40px 40px 40px 40px;
  /* box-shadow: 0 -8px 48px rgba(0, 0, 0, .08); */

  margin: 0 auto;
  max-width: 860px;
}

.page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 56px) clamp(24px, 5vw, 48px) clamp(48px, 7vw, 80px);
}

/* news-detail.html は max-width 760px */
.page-inner--narrow {
  max-width: 760px;
}

.page-section {
  margin-bottom: clamp(48px, 7vw, 72px);
}

.page-section:last-child {
  margin-bottom: 0;
}

/* 白背景カード（各内ページのコンテンツ区画） */
.page-card {
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.sec-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 44, 63, .08);
  color: var(--color-navy);
  border-radius: 100px;
  padding: 6px 20px;
  /* svc-label-tab と同じ */
  font-family: var(--font-en);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  /* svc-label-tab と同じ */
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.sec-h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.sec-lead {
  font-size: clamp(.85rem, 1.8vw, .95rem);
  color: var(--color-text-mid);
  line-height: 2.1;
  margin-bottom: 32px;
}

.sec-body {
  font-size: clamp(.82rem, 1.6vw, .9rem);
  color: var(--color-text);
  line-height: 2.2;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: clamp(40px, 6vw, 64px) 0;
}


/* ── about.html ── */

/* 経営理念・ビジョン横並び */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.philosophy-col {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-col:first-child {
  border-right: 1px solid var(--color-border);
}

.philosophy-label {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 44, 63, .08);
  color: var(--color-navy);
  border-radius: 100px;
  padding: 6px 20px;
  /* svc-label-tab と同じ */
  font-family: var(--font-en);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  /* svc-label-tab と同じ */
  font-weight: 900;
  letter-spacing: .08em;
  width: fit-content;
}

.philosophy-text {
  font-family: var(--font-ja);
  font-size: clamp(.88rem, 1.8vw, 1rem);
  color: var(--color-text);
  line-height: 2.0;
}

@media (max-width: 640px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

/* About Corporate Message タイトル */
.corporate-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.corporate-sub {
  font-family: var(--font-ja);
  font-size: clamp(.82rem, 1.8vw, .95rem);
  color: var(--color-text-mid);
  letter-spacing: .08em;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.company-table th,
.company-table td {
  padding: 16px 20px;
  font-size: .88rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 160px;
  font-weight: 700;
  color: var(--color-navy-dark);
  white-space: nowrap;
  background: rgba(22, 44, 63, .03);
}

.company-table td {
  color: var(--color-text-mid);
}

.company-table td a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

/* ── service.html ── */
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  background: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(24px, 3vw, 32px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
}

.svc-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.svc-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  line-height: 1.2;
  margin: 0;
}

.svc-body {
  font-size: clamp(.82rem, 1.6vw, .9rem);
  color: var(--color-text-mid);
  line-height: 2.1;
  margin: 0;
}

.svc-sub {
  font-size: clamp(.78rem, 1.4vw, .84rem);
  color: var(--color-navy);
  font-weight: 600;
  margin: 0;
}

.svc-sub strong,
.svc-body strong {
  color: var(--color-navy);
  font-weight: 700;
}

.svc-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-circle {
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--color-text-light);
  letter-spacing: .1em;
  flex-shrink: 0;
}

/* Service 01/02/03 ラベル（角丸横長） */
.svc-label-tab {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-en);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  font-weight: 900;
  color: var(--color-navy);
  background: rgba(22, 44, 63, .08);
  padding: 6px 20px;
  border-radius: 100px;
  letter-spacing: .08em;
  margin-bottom: 18px;
  width: fit-content;
}

/* ── reason.html ── */
.reason-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reason-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--color-border);
}

.reason-item:last-child {
  border-bottom: none;
}

.ri-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  gap: 10px;
}

.ri-num {
  font-family: var(--font-en);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: -.04em;
}

.ri-bar {
  width: 80px;
  height: 80px;
  flex: none;
  background: url(../images/handdraw-line.png) center/contain no-repeat;
  transform: rotate(90deg);
}

.ri-body {
  padding-left: clamp(16px, 3vw, 28px);
}

.ri-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ri-sub {
  font-size: .7rem;
  font-weight: 600;
  color: var(--color-text-mid);
  background: var(--color-bg);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: .06em;
}

.ri-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ri-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
}

.ri-stat-num {
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1;
}

.ri-stat-num small {
  font-size: .6em;
  font-weight: 600;
}

.ri-stat-label {
  font-size: .68rem;
  color: var(--color-text-light);
  letter-spacing: .04em;
}

.ri-text {
  font-size: clamp(.82rem, 1.6vw, .88rem);
  color: var(--color-text-mid);
  line-height: 2.0;
}

/* ── recruit.html ── */
.rc-tag {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: .06em;
}

.rc-tag-web {
  background: var(--color-navy-dark);
}

.rc-loc {
  font-size: .78rem;
  color: var(--color-text-mid);
}

.accord-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.accord-item {
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}

.accord-item.open {
  border-color: var(--color-navy);
  box-shadow: 0 4px 24px rgba(22, 44, 63, .10);
}

.accord-head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  font-family: var(--font-ja);
}

.accord-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  grid-column: 1/-1;
}

.accord-title {
  font-size: clamp(.88rem, 1.8vw, .96rem);
  font-weight: 700;
  color: var(--color-navy-dark);
  line-height: 1.6;
  margin: 0;
}

.accord-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.accord-item.open .accord-icon {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.ai-arrow {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: transform .3s, filter .2s;
}

.accord-item.open .ai-arrow {
  transform: rotate(90deg);
  filter: brightness(0) invert(1);
}

.accord-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.16, 1, .3, 1);
}

.accord-item.open .accord-body {
  max-height: 600px;
}

.accord-inner {
  padding: 0 24px 28px;
}

.rc-table {
  width: 100%;
  border-collapse: collapse;
}

.rc-table th,
.rc-table td {
  padding: 12px 16px;
  font-size: .84rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-bg);
  text-align: left;
  vertical-align: top;
}

.rc-table th {
  width: 110px;
  font-weight: 700;
  color: var(--color-navy-dark);
  background: rgba(22, 44, 63, .03);
  white-space: nowrap;
}

.rc-table td {
  color: var(--color-text-mid);
}

.rc-table tr:last-child th,
.rc-table tr:last-child td {
  border-bottom: none;
}

.rc-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-navy-dark);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.rc-apply-btn:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
}

/* ── news.html ── */
.news-list-full {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nf-item {
  display: grid;
  grid-template-columns: 100px 100px 1fr 28px;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  transition: border-color .2s, background .2s, transform .25s;
}

.nf-item:hover {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #fff;
  transform: translateX(4px);
}

.nf-item:hover .nf-date,
.nf-item:hover .nf-title {
  color: #fff;
}

.nf-item:hover .nf-cat {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.nf-item:hover .nf-arrow {
  filter: brightness(0) invert(1);
}

.nf-date {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  white-space: nowrap;
}

.nf-cat {
  font-size: .68rem;
  font-weight: 700;
  background: rgba(22, 44, 63, .07);
  color: var(--color-navy);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  text-align: center;
}

.nf-title {
  font-size: .85rem;
  line-height: 1.7;
}

.nf-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ── news-detail.html ── */
.art-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1.5px solid var(--color-border);
}

.art-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.art-date {
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-navy-dark);
}

.art-cat {
  font-size: .68rem;
  font-weight: 700;
  background: rgba(22, 44, 63, .07);
  color: var(--color-navy);
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: .06em;
}

.art-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  line-height: 1.5;
}

.art-body {
  font-size: clamp(.88rem, 1.8vw, .95rem);
  color: var(--color-text);
  line-height: 2.3;
}

.art-body p {
  margin-bottom: 1.6em;
}

.art-body h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  margin: 2em 0 .8em;
  padding-left: 16px;
  border-left: 3px solid var(--color-navy);
}

.art-body a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.art-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  color: var(--color-navy-dark);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.art-back:hover {
  opacity: .65;
}

.art-back-arrow {
  width: 18px;
  height: 18px;
  object-fit: contain;
  transform: scaleX(-1);
}

/* contact専用クラス → 共通クラスに統合済み */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy-dark);
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: .04em;
}

.optional {
  display: inline-block;
  background: var(--color-border);
  color: var(--color-text-mid);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: .04em;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-ja);
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(22, 44, 63, .08);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.8;
}

.privacy-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(22, 44, 63, .04);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
}

.privacy-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.privacy-agree-text {
  font-size: .8rem;
  color: var(--color-text-mid);
  line-height: 1.9;
}

.privacy-agree-text a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--color-navy-dark);
  color: #fff;
  font-family: var(--font-ja);
  font-size: clamp(.88rem, 1.8vw, 1rem);
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  letter-spacing: .06em;
  box-shadow: 0 6px 24px rgba(17, 33, 47, .22);
  transition: background .25s, transform .25s, box-shadow .25s;
  min-width: 200px;
}

.submit-btn:hover {
  background: var(--color-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 33, 47, .28);
}

.submit-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.submit-btn .btn-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.submit-note {
  font-size: .72rem;
  color: var(--color-text-light);
  text-align: center;
  line-height: 2.0;
}

.thanks-msg {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.thanks-msg.show {
  display: block;
}

.thanks-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.thanks-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  margin-bottom: 12px;
}

.thanks-text {
  font-size: .88rem;
  color: var(--color-text-mid);
  line-height: 2.1;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  background: var(--color-navy-dark);
  color: #fff;
  font-family: var(--font-ja);
  font-size: .88rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.thanks-btn:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
}

.error-msg {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .82rem;
  color: #dc2626;
  line-height: 1.7;
  margin-bottom: 16px;
}

.error-msg.show {
  display: block;
}

/* ── legal（privacy / privacy-policy） ── */
.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-title);
  margin: 28px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--color-border);
}

.legal-body p,
.legal-body li {
  font-size: .88rem;
  color: var(--color-text-mid);
  line-height: 2.1;
  margin-bottom: 12px;
}

.legal-body ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-body a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── レスポンシブ（内ページ共通） ── */
@media (max-width: 680px) {
  .svc-block {
    grid-template-columns: 1fr;
  }

  .svc-visual {
    order: -1;
  }

  .svc-circle {
    width: clamp(120px, 40vw, 180px);
    height: clamp(120px, 40vw, 180px);
  }
}

@media (max-width: 640px) {
  .page-hero-en {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nf-item {
    grid-template-columns: 1fr 24px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* SP：カテゴリ非表示、日付は表示 */
  .nf-cat {
    display: none;
  }

  .nf-date {
    display: block;
    font-size: .78rem;
    grid-column: 1 / -1;
  }

  .company-table th {
    width: 100px;
    font-size: .78rem;
  }

  .company-table td {
    font-size: .78rem;
  }
}

@media (max-width: 480px) {
  .reason-item {
    grid-template-columns: 56px 1fr;
  }

  .ri-num {
    font-size: 1.6rem;
  }
}

/* ============================================================
   Service：サービス画像（イラスト差し替え）
============================================================ */
.svc-img-wrap {
  width: clamp(160px, 22vw, 280px);
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  /* background: var(--color-bg); */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.svc-block:hover .svc-img {
  transform: scale(1.04);
}

@media (max-width: 680px) {
  .svc-img-wrap {
    width: clamp(120px, 40vw, 200px);
    aspect-ratio: 1;
  }
}

/* ============================================================
   Recruit：社員データ（Points）
============================================================ */
.member-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(20px, 3vw, 32px);
}

.mp-item {
  background: #fff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 28px) clamp(16px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid #e2e2e1;
  text-align: center;
}

.mp-num {
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: .14em;

  background: var(--color-bg);
  padding: 3px 10px;
  border-radius: 100px;
}

.mp-label {
  font-size: clamp(.78rem, 1.6vw, .85rem);
  color: var(--color-text-mid);
  line-height: 1.5;
}

.mp-value {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--color-navy-dark);
  line-height: 1;
  margin-top: 4px;
}

.mp-value strong {
  color: var(--color-navy);
}

.mp-unit {
  font-size: .55em;
  font-weight: 600;
  color: var(--color-text-mid);
  margin-left: 2px;
}

.mp-unit-2 {
  font-size: 1em;
  font-weight: 600;
  color: var(--color-text-mid);
  margin-left: 2px;
}

/* Location アイコン */
.rc-loc-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 2px;
}

@media (max-width: 480px) {
  .member-points {
    grid-template-columns: 1fr 1fr;
  }

  .mp-value {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

/* ============================================================
   RESPONSIVE
   ─────────────────────────────────────────────────────────────
   対象：全ページ共通
============================================================ */

/* ── ナビ折りたたみ（1024px以下） ── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ── タブレット縦・スマホ横（768px以下） ── */
@media (max-width: 768px) {

  /* ▼ TOPページ About セクション */
  .content-section {
    width: 88vw;
    aspect-ratio: 3 / 4;
    margin-bottom: 56px;
  }

  .section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .section-lead {
    font-size: clamp(.78rem, 3.2vw, .92rem);
    line-height: 2.0;
  }

  .btn-wrapper {
    margin-top: 16px;
  }

  .casual-btn {
    padding: 13px 30px;
    font-size: 13px;
  }

  /* ▼ 内ページ共通（全内ページに反映） */
  .page-hero {
    padding: clamp(72px, 12vw, 96px) clamp(16px, 4vw, 28px) clamp(20px, 3vw, 32px);
  }

  .privacy-hero {
    padding: clamp(72px, 12vw, 96px) clamp(16px, 4vw, 28px) clamp(60px, 10vw, 80px);
  }

  .page-hero-en {
    font-size: clamp(1.8rem, 14vw, 3rem);
  }

  /* .page-inner {
    padding: 20px 16px 40px;
  } */

  .page-content {
    border-radius: 24px 24px 0 0;
  }

  /* ▼ TOPページ Service スライダー */
  .scard {
    flex: 0 0 72vw;
  }

  .slider-track {
    padding: 0 clamp(16px, 6vw, 28px);
  }

  /* ▼ TOPページ ニュース */
  .ni {
    flex-wrap: wrap;
    gap: 12px;
  }

  .ni-divider {
    display: none;
  }

  .nd {
    min-width: auto;
    font-size: .85rem;
    width: 100%;
  }

  .ntxt {
    font-size: .82rem;
    width: 100%;
    flex: none;
  }

  .ni-arrow {
    margin-left: auto;
  }

  .news-more {
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  /* ▼ CTA（お問い合わせ・採用） */
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cc {
    min-height: 240px;
  }

  .cc-content {
    padding: 20px 20px;
    align-items: center;
    text-align: center;
  }

  .cc-en {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .cc-btn {
    font-size: .76rem;
    padding: 10px 18px;
    align-self: center;
  }

  /* ▼ フッター */
  .footer {
    padding: clamp(28px, 4vw, 44px) clamp(14px, 4vw, 24px) clamp(14px, 3vw, 20px);
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .f-nav {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .f-nav a {
    font-size: .7rem;
  }

  .footer-mid-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .f-policy {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  /* ▼ タイトル・テキスト */
  .stitle {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .sec-h2 {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }

  /* ▼ お問い合わせフォーム */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ▼ 会社概要テーブル */
  .company-table th {
    width: 88px;
    font-size: .75rem;
    padding: 11px 12px;
  }

  .company-table td {
    font-size: .75rem;
    padding: 11px 12px;
  }

  /* ▼ 採用アコーディオン */
  .accord-head {
    padding: 16px;
  }

  .accord-title {
    font-size: .84rem;
  }

  /* ▼ 事業内容：SP時は文章→画像の順に */
  .svc-block {
    grid-template-columns: 1fr;
  }

  .svc-visual {
    order: 1;
  }

  .svc-text {
    order: 0;
  }

  /* ▼ 事業内容：ラベル・タイトルのみ中央（説明文は左寄せ） */
  .svc-label-tab {
    margin-left: auto;
    margin-right: auto;
  }

  .svc-title {
    text-align: center;
  }

  .svc-body,
  .svc-sub {
    text-align: left;
  }

  /* ▼ SP中央配置（指定箇所のみ） */

  /* 私たちについて：01経営理念・02ビジョン → ラベルのみ */
  .philosophy-label {
    margin-left: auto;
    margin-right: auto;
  }

  /* 私たちについて：Message・Company → ラベルのみ */
  .card-message-chip,
  .card-company-chip {
    display: flex !important;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  /* 採用：Member・Positions → ラベル・タイトル */
  .card-member-chip,
  .card-positions-chip {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .card-member-title,
  .card-positions-title {
    text-align: center;
  }
}

/* ── スマートフォン縦（480px以下） ── */
@media (max-width: 480px) {

  /* ▼ TOPページ ヒーロー */
  .h-title-static {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .h-sub {
    font-size: clamp(1.1rem, 5.5vw, 1.5rem);
  }

  .h-desc {
    font-size: .78rem;
  }

  /* ▼ TOPページ About */
  .content-section {
    width: 96vw;
    aspect-ratio: 3 / 4;
    margin-bottom: 48px;
  }

  /* ▼ 内ページ共通（さらに縮小） */
  /* .page-inner {
    padding: 16px 14px 36px;
  } */

  /* ▼ TOPページ スライダー */
  .scard {
    flex: 0 0 80vw;
  }

  .slider-track {
    padding: 0 10vw;
  }

  /* ▼ TOPページ ニュース */
  .news-inner {
    padding: 0 16px;
  }

  .ni {
    padding: 16px;
    border-radius: 14px;
  }

  .nd {
    font-size: .78rem;
  }

  .news-more {
    justify-content: center;
    gap: 14px;
  }

  /* ▼ ニュースページ一覧 */
  .nf-item {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .nf-title {
    font-size: .76rem;
  }

  .nf-cat {
    display: none;
  }

  /* ▼ CTA */
  .cc-content {
    padding: 18px 14px;
  }

  .cc-en {
    font-size: clamp(1.3rem, 8vw, 1.7rem);
  }

  .cc-desc {
    font-size: .76rem;
  }

  /* ▼ フッター */
  .footer {
    padding: 24px 14px 16px;
  }

  .f-nav {
    gap: 10px 14px;
  }

  .f-nav a {
    font-size: .72rem;
  }

  .f-address p {
    font-size: .72rem;
  }

  .f-copy,
  .f-policy a {
    font-size: .65rem;
  }

  /* ▼ モバイルメニュー */
  .mobile-menu {
    padding: 88px 24px 32px;
  }

  .mobile-menu a {
    font-size: 1.15rem;
    padding: 7px 0;
  }

  /* ▼ 採用データカード */
  .member-points {
    gap: 10px;
  }

  .mp-item {
    padding: 13px 11px;
    border-radius: 13px;
  }

  .mp-value {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .mp-label {
    font-size: .68rem;
  }
}

/* ── 極小画面（360px以下） ── */
@media (max-width: 360px) {
  .h-title-static {
    font-size: 2rem;
  }

  .scard {
    flex: 0 0 86vw;
  }

  .cc-en {
    font-size: 1.5rem;
  }
}