/* =========================================================
   0) Base / Reset（最低限）
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.2em;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Focus style（キーボード操作の見やすさ） */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Reduce Motion（酔いやすい人向け） */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-overlay,
  .menu-panel {
    transition: none;
  }
}

/* =========================================================
   1) Design Tokens（全体の統一ルール）
   - まずここだけ決めれば全体が揃う
========================================================= */
:root {
  /* Layout */
  --container: 1940px;
  --mini-container: 1120px;
  --s-container: 500px;
  --gutter: 20px;

  /* Spacing（必要なら増やす） */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-size: 16px;
  --line: 1.7;

  /* Colors（仮。あとで差し替え） */
  --bg: #5080D0;
  --bg-light: #F7F7F7;
  --bg-grd: linear-gradient(180deg, #5080D0 0%, #29416A 100%);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.72);
  --border: rgba(17, 17, 17, 0.12);

  --primary: #5080D0;
  --on-primary: #ffffff;

  --secondary: #A3D050;
  --on-secondary: #fff;

  --point: #FF8000;

  /* Radius / Shadow */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Header */
  --header-height: clamp(4rem, 10vw, 6rem);
}

/* =========================================================
   2) Base Typography（全体の文字）
========================================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size);
  line-height: var(--line);
  background: var(--bg-grd);
  color: var(--text);
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 var(--space-3);
}

/* -------------------
WP
---------------------- */
.wp-theme-swell {
  background: var(--bg-light);
}

.l-mainContent {

  padding: calc(var(--header-height)) 0 0 var(--space-5);
}

@media (max-width: 767px) {
  .l-mainContent {
    padding: var(--space-2);
  }
}

.l-content {
  margin-bottom: 0;
}

.l-sidebar {
  padding-top: var(--space-6);
}

.l-header {
  box-shadow: none;
}

@media (max-width: 1024px) {

  .l-header__menuBtn,
  .l-header__customBtn {
    display: none;
  }
}

/* swellsidebar to under*/
.mono-foot-sidebar {
  display: none;
}

hr.mono-sw-foot {
  margin: var(--space-6) auto 0;

  width: 70%;
  border: none;
  border-top: 1px solid var(--primary);
}

@media (max-width: 1023px) {
  .mono-foot-sidebar {
    display: block;
    margin-top: 2em;
  }
}


/* ---------------------------------------------------------
   Global HR（デザイン統一：1px primary line）
   ※ 余白は各セクション側で調整する
--------------------------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--primary);
  height: 0;
}

hr.white-bg-hr {
  border: 0;
  height: 1px;
  margin: 0;
  width: 100%;
  background: var(--bg-light);
  /* ここで左右も白背景にする */
  position: relative;
}

hr.white-bg-hr::before {
  content: "";
  position: absolute;
  left: 25%;
  /* 100%のうち中央50% */
  right: 25%;
  top: 0;
  border-top: 1px solid var(--primary);
}

/* 四角アンダーライン（2本） */
.h2-rectline {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  /* 下に装飾分の余白 */
}

