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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #222;
  background: #f5f5f7;
  padding-top: 80px;  /* ← 固定ヘッダーぶんの余白 */
}

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

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

ul {
  list-style: none;
}

/* =======================================
   Layout
======================================= */

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}


/* =======================================
   TOP：動画 + 静止画（切替）全デバイス対応
======================================= */

.top-movie-section {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

/* ▼最初に表示される動画 */
.intro-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ▼切替後に表示する静止画（最初は非表示） */
.top-graphic {
  display: none;
}

.top-graphic img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ▼動画終了後（JSが .show-graphic を付与） */
.top-movie-section.show-graphic .intro-video {
  display: none;
}
.top-movie-section.show-graphic .top-graphic {
  display: block;
}





/* =======================================
   スクロールダウン（PC 共通）
======================================= */
.scroll-down {
  position: absolute;
  bottom: -32px;  /* ←ここが PC の上下位置（調整ポイント）*/
  left: 90%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 20;
  color: #111;
}

.scroll-down-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.scroll-down-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}


/* =======================================
   スマホ最適化（横幅 720px 以下）
======================================= */
@media (max-width: 720px) {

  /* ▼高さはコンテンツ任せ（上下余白防止） */
  .top-movie-section {
    height: auto;
    max-height: none;
  }

  .intro-video,
  .top-graphic img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* ▼スクロールダウンのみ位置微調整 */
  .scroll-down {
    bottom: 20px !important;  /* ←ここがスマホの上下位置 */
    left: 90% !important;      /* ←右寄せ（数字変えれば動く） */
    transform: translateX(-50%) !important;
  }

  /* ▼サイズ縮小 */
  .scroll-down-icon {
    font-size: 1.15rem !important;
  }

  .scroll-down-label {
    font-size: 0.52rem !important;
    letter-spacing: 0.14em;
  }
}




@keyframes scroll-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

/* =======================================
   Header & Navigation
======================================= */

.site-header {
  position: fixed;   /* ← スクロールしても上に居続ける */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;   /* 帯は少し細めに */
  gap: 1.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-img {
  width: 84px;     /* ロゴを少し大きく */
  height: auto;
  object-fit: contain;
}

.logo-title-ja {
  font-weight: 750;
  font-size: 1.15rem;  /* 社名も大きく */
}

.logo-title-en {
  font-size: 0.82rem;
  color: #555;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* nav */
.main-nav {
  position: relative;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.98rem;
}

/* リンクを「リンクっぽく」 */
.main-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

/* ホバー & 現在ページ用の緑ライン */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #0f7b4f;
  transition: width 0.18s ease;
}
/* 言語切替ボタンにはナビの下線エフェクトを適用しない */
.main-nav .lang-switch a::after {
  content: none;
}


.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

/* mobile nav button */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #222;
  margin: 4px 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}



/* =======================================
   Hero（TOP ページのメイン）
======================================= */

