/* =========================================================
   Sincere Theme - Design Tokens
   ========================================================= */
:root {
  --color-red: #c8102e;
  --color-red-dark: #9e0c22;
  --color-wine: #6e1423;
  --color-ink: #1a1a1a;
  --color-body: #4a4a4a;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f3;
  --color-line: #e7e3de;
  --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --container: 1120px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  color: var(--color-ink);
  font-weight: 700;
  margin: 0 0 0.6em;
  line-height: 1.5;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 24px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.center {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: 0.05em;
  margin-bottom: 1.2em;
}
.section-label p {
  margin: 0;
}
.section-label .en {
  font-size: 18px;
  color: var(--color-body);
  font-weight: 500;
}
.section-label.center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn.center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--color-red);
  color: #fff;
}
.btn-outline:hover {
  border: 1px solid var(--color-red);
  background: #fff;
  color: var(--color-red);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}
.link-arrow {
  color: var(--color-red);
  font-weight: 700;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-logo-text {
  font-weight: 900;
  font-size: 20px;
  color: var(--color-red);
  letter-spacing: 0.02em;
}
.site-logo-img {
  height: 80px;
  width: auto;
  display: block;
  min-width: 40px;
  background: transparent;
}
.main-nav {
  flex: 1;
}
.main-nav-list {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.main-nav-list a:hover {
  color: var(--color-red);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-icon {
  color: var(--color-ink);
  opacity: 0.75;
}
.header-icon:hover {
  opacity: 1;
  color: var(--color-red);
}
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.lang-switch a {
  padding: 2px 6px;
  opacity: 0.5;
}
.lang-switch a.is-active,
.lang-switch a:hover {
  opacity: 1;
  color: var(--color-red);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
}

/* =========================================================
   Hero
   ========================================================= */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.65) 0%, rgba(10, 10, 15, 0.25) 55%, rgba(10, 10, 15, 0.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 1.2em;
  opacity: 0.9;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5em;
}
.hero-lead {
  max-width: 480px;
  margin-bottom: 2em;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Philosophy + MVV 共通背景ラッパー
   ========================================================= */
.philosophy-mvv-bg {
  background-image: url("../img/philosophy_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* =========================================================
   Philosophy
   ========================================================= */
.philosophy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.philosophy h2 {
  font-size: 30px;
  line-height: 1.6;
}
.philosophy-logo {
  text-align: center;
  opacity: 0.9;
}
.philosophy-video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
}
.philosophy-video-wrap {
  position: relative;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: opacity 0.25s ease;
}
.video-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease;
}
.video-play-overlay:hover .video-play-icon {
  background: var(--color-red-dark);
  transform: scale(1.08);
}
.philosophy-video-wrap.is-playing .video-play-overlay {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   MVV
   ========================================================= */
.mvv-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-bottom: 56px;
  text-align: left;
}
.mvv-row:last-child {
  margin-bottom: 0;
}
.mvv-circle {
  flex: none;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: url("../img/red-cycle.webp") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.25);
  position: relative;
}
.mvv-circle::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-red-dark);
  pointer-events: none;
  inset: -14px;
  opacity: 0.5;
}
.mvv-text {
  font-size: 20px;
  color: var(--color-ink);
  font-weight: 500;
}
.mvv-list {
  list-style: none;
  counter-reset: mvv;
}
.mvv-list li {
  counter-increment: mvv;
  margin-bottom: 0.4em;
  padding-left: 1.6em;
  position: relative;
}
.mvv-list li::before {
  content: counter(mvv) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-red);
}
.mvv-value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mvv-value-list div {
  display: flex;
  gap: 1.5em;
}
.mvv-value-list dt {
  flex: none;
  width: 5.5em;
  font-weight: 700;
  color: var(--color-ink);
}

/* =========================================================
   Global network
   ========================================================= */