/* 下の四角（薄い） */
.h2-rectline::before {
  content: "";
  position: absolute;
  left: 60%;
  bottom: 0;

  width: 120px;
  height: 20px;
  border-radius: 2px;

  /* 初期：右からさらに大きくずれて非表示 */
  transform: translateX(calc(-50% + 48px));
  /* 右から出てくる：最終位置(+20px)よりさらに+28px */
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

/* 上の四角（濃い） */
.h2-rectline::after {
  content: "";
  position: absolute;
  left: 40%;
  bottom: -10px;

  width: 120px;
  height: 20px;
  border-radius: 2px;

  /* 初期：左からさらに大きくずれて非表示 */
  transform: translateX(calc(-50% - 48px));
  /* 左から出てくる：最終位置(-20px)よりさらに-28px */
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

/* theme: dark → 青 */
[data-theme="light"] .h2-rectline::before {
  background: rgba(80, 128, 208, 0.35);
}

[data-theme="light"] .h2-rectline::after {
  background: rgba(80, 128, 208, 0.95);
}

/* theme: light → 白 */
[data-theme="dark"] .h2-rectline::before {
  background: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .h2-rectline::after {
  background: rgba(255, 255, 255, 0.9);
}

/* inviewで出す（theme共通） */
/* inview */
.h2-rectline.is-inview::before {
  transform: translateX(calc(-50% + 20px));
  opacity: 1;
}

.h2-rectline.is-inview::after {
  transform: translateX(calc(-50% - 20px));
  opacity: 1;
}

/* 動きを減らす設定（theme共通） */
@media (prefers-reduced-motion: reduce) {

  .h2-rectline::before,
  .h2-rectline::after {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


.muted {
  color: var(--muted);
}

/* 見出し：見た目はCSSで管理（hタグは意味） */
h1,
h2,
h3 {
  margin: 0 0 var(--space-2);
  line-height: 1.25;
  letter-spacing: 0.2em;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.3rem;
  color: var(--primary);
}

.h2white {
  color: var(--on-primary);
}

h3 {
  font-size: 1.1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.tel01 {
  font-weight: 600;
  font-size: 1.5em;
  letter-spacing: 0.2em;
}

.tel02 {
  font-weight: 600;
  font-size: 2em;
  letter-spacing: 0.1em;
}

/* =========================================================
   3) Layout Utilities（汎用の器）
========================================================= */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* セクション基本（LP縦長の"型"） */
section {
  padding: var(--space-6) 0;
  background-color: var(--bg-light);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

@media (min-width: 1024px) {
  section {
    padding: var(--space-6) 0;
    /* 値は変数で */
  }
}

section header>p {
  margin: 0;
  /* セクション見出し下の補足を詰めたいときに便利 */
}

.width-full {
  width: 100%;
}

.center {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

/* =========================================================
   4) Components（ボタン等）
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 12rem;
  padding: 0.8em 2em;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.1rem;
}

@media (max-width: 767px) {
  .btn {
    min-width: auto;
    letter-spacing: 0.02rem;
  }
}

.btn:hover {
  opacity: 0.9;
}

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

.btn.secondary {
  background: var(--secondary);
  color: var(--on-secondary);
}

.btn.cta {
  background: var(--point);
  color: var(--on-primary);
}

.btn.white {
  background-color: var(--on-primary);
  border: none;
  color: var(--primary);
}

.btn.clear {
  background-color: transparent;
  color: var(--primary);
}

/* リンクをボタンっぽくしたい場合に使う */
a.btn {
  text-decoration: none;
}

/* ------------FADEIN------------ */
/* 初期状態：上に少しズレて透明 */
.fade-in {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

/* 表示状態 */
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らしたい人への配慮 */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* =========================================================
   5) Columns（PC横並び / モバイル縦並び）
========================================================= */
.columns {
  display: grid;
  grid-template-columns: 1fr;
  /* モバイル：縦 */
  gap: var(--space-3);
}

/* =========================================================
   6) Site Header（ヘッダー/ブランド/ナビゲーション）
========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: color 200ms ease;
}

.site-header.is-dark {
  color: #fff;
}

.site-header.is-light {
  color: #111;
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-3);
}

.site-brand {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  line-height: 0;
}

.site-brand .site-logo {
  max-width: 300px;
  height: auto;
  display: block;
  transition: opacity 180ms ease;
}

@media (max-width: 767px) {
  .site-brand .site-logo {
    max-width: 200px;
  }
}

/* 2枚を同じ位置に重ねる（白ロゴを上に） */
.site-brand .logo--light {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* 既定：明るい背景（黒ロゴ） */
.site-brand .logo--dark {
  opacity: 1;
}

/* 背景が暗い時（白ロゴに切替） */
.site-header.is-dark .site-brand .logo--dark {
  opacity: 0;
}

.site-header.is-dark .site-brand .logo--light {
  opacity: 1;
}

/* 明るい時（黒ロゴに戻す） */
.site-header.is-light .site-brand .logo--dark {
  opacity: 1;
}

.site-header.is-light .site-brand .logo--light {
  opacity: 0;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 400;
}

.site-nav__list a {
  text-decoration: none;
  padding: var(--space-1) var(--space-1);
  border-radius: 50px;
}

.site-nav__list,
.footer-nav ul {
  letter-spacing: 0.12em;
  /* 0.2は強め */
  line-height: 1.9;
  /* 単位なし */
}

/* Desktop nav - hidden by default */
.site-nav--desktop {
  display: none;
}

.li-logo-white {
  margin-bottom: var(--space-4);
  text-align: center;
  width: 50%;
  margin: 0 auto;
}

.last-li-sp {
  padding-bottom: var(--space-4);
}

/* =========================================================
   7) Navigation System（メニューボタン・パネル・オーバーレイ）
========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.561);

  /* Fade animation */
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;

  z-index: 90;
  /* ヘッダー(100)より下 */
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger button */
.menu-button {
  appearance: none;
  background: var(--on-primary);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: var(--space-1) var(--space-2);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.menu-button:hover {
  opacity: 0.92;
}

.menu-button:focus-visible {
  outline-color: var(--primary);
}

.menu-button__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Mobile menu panel */
/* Mobile menu panel */
.menu-panel {

  /* 画面全体（ヘッダー下） */
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 100svh;

  /* 背景：プライマリーの薄い膜（グラデ無し） */
  background: rgba(51, 91, 160, 0.613);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* 中身を上下中央へ */
  display: grid;
  align-items: center;

  /* 余白 */
  padding: calc(var(--header-height) + var(--space-4)) 0 var(--space-4);

  /* 小さい画面で収まりきらない時はスクロール */
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* Slide + fade animation */
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;

  z-index: 95;
  /* overlay(90)より上、header(100)より下 */
}

body.menu-open .menu-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav--mobile .site-nav__list {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 0 var(--gutter);
}

/* メニュー項目の“塊”自体をセンターに寄せる */
.site-nav--mobile {
  width: min(560px, 100%);
  margin-inline: auto;

}

/* 通常リンクはシンプルなテキストに（CTAボタンは除外） */
.site-nav--mobile .site-nav__list a:not(.btn) {
  display: block;
  text-align: center;

  padding: 12px 0;

  background: transparent;
  border: none;

  color: var(--on-primary);
  letter-spacing: 0.18em;
  text-decoration: none;
  font-weight: 500;
}

.site-nav--mobile .site-nav__list a:not(.btn):hover {
  opacity: 0.95;
}

/* CTA：幅を絞っても確実に中央寄せ */

.site-nav--mobile .btn.block {
  display: flex;
  width: min(15rem, 60%);
  min-width: 0;
  margin-inline: auto;
  justify-content: center;
  padding: 12px 16px;
}

/* 閉じるボタン：テキストとして中央寄せ＋on-primary */
.site-nav--mobile .menu-close {
  display: flex;
  justify-content: center;
  margin-inline: auto;

  min-width: 0;
  /* .btn の min-width を打ち消す */
  padding: 12px 0;

  background: transparent;
  border: none;
  border-radius: 0;

  color: var(--on-primary);
  letter-spacing: 0.18em;
}

.site-nav--mobile .menu-close:hover {
  opacity: 0.95;
}

/* =========================================================
   8) Hero Section
========================================================= */
#hero {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 100svh;
  height: auto;
  color: var(--on-primary);
  overflow: hidden;

  padding: var(--space-6);
  padding-top: calc(var(--header-height) + var(--space-6));
}

#hero .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#hero .width-full {
  max-width: var(--mini-container);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* HERO scroll indicator */
#hero {
  position: relative;
  /* ←重ねるために必要 */
}

#hero .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  z-index: 5;

  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;

  transition: opacity 200ms ease, transform 200ms ease;
}

/* scroll */
#hero .hero-scroll img {
  width: var(--space-7);
  height: auto;
  display: block;
}


/* 初期は非表示：JSで is-visible を付けて表示 */
#hero .hero-scroll {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 240ms ease, transform 240ms ease;
}

#hero .hero-scroll.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

#hero .hero-scroll.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  pointer-events: none;
}

/* =========================================================
   9) Company / Overview Section
========================================================= */
.company_inner {
  width: min(920px, 100% - 40px);
  margin-inline: auto;
  padding-bottom: var(--space-6);
  gap: var(--space-5);
}

/* 罫線テーブル */
.company_table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-3);
}

/* 行区切り */
.company_table tr {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.company_table tr:first-child {
  border-top: none;
}

/* 左（項目） */
.company_table th {
  width: 22%;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  letter-spacing: 0.18em;
  /* font-size: 1.1rem; */
  color: rgba(255, 255, 255, 0.75);

  /* ここがポイント */
  vertical-align: middle;
  text-align: center;

  white-space: nowrap;
}

/* 右（内容） */
.company_table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-size: 1rem;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.company_table h3 {
  font-weight: 300;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 会社概要の許可項目リスト */
.permit-list {
  margin: 0.4em 0;
  padding-left: 1.2em;
  /* 弾丸分の余白 */
  list-style: disc;
  font-size: 0.98rem;
}

.permit-list li {
  margin: 0.18em 0;
}

/* トップ（index.php / フロントページ）でだけ非表示にしたい行 */
.main-box .company-section .mini-none {
  display: none;
}

.about-all .company-section .all-none {
  display: none;
}

.company-page .company-section .all-none {
  display: none;
}

.company-section .permit-list {
  color: rgba(255, 255, 255, 0.92);
}

/* モバイル調整 */
@media (max-width: 560px) {
  .company {
    padding: var(--space-4) 0;
  }

  .company_table th {
    width: 30%;
    padding: var(--space-3) var(--space-2);
    letter-spacing: 0.12em;
  }

  .company_table td {
    padding: var(--space-3) var(--space-2);
  }
}

/* =========================================================
   10) Section Styles（ページ固有セクション）
   - EEE: Marquee textline
   - AAA: Overview with background images
   - BBB: News table
   - CCC: Instagram feed
   - DDD: Additional section
========================================================= */

/* loading anime */
/* overlay */
#mono-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-light, #0b0f1a);
  /* ここはMONOの背景色に合わせて */
  display: grid;
  place-items: center;

  /* 初期は表示 */
  opacity: 1;
  pointer-events: all;
}

.mono-loading__logo img {
  width: 200px;
  height: auto;
  display: block;
}

/* ロゴ箱（幅200px） */
.mono-loading__logo {
  width: 200px;

  /* ここだけ数値いじればOK（-6px〜-20pxくらいで） */
  --loading-logo-shift: -30px;

  transform-origin: 50% 50%;

  opacity: 0;
  transform: translateY(var(--loading-logo-shift)) scale(0.92);
}

/* アニメ開始 */
#mono-loading.is-anim .mono-loading__logo {
  animation: monoLogoInOut 3000ms ease forwards;
}

/* overlay自体の消え方（ロゴの後半に合わせる） */
#mono-loading.is-anim {
  animation: monoOverlayOut 3000ms ease forwards;
}

/* ロゴ：ふわっと表示 → 少し保持 → ズームして見切れるくらい → フェード */
@keyframes monoLogoInOut {
  0% {
    opacity: 0;
    transform: translateY(var(--loading-logo-shift)) scale(0.92);
  }

  35% {
    opacity: 1;
    transform: translateY(var(--loading-logo-shift)) scale(1.0);
  }

  65% {
    opacity: 1;
    transform: translateY(var(--loading-logo-shift)) scale(1.0);
  }

  100% {
    opacity: 0;
    transform: translateY(calc(var(--loading-logo-shift) - 6vh)) scale(16);
  }


  /* 8は「見切れる」強さ。好みで6〜12 */
}

/* オーバーレイ：最後にスッと消す */
@keyframes monoOverlayOut {
  0% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    pointer-events: none;
  }
}

