/* ===============================================
   Chiiki Base - style.css (consolidated & a11y fixed)
   - ハンバーガー方式を .main-nav トグルに統一
   - 重複/競合ルール整理、細かなバグ修正
   - WCAG/JIS対応: skip-link / focus-visible / 下線 / 近似色AA適合
   =============================================== */

/* ---- Base ---- */
:root {
  --green-main: #35815e;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

/* 1rem = 16px 相当 */
body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

/* サブテキストや注釈 */
.subtext, .note {
  color: #666; /* #999 → #666 に */
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  padding: 0.6rem 1rem;
  background: #000;
  color: #fff;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* 視覚的に隠す（スクリーンリーダーには読む） */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* フォーカス可視化（SC 2.4.7） */
:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* 通常のテキスト内リンクは下線（SC 1.4.1） */
main a:not(.btn-example):not(.btn-example-2):not(.btn-2) {
  text-decoration: underline;
  text-underline-offset: .12em;
}

/* ---- Header / NAV ---- */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  background: #fff;
}
.logo {
  height: 3.5rem;
}
.menu-toggle {
  display: none;      /* PCでは隠す */
  font-size: 2rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.main-nav {           /* PCでは通常フロー */
  display: flex;
  position: static;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.main-nav a { text-decoration: none; }

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    z-index: 1000;
  }
  /* トグル対象は .main-nav 本体のみ */
  .main-nav {
    display: none;             /* 初期は閉じる */
    position: absolute;
    top: 100%;                 /* ヘッダー直下 */
    left: 0; right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    z-index: 999;
  }
  .main-nav.active { display: block; }
  /* リストは常に通常表示。位置指定はしない */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .main-nav { display: flex !important; position: static; }
  .main-nav ul { flex-direction: row; gap: 1.2rem; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100%;
  height: 65vw;
  overflow: hidden;
  max-height: 50vh; /* 画面の半分程度に抑える */
}

.hero .slider {
  position: relative;
  width: 100%;
  height: auto;
}

.hero .slide {
  display: none;
  /* デフォルトは非表示 */
  width: 100%;
  height: auto;
}

.hero .slide.active {
  display: block;
  /* active のみ表示 */
}

.hero-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.hero-message h1 {
  font-size: 2rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-message h1 { font-size: 1.3rem; }
  .hero-message { padding: 0.8em; }
}

/* ---- diagram Sections ---- */
.diagram-container {
  text-align: center;   /* 図を中央寄せ */
  padding: 1em;
  display: block;       /* ブロック要素化して中央寄せ */
  margin: 0 auto;       /* 左右中央揃え */
  max-width: 100%;      /* 画面幅を超えないようにする */
  height: auto;         /* アスペクト比を維持 */
}
/* PC表示（幅769px以上）のときだけ55%に制限 */
@media (min-width: 769px) {
  .diagram-container {
    width: 55%;
    max-width: 55%;
  }
}

/* ---- Common Sections ---- */
.diagram { padding: 10px 20px; text-align: center; }
.diagram img { width: 95%; max-width: 900px; }

#contact {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

/* ---- Buttons ---- */
.btn-example {
  display: inline-block;
  background-color: var(--green-main);
  /* #35815e AA適合 */
  color: #fff;
  font-weight: bold;
  font-family: 'Zen Maru Gothic', sans-serif;
  padding: 0.75rem 2rem;
  /* 12px 32px */
  margin-top: 1.5rem;
  /* 24px */
  margin-bottom: 1.5rem;
  /* 24px */
  border: none;
  border-radius: 9999px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  /* 16px */
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-example:hover {
  background-color: #2f774f;
}

/* 5.58:1 */

.btn-example-2 {
  display: inline-block;
  background-color: #d73900;
  color: #fff;
  font-weight: bold;
  font-family: 'Zen Maru Gothic', sans-serif;
  padding: 0.75rem 2rem;
  /* 12px 32px */
  margin-top: 1.5rem;
  /* 24px */
  margin-bottom: 1.5rem;
  /* 24px */
  border: none;
  border-radius: 9999px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  /* 16px */
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-2 {
  display: inline-block;
  background-color: transparent;
  color: var(--green-main);
  font-weight: bold;
  font-family: 'Zen Maru Gothic', sans-serif;
  padding: 0.625rem 1.875rem;
  /* 10px 30px */
  margin-top: 1.5rem;
  /* 24px */
  margin-bottom: 1.5rem;
  /* 24px */
  border: 0.125rem solid var(--green-main);
  /* 2px */
  border-radius: 9999px;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  /* 16px */
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* 「くわしく見る」等は下線を残す */
.more-link { color: #228055; font-weight: bold; text-decoration: underline; text-underline-offset: .12em; }

/* ---- Typography ---- */
.centered { display: flex; justify-content: center; align-items: center; text-align: center; }

.highlighted-heading {
  font-weight: bold;
  color: #007743;
  max-width: 90vw;
  font-size: clamp(1.2rem, 5vw, 2.2rem);
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  word-break: keep-all;
}
.highlight { background: #cceeff; padding: 0 0; border-radius: 4px; display: inline; }

/* ---- Feature Boxes ---- */
.feature-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}
.feature-box {
  position: relative;
  border: 2px solid #228055;
  padding: 60px 20px 30px;
  width: 300px;
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
}/* ---- Feature Boxes ---- */
.feature-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  /* 20px */
  margin: 2.5rem auto;
  /* 40px */
  max-width: 68.75rem;
  /* 1100px */
  padding: 0 1.25rem;
  /* 20px */
}

.feature-box {
  position: relative;
  border: 0.125rem solid #228055;
  /* 2px */
  padding: 3.75rem 1.25rem 1.875rem;
  /* 60px 20px 30px */
  width: 18.75rem;
  /* 300px */
  box-sizing: border-box;
  text-align: center;
  background: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.circle-label {
  position: absolute;
  top: -1.25rem;
  /* -20px */
  left: 50%;
  transform: translateX(-50%);
  background: #228055;
  color: #fff;
  border-radius: 50%;
  width: 3rem;
  /* 48px */
  height: 3rem;
  /* 48px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  font-family: 'Lora', serif;
}

.feature-box h3 {
  font-size: 1.1rem;
  color: #228055;
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.more-link span {
  margin-left: 0.3125rem;
  font-weight: normal;
}

/* 5px */

@media (max-width: 48rem) {

  /* 768px */
  .feature-boxes {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Generic Slider ---- */
.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 62.5rem;
  /* 1000px */
  margin: 0 auto;
  padding: 2.5rem 0.625rem;
  /* 40px 10px */
}

.slider-button {
  background: #228055;
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 3rem;
  /* 48px */
  height: 3rem;
  /* 48px */
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  flex: 1;
}

.slide {
  transition: all 0.5s ease;
}

.slide.active {
  display: block;
}

.slide-content {
  display: flex;
  flex-wrap: wrap;
  border: 0.125rem solid #228055;
  /* 2px */
  padding: 1.25rem;
  /* 20px */
  gap: 1.25rem;
  /* 20px */
  background: #fff;
  border-radius: 0.5rem;
  /* 8px */
}

.slide-image img {
  border-radius: 0.75rem;
  /* 12px */
  max-width: 18.75rem;
  /* 300px */
  height: auto;
}

.slide-text {
  flex: 1;
  padding: 0.625rem;
  /* 10px */
  max-width: 90%;
  min-width: 15.625rem;
  /* 250px */
}

.slide-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  /* 4px 12px */
  border: 0.125rem solid #228055;
  /* 2px */
  border-radius: 9999px;
  color: #228055;
  font-size: 0.9rem;
  margin-bottom: 0.625rem;
  /* 10px */
}

.slide-text h3 {
  font-size: 1.3rem;
  color: #228055;
  font-weight: bold;
  margin: 0.625rem 0;
  /* 10px */
  line-height: 1.6;
}

.slide-text .highlight {
  background: linear-gradient(transparent 70%, #d8f4f9 70%);
}

.slide-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.625rem;
  /* 10px */
}

@media (max-width: 48rem) {

  /* 768px */
  .slide-content {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- 支援事例 Slider ---- */
.case-slider-wrapper { overflow: hidden; width: 100%; margin: 0 auto 20px; }
.case-slider-track { display: flex; transition: transform 0.5s ease; will-change: transform; }
.case-slide { min-width: 100%; box-sizing: border-box; padding: 20px; }
.case-slider-container { position: relative; max-width: 90%; margin: 0 auto; padding: 40px 0; }
.case-slide.active { display: block; }

.case-prev, .case-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #228055;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.case-prev { left: -60px; }
.case-next { right: -60px; }

@media (max-width: 768px) {
  .case-prev, .case-next { display: none; }
  .case-slider-track { flex-direction: column; }
  .case-slide { min-width: 100% !important; }
  .case-slider-container { display: flex; flex-direction: column; align-items: center; }
}

/* ---- Footer ---- */
.site-footer {
  background-color: #4b77a6;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 20px 0; /* 以前の padding: 0 auto; を修正 */
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-logo { height: 60px; }
.footer-info p { color: #ffffff; margin: 0 0 6px; font-size: 0.85rem; text-align: left; }
.footer-right { flex: 2 1 50; display: flex; align-items: center; justify-content: flex-start; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: #ffffff; text-decoration: none; font-size: 0.9rem; }
.footer-copy {
  text-align: right;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 20px; padding: 0 1em; }
  .footer-right { justify-content: flex-start; }
  .footer-copy { text-align: center; padding: 10px 0; }
  .footer-left, .footer-right { width: 100%; justify-content: center; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .footer-info { text-align: center; }
}

/* ---- Boxed text (統合版) ---- */
.boxed-text {
  position: relative;
  border: 3px solid #007743;
  padding: 2em 1.5em 1.5em;
  margin: 20px auto;
  border-radius: 6px;
  background-color: #fefdf8;
  max-width: 900px;
  width: 90%;
}
.boxed-label {
  position: absolute;
  top: -1.2em;
  left: 50%;
  transform: translateX(-50%);
  background-color: #007743;
  color: white;
  padding: 0.2em 3em;
  border-radius: 999px;
  font-size: 1.2rem; /* 改行バグ修正 */
  font-weight: bold;
  white-space: nowrap;
}
.boxed-text ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
  max-width: 900px;
  width: 95%;
}
.boxed-text li {
  line-height: 1.8;
  margin-bottom: 0.6em;
  font-size: 1rem;
  color: #333;
  width: 100%;
}

/* ---- News Section ---- */
.news-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  margin-top: 4em;
  padding: 1em;
  background-color: #fdfaf3;
  font-family: 'Zen Maru Gothic', sans-serif;
}

.news-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  width: 100%;
  max-width: 1100px;
  background-color: #fdfaf3;
}

.news-box {
  border: 2px solid #3d3d3d;
  padding: 20px;
  gap: 20px;
  background: #fff;
  width: 100%;
  max-width: 1100px;
  border-radius: 8px;
  text-align: center;
}

.news-heading-2 {
  font-weight: bold;
  color: #000000;
  max-width: 90vw;
  font-size: clamp(1rem, 4vw, 1.6rem);
  margin: 0 0 0 0;
  text-align: center;
  line-height: 0.3;
  word-break: keep-all;
}

.news-highlight { background: #cceeff; padding: 0 0; border-radius: 4px; }

/* ---- Speech bubbles ---- */
.speech-bubbles,
.speech-bubbles * { font-family: 'Zen Maru Gothic', sans-serif; }

.speech-bubbles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  padding: 2em;
  background-color: #fdfaf3;
}

.speech-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  width: 100%;
  max-width: 1100px;
}

.avatar { width: 80px; height: 80px; border-radius: 50%; }

.bubble {
  position: relative;
  padding: 1em 2em;
  border: 2px solid #007743;
  background: white;
  color: #007743;
  font-size: 1.4rem;
  border-radius: 4px;
  max-width: 600px;
  flex: 1;
  text-align: center;
}
.bubble.left::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  border: 15px solid transparent;
  border-right-color: #007743;
}
.bubble.right::before {
  content: "";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  border: 15px solid transparent;
  border-left-color: #007743;
}
.speech-footer { font-size: 1.2rem; color: #007743; margin-top: 2em; }
.speech-footer-2 { font-size: 1.2rem; color: #3c3c3c; margin-top: 2em; }

/* ---- お問い合わせフロー ---- */
.consultation-flow {
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: #2b7b5c;
  padding: 3em 1em;
}
.flow-title {
  background-color: #2b7b5c;
  color: white;
  font-size: 1.6rem;
  padding: 0.6em 1.5em;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1.5em;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.flow-step { font-size: 1.5rem; line-height: 2; margin: 1.5em 0; }
.flow-step .underlined { border-bottom: 2px solid #2b7b5c; display: inline-block; padding-bottom: 0.1em; }
.cta-button {
  display: inline-block;
  margin: 1em auto;
  padding: 0.7em 2em;
  border: 3px solid #2b7b5c;
  border-radius: 40px;
  color: #2b7b5c;
  font-size: 1.3rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.cta-button:hover { background-color: #2b7b5c; color: white; }
.flow-arrow {
  width: 0; height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-top: 30px solid #aad4c8;
  margin: 2em auto;
}
.flow-section {
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--green-main);
  background: #f9f7f1;
  padding: 2em;
}
.section-title{
  align-items: center;
  display: inline-block;
  background-color: var(--green-main);
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 1.5em;
  font-size: 1.4rem;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.notes-title {
  display: inline-block;
  background-color: var(--green-main);
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 30px;
  font-weight: bold;
  margin-bottom: 1.5em;
  font-size: 1.4rem;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.flow-steps { list-style: none; padding: 0; margin: 0 0 3em 0; }
.flow-steps li { position: relative; font-size: 1.2rem; margin-bottom: 2em; }
.flow-steps li::after {
  content: "▼"; display: block; margin-top: 0.5em; font-size: 1.5rem; color: #abd0bd;
}
.flow-steps li:last-child::after { display: none; }

.chuouyose { text-align: center; }

.notes {
  font-size: 0.9rem;
  color: var(--green-main);
  text-align: left;
  margin-top: 1em;
  line-height: 1.6;
  padding-left: 1em;
  display: inline-block;  /* 中央寄せされる箱にする */
  margin: 0 auto;         /* 親要素内で中央に配置 */
}
.notes li { list-style: none; margin-bottom: 0.5em; text-indent: -1em; padding-left: 1em; }

/* ---- デジタル活用講座 ---- */
.digital-section {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background-color: #fefcf5;
  padding: 2rem;
  color: #333;
}
.digital-container {
  border: 3px solid #228055;
  padding: 1em 1.5em;
  border-radius: 8px;
  max-width: 900px;
  margin: 3em auto;
  background: #f9f9f9;
  font-family: 'Noto Sans JP', sans-serif;
}
.digital-label {
  display: inline-block;
  padding: 0.3em 1em;
  border: 2px solid #228055;
  border-radius: 9999px;
  color: #228055;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.digital-h1 { font-size: 1.8rem; font-weight: normal; margin: 0 0 0.5rem; color: #228055; }
.digital-h2 { font-size: 2rem; font-weight: 300; margin: 0 0 2rem; line-height: 1.5; }
.digital-content { display: flex; flex-wrap: wrap; gap: 2rem; }
.digital-photo { flex: 1 1 40%; min-width: 280px; }
.digital-photo img { width: 100%; border: 2px solid #228055; border-radius: 10px; }
.digital-text { flex: 1 1 50%; font-size: 1rem; line-height: 2; }
.digital-highlight-box {
  background-color: #228055; color: #fff; display: inline-block;
  padding: 0.5em 1.2em; border-radius: 9999px; font-weight: bold; margin: 2rem 0 1rem;
}
.digital-info-table { line-height: 2.2; font-size: 1rem; }
.digital-info-table dt {
  float: left; clear: left; width: 6em; border-bottom: 1px dotted #228055; margin-right: 1em;
}
.digital-info-table dd { margin: 0 0 0.5em 7em; }
.digital-tools { display: flex; justify-content: start; gap: 1rem; margin-top: 2rem; }
.digital-tools img { width: 140px; border: 2px solid #228055; border-radius: 10px; }

@media (max-width: 600px) {
  .digital-text, .digital-photo { flex: 1 1 100%; }
}

/* ---- Layout helpers ---- */
.diagram img,
footer,
.site-footer,
.case-slider-container,
.digital-container {
  width: 95%;
  margin: 0 auto;
}

/* ---- Container ---- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .container { padding: 0 1rem; margin-bottom: 2rem; }
}

/* ---- Small screens fine-tune ---- */
@media (max-width: 600px) {
  body { font-size: 0.95rem; }
  .highlighted-heading { font-size: 1.2rem; }
  .slide-text h3 { font-size: 1.1rem; }
  .bubble { font-size: 1.1rem; padding: 0.8em 1.5em; }
  .flow-step { font-size: 1.1rem; }
}

/* ===== A11Y additions ===== */

/* --- Accessibility: external window hint --- */
a span[aria-hidden="true"] { font-size:.95em; opacity:.85; }


/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .hero .slide,
  .slider .slide,
  .case-slider-track,
  .slide { transition: none !important; animation: none !important; }
}


/* --- Buttons focus visibility --- */
.button:focus-visible,
.btn-example:focus-visible,
.cta-button:focus-visible { outline:3px solid; outline-offset:3px; }


/* --- Base font sizing --- */
html { font-size:100%; }
body { font-size:1rem; line-height:1.6; }

/* ボタン（緑系） */
.btn-green, .cta-button {
  background-color: #5ca178; /* #abd0bd → #5ca178 */
  color: #fff;
}

/* 1) 本文の標準色（薄すぎる本文色を濃く） */
body { color: #333; } /* もう少し濃くしたいなら #555 */

/* 2) サブテキスト系（実在要素に合わせる） */
.speech-footer,
.speech-footer-2,
.boxed-text li,
.notes li {  /* index.html の ul.notes など */
  color: #666; /* #999 → #666 で 4.5:1 以上を確保 */
}

/* 3) ボタン風リンク（実在クラス） */
.btn-example,
.btn-example-2,
.btn-2 {
  background-color: #5ca178; /* #abd0bd → #5ca178 に濃色化 */
  color: #fff;
}

/* 4) 「詳しく」系のテキストリンク（必要なら視認性アップ） */
.more-link {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 5) 画像など拡大時のあふれ防止（未設定なら） */
img { max-width: 100%; height: auto; }

/* 視覚非表示だがスクリーンリーダーとキーボードには可視 (sr-only-focusable) */
.menu-close {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.menu-close:focus,
.menu-close:active {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: .5rem 1rem;
  outline: 2px solid;
  outline-offset: 2px;
  background: #fff;
}

/* 位置と見た目はサイトに合わせて調整してください */
.hero {
  position: relative;
}

.hero-prev,
.hero-next,
.hero-pause {
  position: absolute;
  bottom: 1rem;
  padding: .5rem .75rem;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  left: 3.2rem;
}

/* ボタン幅に合わせて調整 */
.hero-pause {
  left: 5.4rem;
}

.hero-prev:focus-visible,
.hero-next:focus-visible,
.hero-pause:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* 旧 .question / .answer のスタイルを移行 */
.faq-list dt {
  font-weight: 600;
  margin: 1.25rem 0 .25rem;
}

.faq-list dd {
  margin: 0 0 1rem 0;
}

/* FAQや図版ラベル、ボタンなど白文字指定を黒に上書き */
.circle-label,
.btn-2,
.highlight-text {
  color: #fff !important;
  /* 白(#fff) → 黒(#000) */
}

.btn-example,
.btn-example-2 {
  color: #fff !important;
}

/* フッター内の文字色を明るめに */
footer {
  color: #fff;
  /* 白字にするのがもっとも確実 */
}

/* フッター内のリンクは下線で判別しやすく */
footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* サイト内検索を右寄せ */
.site-search {
  position: fixed;
    top: 100px;
    /* ヘッダー高さに応じて調整 */
    right: 20px;
    width: 260px;
    /* フォーム幅 */
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.75rem;
    z-index: 1000;
    /* スライドや他要素より前面に */
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

/* --- Case slide responsive layout fix --- */
.slide-content {
  display: flex;
  flex-wrap: wrap;
  /* 狭い時は折り返す */
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.slide-image {
  flex: 0 0 300px;
  /* 広い時は画像を固定幅 */
  max-width: 100%;
  /* 狭い時は縮む */
}

.slide-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.slide-text {
  flex: 1 1 400px;
  /* テキストは残り幅を取る */
  max-width: 100%;
  /* 親幅を超えない */
  min-width: 0;
  /* 強制的な横スクロールを防ぐ */
  word-wrap: break-word;
}

/* 狭い画面では縦並び */
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    align-items: center;
    text-align: left;
    /* 読みやすさを確保 */
  }

  .slide-image,
  .slide-text {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* --- Digital tools responsive fix --- */
.digital-tools {
  display: flex;
  flex-wrap: wrap;
  /* 折り返し可能にする */
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.digital-tools img {
  flex: 1 1 45%;
  /* 広い時は横に並ぶ（2枚で90%） */
  max-width: 45%;
  height: auto;
  border: 2px solid #228055;
  border-radius: 10px;
}

/* 狭い画面では縦並びに切り替え */
@media (max-width: 600px) {
  .digital-tools {
    flex-direction: column;
    align-items: center;
  }

  .digital-tools img {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* --- Digital main photo responsive fix --- */
.digital-photo {
  flex: 1 1 320px;
  /* 広い時は320px程度を目安に */
  max-width: 100%;
  /* 親幅からはみ出さない */
  min-width: 0;
  /* 強制的な横スクロールを防ぐ */
  box-sizing: border-box;
}

.digital-photo img {
  width: 100%;
  /* 親幅に合わせて縮む */
  height: auto;
  border: 2px solid #228055;
  border-radius: 10px;
}

/* スキップリンク */
.skip-link {
  position: fixed;
  /* 画面上部に固定 */
  top: -100%;
  /* 非表示時は画面外に退避 */
  left: 0;
  padding: .6rem 1rem;
  background: #000;
  color: #fff;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  /* フォーカス時に画面上に出す */
}

/* デフォルト非表示 */
.site-search {
  display: none;
  position: fixed;
  top: 100px;
  right: 20px;
  width: 260px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.75rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

/* ボタンで表示した時 */
.site-search.active {
  display: block;
}

.hero-prev,
.hero-next,
.hero-pause {
  position: absolute;
  top: 1rem;
  /* 左上に固定 */
  left: 1rem;
  padding: .5rem .75rem;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 4px;
}

/* ボタン同士を横並びに配置 */
.hero-next {
  left: 3.2rem;
}

.hero-pause {
  left: 5.4rem;
}

/* ボタンの親コンテナを作る */
.hero-controls {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: .5rem;
  z-index: 10;
}

/* ボタン共通 */
.hero-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hero-controls button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* PC用: ヘッダー右上に配置 */
#toggle-search {
  margin-left: 1rem;
}

@media (max-width: 768px) {

  /* スマホではヘッダーから消して、メニュー内のものだけ表示 */
  header>#toggle-search {
    display: none;
  }

  nav .nav-search {
    display: block;
    margin-top: 1rem;
  }

  nav .nav-search button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: none;
    border: none;
  }
}

.menu-toggle svg,
.hero-controls button svg {
  display: inline-block;
  vertical-align: middle;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-controls button {
  background: rgba(0, 0, 0, 0.6);
  /* 背景を半透明の黒にして白が映えるように */
  border: none;
  border-radius: 50%;
}

/* === Heroコントロール矢印を白く === */
.hero-controls button {
  color: #ffffff;
  /* テキストアイコン(< >)の色 */
}

.hero-controls button svg path {
  fill: #ffffff;
  /* SVGアイコンがある場合も白 */
  stroke: #ffffff;
}