.global-network {
  max-width: none;
  padding: 0;
  background: linear-gradient(120deg, #7a0f22, var(--color-red));
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* レイヤー1：一番下（network_bg.webp） */
.network-bg-base {
  background-image: url("../img/network_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  z-index: 0;
}
/* レイヤー2：その上に重ねる世界地図（worldmap.webp） */
.network-bg-map {
  background: url("../img/worldmap.webp") center 30% / 1400px no-repeat;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.35s;
  z-index: 1;
}
.network-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* スクロールでこのセクションに来たら、順番にフェードイン */
.global-network.is-visible .network-bg-base {
  opacity: 1;
  transform: none;
}
.global-network.is-visible .network-bg-map {
  opacity: 0.35;
  transform: none;
}
.global-network.is-visible .network-inner {
  opacity: 1;
  transform: none;
}
.network-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.7s;
}
.global-network h2 {
  color: #fff;
  font-size: 28px;
}
.global-network p {
  max-width: 560px;
  margin: 0 auto 3em;
}
.network-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.network-card {
  background: #f7f2ec;
  border: none;
  border-radius: 2px;
  padding: 36px 20px 28px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.office-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.office-en {
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
  color: var(--color-red);
  font-family: var(--font-serif);
  font-size: 14px;
}
.office-ja {
  font-size: 20px;
  margin-bottom: 1.2em;
  color: var(--color-ink);
  font-weight: 700;
}
.network-card a {
  font-size: 13px;
  color: var(--color-body);
}
.network-card a:hover {
  color: var(--color-red);
}

/* =========================================================
   Service
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 2em 0;
}
.service-card {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.4s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.05));
}
.service-card span {
  position: relative;
  z-index: 1;
}
.service-card:hover {
  transform: scale(1.02);
}

/* =========================================================
   News
   ========================================================= */
.news {
  position: relative;
}
.news::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: url("../img/news-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.news > * {
  position: relative;
  z-index: 1;
}
.news-list {
  border-top: 1px solid var(--color-line);
  max-width: 760px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.news-item time {
  flex: none;
  width: 100px;
  color: #999;
}
.news-item a:hover {
  color: var(--color-red);
}

/* =========================================================
   YouTube
   ========================================================= */
.youtube {
  position: relative; /* ★追加: Canvasの絶対配置の基準にする */
  overflow: hidden; /* ★追加: Canvasの食み出し防止 */
  text-align: center;
  background: var(--color-bg-soft);
  max-width: none;
}
.youtube > * {
  position: relative; /* ★追加: Canvasより前面に出す */
  z-index: 2; /* ★追加: Canvas(z-index:1)の上に乗せる */
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

/* ★追加: 背景Canvas（セクション全体に広げる） */
#youtube-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 背景側 */
  pointer-events: none; /* マウス操作を透過して動画をクリック可能にする */
  max-width: none; /* .youtube > * の幅制限から除外 */
  margin: 0;
}

.youtube h3 {
  font-size: 32px;
  color: var(--color-red);
}
.youtube-desc {
  margin-bottom: 2.5em;
}
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 2.5em;
  text-align: left;
}
.youtube-card iframe,
.youtube-card .lyte {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
}

/* =========================================================
   Profile
   ========================================================= */
.profile.section {
  padding-bottom: 0; /* ★下のCTAと重ねるため、下パディングをゼロにします */
  position: relative;
  z-index: 2; /* ★下のCTAの上に画像を重ねるために指定 */
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.profile-map {
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-table {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-table dl div {
  display: flex;
  gap: 1.5em;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}

/* 項目名は黒文字 */
.profile-table dt {
  flex: none;
  width: 6em;
  color: var(--color-ink);
  font-weight: 700;
}

.profile-table dd {
  margin: 0;
  color: var(--color-ink);
}

/* ★画像の設定：下のCTAへ食い込ませる（重ならせる）記述 */
.profile-member-img {
  margin-top: 24px;
  margin-bottom: -60px; /* ★画像を下に60pxはみ出させてCTAへ重ねる */
  position: relative;
  z-index: 10;
}

.profile-member-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* 見栄えを整える影 */
}

/* =========================================================
   Footer CTA
   ========================================================= */
.footer-cta {
  background-image: url("../img/cta-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 24px 80px; /* ★上側に余白を持たせて画像との重複を綺麗に見せます */
  position: relative;
  z-index: 1;
  overflow: visible; /* ★重なりを有効化 */
}

/* =========================================================
   装飾ライン
   ========================================================= */
.deco-line {
  position: absolute;
  width: 320px;
  height: 260px;
  color: var(--color-wine);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.2s ease;
}
.deco-line .deco-line-curve {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.deco-line .deco-line-accent {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 1s ease 0.9s;
}
.deco-line .deco-line-dot {
  opacity: 0;
  transition: opacity 0.8s ease 1.6s;
}
.deco-line.is-visible {
  opacity: 0.55;
  animation: decoLineDrift 12s ease-in-out infinite;
}
.deco-line.is-visible .deco-line-curve {
  stroke-dashoffset: 0;
}
.deco-line.is-visible .deco-line-accent {
  stroke-dashoffset: 0;
}
.deco-line.is-visible .deco-line-dot {
  opacity: 1;
}
@keyframes decoLineDrift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(10px, -14px) scale(1.03);
  }
}
.deco-line--philosophy {
  top: -40px;
  right: -60px;
}
.deco-line--mvv {
  bottom: -60px;
  left: -80px;
  transform: scaleX(-1);
}
.deco-line--service {
  top: -50px;
  left: -70px;
  transform: scaleY(-1);
}
.deco-line--profile {
  bottom: -60px;
  right: -70px;
}
.deco-line--footer {
  top: -70px;
  right: -40px;
  color: rgba(255, 255, 255, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .deco-line.is-visible {
    animation: none;
  }
}
@media (max-width: 900px) {
  .deco-line {
    width: 220px;
    height: 180px;
  }
}
@media (max-width: 600px) {
  .deco-line {
    display: none;
  }

  .global-network h2 {
    font-size: 24px;
  }
  .global-network-text {
    text-align: start;
  }
}
/* =========================================================
   下層ページ共通
   ========================================================= */
.page-hero {
  text-align: center;
  padding: 72px 24px 24px;
}
.page-hero h1 {
  font-size: 30px;
}
.page-hero .section-label {
  font-size: 36px;
  line-height: 1.15;
  color: var(--color-red);
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 0.3em;
}
.page-hero .section-label .en {
  display: block;
  font-size: 36px;
  line-height: 1.15;
  color: var(--color-ink);
  font-weight: 700;
  margin-top: 0.15em;
  letter-spacing: 0.04em;
}

/* 採用情報：選考フロー */
.recruit-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 2em 0 2.5em;
  list-style: none;
}
.recruit-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-ink);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-red);
  color: #fff;
  font-size: 13px;
}

/* FAQ アコーディオン */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 14px;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-q,
.faq-a-mark {
  flex: none;
  color: var(--color-red);
  font-weight: 900;
  font-family: var(--font-serif);
}
.faq-a {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-body);
}
.faq-item[open] summary {
  color: var(--color-red);
}

/* お問い合わせ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
}
.contact-fallback-notice {
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14px;
}
.contact-info {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}
.contact-info h3 {
  font-size: 18px;
}
.contact-info dl div {
  display: flex;
  gap: 1em;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.contact-info dt {
  flex: none;
  width: 4.5em;
  color: var(--color-red);
  font-weight: 700;
}
.contact-info .btn {
  margin-top: 20px;
}

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

/* =========================================================
   Footer CTA / Footer
   ========================================================= */
.footer-cta {
  background: var(--color-red);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.footer-cta h2 {
  color: #fff;
  font-size: 26px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-cta .btn-outline {
  border-color: #fff;
  color: #fff;
}
.footer-cta .btn-outline:hover {
  background: #fff;
  color: var(--color-red);
}

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-weight: 900;
  color: #fff;
  font-size: 18px;
}
.footer-nav-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-icons {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .philosophy,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .network-cards,
  .youtube-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .mvv-row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .main-nav {
    display: block;
    position: fixed;
    height: 100vh;
    top: 96px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav-list {
    flex-direction: column;
    gap: 4px;
    font-size: 17px;
  }
  .main-nav-list a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid var(--color-line);
  }
  .header-actions .lang-switch {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  body.nav-open {
    overflow: hidden;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 64px 20px;
  }
  .hero-title {
    font-size: 30px;
  }
  .network-cards,
  .youtube-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MVV 背景アニメーション用CSS --- */
.mvv.section {
  position: relative;
  overflow: hidden; /* Canvasがセクションからはみ出るのを防ぐ */
  padding: 100px 20px; /* 余白調整 */
}

/* 背景Canvasのスタイル */
#mvv-mesh-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 一番後ろ */
  pointer-events: none; /* マウスイベントを下のテキスト操作へ通過させる（※追従させる場合は auto） */
}

/* --- MVV セクション全体の基本設定 --- */
.mvv.section {
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
}

/* --- コンテンツWrapper（画面中央に配置） --- */
.mvv-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px; /* コンテンツ領域の最大幅 */
  margin: 0 auto; /* セクションの中央に配置 */
  width: 100%;
}

/* --- 中身のアイテムを左揃えにする指定 --- */
.mvv-row {
  display: flex;
  flex-direction: row; /* 円とテキストを横並びにする */
  justify-content: flex-start; /* 左寄せ */
  align-items: center;
  gap: 60px; /* 円とテキストの間の余白 */
  margin-bottom: 48px;
  text-align: left;
}

.mvv-row:last-child {
  margin-bottom: 0;
}

.mvv-text,
.mvv-list,
.mvv-value-list {
  text-align: left;
  margin: 0;
  padding: 0;
}

.mvv-list {
  padding-left: 1.2em;
}

.network-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.network-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ホバー時に背景画像を少しだけ濃く拡大する動き（お好みで） */
.network-card:hover::before {
  opacity: 0.22;
  transform: scale(1.05);
}

/* Profile 右側レイアウト */
.profile-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.profile-member-img {
  margin-top: 24px;
}
.profile-member-img img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Footer CTA バックグラウンド設定 */
.footer-cta {
  background-image: url("../img/cta-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.footer-cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 0.4em;
}
.cta-lead {
  font-size: 15px;
  margin-bottom: 2em;
  color: rgba(255, 255, 255, 0.9);
}

.header-icon img,
.footer-icons img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}
.footer-icons img {
  height: 48px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

/* フッター左側：ブランド表記 */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo-ja {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.footer-logo-en {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}

/* フッターメニュー */
.footer-nav-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta .btn-primary {
  background: #ffffff;
  color: var(--color-ink);
  border: 1px solid #ffffff;
}

.footer-cta .btn-primary:hover {
  background: var(--color-red-dark);
  color: #f0f0f0;
  transform: translateY(-2px);
}

/* =========================================================
   MVV レスポンシブ調整
   ========================================================= */

/* PC・共通設定 */
.mvv-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

/* MISSION テキスト */
.mvv-text {
  font-size: 20px;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.6;
}

/* VISION リスト */
.mvv-list {
  list-style: none;
  counter-reset: mvv;
}
.mvv-list li {
  counter-increment: mvv;
  margin-bottom: 0.8em;
  padding-left: 1.6em;
  position: relative;
  line-height: 1.6;
}
.mvv-list li::before {
  content: counter(mvv) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-red);
}

/* VALUE リスト */
.mvv-value-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mvv-value-list div {
  display: flex;
  gap: 5em;
  border-bottom: 1px dashed var(--color-line);
  padding-bottom: 6px;
}
.mvv-value-list dt {
  flex: none;
  width: 5.5em;
  font-weight: 700;
  color: var(--color-ink);
}

/* ---------------------------------------------------------
   タブレット・スマホ対応（900px以下）
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .mvv.section {
    padding: 60px 20px;
  }

  .mvv-row {
    flex-direction: column; /* 円バッジとコンテンツを縦並びにする */
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left; /* テキスト自体は左揃えで読みやすく維持 */
  }

  .mvv-circle {
    width: 120px;
    height: 120px;
    font-size: 14px;
  }

  /* コンテンツ幅を自動調整 */
  .mvv-text,
  .mvv-list,
  .mvv-value-list {
    width: 100%;
    max-width: 500px;
  }

  /* MISSION のテキストサイズ調整 */
  .mvv-text {
    font-size: 18px;
    text-align: center; /* 1行キャッチコピーはスマホでは中央寄せ */
  }

  /* VALUE の項目折り返し対応 */
  .mvv-value-list div {
    gap: 1em;
  }
}

/* ---------------------------------------------------------
   小型スマホ対応（600px以下）
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .mvv-circle {
    width: 100px;
    height: 100px;
    font-size: 13px;
  }

  .mvv-text {
    font-size: 16px;
  }

  .mvv-list li {
    font-size: 14px;
    margin-bottom: 0.6em;
  }

  .mvv-value-list div {
    font-size: 14px;
  }

  .mvv-value-list dt {
    width: 4.5em;
  }
}

/* ==========================================
   Philosophy Page Styles
========================================== */

/* 集合写真と3軸説明 */
.philosophy-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.subpage-title,
.subpage-subtitle {
  color: #fff;
  margin: 0;
}

.philosophy-top-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.philosophy-pillar {
  margin-bottom: 24px;
}

.philosophy-pillar:last-child {
  margin-bottom: 0;
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: #666;
}

.mvv-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.mvv-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.mvv-numbered-list {
  padding-left: 20px;
}

.mvv-numbered-list li {
  font-size: 1rem;
  line-height: 2;
  font-weight: 600;
  color: #333;
}

.mvv-spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.spec-row {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.spec-row dt {
  font-weight: 700;
  width: 80px;
  color: #333;
}

.spec-row dd {
  color: #555;
  margin: 0;
}

/* メッセージセクション */
.section-title-badge {
  background-color: transparent;
  background-image: url("../img/title_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  padding: 12px 32px;
  color: #fff;
}

.message-body p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #333;
  margin-bottom: 24px;
}

.message-quote {
  font-size: 1.4rem;
  font-weight: 700;
  color: #cc0010;
  border-left: 4px solid #cc0010;
  padding-left: 16px;
  margin: 30px 0 10px 0;
}

.quote-sub {
  font-size: 0.95rem;
  color: #555;
}

.representative-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 40px;
  text-align: right;
}

.rep-img {
  width: 240px;
  margin-bottom: 12px;
}

.rep-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.rep-office {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.rep-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.service-block_title {
  position: relative;
  padding: 20px 25px;
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 180px;
  line-height: 1.4;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .philosophy-top-grid {
    grid-template-columns: 1fr;
  }

  .mvv-item {
    flex-direction: column;
    text-align: center;
  }

  .mvv-numbered-list {
    text-align: left;
  }

  .spec-row {
    justify-content: center;
  }

  .representative-profile {
    align-items: center;
    text-align: center;
  }
}

.philosophy-message {
  background-image: url("../img/philosophy_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* サブページヘッダーの共通基本設定 */
.subpage-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0;
  z-index: 1;
}

/* 理念ページ専用の背景画像指定 */
.subpage-hero-philosophy {
  background-image: url("../img/philosophy_hero_bg.webp");
}

/* コンテンツをオーバーレイより前面に配置 */
.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.service-block_title {
  position: relative;
  padding: 20px 25px;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 30px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 180px;
  line-height: 1.4;
}

.service-block_titl span {
  position: absolute;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   会社概要ページ (page-company) スタイル
   ========================================================================== */

/* --- 代表挨拶セクション --- */
.p-company-greeting {
  position: relative;
  background: url("../img/philosophy_bg.webp") center center / cover no-repeat;
  padding: 80px 0;
  overflow: hidden;
}

/* 世界地図の背景画像重ね合わせ */
.p-company-greeting__bg-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/worldmap.webp") center center / contain no-repeat;
  opacity: 0.25; /* 背景透過度 */
  pointer-events: none;
  z-index: 1;
}

.p-company-greeting__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.p-company-greeting__top {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.p-company-greeting__img-wrap {
  width: 220px;
  flex-shrink: 0;
}

.p-company-greeting__img-wrap img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.p-company-greeting__post {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.p-company-greeting__name {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #111;
}

.p-company-greeting__body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5em;
}

.p-company-greeting__body p:last-child {
  margin-bottom: 0;
}

/* --- セクションタイトル（画像背景） --- */
.c-section-title-img {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 60px;
  margin: 60px auto 50px;
  background: url("../img/title_bg.webp") center center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-section-title-img__text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- 会社概要テーブル --- */
.p-company-info__table-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.p-company-info__table {
  width: 100%;
  border-collapse: collapse;
}

.p-company-info__table th,
.p-company-info__table td {
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  font-size: 0.95rem;
  line-height: 1.7;
}

.p-company-info__table th {
  width: 25%;
  font-weight: 700;
  color: #222;
  text-align: left;
  background-color: #f9f9f9;
}

.p-company-info__table td {
  width: 75%;
  color: #444;
}

/* --- 各事業所リスト --- */
.p-company-offices__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.p-office-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

/* MISSIONの様な赤円画像コンテナ */
.p-office-item__circle {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.p-office-item__info {
  flex: 1;
}

.p-office-item__address {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}

.p-office-item__group {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}

.p-office-item__map {
  width: 320px;
  flex-shrink: 0;
}

.p-office-item__map iframe {
  border-radius: 4px;
}

/* ==========================================================================
   レスポンシブ対応 (SP: 768px以下)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .p-company-greeting {
    padding: 50px 0;
  }

  .p-company-greeting__top {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .p-company-greeting__img-wrap {
    width: 160px;
  }

  .p-company-greeting__name {
    font-size: 1.6rem;
  }

  .c-section-title-img {
    height: 50px;
    background-size: cover;
  }

  .c-section-title-img__text {
    font-size: 1.25rem;
  }

  /* テーブルのレスポンシブ化 */
  .p-company-info__table th,
  .p-company-info__table td {
    display: block;
    width: 100%;
  }

  .p-company-info__table th {
    background-color: transparent;
    padding-bottom: 5px;
    border-bottom: none;
  }

  .p-company-info__table td {
    padding-top: 0;
    padding-bottom: 20px;
  }

  /* 事業所アイテムのレスポンシブ化 */
  .p-office-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .p-office-item__circle {
    align-self: center;
    width: 100px;
    height: 100px;
    font-size: 0.9rem;
  }

  .p-office-item__map {
    width: 100%;
  }

  .p-company-greeting__body p {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   事業内容ページ (page-service)
   ========================================================================== */

/* 全体のコンテナ幅制限と中央寄せ */
.p-service-cards__container,
.p-service-details__container {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- ヘッダー〜カード背景（世界地図重ね合わせ） --- */
.p-service-hero-wrapper {
  position: relative;
  background-color: #fcfcfc;
  background-image: url("../img/worldmap.webp"); /* 世界地図画像 */
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 1100px auto;
  padding-bottom: 60px;
}

.p-service-card {
  position: relative;
  flex: 1;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

/* --- 詳細リストセクション --- */
.p-service-details {
  padding: 70px 0;
  background-color: #fff;
}

.p-service-block {
  margin-bottom: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid #e0e0e0;
}

.p-service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.p-service-block__header {
  margin-bottom: 30px;
}

/* 赤色の英字サブタイトル */
.p-service-block__en {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: #b80000;
  margin-bottom: 6px;
  margin-left: 25px;
}

.p-service-cards .service-card {
  height: 500px;
}

.p-service-block__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 100px;
}

.p-service-block__content .p-service-item {
  margin: 0;
  min-width: 0;
}

@media (max-width: 767px) {
  .p-service-block__content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
}

/* 箇条書きブロック */
.p-service-item {
  margin-bottom: 28px;
}

.p-service-item__heading {
  position: relative;
  padding-left: 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

/* 赤丸 */
.p-service-item__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 11px;
  height: 11px;
  background-color: #b80000;
  border-radius: 50%;
}

.p-service-item__list {
  list-style: none;
  padding-left: 22px;
  margin: 0;
}

.p-service-item__list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 4px;
}

.p-service-item__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #333;
}

.p-service-block h2 {
  text-align: left;
}

.p-service-block__text {
  margin-bottom: 40px;
}

/* --- レスポンシブ（768px以下） --- */
@media screen and (max-width: 768px) {
  .p-service-card {
    width: 100%;
    max-width: 100%;
  }
}

.p-service-block__title {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 450px;
  height: 50px;
  background: url("../img/title_bg.webp") no-repeat center center / contain;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0 0 0 25px;
  margin: 0;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
  .p-service-block__title {
    max-width: 100%;
    height: 44px;
    font-size: 1rem;
    padding-left: 20px;
    background-size: cover; /* スマホで横幅いっぱいに伸ばす場合 */
  }
}

/* ==========================================================================
   p-service-hero-wrapper 重ね合わせレイアウト
   ========================================================================== */

/* 1層目：ベース背景画像を設定する親要素 */
.p-service-hero-wrapper {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding-bottom: 60px;
  overflow: hidden;
}

/* 2層目：世界地図レイヤー（背面に絶対配置） */
.p-service-hero-wrapper__map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center 40px;
  background-size: 1000px auto; /* 地図の大きさに応じて調整 */
  background-repeat: no-repeat;
  opacity: 0.3; /* 地図の透明度 */
  pointer-events: none;
  z-index: 1;
}

/* 3層目：コンテンツ全体の前面コンテナ */
.p-service-hero-wrapper__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 3連画像エリア */
.p-service-cards__grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.p-service-card {
  position: relative;
  flex: 1;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.p-service-card__img-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.p-service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SPレスポンシブ対応 */
@media screen and (max-width: 768px) {
  .p-service-cards__grid {
    flex-direction: column;
    align-items: center;
  }

  .p-service-card {
    width: 100%;
    max-width: 100%;
  }

  .p-service-card__img-wrap {
    height: 240px;
  }
}

.p-service-cards {
  margin-top: 200px;
}

.p-service-cards__grid {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.p-service-card {
  position: relative;
  flex: 1;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

.p-service-card__img-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.p-service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-service-card__label {
  position: absolute;
  bottom: 25px;
  left: 5%;
  width: 90%;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 10px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  box-sizing: border-box;
  pointer-events: none;
}

/* SPレスポンシブ対応 */
@media screen and (max-width: 768px) {
  .p-service-cards {
    margin-top: 40px; /* スマホでの上の余白調整 */
  }

  .p-service-cards__grid {
    flex-direction: column;
    align-items: center;
  }

  .p-service-card {
    width: 100%;
    max-width: 100%;
  }

  .p-service-card__img-wrap {
    height: 240px;
  }
}

/* =========================================================
   採用ページ（page-recruit）専用スタイル
   ========================================================= */

/* --- 赤リボン風共通見出し（背景画像を使用） --- */
.c-section-heading {
  display: block;
  width: 100%;
  max-width: 280px; /* 画像の比率に合わせて調整 */
  height: 48px;
  margin: 40px auto 30px;
  background-image: url("../img/heading_bg.png"); /* 画像ファイルを指定 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  line-height: 48px;
  letter-spacing: 0.08em;
}

/* --- 代表メッセージセクション --- */
.p-recruit-message {
  padding: 60px 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: #f9f9f9;
}

.p-recruit-message__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .p-recruit-message__inner {
    flex-direction: column;
    align-items: center;
  }
}

.p-recruit-message__left {
  width: 260px;
  flex-shrink: 0;
  text-align: center;
}

.p-recruit-message__img-wrap img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.p-recruit-message__profile {
  margin-top: 15px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
}

.p-recruit-message__name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 4px;
}

.p-recruit-message__right {
  flex: 1;
}

.p-recruit-message__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.2em;
}

.p-recruit-message__text:last-child {
  margin-bottom: 0;
}

/* --- 募集詳細コンテンツ --- */
.p-recruit-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 80px;
}

.p-recruit-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.p-recruit-detail {
  margin-bottom: 30px;
}

.p-recruit-detail__title {
  position: relative;
  font-size: 1rem;
  font-weight: bold;
  color: #b81c22; /* テーマアクセントカラー */
  padding-left: 18px;
  margin-bottom: 12px;
}

.p-recruit-detail__title::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #b81c22;
  font-size: 0.9rem;
}

.p-recruit-detail__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.p-recruit-detail__list {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
}

.p-recruit-detail__note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #555;
  background-color: #fcfcfc;
  padding: 12px 15px;
  border-left: 3px solid #ddd;
}

.p-recruit-hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 50px 0;
}

.p-recruit-policy {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #333;
}

/* --- 応募フォーム枠 --- */
.p-recruit-form-lead {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 25px;
}

.p-recruit-form {
  max-width: 600px;
  margin: 0 auto;
}

.c-form__row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .c-form__row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.c-form__label {
  width: 100px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  flex-shrink: 0;
}

.c-form__input-wrap {
  flex: 1;
  width: 100%;
}

.c-form__input-wrap input[type="text"],
.c-form__input-wrap input[type="tel"],
.c-form__input-wrap input[type="email"],
.c-form__input-wrap select,
.c-form__input-wrap textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 0.9rem;
}

.c-form__radio-group label,
.c-form__checkbox-group label {
  margin-right: 15px;
  font-size: 0.9rem;
  cursor: pointer;
}

.c-form__submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.c-btn-submit {
  display: inline-block;
  background-color: #b81c22;
  color: #fff;
  border: none;
  padding: 10px 50px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.3s ease;
}

.c-btn-submit:hover {
  opacity: 0.85;
}

.page-template-page-recruit .footer-cta {
  display: none !important;
}

/* =========================================================
   HERO / KV & NAV TABS
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* HEROコンテナ (左右2分割の配置) */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

/* --- 右側 タブナビゲーション --- */
.hero-nav-tabs {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

/* カードのベーススタイル（すりガラス＋微細なボーダー） */
.hero-tab-card {
  position: relative;
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 20px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* 左端のアクティブアクセントライン */
.hero-tab-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #c5a059 0%, #9e7d3b 100%); /* ゴールド系アクセント */
  opacity: 0.6;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.hero-tab-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* 国・領域タグ */
.hero-tab-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #c5a059;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* タイトルテキスト */
.hero-tab-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

/* 矢印リンク表示 */
.hero-tab-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.hero-tab-link .arrow {
  display: inline-block;
  font-style: normal;
  transition: transform 0.3s ease;
}

/* --- ホバーエフェクト --- */
.hero-tab-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(197, 160, 89, 0.5);
  transform: translateX(-6px); /* 左へふわっとスライド */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-tab-card:hover::before {
  opacity: 1;
  width: 6px;
}

.hero-tab-card:hover .hero-tab-title {
  color: #ffffff;
}

.hero-tab-card:hover .hero-tab-link {
  color: #c5a059;
}

.hero-tab-card:hover .hero-tab-link .arrow {
  transform: translateX(5px);
}

/* --- レスポンシブ（スマホ・タブレット対応） --- */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 140px;
  }

  .hero-nav-tabs {
    max-width: 100%;
    margin-top: 20px;
  }

  .hero-tab-card:hover {
    transform: translateY(-3px); /* スマホ時は上へ浮き上がり */
  }
}

/* =========================================================
   株式会社 シンシア会計コンサルティングジャパン（page-japan）専用CSS
   ========================================================= */

/* --- 2. KV画像 --- */
.p-japan-kv__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- 3. 赤い帯の画像 --- */
.p-japan-red-band {
  width: 100%;
  line-height: 0;
}

.p-japan-red-band img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- 4. 事業内容セクション（背景画像付き・白枠削除） --- */
.p-japan-service {
  padding: 100px 20px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #333333;
  position: relative;
}

.p-japan-service__inner {
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.p-japan-service__en {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b81c22;
  letter-spacing: 0.15em;
  margin-bottom: 5px;
}

.p-japan-service__title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #111111;
}

.p-japan-service__lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: center;
}