/* アニメ終了後、完全に無効化するクラス */
#mono-loading.is-done {
  display: none;
}

/* ---------- SECTION : EEE (Marquee) ---------- */
#ABOUT-index {
  background: var(--bg-grd);
  color: var(--on-primary);
}

#ABOUT-index .container {
  padding: var(--space-6);
}

#ABOUT {
  background: var(--bg-grd);
  color: var(--on-primary);
}

#ABOUT .container {
  padding-top: var(--space-7);
}

/* ABOUT：ページ内リンク */
.about-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  /* 画面が狭い時は折り返し */
  margin-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.2em;

  background-color: #fff;
  border-radius: 999px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.12em;
  line-height: 1;
  min-width: 10em;
}

.about-link:hover {
  opacity: 0.9;
}

/* モバイルでは事業案内リンク非表示 */
@media (max-width: 767px) {
  .about-links {
    display: none;
  }
}

/* textline */
/* これ自体は高さ0＝レイアウトを押し広げない */
.marquee-anchor {
  position: relative;
  height: 0;
  z-index: 5;
}

/* 中身だけ絶対配置で"境界に被せる" */
.marquee-anchor>.marquee {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  /* 境界ライン基準 */
  transform: translateY(-50%);
  /* 0と1に半分ずつ跨らせる */
  pointer-events: none;
  overflow: hidden;
}

