/*
 * style.css
 * ============================================================
 * にこひめプロジェクト メインスタイルシート
 * フォント: Zen Maru Gothic
 * ============================================================
 */

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  /* ブランドカラー */
  --color-primary:        #F58220;
  --color-primary-dark:   #d9711a;
  --color-cream:          #FFF8F0;
  --color-light-orange:   #FEE8D0;
  --color-green:          #7EC88B;

  /* グレースケール */
  --color-gray-900: #111827;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-400: #9ca3af;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;

  /* タイポグラフィ */
  --font-family-base: 'Zen Maru Gothic', sans-serif;
  --line-height-base:  1.6;
  --line-height-loose: 1.8;

  /* スペーシング */
  --section-padding-y: 56px;
  --section-padding-x: 24px;
  --container-max-width: 1152px;

  /* ボーダー半径 */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* トランジション */
  --transition-base: 0.3s ease;
  --transition-fast: 0.2s ease;
}


/* ============================================================
   ベーススタイル
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: 14pt;
  background-color: #fff;
  color: var(--color-gray-800);
  line-height: var(--line-height-base);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}


/* ============================================================
   共通レイアウト
   ============================================================ */
.sec {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding-y) var(--section-padding-x);
  /* ウェーブ用の余白を下に確保 */
  padding-bottom: calc(var(--section-padding-y) + 80px);
}

.si {
  max-width: var(--container-max-width);
  margin-inline: auto;
}

.stitle {
  font-size: 30pt;
  font-weight: 800;
  color: var(--color-gray-900);
  text-align: center;
  line-height: 1.3;
}

.ssub {
  font-size: 15pt;
  font-weight: 500;
  color: var(--color-gray-800);
  text-align: center;
  margin-top: 20px;
  line-height: var(--line-height-loose);
}


/* ============================================================
   ヘッダー
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background var(--transition-base),
    box-shadow var(--transition-base);
}

#header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.hi {
  width: 100%;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.h-logo img {
  height: 56px;
  width: auto;
  cursor: pointer;
}

/* presented by: ロゴの右端から40px空けて配置 */
.h-pre {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 40px;
  margin-right: auto;  /* nav を右端へ押し出す */
}

.h-pre span {
  font-size: 8pt;
  color: var(--color-gray-600);
  white-space: nowrap;
}

.h-pre img {
  height: 16px;
  width: auto;
}

.h-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.h-nav button {
  font-size: 12.5pt;
  font-weight: 500;
  color: var(--color-gray-700);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.h-nav button:hover {
  color: var(--color-primary);
}

/* ハンバーガーボタン（モバイル） */
.hmb {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 18pt;
  color: var(--color-gray-700);
}

/* モバイルメニュー */
.mmenu {
  display: none;
  background-color: #fff;
  border-top: 1px solid var(--color-gray-200);
  padding: 24px 16px;
}

.mmenu.open {
  display: block;
}

.mmenu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 12pt;
  font-weight: 500;
  color: var(--color-gray-700);
  border-radius: var(--radius-xl);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.mmenu button:hover {
  background-color: var(--color-cream);
  color: var(--color-primary);
}

.mmenu .mpre {
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}


/* ============================================================
   ヒーローセクション
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.h-bg {
  position: absolute;
  inset: 0;
}

.h-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.h-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent,
    rgba(255, 255, 255, 0.7)
  );
}

.hc {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 128px 24px 0;
  text-align: center;
}

.h-logo2 {
  width: 300px;
  height: auto;
  margin: 0 auto 32px;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hh1 {
  font-size: 39pt;
  font-weight: 800;
  color: var(--color-gray-800);
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.htxt {
  font-size: 15pt;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: var(--line-height-loose);
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.hnote {
  font-size: 13pt;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 40px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9);
}

.hbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ヒーロー下部ウェーブ */
.h-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
}

.h-wave svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}


/* ============================================================
   ボタン
   ============================================================ */
.btn-p {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 12pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}

.btn-p:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

