/* =========================
   index.css（TOP）
   ========================= */

/* =========================
   HERO: 画像スライダー背景 + 暗幕 + ガラスカード
   ※ common.css の hero-slider 設計に合わせて“上書きしない”版
   ========================= */

/* hero自体に余白を持たせない（←スマホの巨大余白の原因を根絶） */
.hero{
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

/* 暗幕：必要なら使う（HTMLに .hero-overlay がある場合だけ効く） */
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1;
}

/* hero内のコンテンツ（カードなど） */
.hero .wrap{
  position: relative;
  z-index: 2;
}

/* ここは common.css で position:relative 済みだが保険 */
.hero-grid{
  position: relative;
  z-index: 2;
}

/* ガラスカード（使ってる場合だけ） */
.hero-card{
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 18px 45px rgba(0,0,0,.20);
  padding:18px;

  transform:translateY(10px);
  opacity:0;
}

.hero-card.is-inview{
  opacity:1;
  transform:translateY(0);
  transition:opacity .6s ease, transform .6s ease;
}

/* hero内 CTAを少し強化 */
.hero .cta{
  border-radius:12px;
  font-weight:700;
  letter-spacing:.02em;
  padding:12px 14px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hero .cta:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  filter:brightness(1.02);
}

/* ---- reveal animation（スクロールで出す用） ---- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease, transform .7s ease;
}

.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ---- section title ---- */
.section-title{
  font-size:28px;
  margin:0 0 18px;
}
.section-title.center{ text-align:center; }

/* ---- Catch ---- */
.catch{
  background:#fff;
  padding:56px 0;
}
.catch-lead{
  font-size:clamp(28px,3.2vw,46px);
  font-weight:700;
  letter-spacing:.02em;
  margin:0 0 14px;
}
.catch-sub{
  max-width:720px;
  color:rgba(0,0,0,.68);
  margin:0;
}

/* ---- Greeting ---- */
.greeting{
  background:#f7f7f7;
  padding:56px 0;
}
.greeting-card{
  max-width:920px;
  margin:0 auto;
  padding:40px 44px;
}
.greeting-body p{ line-height:1.9; }
.lead{
  font-size:18px;
  font-weight:700;
  margin-bottom:18px;
}

/* =========================
   代表あいさつ：署名ブロック整理（A案 / “統一感”最優先）
   ・右下の情報は「このブロック内だけ」で完結させる
   ・ロゴ＋会社名＋役職 → 署名（筆文字） の順で縦積み
   ・どんなHTMLでも破綻しにくいように強めに指定
   ========================= */

/* 署名全体：縦積み・右寄せで安定 */
.greeting-sign{
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e9eef5;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* 上段：ロゴ＋テキスト（右下にまとまる） */
.greeting-sign .sign-meta{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

/* ロゴ */
.greeting-sign .sign-logo{
  height: 22px;
  width: auto;
  display: block;
  opacity: .92;
}

/* 会社名・役職：同じルールで統一 */
.greeting-sign .sign-company,
.greeting-sign .sign-role{
  letter-spacing: .02em;
  line-height: 1.35;
  text-align: right;
}

/* 「株式会社協信」 */
.greeting-sign .sign-company{
  font-weight: 700;
  font-size: 14px;
  color: rgba(0,0,0,.78);
}

/* 「代表取締役」 */
.greeting-sign .sign-role{
  font-weight: 700;
  font-size: 14px;
  color: rgba(0,0,0,.78);
}

/* 筆文字署名（画像） */
.greeting-sign .sign-name{
  height: 46px;          /* 44〜56で調整OK */
  width: auto;
  display: block;
  filter: contrast(1.05);
}

/* もし署名ブロック内に「会社名/役職」が別に残ってても“同じ見た目”に寄せる */
.greeting-sign .sign-name + .sign-company,
.greeting-sign .sign-name + .sign-role{
  margin-top: 4px;
  text-align: right;
}

/* スマホ：少しだけ小さく */
@media (max-width: 768px){
  .greeting-sign{
    gap: 8px;
  }
  .greeting-sign .sign-name{
    height: 44px;
  }
}

/* ---- Services（TOPのご相談メニュー） ---- */
.services{
  background: transparent;
  padding:56px 0 70px;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}

.service-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:28px;
  background:#fff;
  border-radius:28px;
  box-shadow:0 12px 32px rgba(0,0,0,.06);
  text-decoration:none;
  color:inherit;
  min-width:0;
  transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(0,0,0,.08);
}

.service-title{
  margin:0;
  text-align:center;
  font-size:22px;
  font-weight:800;
  padding:12px 14px;
  border-radius:14px;
  background:#eef5ff;
}

.service-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:center;
  min-width:0;
}

.service-thumb{
  width:100%;
  aspect-ratio:4 / 3;
  border-radius:18px;
  overflow:hidden;
}
.service-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.service-body p{
  margin:0;
  line-height:1.9;
  color:rgba(0,0,0,.65);
}