/* 流れる本体 */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  color: var(--on-primary);
  white-space: nowrap;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.25;
  padding-right: 2rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- SECTION : AAA (Overview) ---------- */
#SERVICE-index,
#SERVICE {
  padding: 0;
}

#SERVICE-index .columns,
#SERVICE .columns {
  gap: 0;
}

#SERVICE-index h3,
#SERVICE h3 {
  font-size: 3rem;
}

.servicebox {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 40vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: var(--on-primary);
}

/* .servicebox-wide {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 400px;
  width: var(--mini-container);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  color: var(--on-primary);
} */
/* SERVICEの画像ヘッダーも画面いっぱいにする */
#SERVICE .servicebox {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.servicebox-bg01 {
  background-image: url('./img/gaiyoubg01.jpg');
}

.servicebox-bg02 {
  background-image: url('./img/gaiyoubg02.jpg');
}

.servicebox-bg03 {
  background-image: url('./img/gaiyoubg03.jpg');
}

.servicebox .servicebox-header {
  width: min(var(--mini-container), 100%);
  margin-inline: auto;
  align-self: center;
  /* flexの子として中央寄せ */
}

/* SERVICE内：テキスト2分割ボックス */
.servicebox-textbox {
  /* 画面いっぱい（親の幅制約を突破） */
  width: 100vw;
  margin-left: calc(50% - 50vw);

  background-color: var(--border);
  min-height: 300px;
  padding: var(--space-6);

  display: grid;
  grid-template-columns: 1fr;
  /* mobile + tablet は縦 */
  gap: var(--space-6);
}