.btn-o {
  display: inline-block;
  padding: 16px 32px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  font-family: inherit;
  font-size: 12pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  white-space: nowrap;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-base);
}

.btn-o:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.btn-g {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--color-green);
  color: #fff;
  font-family: inherit;
  font-size: 12pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}

.btn-g:hover {
  background-color: #6ab578;
  transform: scale(1.05);
}

.btn-w {
  display: inline-block;
  padding: 20px 40px;
  background-color: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 14.5pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition:
    background var(--transition-base),
    transform var(--transition-base);
}

.btn-w:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.05);
}

.btn-op {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 12pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.btn-op:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.lp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-primary);
  font-weight: 700;
}

.lp:hover {
  text-decoration: underline;
}


/* ============================================================
   ウェーブ区切り
   ============================================================ */

/* ウェーブコンテナ: section内の末尾に配置、画面幅いっぱいに広げる */
.wdiv {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
  pointer-events: none;
}

.wdiv svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}


/* ============================================================
   目的セクション（#purpose）
   ============================================================ */
#purpose {
  background-color: #fff;
}

.p-tag {
  font-size: 18pt;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 16px 0 48px;
}

.g3c {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--color-gray-300);
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
}

.ci {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), rgba(245, 130, 32, 0.8));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.ci i {
  font-size: 22.5pt;
  color: #fff;
}

.ct {
  font-size: 15pt;
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 12px;
}

.cd {
  font-size: 12pt;
  color: var(--color-gray-600);
  text-align: center;
  line-height: 1.7;
}


/* ============================================================
   アクティビティセクション（#activities）
   ============================================================ */
#activities {
  background-color: #FDEDC0;
}

.ag {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 48px auto 0;
}

.abtn {
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(245, 130, 32, 0.25);
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--transition-base), background var(--transition-base);
}

.abtn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-8px);
}

.ai {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-green), rgba(126, 200, 139, 0.8));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.ai i {
  font-size: 30pt;
  color: #fff;
}

.al {
  font-size: 16pt;
  font-weight: 700;
  color: var(--color-gray-900);
}


/* ============================================================
   パスポートセクション（#passport）
   ============================================================ */
#passport {
  background-color: #fff;
}

.tc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.fi {
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fic {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fic i {
  font-size: 14.5pt;
  color: #fff;
}

.ft {
  font-size: 12pt;
  font-weight: 500;
  color: var(--color-gray-800);
}

.hb {
  background: linear-gradient(90deg, var(--color-primary), rgba(245, 130, 32, 0.9));
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  margin-bottom: 24px;
  text-align: center;
}

.hb p {
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.7;
}

.tcl {
  text-align: center;
  margin-bottom: 32px;
}

.tcl p {
  font-size: 12pt;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}


/* ============================================================
   インフォメーションセクション（#information）
   ============================================================ */
#information {
  background-color: #FDEDC0;
}

.inf {
  background-color: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(245, 130, 32, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.infi {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.inic {
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inic i {
  font-size: 18pt;
  color: #fff;
}

.inf h3 {
  font-size: 12pt;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 4px;
}

.inf p {
  font-size: 12.5pt;
  color: var(--color-gray-600);
  line-height: var(--line-height-base);
}

.adl {
  text-align: center;
  margin-top: 48px;
}

.adl > p {
  font-size: 12pt;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 20px;
}

.abtns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.abtns a img {
  height: 56px;
  width: auto;
  transition: opacity var(--transition-fast);
}

.abtns a:hover img {
  opacity: 0.8;
}

.wl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wl p {
  font-size: 13pt;
  color: var(--color-gray-800);
  font-weight: 700;
}


/* ============================================================
   イベントセクション（#events）
   ============================================================ */
#events {
  background-color: #fff;
}

.sg2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 700px;
  margin: 48px auto;
}

/* イベントスタッツ */
.si2 {
  text-align: center;
}

.sn {
  font-size: 56pt;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.sl {
  font-size: 15pt;
  font-weight: 700;
  color: var(--color-gray-800);
  margin-top: 4px;
}

.st {
  font-size: 13pt;
  font-weight: 500;
  color: var(--color-gray-700);
  line-height: 1.8;
  text-align: center;
}

/* イベント例 */
.etb {
  text-align: center;
  margin-bottom: 32px;
}

.etb h3 {
  font-size: 18pt;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

.etags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.etag {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-cream);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 14pt;
  font-weight: 700;
  border-radius: var(--radius-full);
}


.pg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pi {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.pi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-base);
}

.pi:hover img {
  transform: scale(1.05);
}

.ef {
  text-align: center;
}

.ef p {
  font-size: 16pt;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: var(--line-height-loose);
  margin-bottom: 16px;
}


/* ============================================================
   行政セクション（#government）
   ============================================================ */
#government {
  background-color: #fff;
}

.gbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 12.5pt;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.ggroups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 56px;
}

.gg {
  background-color: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-xl);
  padding: 24px 32px;
}

