/* =========================================================================
   まち×てく 第2回（宮代町・杉戸町）LP  ※仮組み
   - 画像はすべて仮。web/asset-list.md に沿って差し替え。
   - ブレイクポイント: 768px（PC / SP）

   配色
   - ベース（背景の黄色）: #fbca54
   - オレンジ            : #eb6700
   - ブルー              : #4096d3
   - グリーン            : #44a35d
   - 本文テキスト        : #3f352c
   ========================================================================= */

/* ===== 共通 ===== */
img {
  display: block;
  width: 100%;
}

html {
  font-size: 20px;
  /* デザイン元データは源柔ゴシック。Web用は丸ゴシック系のシステムフォントで代替。 */
  font-family: "ヒラギノ丸ゴ ProN", "Hiragino Maru Gothic ProN",
    "Hiragino Sans", "Meiryo", sans-serif;
}

body {
  color: #3f352c;
  line-height: 1.9;
  background-color: #ffffff; /* フッター白の下に地色が出ないように。ページ本体は .content が黄色 */
}

.pc_only {
  display: block;
}

.sp_only {
  display: none;
}

/* ===== レイアウト土台 ===== */
.content {
  width: 100%;
  background-color: #fbca54;
  overflow-x: clip; /* 装飾モチーフのはみ出しで横スクロールが出ないように */
}

.content_inner {
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

.main_visual {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* メインビジュアル左上「もっとずっとプロジェクト」ロゴのリンク領域 */
.mottozutto_link {
  display: block;
  position: absolute;
  top: 2%;
  left: 2%;
  width: 17%;
  height: 22%;
}

.mottozutto_link span {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-indent: -9999px;
}

.mottozutto_link:hover {
  opacity: 0.85;
}

.main_content {
  width: 100%;
  padding: 0 40px;
}

/* ===== イントロ ===== */
.sec_intro {
  padding: 34px 0 56px; /* メインビジュアル〜キャッチの隙間は元データ準拠 */
  text-align: center;
}

.sec_intro_catch {
  max-width: 760px;
  margin: 0 auto;
}

.sec_intro_lead {
  margin-top: 32px;
  font-size: 1rem;
  font-weight: 600;
  color: #3f352c;
}

.sec_intro_recruit {
  max-width: 780px;
  margin: 60px auto 0;
}

.sec_intro_question {
  max-width: 680px;
  margin: 68px auto 0;
}

.sec_intro_map {
  max-width: 620px;
  margin: 32px auto 0;
}

/* ===== まち紹介（宮代町 / 杉戸町 共通） ===== */
/* 黄色地の上に置く白い角丸ブロック（2か所） */
.town {
  position: relative;
  max-width: 1280px;
  margin: 64px auto 0;
  padding-bottom: 48px;
  background-color: #ffffff;
  border-radius: 24px;
}

.town_hero {
  position: relative;
  width: 100%;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.town_hero figcaption {
  position: absolute;
  left: 0;
  bottom: 18px;
  padding: 6px 20px;
  background-color: #eb6700; /* まちごとのアクセント色（宮代町＝オレンジ） */
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.town--sugito .town_hero figcaption {
  background-color: #44a35d; /* 杉戸町＝グリーン（要確認） */
}

.town_head {
  max-width: 460px;
  margin: 30px auto 0;
}

.town_lead {
  margin-top: 26px;
  padding: 0 50px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.town_spots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 44px;
  margin: 52px 0 0;
  padding: 0 50px;
}

.town_spots li {
  list-style: none;
}

.town_spots h3 {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: bold;
}

/* 見出しを画像タイトルにした場合（宮代町など）。対応する写真に対して中央寄せ */
.town_spots h3 img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30px; /* 列幅に収まらない長いタイトルは max-width 側で等比縮小 */
  margin-left: auto;
  margin-right: auto;
}

.town_spots p {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.8;
  text-align: center;
  color: #3f352c;
}

.town_more {
  margin-top: 44px;
  text-align: center;
  font-size: 0.9rem;
}

.town_more img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 26px;
}

.town_btn {
  display: block;
  padding: 0 50px;
  margin: 18px 0 0;
}

.town_btn:hover {
  opacity: 0.85;
}

/* 見出しテキストの色（画像タイトル未提供のまち＝現状は杉戸町） */
.town--miyashiro .town_spots h3,
.town--sugito .town_spots h3 {
  color: #44a35d;
}

/* ===== フッター（背景白・全幅） ===== */
.sec_footer {
  margin-top: 96px;
  padding: 52px 40px 84px;
  text-align: center;
  background-color: #ffffff;
}

.sec_footer_inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sec_footer_label {
  display: inline-block;
  padding: 8px 26px;
  background-color: #3f352c;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-indent: 0.18em; /* 字間の右アキを相殺して中央に揃える */
  line-height: 1.5;
}

.sec_footer_org {
  margin-top: 18px;
  line-height: 1.35;
}

.sec_footer_org_main {
  display: block;
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
}

.sec_footer_org_sub {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: #a99b88;
}

.sec_footer_tel {
  margin-top: 12px;
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 0.03em;
}

.sec_footer_tel a {
  color: inherit;
  text-decoration: none;
  pointer-events: none; /* PCでは発信リンクを無効化（SPのみ有効） */
}

.sec_footer_logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 26px;
  max-width: 1100px;
  margin: 34px auto 0;
}

.sec_footer_logos a {
  display: block;
}

.sec_footer_logos a:hover {
  opacity: 0.8;
}

.sec_footer_logos img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 68px; /* 従来46pxの約150% */
}