/* PC（左右2カラム）時は、中身の横幅を mini-container に制限して中央寄せ
   背景は全幅のまま（paddingだけで中身幅を作る） */
@media (min-width: 1024px) {
  #SERVICE .servicebox-textbox {
    padding-left: max(var(--gutter), calc((100vw - var(--mini-container)) / 2));
    padding-right: max(var(--gutter), calc((100vw - var(--mini-container)) / 2));
  }
}

/* SERVICE内：2分割ボックスの中の「制作事例を見る」を全幅にして中央へ */
#SERVICE .servicebox-textbox>.btn,
#SERVICE .servicebox-textbox>button.btn,
#SERVICE .servicebox-textbox>a {
  grid-column: 1 / -1;
  /* 2カラムを跨ぐ */
  justify-self: center;
  /* 横方向中央 */
}

/* aの下線や余計な幅を抑える */
#SERVICE .servicebox-textbox>a {
  display: inline-block;
  text-decoration: none;
}

/* aの中にbuttonを入れている場合でも見た目が崩れないように */
#SERVICE .servicebox-textbox>a>button.btn {
  margin: 0;
}



/* PCのみ：左右50/50 */
@media (min-width: 1024px) {
  .servicebox-textbox {
    grid-template-columns: 1fr 1fr;
  }
}

/* 左右の中身は自然に伸びる */
.servicebox-textbox-left,
.servicebox-textbox-right {
  min-width: 0;
}

.servicebox-textbox h4 {
  letter-spacing: 0.05em;
  font-size: 1.5rem;
  margin: 0;
}

.servicebox-textbox hr {
  margin-bottom: var(--space-2);
  margin-top: 0;
}

/* ---------- SECTION : BBB (News) ---------- */
#NEWS {
  /* NEWS セクション全体 */
}

#NEWS header {
  display: flex;
  flex-direction: column;
  /* 縦並び */
  align-items: center;
  /* 左右センター */
  justify-content: center;
  /* 上下センター */
  text-align: center;
}