.ggi {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.glp {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.gls {
  display: inline-block;
  background-color: #fb923c;
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.tw {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gtag {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #fed7aa;
  color: var(--color-gray-800);
  font-size: 12pt;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.gcl {
  text-align: center;
  padding-top: 32px;
  border-top: 2px solid #fed7aa;
  max-width: 600px;
  margin-inline: auto;
}

.gcl p {
  font-size: 14.5pt;
  font-weight: 500;
  color: var(--color-gray-700);
  line-height: var(--line-height-loose);
}


/* ============================================================
   スポンサーセクション（#sponsors）
   ============================================================ */
#sponsors {
  background-color: var(--color-light-orange);
  padding-bottom: var(--section-padding-y);
}

.smg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin-inline: auto;
  margin-top: 48px;
  margin-bottom: 64px;
}

/* 1枚・2枚でもセンター、3枚以上は左から埋まる。最大3列 */
.smg > .sc {
  flex: 0 0 calc((100% - 64px) / 3);
  min-width: 240px;
  max-width: 300px;
}

.sc {
  background-color: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.sc:hover {
  transform: scale(1.04);
}

.slogo {
  width: 100%;
  height: 128px;
  background-color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
}

.slogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.slph {
  font-size: 18pt;
  font-weight: 700;
  color: var(--color-gray-400);
}

.sn2 {
  font-size: 15pt;
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 16px;
}

.sm {
  font-size: 12.5pt;
  color: var(--color-gray-600);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* スポンサーカード ボタンエリア */
.sc-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
  padding-top: 20px;
}

.sc-btns-single {
  justify-content: center;
}

/* 企業のサイトへ（白・オレンジ枠・オレンジ文字） */
.sc-btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 16px;
  background-color: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 10pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  white-space: nowrap;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.sc-btn-site:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* 取り組みを見る（オレンジ背景・白文字） */
.sc-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px 16px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-align: center;
  white-space: nowrap;
  transition: background var(--transition-base);
}

.sc-btn-action:hover {
  background-color: var(--color-primary-dark);
}

/* ボタンが1つの場合（企業のサイトへ）は幅を制限して中央寄せ */
.sc-btns-single .sc-btn-site {
  flex: 0 1 auto;
  min-width: 160px;
}



.supt {
  font-size: 22.5pt;
  font-weight: 700;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: 32px;
}

.supg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* 5列固定。少ない場合はセンター寄せ */
.supg > .supc-wrap {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 120px;
  max-width: 160px;
}

.supc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.supc {
  display: block;
  background-color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition-base);
  width: 100%;
}

.supc:hover {
  transform: scale(1.05);
}

.suplo {
  width: 100%;
  height: 80px;
  background-color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suplo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.supn {
  display: block;
  font-size: 10pt;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.supn:hover {
  color: var(--color-primary-dark);
}


/* ============================================================
   CTAセクション（#cta）
   ============================================================ */
#cta {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding-y) var(--section-padding-x);
  background: linear-gradient(135deg, var(--color-primary), rgba(245, 130, 32, 0.9));
}

.cd1,
.cd2,
.cd3 {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.cd1 {
  width: 128px;
  height: 128px;
  top: 40px;
  left: 40px;
}

.cd2 {
  width: 160px;
  height: 160px;
  bottom: 40px;
  right: 40px;
}

.cd3 {
  width: 96px;
  height: 96px;
  top: 50%;
  left: 25%;
}

.cti {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.ctit {
  font-size: 22.5pt;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cttx {
  font-size: 12pt;
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--line-height-loose);
  margin-bottom: 40px;
}


/* ============================================================
   フッター・お問い合わせ
   ============================================================ */
footer {
  background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-900));
  color: #fff;
}

#contact {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.coin {
  max-width: 768px;
  margin-inline: auto;
}

.cot {
  font-size: 27pt;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.cos {
  font-size: 12pt;
  color: #d1d5db;
  text-align: center;
  margin-bottom: 48px;
}

.cf {
  background-color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--color-gray-800);
}

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.fg2 {
  margin-bottom: 24px;
}

.fg2 label {
  display: block;
  font-size: 12pt;
  font-weight: 700;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}

.fg2 .req {
  color: #ef4444;
}

.fi2,
.fs,
.fta {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 12pt;
  color: var(--color-gray-800);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.fi2:focus,
.fs:focus,
.fta:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.15);
}

.fta {
  resize: none;
}

.cc {
  text-align: right;
  font-size: 12pt;
  color: var(--color-gray-400);
  margin-top: 4px;
}

.bsub {
  width: 100%;
  padding: 16px;
  background-color: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14.5pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base);
}

