/* ===========================
   サブページ共通スタイル
   =========================== */

/* --- サブヒーロー（会社情報・サービス・採用など）--- */
/* 使い方例: <section class="hero-sub"> ... </section> */
/* ===========================
   サブページ用ヒーロー
   =========================== */
.hero-sub {
  padding: 72px 0 64px;
  background: linear-gradient(135deg, #256856, #3c8f7c); /* 濃いめグリーン */
  color: #fff;
  text-align: center;
}

.hero-sub .hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.hero-sub .hero-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-sub .hero-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto;
}

/* スマホ対応 */
@media (max-width: 720px) {
  .hero-sub {
    padding: 56px 0 52px;
  }
  .hero-sub .hero-title {
    font-size: 24px;
  }
  .hero-sub .hero-lead {
    font-size: 13px;
  }
}


/* --- セクションのバリエーション（既存 .section を補完）--- */
/* ちょっと縦幅を狭くしたいときに併用 */
.section-narrow {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* --- コンテンツ幅制限 --- */
/* より細めのカラムを作りたいとき */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- テキストブロック --- */
/* まとまった文章に使う汎用ブロック */
.text-block {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.text-block + .text-block {
  margin-top: 1.6em;
}

.text-block p {
  margin: 0 0 1em;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.text-block strong {
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* --- カードリスト（汎用）--- */
/* 汎用カードグリッド: サービス一覧・職種一覧などに */
.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: #fff;
  border: 1px solid #e8eeeb;
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.card .card-tag {
  font-size: 12px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.card p {
  font-size: 13px;
  color: #555;
  margin: 0;
}

/* --- シンプルテーブル（会社概要など）--- */
.table-simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-simple th,
.table-simple td {
  padding: 10px 8px;
  border-bottom: 1px solid #e5ebe8;
  text-align: left;
  vertical-align: top;
}

.table-simple th {
  width: 160px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* --- サービス大枠（MVV調）--- */
.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service-feature {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 18px;
  border: 1px solid #e4ebe7;
  background: linear-gradient(135deg, #ffffff, #f6fbf8);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}

.service-feature::after {
  content: "";
  position: absolute;
  inset: 55% 55% -10% -10%;
  background: radial-gradient(circle at 30% 50%, rgba(21, 128, 103, 0.08), transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  font-size: 12px;
  margin-bottom: 16px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  color: #4a4a4a;
}

.breadcrumb a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: #999;
}

.breadcrumb-wrapper {
  padding-top: 12px;
}

.service-feature::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 60%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(60, 143, 124, 0.14), transparent 65%);
  pointer-events: none;
}

.service-feature-header {
  margin-bottom: 12px;
  text-align: center;
}

.service-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f3f34;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8e7dc, #a6d8c7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
}

.service-feature-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.service-text {
  font-size: 18px;
  color: #444;
  line-height: 1.9;
  text-align: center;
  font-weight: 600;
}

.service-image {
  margin: 8px auto 12px;
  max-width: 520px;
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.service-list {
  list-style: disc;
  padding-left: 18px;
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
  color: #444;
  max-width: 560px;
  text-align: left;
}

.service-list li {
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .service-feature {
    padding: 20px 18px 18px;
  }
  .service-feature-list {
    gap: 20px;
  }
  .service-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 5px 10px;
  }
  .service-feature-title {
    font-size: 20px;
  }
  .service-text {
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
    font-weight: 600;
  }
  .service-list {
    padding-left: 14px;
    gap: 6px;
    max-width: 100%;
  }
  .service-list li {
    font-size: 13px;
  }
}

/* --- アクセスマップ --- */
.map-embed {
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5ebe8;
  box-shadow: var(--shadow-card);
  background: #f9fcfa;
  height: 100%;
}

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

@media (max-width: 720px) {
  .map-embed iframe {
    height: 320px;
  }
}

/* 会社概要 + マップ横並び */
.company-overview {
  align-items: stretch;
  gap: 32px;
}

.company-overview .map-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.company-overview .map-note {
  margin: 0 0 8px;
  color: #555;
  font-size: 13px;
}

@media (max-width: 980px) {
  .company-overview {
    grid-template-columns: 1fr;
  }
  .map-embed {
    height: auto;
  }
}

/* --- 2カラムレイアウト（テキスト＋画像など） --- */
/* 使い方例:
   <div class="two-col">
     <div class="col-text">...</div>
     <div class="col-image">...</div>
   </div>
*/
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: flex-start;
}

.two-col.reverse {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.two-col .col-text {
  font-size: 15px;
  color: #444;
}

.two-col .col-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-soft);
}

/* ===========================
   修理事例カード
   =========================== */
.case-card {
  text-align: left;
}

.case-images {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin-bottom: 16px;
}

.case-image {
  position: relative;
  width: 48%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.case-image img {
  width: 100%;
  display: block;
}

.case-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.case-label.after {
  background: var(--color-primary-dark);
}

.case-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

/* モバイル対応 */
@media (max-width: 720px) {
  .case-images {
    flex-direction: column;
  }
  .case-image {
    width: 100%;
  }
}


/* CTAセクション（どのページでも共通） */
/* 使い方例:
   <section class="section section-cta">...</section>
*/
.section-cta {
  background: var(--color-primary-light);
  text-align: center;

  /* 内側余白 */
  padding: 80px 0 80px; /* ← 下方向を増やす */

  border-top: 1px solid #e0ece7;
  position: relative; /* マージン相殺を防ぐ */
  z-index: 1;
}



/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 960px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-sub {
    padding: 56px 0 52px;
  }
  .hero-sub .hero-title {
    font-size: 24px;
  }
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   修理事例（縦レイアウト）
   =========================== */
.case-detail {
  background: #fff;
  border: 1px solid #e6ece8;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 56px;
}

.case-title {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--color-primary-dark);
}

.case-tag {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.case-images {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin-bottom: 20px;
}

.case-image {
  position: relative;
  width: 48%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.case-image img {
  width: 100%;
  display: block;
}

.case-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}

.case-label.after {
  background: var(--color-primary-dark);
}

.case-text {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

/* ===========================
   採用ページ
   =========================== */
.recruit-card {
  text-align: left;
  padding: 28px 24px 24px;
}

.recruit-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
}

.recruit-list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  color: #555;
}

.recruit-list li + li {
  margin-top: 4px;
}

.recruit-contact {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  font-size: 14px;
}

.recruit-contact li {
  margin-bottom: 4px;
}

/* ===========================
   お問い合わせフォーム
   =========================== */

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e4ebe7;
  box-shadow: var(--shadow-card);
  padding: 32px 24px 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 13px;
}

.required {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: #fff;
  background: var(--color-primary-dark);
  padding: 1px 6px;
  border-radius: 999px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  border-radius: 8px;
  border: 1px solid #d9e5df;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #f9fbfa;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(60, 143, 124, 0.16);
  background: #fff;
}

.form-note {
  font-size: 12px;
  color: var(--color-muted);
  margin: 4px 0 0;
}

.form-error {
  font-size: 12px;
  color: #c0392b;
  margin: 0;
}

.form-actions {
  margin-top: 24px;
  text-align: center;
}

/* 成功メッセージ */
.form-alert {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

.form-alert-success {
  background: #ecf9f2;
  border: 1px solid #c6ebd8;
  color: #256856;
}

/* スマホ対応 */
@media (max-width: 720px) {
  .contact-form {
    padding: 24px 16px 20px;
  }

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

/* モバイル対応 */
@media (max-width: 720px) {
  .case-images {
    flex-direction: column;
  }
  .case-image {
    width: 100%;
  }
}

/* ===========================
   修理事例アコーディオン
   =========================== */

.cases-accordion {
  border: 1px solid #e0e6e3;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #fff;
  overflow: hidden;
}

.cases-accordion-header {
  width: 100%;
  text-align: left;
  background: #f7f9f8;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cases-accordion-header:hover {
  background: #eef5f3;
}

.cases-accordion-body {
  padding: 16px 18px 20px;
}

/* アコーディオン内の事例間の余白 */
.cases-accordion-body .case-detail + .case-detail {
  margin-top: 24px;
}

/* ヘッダー部分（クリックできそうに） */
.cases-accordion-header {
  width: 100%;
  text-align: left;
  background: #f7f9f8;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.2s ease;
}

/* 右側に + / - アイコンをつける */
.cases-accordion-header::after {
  content: "＋";
  font-size: 16px;
  color: var(--color-primary-dark);
}

/* 開いている時は - に */
.cases-accordion.is-open .cases-accordion-header::after {
  content: "－";
}

.cases-accordion-header:hover {
  background: #eef5f3;
}

/* ボディはデフォルト非表示 */
.cases-accordion-body {
  display: none;
  padding: 16px 18px 20px;
}

/* 親に is-open がついたときだけ表示 */
.cases-accordion.is-open .cases-accordion-body {
  display: block;
}

/* アコーディオン内の事例間の余白 */
.cases-accordion-body .case-detail + .case-detail {
  margin-top: 24px;
}