#NEWS h2 {
  /* NEWS 見出し */
}

/* NEWS：見出し（header）を左、本文を右に（タブレット以上で横並び） */
#NEWS .center {
  justify-items: stretch;
  /* 子要素を幅いっぱいにして左右のズレをなくす */
}

#NEWS .center>header {
  text-align: left;
}

#NEWS .container {
  max-width: var(--mini-container);
}

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

.news-table tr {
  border-bottom: 1px solid var(--primary);
}

.news-table tr:first-child {
  border-top: 1px solid var(--primary);
}

.news-table td {
  padding: var(--space-3) 0;
  vertical-align: middle;
}

.news-date {
  width: 12em;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
  text-align: center;

}

.news-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-decoration: none;
}

.news-arrow {
  font-size: 1.2em;
  opacity: 0.7;
  padding-right: var(--space-4);
  color: var(--secondary);
}

@media (min-width: 768px) {
  #NEWS .center {
    grid-template-columns: 320px 1fr;
    align-items: start;
    column-gap: var(--space-5);
    row-gap: var(--space-3);
    align-items: center;
  }
}



/* ---------- SECTION : HISTORY (Company timeline) ---------- */
#history {}

#history .history-inner {
  min-width: var(--s-container);
  margin-inline: auto;
  margin: 0 auto;
}

#history table {
  width: 100%;
  border-collapse: collapse;
}

#history tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 10em;
}

#history tr:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

#history th,
#history td {
  vertical-align: middle;
  min-height: 8em;
}

/* tdの中で日付と内容を2カラムで揃える */
#history .history-events {
  display: grid;
  gap: 0.45em;
}

#history .history-event {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  /* ←日付幅 */
  align-items: start;
  column-gap: 0.9em;
}

#history .event-date {
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 560px) {
  #history .history-event {
    grid-template-columns: 5.2em 1fr;
    column-gap: 0.7em;
  }
}

/* 年号（円＋文字を中央で重ねる） */
#history th[scope="row"] {
  width: 7.5rem;

  text-align: center;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);

  position: relative;
  display: grid;
  place-items: center;
  position: relative;
}

#history th[scope="row"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4.2rem;
  height: 4.2rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--bg-light);
  z-index: 1;
}

#history th[scope="row"] span {
  position: relative;
  z-index: 2;
}

/* 年号セル中央の縦ライン（上下を繋ぐ） */
#history th[scope="row"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--primary);
  z-index: 0;
}

/* td（出来事） */
#history td {
  text-align: left;
  letter-spacing: 0.06em;
  line-height: 1.9;

}

@media (max-width: 560px) {
  #history th[scope="row"] {
    width: 6.2rem;
  }

  #history th[scope="row"]::before {
    width: 3.6rem;
    height: 3.6rem;
    margin-right: 0.6rem;
  }
}

/* ---------- SECTION : CCC (Instagram) ---------- */
#SNS-FEED {
  background: var(--bg-grd);
  color: var(--on-primary);
  padding-bottom: 0;
}

#SNS-FEED header {
  /* SNS-FEED 見出しエリア */
}

.instagram-feed {
  padding: var(--space-4);
  text-align: center;
}

.sb_instagram_header {
  display: none;
}

#sb_instagram img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 260px;
}

/* message */
.message-section {
  padding-top: calc(var(--header-height) + var(--space-7));
  padding-bottom: var(--space-6);

  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    /* 黒オーバーレイ */
    radial-gradient(rgba(255, 255, 255, 0.251) 1px, transparent 1px),
    /* ドット */
    url('./img/message.jpg');
  /* 元画像 */

  background-size: auto,
    12px 12px,
    /* ドット間隔 */
    cover;

  background-position: center,
    0 0,
    center;

  background-repeat: no-repeat,
    repeat,
    no-repeat;

  color: var(--on-primary);
}

.message-inner {
  max-width: var(--mini-container);
  margin-inline: auto;
  gap: var(--space-5);
}

.message-box {
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  line-height: 3em;
}

