/* =========================================================
   松本電工  ―  下層ページ共通スタイル
   ※ css/style.css（:root 変数・共通部品）を読み込んだ後に適用
   TOPのデザイントーン（ネイビー×オレンジ／角丸6-24px／
   ふわっと余白／reveal演出）をそのまま踏襲。
   ========================================================= */

/* ---------- ページヘッダー（下層ヒーロー） ---------- */
.page-hero{ position:relative; overflow:hidden; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.page-hero__inner{ max-width:var(--maxw); margin:0 auto; padding:54px 40px 56px; position:relative; z-index:2; }
.page-hero__deco{ position:absolute; left:0; top:20px; width:70%; height:300px; opacity:.55; pointer-events:none; z-index:1; }
.crumb{ display:flex; align-items:center; gap:9px; font-size:11.5px; letter-spacing:.06em; color:var(--muted-2); margin-bottom:22px; }
.crumb a{ color:var(--muted); text-decoration:none; transition:color .3s; }
.crumb a:hover{ color:var(--navy); }
.crumb span{ color:var(--muted-2); }
.page-hero__eyebrow{ font-family:'Cormorant Garamond',serif; font-style:italic; font-size:20px; letter-spacing:.16em; color:var(--blue); margin-bottom:4px; }
.page-hero__title{ font-size:34px; font-weight:500; letter-spacing:.1em; color:var(--navy); line-height:1.4; }
.page-hero__lead{ margin-top:18px; max-width:680px; font-size:14.5px; line-height:2.3; letter-spacing:.04em; color:var(--muted); }
.page-hero__mascot{ position:absolute; right:5%; bottom:-6px; width:128px; height:auto; z-index:2; pointer-events:none; animation:mdFloatY 4.6s ease-in-out infinite; }

/* ---------- セクション見出し（左寄せ） ---------- */
.sec-head{ margin-bottom:44px; }
.sec-head .eyebrow{ display:block; margin-bottom:12px; }
.sec-head__title{ font-size:25px; font-weight:500; letter-spacing:.08em; color:var(--navy); line-height:1.6; }
.sec-head__lead{ margin-top:16px; font-size:14px; line-height:2.2; color:var(--muted); letter-spacing:.04em; }
.narrow{ max-width:980px; margin-left:auto; margin-right:auto; }

/* =========================================================
   会社概要
   ========================================================= */
.greeting{ display:grid; grid-template-columns:1fr 1.4fr; gap:54px; align-items:center; margin-bottom:30px; }
.greeting__photo{ position:relative; border-radius:6px; overflow:hidden; box-shadow:0 40px 70px -45px rgba(0,48,114,.5); }
.greeting__photo img{ width:100%; height:100%; object-fit:cover; max-height:420px; }
.greeting__mascot{ position:absolute; left:-14px; bottom:-10px; width:84px; height:auto; filter:drop-shadow(0 10px 18px rgba(0,48,114,.2)); }
.greeting__body p{ font-size:14.5px; line-height:2.35; letter-spacing:.04em; color:var(--ink-2); margin-bottom:18px; }
.greeting__sign{ margin-top:24px; font-size:13px; color:var(--muted); letter-spacing:.06em; }
.greeting__sign b{ display:inline-block; margin-left:10px; font-size:18px; font-weight:500; color:var(--navy); letter-spacing:.1em; }

.profile{ border-top:1px solid var(--line-2); }
.profile__row{ display:grid; grid-template-columns:210px 1fr; border-bottom:1px solid var(--line-2); }
.profile__row dt{ padding:20px 24px; font-size:13px; font-weight:500; letter-spacing:.08em; color:var(--navy); background:var(--bg-soft); }
.profile__row dd{ margin:0; padding:20px 24px; font-size:13.5px; line-height:2; letter-spacing:.03em; color:var(--ink-2); }
.profile__row dd small{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

/* =========================================================
   スタッフ紹介
   ========================================================= */
.staff-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.staff-card{ background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; box-shadow:0 24px 50px -40px rgba(0,48,114,.35); transition:transform .35s var(--ease), box-shadow .35s; }
.staff-card:hover{ transform:translateY(-5px); box-shadow:0 34px 60px -40px rgba(0,48,114,.5); }
.staff-card__photo{ position:relative; aspect-ratio:1/1; background:linear-gradient(160deg,#EAF2FB,#D7E7F8); display:grid; place-items:center; }
.staff-card__photo img{ width:100%; height:100%; object-fit:cover; }
.staff-card__avatar{ width:108px; height:auto; opacity:.96; }
.staff-card__role{ position:absolute; left:14px; top:14px; display:inline-flex; align-items:center; height:26px; padding:0 13px; background:var(--navy); color:#fff; font-size:11px; letter-spacing:.08em; border-radius:999px; }
.staff-card__body{ padding:24px 24px 28px; }
.staff-card__name{ font-size:20px; font-weight:500; letter-spacing:.08em; color:var(--navy); }
.staff-card__name span{ font-size:13px; color:var(--muted); margin-left:8px; letter-spacing:.04em; }
.staff-card__meta{ margin-top:10px; display:flex; flex-wrap:wrap; gap:8px; }
.staff-card__meta span{ font-size:11.5px; letter-spacing:.04em; color:var(--blue-2); background:var(--bg-soft); border:1px solid var(--line-2); border-radius:999px; padding:4px 11px; }
.staff-card__rows{ margin:18px 0 16px; }
.staff-card__rows p{ font-size:12.5px; line-height:1.9; color:var(--muted); margin:0; }
.staff-card__rows p b{ color:var(--ink-2); font-weight:500; margin-right:6px; }
.quals{ border-top:1px dashed var(--line-2); padding-top:14px; }
.quals__label{ font-size:10.5px; letter-spacing:.18em; color:var(--blue); margin-bottom:9px; }
.quals__list{ display:flex; flex-wrap:wrap; gap:6px; }
.qual{ font-size:11px; letter-spacing:.02em; color:var(--ink-2); background:#fff; border:1px solid var(--blue-soft); border-radius:6px; padding:4px 9px; line-height:1.4; }

/* =========================================================
   プラン一覧 / サービス詳細
   ========================================================= */
.plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.plan-card{ display:block; text-decoration:none; background:#fff; border:1px solid var(--line); border-radius:16px; padding:30px 28px 26px; transition:transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.plan-card:hover{ transform:translateY(-5px); border-color:var(--blue-soft); box-shadow:0 30px 56px -40px rgba(0,48,114,.45); }
.plan-card__icon{ display:grid; place-items:center; width:66px; height:66px; border-radius:50%; background:var(--bg-soft); border:1px solid var(--line-2); margin-bottom:20px; }
.plan-card__icon img{ width:38px; height:38px; object-fit:contain; }
.plan-card__cat{ font-size:10.5px; letter-spacing:.16em; color:var(--blue); }
.plan-card__title{ margin:8px 0 10px; font-size:17px; font-weight:500; letter-spacing:.04em; color:var(--navy); line-height:1.6; }
.plan-card__desc{ font-size:13px; line-height:2; color:var(--muted); }
.plan-card__more{ margin-top:16px; display:inline-flex; align-items:center; gap:8px; font-size:12.5px; letter-spacing:.06em; color:var(--orange-d); }

/* =========================================================
   施工事例（一覧）
   ========================================================= */
.filter{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:40px; }
.filter__chip{ display:inline-flex; align-items:center; height:38px; padding:0 20px; border-radius:999px; border:1px solid var(--blue-soft); background:#fff; color:var(--navy); font-size:12.5px; letter-spacing:.06em; text-decoration:none; cursor:pointer; transition:background .3s, color .3s, transform .3s var(--ease); }
.filter__chip:hover{ transform:translateY(-2px); }
.filter__chip.is-active{ background:var(--navy); color:#fff; border-color:var(--navy); }
.works-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px 24px; }
.works-grid .work__thumb{ aspect-ratio:4/3; }
.works__pageinfo{ margin-top:48px; text-align:center; font-size:12.5px; color:var(--muted-2); letter-spacing:.06em; }

/* =========================================================
   フォーム（お問い合わせ / 来店予約）
   ========================================================= */
.form{ max-width:820px; margin:0 auto; }
.form__row{ display:grid; grid-template-columns:200px 1fr; gap:0; border-bottom:1px solid var(--line); align-items:start; }
.form__row:first-child{ border-top:1px solid var(--line); }
.form__label{ padding:24px 20px 24px 4px; font-size:13.5px; font-weight:500; letter-spacing:.04em; color:var(--navy); display:flex; align-items:center; gap:10px; }
.req{ font-size:10px; letter-spacing:.06em; color:#fff; background:var(--orange); border-radius:4px; padding:2px 7px; }
.opt{ font-size:10px; letter-spacing:.06em; color:var(--muted); background:var(--bg-soft); border:1px solid var(--line-2); border-radius:4px; padding:2px 7px; }
.form__field{ padding:18px 0 18px 0; }
.form__field input, .form__field select, .form__field textarea{
  width:100%; font-family:inherit; font-size:14px; color:var(--ink); background:#fff;
  border:1px solid var(--line-2); border-radius:10px; padding:13px 15px; transition:border-color .3s, box-shadow .3s;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(91,143,212,.14); }
.form__field textarea{ min-height:140px; resize:vertical; line-height:1.9; }
.form__field .hint{ margin-top:8px; font-size:11.5px; color:var(--muted-2); line-height:1.8; }
.form__field .half{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form__privacy{ margin:34px 0 30px; padding:24px 26px; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; font-size:12.5px; line-height:2.1; color:var(--muted); max-height:200px; overflow:auto; }
.form__check{ display:flex; align-items:center; justify-content:center; gap:10px; font-size:13.5px; color:var(--ink-2); margin-bottom:28px; }
.form__check input{ width:18px; height:18px; accent-color:var(--orange); }
.form__submit{ display:flex; justify-content:center; }
.btn-submit{ display:inline-flex; align-items:center; gap:14px; min-height:60px; padding:0 56px; border:none; border-radius:999px; background:var(--orange); color:#fff; font-family:inherit; font-size:15px; font-weight:500; letter-spacing:.1em; cursor:pointer; transition:transform .3s var(--ease), box-shadow .3s; }
.btn-submit:hover{ transform:translateY(-2px); box-shadow:0 16px 32px -14px rgba(248,102,0,.7); }

/* 連絡導線（フォーム上の電話CTA） */
.contact-rail{ display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:820px; margin:0 auto 48px; }
.contact-rail__card{ display:flex; align-items:center; gap:16px; padding:26px 28px; border-radius:16px; border:1px solid var(--line); background:#fff; text-decoration:none; transition:transform .3s var(--ease), box-shadow .3s; }
.contact-rail__card:hover{ transform:translateY(-3px); box-shadow:0 24px 46px -34px rgba(0,48,114,.5); }
.contact-rail__icon{ flex:0 0 auto; display:grid; place-items:center; width:54px; height:54px; border-radius:50%; background:var(--bg-soft); }
.contact-rail__sub{ display:block; font-size:11px; letter-spacing:.12em; color:var(--muted-2); }
.contact-rail__main{ display:block; font-size:22px; font-weight:700; color:var(--navy); letter-spacing:.02em; }
.contact-rail__note{ display:block; font-size:11px; color:var(--muted-2); margin-top:2px; }

/* =========================================================
   来店予約 ― 来店の流れ / アクセス
   ========================================================= */
.flow{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.flow__step{ position:relative; background:#fff; border:1px solid var(--line); border-radius:16px; padding:30px 22px; text-align:center; }
.flow__num{ font-family:'Cormorant Garamond',serif; font-style:italic; font-size:34px; color:var(--blue); line-height:1; }
.flow__step h4{ margin:12px 0 8px; font-size:15px; font-weight:500; letter-spacing:.06em; color:var(--navy); }
.flow__step p{ font-size:12.5px; line-height:1.9; color:var(--muted); margin:0; }
.flow__arrow{ position:absolute; right:-14px; top:50%; transform:translateY(-50%); z-index:2; color:var(--blue-soft); }

.access{ display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:stretch; }
.access__map{ position:relative; border-radius:14px; overflow:hidden; background:#E8F1FB; min-height:320px; border:1px solid #DCEBFB; }
.access__map svg{ position:absolute; inset:0; width:100%; height:100%; }
.access__pin{ position:absolute; left:50%; top:46%; transform:translate(-50%,-100%); text-align:center; }
.access__pin span{ display:block; margin-top:2px; font-size:11px; font-weight:500; color:var(--navy); background:#fff; padding:3px 10px; border-radius:6px; box-shadow:0 4px 14px rgba(0,48,114,.16); }
.access__info{ display:flex; flex-direction:column; justify-content:center; }
.access__info .a-name{ font-size:18px; font-weight:500; color:var(--navy); letter-spacing:.06em; margin-bottom:14px; }
.access__info dl{ margin:0; border-top:1px solid var(--line-2); }
.access__info dl > div{ display:grid; grid-template-columns:84px 1fr; padding:13px 0; border-bottom:1px solid var(--line-2); }
.access__info dt{ font-size:12px; letter-spacing:.1em; color:var(--muted-2); }
.access__info dd{ margin:0; font-size:13.5px; line-height:1.9; color:var(--ink-2); }

/* =========================================================
   お知らせ / 長期休暇の案内
   ========================================================= */
.holiday-card{ position:relative; overflow:hidden; background:linear-gradient(160deg,#00306f,#00245A 60%,#001B45); color:#fff; border-radius:24px; padding:52px 56px; box-shadow:0 40px 70px -45px rgba(0,48,114,.7); }
.holiday-card__tag{ display:inline-flex; align-items:center; gap:8px; font-size:11px; letter-spacing:.2em; color:var(--blue-soft); margin-bottom:16px; }
.holiday-card__title{ font-size:26px; font-weight:500; letter-spacing:.08em; line-height:1.5; margin-bottom:24px; }
.holiday-card__period{ display:inline-flex; flex-direction:column; gap:4px; background:rgba(255,255,255,.08); border:1px solid rgba(157,180,206,.4); border-radius:14px; padding:20px 28px; margin-bottom:24px; }
.holiday-card__period .lbl{ font-size:11px; letter-spacing:.16em; color:var(--muted-2); }
.holiday-card__period .val{ font-size:24px; font-weight:700; letter-spacing:.04em; }
.holiday-card__note{ font-size:13px; line-height:2.1; color:rgba(199,221,246,.9); }
.holiday-card__mascot{ position:absolute; right:36px; bottom:-4px; width:120px; height:auto; }

.news-list{ border-top:1px solid var(--line); }
.news-item{ display:grid; grid-template-columns:130px 110px 1fr; gap:20px; align-items:center; padding:22px 6px; border-bottom:1px solid var(--line); text-decoration:none; transition:background .3s; }
.news-item:hover{ background:var(--bg-soft); }
.news-item__date{ font-size:13px; color:var(--muted-2); letter-spacing:.06em; }
.news-item__label{ justify-self:start; font-size:11px; letter-spacing:.08em; padding:4px 12px; border-radius:999px; }
.label--info{ color:var(--blue-2); background:#EAF2FB; }
.label--holiday{ color:var(--orange-d); background:#FCEDE2; }
.label--works{ color:#3C8A6A; background:#E6F4EC; }
.news-item__text{ font-size:14px; line-height:1.7; color:var(--ink-2); letter-spacing:.02em; }

.holiday-table{ width:100%; border-collapse:collapse; }
.holiday-table th, .holiday-table td{ text-align:left; padding:16px 18px; border-bottom:1px solid var(--line); font-size:13.5px; }
.holiday-table th{ width:240px; color:var(--navy); font-weight:500; letter-spacing:.04em; background:var(--bg-soft); }
.holiday-table td{ color:var(--ink-2); }

/* =========================================================
   下層ページ用 レスポンシブ
   ========================================================= */
@media (max-width:900px){
  .page-hero__inner{ padding:36px 22px 40px; }
  .page-hero__title{ font-size:26px; }
  .page-hero__eyebrow{ font-size:17px; }
  .page-hero__mascot{ width:88px; right:3%; }
  .page-hero__lead{ font-size:13.5px; }

  .sec-head__title{ font-size:21px; }

  .greeting{ grid-template-columns:1fr; gap:26px; }
  .greeting__photo img{ max-height:320px; }
  .profile__row{ grid-template-columns:1fr; }
  .profile__row dt{ padding:14px 18px; }
  .profile__row dd{ padding:14px 18px; }

  .staff-grid{ grid-template-columns:1fr 1fr; gap:18px; }
  .staff-card__body{ padding:18px 18px 22px; }
  .staff-card__name{ font-size:18px; }

  .plan-grid{ grid-template-columns:1fr 1fr; gap:16px; }
  .plan-card{ padding:24px 20px; }

  .works-grid{ grid-template-columns:1fr 1fr; gap:18px; }

  .contact-rail{ grid-template-columns:1fr; gap:12px; }
  .form__row{ grid-template-columns:1fr; }
  .form__label{ padding:18px 0 6px; }
  .form__field{ padding:0 0 18px; }
  .form__field .half{ grid-template-columns:1fr; }

  .flow{ grid-template-columns:1fr 1fr; gap:14px; }
  .flow__arrow{ display:none; }
  .access{ grid-template-columns:1fr; gap:20px; }
  .access__map{ min-height:240px; }

  .holiday-card{ padding:36px 26px; }
  .holiday-card__title{ font-size:21px; }
  .holiday-card__mascot{ width:84px; right:14px; opacity:.9; }
  .news-item{ grid-template-columns:1fr; gap:6px; padding:18px 6px; }
  .news-item__label{ margin-top:2px; }
  .holiday-table th{ width:130px; }
}

@media (max-width:560px){
  .staff-grid{ grid-template-columns:1fr; }
  .plan-grid{ grid-template-columns:1fr; }
  .works-grid{ grid-template-columns:1fr 1fr; }
  .flow{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  .page-hero__mascot, .greeting__mascot{ animation:none; }
}