/* ボタン */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  border:1px solid transparent;
  transition:transform .15s ease;
}
.btn.primary{
  background:linear-gradient(135deg,var(--brand),#6ea6ff);
  color:#fff;
  box-shadow:0 10px 22px rgba(59,110,198,.18);
}
.btn.ghost{
  background:#fff;
  color:#2b2f33;
  border-color:#e6ecff;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

/* ---- 本町マップ：簡易モジュール（必要なら） ---- */
.map-promo-sec{ padding:10px 0 30px; }

.map-promo{
  display:flex;
  gap:22px;
  align-items:center;
  background:#fff;
  border:1px solid #eef2fb;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.05);
  padding:18px 20px;
}

.map-thumb{
  flex:0 0 170px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e7eefc;
  background:#f8fafc;
}
.map-thumb img{
  width:100%;
  height:120px;
  object-fit:cover;
}

.map-body{ flex:1; min-width:0; }

.map-title{
  margin:0 0 6px;
  font-size:20px;
  letter-spacing:.02em;
}
.map-desc{
  margin:0 0 12px;
  font-size:14px;
  color:rgba(0,0,0,.72);
}
.map-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.map-meta{
  font-size:12px;
  color:rgba(0,0,0,.55);
  margin-left:4px;
}

/* responsive */
@media(max-width:860px){
  .service-grid{ grid-template-columns:1fr; }
  .service-row{ grid-template-columns:1fr; }
  .btn{ width:100%; }
}

@media(max-width:900px){
  .map-promo{
    flex-direction:column;
    align-items:stretch;
  }
  .map-thumb{
    flex:0 0 auto;
    width:100%;
  }
  .map-thumb img{ height:160px; }
}

/* =========================
   本町おさんぽマップ（ベース：Access風）
   ========================= */
.mapsec{
  padding: 56px 0 90px;
}

.map-card{
  background:#fff;
  border-radius:18px;
  box-shadow:0 16px 40px rgba(0,0,0,.05);
  border:1px solid #eef2fb;
  padding: 34px;
}

.map-grid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items:center;
}

.map-thumb{
  display:block;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e7eefc;
  background:#f8fafc;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  min-height: 160px;
}

.map-thumb__placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  padding:18px;
  color:#2b2f33;
  font-weight:700;
  font-size:14px;
}

.map-info{
  min-width:0;
}

.map-desc{
  margin:0 0 16px;
  font-size:14px;
  line-height:1.9;
  color:rgba(0,0,0,.72);
}

.map-actions{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:18px;
}

.map-meta{
  font-size:12px;
  color:rgba(0,0,0,.55);
  margin-left:4px;
}

/* スマホ：縦積み */
@media (max-width: 900px){
  .map-card{ padding:22px; }
  .map-grid{
    grid-template-columns: 1fr;
    gap:18px;
  }
  .btn-lg{ width:100%; }
}

/* =========================
   本町マップ：余白とボタン強化
   ========================= */
.mapsec{
  padding: 56px 0 90px;
}

.map-card{
  padding: 34px;
}

.map-grid{
  gap: 32px;
}

.map-actions{
  margin-top: 18px;
  gap: 14px;
}

.btn-lg{
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  min-height: 48px;
}

/* =========================
   Modal（ふわっと表示）
   ========================= */
.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal__panel{
  position: relative;
  width: min(1100px, 92vw);
  height: min(78vh, 820px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  overflow: hidden;

  transform: translateY(10px);
  transition: transform .22s ease;
}

.modal.is-open .modal__panel{
  transform: translateY(0);
}

.modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  font-size: 22px;
  cursor: pointer;
}

.modal__body{
  width: 100%;
  height: 100%;
}

.modal__frame{
  width: 100%;
  height: 100%;
  border: 0;
}

/* スマホ最適化 */
@media (max-width: 900px){
  .map-card{ padding: 22px; }
  .btn-lg{ width: 100%; }
  .modal__panel{ height: 84vh; }
}

/* 本町マップ タイトル中央 */
#honmachi-map .sec{
  text-align: center;
  margin-bottom: 32px;
}

#honmachi-map{
  padding-top: 80px;
}

.map-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
  border-radius:18px;
  overflow:hidden;
  padding:20px;
  min-height: 220px;
}

.map-thumb img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
   TOP：お知らせ（5件）
   ========================= */
.news-section{
  background: transparent;
  padding: 80px 0;
}

.news-more{
  text-align:center;
  margin-top:18px;
}
.news-card{
  background:#fff;
  border-radius:24px;
  padding:48px 56px;
  box-shadow:0 16px 40px rgba(0,0,0,.06);
  max-width: 960px;
  margin: 0 auto;
}

.news-list{
  list-style:none;
  margin:0;
  padding:0;
  background:transparent;
}

.news-list li{
  display:flex;
  align-items:center;
  gap:22px;
  padding:18px 0;
  border-bottom:1px solid #e8efff;
}
.news-list li:last-child{ border-bottom:none; }

.news-date{
  min-width:120px;
  color:#6b7280;
  font-size:14px;
}

.news-link{
  color:#111;
  text-decoration:none;
  line-height:1.7;
}
.news-link:hover{ text-decoration:underline; }

.news-title {
  font-size: 16px;
  color: #333;
}

.new-badge{
  background:#3b6fd8;
  color:#fff;
  font-size:12px;
  padding:2px 8px;
  border-radius:10px;
  margin-left:10px;
}

@media (max-width: 900px){
  .news-card{ padding: 22px; }
  .news-list li{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ✅ index.cssでヘッダーを触らない（TOPだけズレる原因なので削除） */
/* .menu{
  margin:0 auto !important;
}
header .menu{ margin:0 !important; } */