.message-signature {
  /* margin-top: var(--space-4); */
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

/* プライバシーポリシー */
#mono-privacy {}

.privacy-content {
  max-width: var(--mini-container);
  margin-inline: auto;
  gap: var(--space-5);
  border: 1px solid var(--border);
  padding: var(--space-5) var(--space-7);
  border-radius: 10px;

}

.privacy-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  padding-top: 1em;
  letter-spacing: 0.1em;
}

.privacy-content p {
  margin: 0 0 var(--space-3);
  line-height: 1.8em;
  letter-spacing: 0.02em;
  text-align: left;
}

/* =========================================================
   11) Contact / CTA Section
========================================================= */


#contact .container {
  max-width: var(--mini-container);
}

#contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

#contact .contact-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-4) var(--space-6);
  height: 100%;
}

.contact-item h3 {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

#contact p {
  margin: 0;
}

#contact .contact-tel {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

#contactpage .contact-tel {
  font-size: 3rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

.contact-tel a,
.tel02 a {
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  #contact .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* #contactpage */
#contactpage {
  padding-top: calc(var(--header-height) + var(--space-7));
}

#contactpage .container {
  max-width: var(--mini-container);
}

#contactpage header {}

.contactpage-item {
  padding-top: var(--space-3);
}

.contactpage-item p {
  text-align: center;
}


.contactpage-item h3 {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin: var(--space-2);

}

.contactpage-item hr {
  width: 100%;
  margin: var(--space-6) auto;
}


.contactpage-item span {
  text-align: left;
}

/* ----------------------------------------
contact7
---------------------------------------- */

/* cf7: 余計なp余白を消す */
.contact-form .cf7-row>p {
  margin: 0;
}

/* brで強制改行されてしまうので無効化 */
.contact-form .cf7-row>p>br {
  display: none;
}

/* グリッドは .cf7-row じゃなく p に当てる（中身がそこにあるため） */
.contact-form .cf7-row>p {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.cf7-label {
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--text);
}


.wpcf7-mail-sent-ok {
  background-color: #56b379;
  color: #ffffff;
  font-weight: bold;
  font-size: 120%;
  padding: 10px;
}

/* PC：左右（項目名：入力欄） */
@media (min-width: 768px) {
  .contact-form .cf7-row>p {
    grid-template-columns: 10rem 1fr;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }

  /* 幅いっぱい行 */
  .contact-form .cf7-row--full>p {
    grid-template-columns: 10rem 1fr;
    align-items: start;
  }
}

/* =========================
   CF7 入力ボックス（Figma寄せ）
========================= */

/* 文字とボックスの基本 */
.contact-form :where(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  width: 100%;
  background: #F7F7F7;
  border: 1px solid #CACACA;
  border-radius: 5px;

  /* 高さ（Figmaが60px） */
  min-height: 2.5em;
  padding: 0 16px;

  /* 文字 */
  color: var(--text);
  font-size: 0.8em;
  letter-spacing: 0.06em;
  /* 3.2pxは強めなので、まずは控えめ推奨 */
  outline: none;
}

/* textareaは高さを別に（60pxだと小さいので） */
.contact-form textarea {
  min-height: 180px;
  padding: 12px 16px;
  resize: vertical;
}

/* フォーカス時（雰囲気を壊さない） */
.contact-form :where(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
  border-color: rgba(80, 128, 208, 0.8);
  /* var(--primary) を少し薄めてもOK */
  box-shadow: 0 0 0 3px rgba(80, 128, 208, 0.18);
}

/* プレースホルダ */
.contact-form ::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

/* 送信ボタン：サイトのCTAボタンに寄せる */
/* 送信ボタン：中央寄せ（グリッド内対応） */
.contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;

  min-width: 12rem;
  min-height: 60px;
  padding: 0.8em 2em;

  border-radius: 999px;
  border: 0;

  background: var(--secondary);
  color: var(--on-primary);

  cursor: pointer;
  letter-spacing: 0.1rem;
  grid-column: 1 / -1;
  justify-self: center;
}

.contact-form .wpcf7-submit:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .contact-form .wpcf7-submit {
    min-width: auto;
    letter-spacing: 0.02rem;
  }
}

/* =========================================================
   12) Site Footer（全幅背景の土台）
========================================================= */
.site-footer {
  width: 100%;
}