.bsub:hover:not(:disabled) {
  background-color: var(--color-primary-dark);
}

.bsub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fsucc {
  display: none;
  padding: 16px;
  background-color: rgba(126, 200, 139, 0.2);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-md);
  text-align: center;
  color: #2d8a3e;
  font-weight: 700;
  margin-top: 16px;
}

.ferr {
  display: none;
  padding: 16px;
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-md);
  text-align: center;
  color: #dc2626;
  font-weight: 700;
  margin-top: 16px;
}

.finfo {
  border-top: 1px solid #374151;
  padding: 48px 24px;
}

.fii {
  max-width: var(--container-max-width);
  margin-inline: auto;
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.flog img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.fmet p {
  font-size: 12pt;
  color: #9ca3af;
  margin-bottom: 6px;
}

.fmet strong {
  color: #fff;
}

.fcol h3 {
  font-size: 14pt;
  font-weight: 700;
  margin-bottom: 16px;
}

.fcities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 12pt;
  color: #9ca3af;
}

.fep a {
  display: inline-block;
  margin-bottom: 16px;
}

.fep a img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition-fast);
}

.fep a:hover img {
  opacity: 0.8;
}

.fep p {
  font-size: 12pt;
  color: #9ca3af;
  margin-bottom: 16px;
}

.fapb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 12pt;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.fapb:hover {
  background-color: var(--color-primary-dark);
}

.stbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #374151;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.stb:hover {
  background-color: #4b5563;
}

.stb i {
  font-size: 15pt;
}

.stbt .l1 {
  font-size: 12pt;
  color: #9ca3af;
}

.stbt .l2 {
  font-size: 12pt;
  font-weight: 500;
}

.fcp {
  border-top: 1px solid #374151;
  padding-top: 32px;
  text-align: center;
}

.fcp p {
  font-size: 12pt;
  color: #9ca3af;
  margin-bottom: 8px;
}

.fcp a {
  font-size: 12pt;
  color: #6b7280;
  transition: color var(--transition-fast);
}

.fcp a:hover {
  color: #9ca3af;
}