.p-japan-service__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-japan-service__item {
  padding: 24px 28px;
  border-left: 4px solid #b81c22;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 0 8px 8px 0;
}

.p-japan-service__item-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b81c22;
  margin-bottom: 8px;
}

.p-japan-service__item-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #444444;
}

/* --- 拠点案内（赤円アイコン画像） --- */
.p-japan-offices {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.p-japan-offices__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .p-japan-offices__grid {
    flex-direction: column;
    align-items: center;
  }
}

.p-japan-office-card {
  flex: 1;
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.p-japan-office-card__badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.p-japan-office-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-japan-office-card__title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.p-japan-office-card__address {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 10px;
}

.p-japan-office-card__tel {
  font-size: 0.95rem;
  font-weight: bold;
  color: #b81c22;
}

/* --- 7. フッターCTA（社員画像付き） --- */
.p-japan-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
  color: #ffffff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.p-japan-cta__container {
  max-width: 1100px;
  margin: 0 auto;
}

.p-japan-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (max-width: 850px) {
  .p-japan-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

.p-japan-cta__content {
  flex: 1;
}

.p-japan-cta__title {
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 5px;
}

.p-japan-cta__sub {
  font-size: 1.1rem;
  color: #c5a059; /* ゴールド調アクセント */
  font-weight: 600;
  margin-bottom: 15px;
}

.p-japan-cta__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 25px;
  max-width: 540px;
}