.map-full {
  width: 100%;
  margin-left: 0;
}

.map-full iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.site-footer .footer-access.center {
  justify-items: stretch;
}

.footer-access {
  padding-bottom: 0;
}

.company-section {
  background: var(--bg-grd);
  color: var(--on-primary);
  padding-bottom: var(--space-6);
}

.footer-normal {
  background: var(--bg-grd);
  color: var(--on-primary);

  min-height: 50vh;
  /* or 55svh */
  padding-block: clamp(40px, 5vw, 96px) 0;

  width: 100%;
  margin-left: 0;

  display: flex;
  flex-direction: column;
}

.footer-inner {
  /* ヘッダーの .container と同じ"中身の最大幅"に揃える */
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.footer-nav {
  min-height: 20em;
}

.footer-nav ul>li:first-child p {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  opacity: 1;
  pointer-events: none;
  text-decoration: none;
  position: relative;
  display: inline-block;
  /* 下線の基準にする */
  margin: 0;
  /* 余白は0にしておく */
}

.footer-nav ul>li:first-child p::after {
  content: "";
  display: block;
  width: 10em;
  /* ←ここが「文字数関係なく伸ばす」 */
  height: 2px;
  background: currentColor;
  opacity: .35;
  margin-top: 0;
  /* 文字との距離 */
}

.footer-nav ul>li:first-child {
  margin-bottom: var(--space-1);
}

.footer-info {
  line-height: 2em;
}

.footer-logo {
  max-width: 300px;
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-social {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
}

.footer-social img {
  width: 24px;
}

/* PCで左右 */
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }


  .footer-left {
    text-align: left;
    padding-bottom: var(--space-7)
  }

  .footer-left p,
  .footer-left div {
    padding-left: var(--space-5);
  }

  .footer-left button {
    margin-left: var(--space-4);
  }

  .footer-right {
    justify-self: end;
    text-align: left;

    /* 右カラムの中で“塊”を下端へ */
    align-self: end;
    height: 100%;
    padding-top: 0;

    /* nav2つは横並び */
    display: grid;
    grid-auto-flow: column;
    gap: var(--space-6);

    /* nav同士は上揃え */
    align-items: start;

    /* nav2つの塊を下に寄せる */
    align-content: end;
  }

  .footer-nav {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .footer-right {
    width: 100%;
    padding-left: var(--space-3);
    justify-self: start;
    text-align: left;

    display: grid;
    grid-auto-flow: row;
    gap: var(--space-3);

    height: auto;
    padding-top: var(--space-2);
  }

  .footer-nav {
    height: 100%;
    padding-bottom: var(--space-2);
    min-height: 0;
  }

}



.footer-nav ul {
  min-width: 10em;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .footer-nav ul {
    align-self: center;
  }
}

.footer-nav li+li {
  margin-top: 6px;
}

.mono-copyright {
  font-size: 0.9rem;
  color: var(--on-primary);
  letter-spacing: 0.25em;

  /* footerの一番下へ */
  margin-top: auto;

  /* 右寄せ＋左右のガターに合わせる */
  text-align: right;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;

  /* 下端の余白 */
  padding-bottom: 2em;
}

@media(max-width: 767px) {
  .mono-copyright {
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
    min-width: 0;
    text-align: center;
  }
}

/* =========================================================
   13) Responsive（モバイル → タブレット → PC）
========================================================= */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .columns {
    grid-template-columns: repeat(3, 1fr);
    /* タブレット以上：3列 */
  }

  /* TOPページのSERVICEリンクは2列固定 */
  #SERVICE-index .columns {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ABOUTページのSERVICEは常に縦並び */
  #SERVICE .columns {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  .site-nav--desktop {
    display: none;
  }
}

/* PC */
@media (min-width: 1024px) {
  :root {
    --gutter: 28px;
  }

  .site-nav--desktop {
    display: flex;
    align-items: center;
    gap: 3rem;
  }

  .site-nav__list {
    align-items: center;
    /* ← リスト内も上下中央 */
  }

  .menu-button,
  .menu-panel {
    display: none !important;
  }

  h1 {
    font-size: 2.6rem;
  }
}