/* =========================================================================
   装飾モチーフ
   - 白ブロック（宮代町・杉戸町）: 本素材 bg_01.png / bg_02.png を背景画像として
     ブロックいっぱいに敷き、左右の縁から三角がのぞく形。角丸に合わせて自動クリップ。
   - イントロ（黄色地）: 対応する本素材が未提供のため、引き続きCSSの仮図形。
   ========================================================================= */
.town--miyashiro {
  background-image: url("../img/bg_01.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.town--sugito {
  background-image: url("../img/bg_02.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

/* --- イントロ（黄色地）の飾り：仮図形 --- */
.deco {
  position: absolute;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.deco.tri {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.deco.dot {
  border-radius: 50%;
}

.deco.c-orange { background-color: #eb6700; }
.deco.c-blue   { background-color: #4096d3; }
.deco.c-green  { background-color: #44a35d; }

.sec_intro { position: relative; }
.sec_intro .e1 { width: 52px; height: 48px; top: 30%; left: 3%;  transform: rotate(-14deg); }
.sec_intro .e2 { width: 36px; height: 36px; top: 34%; right: 6%; }
.sec_intro .e3 { width: 60px; height: 54px; top: 54%; right: 2%; transform: rotate(16deg); }
.sec_intro .e4 { width: 44px; height: 42px; bottom: 5%; left: 6%; transform: rotate(10deg); }

/* ===== TOPに戻るボタン ===== */
.totop {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #eb6700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.totop::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 3px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.totop span {
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.totop:hover {
  background-color: #d15a00;
}

/* =========================================================================
   SP（〜768px）
   ========================================================================= */
@media screen and (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .mottozutto_link {
    width: 20%;
    height: 20%;
  }

  .main_content {
    padding: 0 16px;
  }

  /* イントロ */
  .sec_intro {
    padding: 24px 0 32px;
  }

  .sec_intro_catch .sp_only {
    width: 85%;
    margin: 0 auto;
  }

  .sec_intro_lead {
    margin-top: 24px;
    padding: 0 20px;
    text-align: justify;
  }

  .sec_intro_recruit {
    margin-top: 40px;
  }

  .sec_intro_question {
    width: 88%;
    margin-top: 44px;
  }

  .sec_intro_map {
    max-width: 92%;
    margin-top: 0;
  }

  /* まち紹介 */
  .town {
    margin-top: 40px;
    padding-bottom: 32px;
    border-radius: 16px;
  }

  .town_hero {
    border-radius: 16px 16px 0 0;
  }

  .town_hero figcaption {
    bottom: 10px;
    padding: 4px 12px;
    font-size: 0.72rem;
  }

  /* 装飾モチーフ（イントロの仮図形）：SPは一部間引き */
  .sec_intro .e1,
  .sec_intro .e3 { display: none; }

  .town_head {
    max-width: 68%;
    margin-top: 22px;
  }

  .town_lead {
    margin-top: 18px;
    padding: 0 36px;
    text-align: justify;
  }

  .town_spots {
    column-gap: 18px;
    row-gap: 28px;
    margin-top: 32px;
    padding: 0 20px;
  }

  .town_spots h3 {
    margin-top: 10px;
    font-size: 0.92rem;
  }

  .town_spots h3 img {
    max-height: 19px;
  }

  .town_spots p {
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: left;
  }

  .town_more {
    margin-top: 30px;
  }

  .town_btn {
    width: 90%;
    padding: 0;
    margin: 18px auto 0;
  }

  /* フッター */
  .sec_footer {
    margin-top: 56px;
    padding: 32px 16px 56px;
  }

  .sec_footer_org_main {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
  }

  .sec_footer_org_sub {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .sec_footer_tel {
    font-size: 2.7rem;
  }

  .sec_footer_tel a {
    pointer-events: auto; /* SPでは電話発信リンクを有効化 */
  }

  /* SP: 3列×2段（5点なので下段は2点＝中央寄せ） */
  .sec_footer_logos {
    max-width: 360px;
    margin-top: 24px;
    gap: 24px 8px;
  }

  .sec_footer_logos a {
    flex: 0 0 30%;
    min-width: 0;
    height: 58px; /* 従来40pxの約150% */
  }

  .sec_footer_logos img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  /* TOPに戻るボタン */
  .totop {
    right: 14px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}
