/* =========================
   MDA 固定ページスタイル
   ========================= */
.mda-page {
  font-family: -apple-system, BlinkMacSystemFont, "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #243138;
  line-height: 1.8;
}

/* ヒーロー */
.mda-hero {
  background: radial-gradient(circle at 20% 0%, #009b5a 0, #006341 40%, #003824 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.mda-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.mda-hero__inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mda-hero__label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.mda-hero__title {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.mda-hero__lead {
  font-size: 0.98rem;
  max-width: 40rem;
  margin: 0;
  opacity: 0.92;
}

/* セクション共通 */
.mda-section {
  padding: 2.5rem 1.5rem;
  background-color: #f5f7f8;
}

.mda-section:nth-of-type(odd) {
  background-color: #ffffff;
}

.mda-section__title {
  position: relative;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding-left: 0.9rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #12332a;
}

.mda-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 1.4em;
  border-radius: 999px;
  background: linear-gradient(180deg, #009b5a, #c9a063);
}

/* カード */
.mda-card {
  max-width: 960px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #dde3e7;
}

/* テキスト */
.mda-text {
  margin: 0 0 1.25rem;
}

/* 箇条書き */
.mda-list {
  margin: 10px;
  padding-left: 1.3rem;
  list-style: none;
}

.mda-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.mda-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #009b5a, #c9a063);
  transform: translateY(-50%);
}

/* 代表メッセージ */
.mda-message {
  border-left: 4px solid #009b5a;
  position: relative;
}

.mda-message::before {
  content: "Message";
  position: absolute;
  right: 1.75rem;
  top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aa6b2;
}

.mda-message p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.mda-message__lead {
  font-weight: 600;
  color: #12332a;
  border-bottom: 1px solid #e3e8ec;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}

.mda-message__sign {
  text-align: right;
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-weight: 500;
  color: #4a5b63;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .mda-hero {
    padding: 2.5rem 1.25rem;
  }

  .mda-card {
    padding: 1.4rem 1.25rem 1.6rem;
  }

  .mda-message::before {
    right: 1.25rem;
  }
}

/* =========================
   会社概要用レイアウト
   ========================= */

.mda-company {
  position: relative;
}

/* 定義リスト（会社概要） */
.mda-definition {
  margin: 0;
  padding: 0;
}

.mda-definition__row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  column-gap: 1.75rem;
  row-gap: 0.4rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e3e8ec;
}

.mda-definition__row:first-of-type {
  border-top: 1px solid #e3e8ec;
}

.mda-definition__term {
  font-weight: 600;
  font-size: 0.95rem;
  color: #12332a;
  padding-top: 0.2rem;
}

.mda-definition__desc {
  margin: 0;
  font-size: 0.95rem;
}

/* 事業内容リストを少しタイトに */
.mda-list--compact {
  margin: 0;
  padding-left: 1rem;
}

.mda-list--compact li {
  margin-bottom: 0.2rem;
  padding-left: 0.9rem;
}

/* リンクスタイル（メール用） */
.mda-link {
  color: #006341;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 99, 65, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mda-link:hover,
.mda-link:focus {
  color: #00412c;
  border-bottom-color: rgba(0, 65, 44, 0.6);
}

/* 注釈 */
.mda-company__note {
  max-width: 960px;
  margin: 0.75rem auto 0;
  font-size: 0.8rem;
  color: #7b868d;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .mda-definition__row {
    grid-template-columns: 1fr;
    row-gap: 0.25rem;
  }

  .mda-definition__term {
    padding-top: 0;
  }
}

/* =========================
   事業内容（サービス）用
   ========================= */

/* イントロカード：下にサービス一覧が続くので余白だけ調整 */
.mda-services-intro {
  margin-bottom: 1.75rem;
}

/* サービス一覧レイアウト（2カラム） */
.mda-services {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

/* グリッド内のカードはカラムいっぱいに広げる */
.mda-services .mda-card {
  max-width: none;
  width: 100%;
  margin: 0;
  float: none;
  box-sizing: border-box;
}

/* 個別サービスカード */
.mda-service {
  position: relative;
  padding-top: 1.5rem;
}

/* タイトル周り（headerタグは使わずdiv.mda-service__head） */
.mda-service__head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}

.mda-service__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a989f;
}

.mda-service__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #12332a;
  margin: 0;
}

/* サブラベル類 */
.mda-service__tag {
  display: inline-block;
  margin-top: 0.25rem;
  margin-bottom: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(201, 160, 99, 0.7);
  color: #7a5a28;
  background: linear-gradient(135deg, #fffaf1, #fffdf8);
}

.mda-service__category {
  font-size: 0.85rem;
  font-weight: 500;
  color: #006341;
  margin: 0 0 0.4rem;
}

/* 本文 */
.mda-service__body p {
  font-size: 0.9rem;
  margin: 0 0 0.7rem;
}

.mda-service__body p:last-child {
  margin-bottom: 0;
}

/* カードのホバー感（PCのみ軽く） */
@media (hover: hover) and (pointer: fine) {
  .mda-service {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .mda-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    border-color: #c9d3da;
  }
}

/* レスポンシブ（SPは1カラム） */
@media (max-width: 767px) {
  .mda-services {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mda-service {
    padding-top: 1.25rem;
  }
}


/* =========================
   MDA Contact Form
   ========================= */

.mda-contact-card {
  padding: 2rem 2rem 2.5rem;
}

.mda-contact-form .mda-form-row {
  margin-bottom: 1.2rem;
}

.mda-contact-form label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #12332a;
  display: block;
  margin-bottom: 0.4rem;
}

.mda-contact-form input[type="text"],
.mda-contact-form input[type="email"],
.mda-contact-form input[type="tel"],
.mda-contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #cdd6db;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mda-contact-form input:focus,
.mda-contact-form textarea:focus {
  border-color: #009b5a;
  box-shadow: 0 0 0 3px rgba(0, 155, 90, 0.15);
  outline: none;
}

/* テキストエリア */
.mda-contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* 送信ボタン */
.mda-contact-form .mda-form-submit input[type="submit"] {
  display: inline-block;
  background: linear-gradient(135deg, #009b5a, #006341);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.mda-contact-form .mda-form-submit input[type="submit"]:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* スマホ調整 */
@media (max-width: 767px) {
  .mda-contact-card {
    padding: 1.4rem 1rem 2rem;
  }
}

/* =========================
   MDA Photo Row (3枚ギャラリー)
   ========================= */

/* ========== 3枚ギャラリー レイアウト ========== */

.mda-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.mda-photo-item {
  position: relative;
}

/* 内側ラッパ（画像＋キャプション） */
.mda-photo-inner {
  position: relative;
  padding-bottom: 2.2rem; /* キャプションの飛び出し分の余白 */
}

/* 画像デザイン */
.mda-photo-inner img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border: 1px solid #e2e7ea;
}

/* ========== キャプション（画像に重ねて下側へ飛び出す） ========== */
.mda-photo-caption {
  position: absolute;
  left: 50%;
  bottom: -1.1rem; /* ← ここで飛び出し具合を調整 */
  transform: translateX(-50%);

  background: #ffffff;
  padding: 0.65rem 0.9rem;
  width: calc(100% - 1.6rem);

  border-radius: 10px;
  border: 1px solid #e2e7ea;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);

  font-size: 0.88rem;
  line-height: 1.5;
  color: #12332a;
  text-align: center;
}

@media (max-width: 767px) {
  .mda-photo-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}