.p-japan-cta__member-img {
  width: 380px;
  flex-shrink: 0;
}

@media (max-width: 850px) {
  .p-japan-cta__member-img {
    width: 100%;
    max-width: 320px;
  }
}

.p-japan-cta__member-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 画像ラッパーに絶対配置の基準を設定 */
.p-japan-kv__img-wrap {
  position: relative;
}

/* 画像上に配置するタブコンテナ */
.p-japan-kv__nav-tabs {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

/* スマホ対応（下部に並べる場合） */
@media (max-width: 768px) {
  .p-japan-kv__nav-tabs {
    position: static;
    transform: none;
    margin-top: 20px;
  }

  .footer-cta h2 {
    font-size: 24px;
  }
}

/* お問い合わせセクション全体 */
.p-contact {
  padding: 80px 0;
  position: relative;
}

/* フォームを包む白枠カード */
.p-contact__form-wrap {
  max-width: 840px;
  margin: 0 auto;
  background: #ffffff;
  padding: 56px 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* カード内のリード文エリア */
.p-contact__lead-box {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.p-contact__lead {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .p-contact {
    padding: 40px 0;
  }

  .p-contact__form-wrap {
    padding: 32px 20px;
    border-radius: 8px;
  }

  .p-contact__lead-box {
    margin-bottom: 28px;
    padding-bottom: 20px;
    text-align: left;
  }

  .p-contact__lead br {
    display: none; /* スマホでは自然に改行 */
  }
}

/* 背景画像を画面横幅いっぱい（左右余白なし）に広げる */
.p-contact {
  width: 100% !important;
  max-width: 100% !important;
  padding: 80px 20px !important;
  margin: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-sizing: border-box !important;
}

.p-contact__inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 白枠カード */
.p-contact__form-wrap {
  max-width: 840px;
  margin: 0 auto;
  background: #ffffff;
  padding: 56px 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* リード文 */
.p-contact__lead-box {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.p-contact__lead {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

/* フォーム行の整列 */
.p-contact-form__field {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 24px !important;
}

.p-contact-form__field--textarea {
  align-items: flex-start !important;
}

/* ラベル・必須任意タグの復元 */
.p-contact-form__label {
  width: 220px !important;
  flex-shrink: 0 !important;
  font-weight: bold !important;
  font-size: 15px !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.p-contact-form__required {
  background: #e53935 !important;
  color: #fff !important;
  font-size: 11px !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-weight: normal !important;
  margin-right: 5px;
}

.p-contact-form__optional {
  background: #757575 !important;
  color: #fff !important;
  font-size: 11px !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-weight: normal !important;
  margin-right: 5px;
}

/* 入力欄の幅を100%揃えにする */
.p-contact-form__input {
  flex-grow: 1 !important;
  width: 100% !important;
}

.p-contact-form__input .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

.p-contact-form__input input[type="text"],
.p-contact-form__input input[type="tel"],
.p-contact-form__input input[type="email"],
.p-contact-form__input textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 15px !important;
  background-color: #fff !important;
}

.p-contact-form__input textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

/* ハニーポット（スパム対策ダミー枠）の強制非表示 */
.p-contact-form__honeypot {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 送信ボタン */
.p-contact-form__submit {
  text-align: center !important;
  margin-top: 32px !important;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .p-contact {
    padding: 40px 12px !important;
  }

  .p-contact__form-wrap {
    padding: 32px 16px !important;
  }

  .p-contact-form__field {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .p-contact-form__label {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
}

/* ==========================================
   ページ遷移（フェードイン・フェードアウト）
   ========================================== */

/* 読み込み前：透明 */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* 表示完了時：不透明 */
body.is-page-loaded {
  opacity: 1;
}

/* ページ離脱時：フェードアウト */
body.is-page-exiting {
  opacity: 0;
}

/* ==========================================
   GTranslate（自動翻訳）スタイルの調整
   ========================================== */

/* 親要素の整列 */
.lang-switch .gtranslate_wrapper {
  display: flex !important;
  align-items: center !important;
}

/* ドロップダウン選択肢の文字サイズ・見た目の調整 */
.lang-switch select.gt_selector {
  background-color: transparent !important;
  color: #333333 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}

.lang-switch select.gt_selector:hover {
  border-color: #1a1a1a !important;
}

@media screen and (max-width: 768px) {
  .header-actions,
  .lang-switch {
    display: flex !important;
    align-items: center;
    margin-right: 8px;
  }

  .lang-switch select.gt_selector {
    padding: 2px 4px !important;
    font-size: 11px !important;
  }
}

.pc {
  display: block;
}
.sp {
  display: none;
}
@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
  }
}

/* 初期状態は日本語表記 */
.sincere-en {
  display: none;
}

/* 英語表示時 */
html[lang^="en"] .sincere-ja {
  display: none;
}

html[lang^="en"] .sincere-en {
  display: inline;
}

/* =========================================================
   フッターのレスポンシブ調整（スマホ対応：YouTubeアイコンを下へ）
   ========================================================= */
@media (max-width: 460px) {
  .footer-top {
    flex-direction: column; /* 縦方向（上から下）に並べる */
    align-items: center; /* センター揃えにする */
    text-align: center; /* テキストを中央揃えにする */
    gap: 32px; /* 各ブロック間の余白を広げる */
  }

  .footer-brand {
    align-items: center; /* ブランド名も中央揃えにする */
  }

  .footer-nav-list {
    justify-content: center; /* メニューリンクを中央寄せにする */
  }

  .footer-icons {
    justify-content: center; /* YouTubeアイコンを中央寄せ（下部）にする */
    width: 100%;
    margin-top: 8px;
  }
}

.main-nav-langs {
  display: none;
}

@media (max-width: 768px) {
  .main-nav-langs {
    display: block;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
  }
  .main-nav-langs a {
    display: block;
    padding: 6px 10px;
    color: inherit;
    font-size: 14px;
    text-decoration: none;
  }
}