.hero {
  background: radial-gradient(circle at top left, #e2f6ea, #f5f5f7 55%);
  padding: 3.2rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  color: #0f7b4f;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.hero-title-ja {
  font-size: clamp(2.1rem, 3vw, 2.5rem);
  font-weight: 750;
  margin-top: 0.4rem;
}

.hero-title-en {
  font-size: 1.05rem;
  margin-top: 0.3rem;
  color: #333;
}

.hero-lead {
  margin-top: 1.3rem;
  font-size: 0.98rem;
  color: #444;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0f7b4f, #34c36b);
  color: #fff;
  box-shadow: 0 9px 22px rgba(15, 123, 79, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid #cfd3e0;
  background: #fff;
  color: #234038;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: #0f7b4f;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card {
  border-radius: 22px;
  background: #fff;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}

.hero-taglist {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.hero-taglist span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e3f5eb;
}

/* =======================================
   共通：サブページレイアウト
======================================= */

.page-main {
  padding: 2.8rem 0 3.4rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-kicker {
  font-size: 0.9rem;
  color: #0f7b4f;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

/* 説明文は全ページ少し大きめに */
.page-lead {
  margin-top: 0.8rem;
  font-size: 1.125rem;
  line-height: 1.9;
  color: #444;
}

/* =======================================
   汎用 Feature グリッド（TOP など）
======================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: #555;
}

/* =======================================
   会社概要テーブル（profile.html）
======================================= */

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.info-table th,
.info-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.info-table th {
  width: 28%;
  background: #edf7f1;
  color: #3d5b4f;
  font-weight: 600;
}

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

/* =======================================
   会社概要：沿革・理念画像・アクセス
======================================= */

/* 沿革 */
.company-history {
  margin-left: 5em;       /* 全角5文字分右に寄せる */
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 2px solid #e3e8e5;
}

.history-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #234038;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.history-item {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
}

.history-year {
  font-weight: 700;
  color: #0f7b4f;
  white-space: nowrap;
}

.history-text {
  color: #444;
}

/* 企業理念画像（rinen） */
.rinen-image-wrap {
  margin-top: 1.8rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.rinen-image {
  max-width: 820px;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

/* アクセス */
.company-access {
  margin-top: 3rem;
  margin-left: 5em;       /* 沿革と同じ位置感 */
  padding-top: 1.8rem;
  border-top: 2px solid #e3e8e5;
}

.access-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #234038;
  margin-bottom: 1rem;
}

.access-address {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.6rem;
  line-height: 1.7rem;
}

.access-map {
  margin: 0;
  padding: 0;
  width: 100%;
}

.access-map iframe {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  display: block;
}

/* =======================================
   お問い合わせ（contact.html）
======================================= */

.contact-box {
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #444;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border-radius: 9px;
  border: 1px solid #c9d5cf;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
  background: #f4faf6;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: #0f7b4f;
  box-shadow: 0 0 0 1px rgba(15, 123, 79, 0.3);
  background: #fff;
}

.form-note {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.8rem;
}

/* =======================================
   Footer
======================================= */

.site-footer {
  background: #0b1f16;
  color: #d1d5db;
  font-size: 0.8rem;
  padding: 1.6rem 0 1.3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #e5e7eb;
}

/* =======================================
   事業内容ページ（business.html）専用 CSS
======================================= */

/* 2×2 事業内容カード */
.business-section {
  margin-top: 1.5rem;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

@media (max-width: 720px) {
  .business-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* business 用に feature-card 上書き（緑ベース） */
.business-grid .feature-card {
  background: #e9f4ef;
  border: 1px solid #b5d5c4;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.business-grid .feature-card h3 {
  color: #0f7b4f;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.business-grid .feature-card p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #333;
}

/* ---------- 業務フロー 共通 ---------- */

.business-flow {
  margin-top: 3rem;
}

.flow-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #234038;
  margin-bottom: 1.2rem;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.flow-step {
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.flow-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #234038;
}

.flow-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
  color: #234038;
}

.flow-step ul {
  margin-left: 1.2rem;
  list-style: disc;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ▼（緑のみ・横長） */
.flow-arrow {
  text-align: center;
  margin: 0.4rem 0 0.8rem;
}

.arrow-green {
  font-size: 1.6rem;
  color: #0f7b4f;
  transform: scaleX(1.8);
  display: inline-block;
}

/* Step2 のヘッダー（右に SE1 画像） */
.flow-step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.flow-badge {
  width: 224px;
  height: auto;
  flex-shrink: 0;
}

/* Step3 メカ／電気の行（左テキスト / 右画像） */
.flow-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.6rem;
}

.flow-text {
  flex: 1;
}

.flow-text ul {
  margin-left: 1.2rem;
  list-style: disc;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.flow-img {
  width: 224px;
  height: auto;
  flex-shrink: 0;
}

/* マウスホバーで画像拡大 */
.flow-img,
.flow-badge {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}

.flow-img:hover,
.flow-badge:hover {
  transform: scale(1.7);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 50;
}

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

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding-inline: 0.4rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.7rem 1rem 1rem;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-main {
    padding-top: 2.2rem;
  }

  .hero {
    padding-top: 2.4rem;
    padding-bottom: 4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ▼ スクロールダウンボタン */
.scroll-down {
  position: absolute;
  bottom: 18vh;      /* ← 24vh から少し下へ（1個分くらい） */
  right: 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 30;
  cursor: pointer;
}

/* ▼アイコン */
.scroll-down-icon {
  font-size: 2.8rem;
  font-weight: 900;
  color: #000;
  line-height: 1;
  animation: scrollMove 1.4s infinite ease-in-out;
  opacity: 0.92;
}

/* ▼下のラベル */
.scroll-down-label {
  font-size: 0.7rem;
  color: #000;
  letter-spacing: 0.2em;
  opacity: 0.9;
  animation: scrollMove 1.4s infinite ease-in-out;
  animation-delay: 0.1s;  /* ← ちょっとだけ遅らせて、ニュッと付いてくる感じ */
}

/* ▼アニメーション（上下にゆっくり揺れる） */
@keyframes scrollMove {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}
/* =======================================
   Header right area & Language switch
======================================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.lang-btn {
  min-width: 38px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cfd3e0;
  background: #ffffff;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #0f7b4f;
  border-color: #0f7b4f;
  color: #fff;
}

/* モバイル時はナビ周りを少し詰める */
@media (max-width: 720px) {
  .header-right {
    gap: 0.8rem;
  }
  .lang-switch {
    font-size: 0.75rem;
  }
}

/* PC（タブレット横〜PC）向けレイアウト調整 */
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;   /* 左右を同じ幅に */
    max-width: 920px;                 /* 2カラム全体の横幅を少し絞る */
    margin: 2rem auto 0;              /* 画面中央に寄せる */
  }
}
/* =========================
   PROFILE：スマホ位置調整
========================= */
@media (max-width: 720px) {

  /* 全体コンテナを中央寄せに */
  .page-main .container {
    width: 100%;
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }

  /* History セクション揃える */
  .company-history {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .history-title,
  .history-list {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Access セクション揃える */
  .company-access {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .access-title,
  .access-address,
  .access-map {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ========================================
   BUSINESS：スマホ表示レイアウト修正
   （画像をテキストの下に/見やすく）
======================================== */
@media (max-width: 720px) {

  /* 画像とテキストを縦並びに */
  .flow-row {
    display: block !important;
  }

  /* 画像の位置をテキスト下へ */
  .flow-row .flow-img {
    width: 100% !important;
    height: auto !important;
    margin: 12px 0 16px !important;
    display: block !important;
    float: none !important;
    position: static !important;
  }

  /* テキストの余白改善 */
  .flow-row .flow-text {
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  /* 行間調整 */
  .flow-step p,
  .flow-step ul,
  .flow-step li {
    line-height: 1.6 !important;
  }

  /* 箇条書きの位置 */
  .flow-step ul {
    padding-left: 1.2rem !important;
  }
}

/* 現在ページ（.is-active）に常時下線を表示 */
.main-nav a.is-active::after {
  width: 100% !important;
}
/* =======================================
   TOP 黒画像を「ふわっと」フェードイン
   （レイアウトはそのまま）
======================================= */

/* 黒画像は最初は透明として扱う */
.top-graphic {
  opacity: 0;
}

/* 動画終了 → .show-graphic 付与時にふわっと表示 */
.top-movie-section.show-graphic .top-graphic {
  animation: kjFadeInGraphic 1.5s ease-in-out forwards;
}

/* フェードイン用キーフレーム */
@keyframes kjFadeInGraphic {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   BUSINESS：スマホでは画像拡大を無効化
========================================== */
@media (max-width: 720px) {
  .flow-img,
  .flow-badge {
    transform: none !important;
    box-shadow: none !important;
    cursor: default !important;
  }

  .flow-img:hover,
  .flow-badge:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}
/* ▼ヘッダーの通常リンクを "btn-primary" スタイルに統一 */
.main-nav a:not(.lang-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #0f7b4f, #34c36b);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 123, 79, 0.28);
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    filter .2s ease;
}

/* ホバー時（少し持ち上がる） */
.main-nav a:not(.lang-btn):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 123, 79, 0.38);
  filter: brightness(1.05);
}

/* 現在ページ */
.main-nav a.is-active:not(.lang-btn) {
  filter: brightness(1.12);
  box-shadow: 0 12px 28px rgba(15, 123, 79, 0.45);
}
/* ▼ヘッダーのナビから下線エフェクトを完全削除 */
.main-nav a::after {
  content: none !important;
}
/* ▼言語切替ボタン（アクティブは黒） */
.lang-btn.is-active {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
/* ▼ヘッダー：白塗り＋濃い緑枠のボタン */
.main-nav a:not(.lang-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 1.4em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00743e; /* 濃い緑 */
  background: #fff;
  border: 2px solid #00743e;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    color .18s ease,
    background-color .18s ease;
}

/* ▼ヘッダー白塗りボタン（通常） */
.main-nav a:not(.lang-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45em 1.4em;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00743e;
  background: #fff;
  border: 1.5px solid #00743e;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    color .18s ease,
    background-color .18s ease;
}

/* ▼ホバー（少し濃い緑背景＋浮く） */
.main-nav a:not(.lang-btn):hover {
  background: rgba(0,160,80,0.10); /* ←ほんの少し濃く */
  color: #00743e;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,123,63,0.20);
}

/* ▼現在ページ（濃めの淡緑背景＋影強め） */
.main-nav a.is-active:not(.lang-btn) {
  background: rgba(0,160,80,0.22);
  color: #00743e;
  border: 1.5px solid #00743e;
  box-shadow: 0 8px 22px rgba(0,123,63,0.28);
}

/* ▼ヘッダー白塗りボタン（通常） */
.main-nav a:not(.lang-btn) {
  font-weight: 480;
  color: #000; /* ←黒に変更 */
  border: 1.5px solid #00743e;
}

/* ▼ホバー（淡い緑背景＋黒文字維持） */
.main-nav a:not(.lang-btn):hover {
  background: rgba(0,160,80,0.10);
  color: #000;
}

/* ▼現在ページ（視認性アップ） */
.main-nav a.is-active:not(.lang-btn) {
  background: rgba(0,160,80,0.22);
  color: #000; /* ←黒 */
  border: 1.5px solid #00743e;
}