/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット（〜1023px） */
@media (max-width: 1023px) {
  .h-nav,
  .h-pre {
    display: none;
  }

  .hmb {
    display: flex;
  }

  .g3c,
  .ag {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  /* タブレット: 大枠企業は2列 */
  .smg > .sc {
    flex: 0 0 calc((100% - 32px) / 2);
    max-width: calc((100% - 32px) / 2);
  }

  /* タブレット: 応援企業は3列 */
  .supg > .supc-wrap {
    flex: 0 0 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
  }
}

/* スマートフォン（〜639px） */
@media (max-width: 639px) {
  .hh1 {
    font-size: 22pt;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .stitle {
    font-size: 20pt;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .htxt {
    font-size: 12pt;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .ssub {
    font-size: 12pt;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .p-tag {
    font-size: 14pt;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .h-logo2 {
    width: 220px;
  }

  /* スマホ: 大枠企業は1列 */
  .smg > .sc {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* スマホ: 応援企業は2列 */
  .supg > .supc-wrap {
    flex: 0 0 calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

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

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

  .ggi {
    flex-direction: column;
  }
}


/* ============================================================
   インラインCSS → 外部CSS 移行分
   ============================================================ */

/* セクション背景 */
.sec-white       { background: #fff; }
.sec-cream       { background: #FDEDC0; }   /* activitiesと統一 */
.sec-lightorange { background: #FEE8D0; }

/* ヘッダー「えひめのあぷり」ロゴ */
.h-pre-logo {
  height: 16px;
  width: auto;
}


.mpre-label {
  font-size: .75rem;
  color: #4b5563;
}

.mpre-logo {
  height: 24px;
  width: auto;
}

/* パスポート画像 */
.passport-img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  border-radius: 1.5rem;
}

/* パスポート説明文 */
.passport-desc {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* tc に margin-top */
.tc-mt {
  margin-top: 3rem;
}

/* information ssub */
.info-ssub {
  max-width: 700px;
  margin: 1.25rem auto 3rem;
}

/* アプリ画像 */
.app-img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
  border-radius: 1.5rem;
}

/* イベント sg2 margin-top */
.sg2-mt {
  margin-top: 3rem;
}

/* si2 span2 */
.si2-span2 {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* government セクション */
.si-narrow {
  max-width: 900px;
}

.gov-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ssub-narrow {
  max-width: 600px;
  margin: 1rem auto 0;
}

/* contact form */
.cf {
  padding: 2rem;
  text-align: center;
}

.form-body {
  text-align: left;
}

.fg2-nobt {
  margin-bottom: 0;
}

/* footer download note */
.fdl-note {
  font-size: .875rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}
/* お問い合わせフォームの「お問い合わせ内容」エリアの修正 */
#contact .fg2 {
    display: block !important; /* 横並びを解除して縦に並べる */
}

#contact .fg2 label {
    display: block;
    margin-bottom: 10px;
}

/* プルダウン(select)とテキストエリア(textarea)を縦に並べて幅を広げる */
#contact .fs, 
#contact .fta {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 15px;
}

/* テキストエリアの高さを確保 */
#contact .fta {
    min-height: 150px;
}
/* ============================================================
   フッター えぷりWeb＋アプリダウンロード 統合エリア
   ============================================================ */

/* fgridを3カラムに変更（えぷりWeb+アプリ統合のため） */
.fgrid {
  grid-template-columns: 1.2fr 1.2fr 2.6fr;
}

/* 後援リストを3列表示でバランスよく */
.fcities {
  grid-template-columns: 1fr 1fr 1fr !important;
}

/* 統合ラッパー：キャッチコピー＋横並びコンテンツ */
.fep-wrap {
  grid-column: span 1; /* fgrid内で1カラム分として扱う */
}

.fep-catchcopy {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.5;
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
}

/* えぷりWebとアプリを横並び */
.fep-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.fep-inner .fep,
.fep-inner .fcol {
  flex: 1;
  min-width: 160px;
}

/* 「えぷりWeb」「アプリダウンロード」の小ラベル（h3の代わり） */
.fep-label {
  font-size: 14.5pt;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

@media (max-width: 767px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
  .fep-inner {
    flex-direction: column;
    gap: 20px;
  }
}
