:root {
  --main: #2f5d3a;
  --accent: #e6b422;
  --text: #222;
  --bg: #f7f8f6;
  --link: #e00909;
  --radius: 8px;
}

/*
ブレイクポイント目安
  sm: max 767px;
  md: max 1059px;
  それぞれのサイズ区分ごとに記述する（）
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}
h2 {
  display: block;
  margin: 10px 0 10px;
  padding-left: 10px;
  font-size: 1.6rem;
  line-height: 1.4;
  border-left: 8px solid #209040;
}
h2.none-deco {
  border-left: unset;
}

a {
  text-decoration: none;
  color: inherit;
}
/* 別タブで開くリンクへのアイコン表示 */
a[target="_blank"]::after {
  content: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/%3E%3Cpolyline points="15 3 21 3 21 9"/%3E%3Cline x1="10" y1="14" x2="21" y2="3"/%3E%3C/svg%3E');
  margin-left: 5px;
  display: inline-block;
  transform: translateY(1px);
}
.aso-links a[target="_blank"]::after {
  content: none;
}
a.deco_under {
  background: linear-gradient(transparent 70%, #ffff00 70%);
}
a.deco_under:hover {
  background: linear-gradient(transparent 70%, #ff0000 70%);
}
img {
  max-width: 100%;
  display: block;
}
p {
  font-size: 1.1rem;
}
/* ===============================
  ヘッダー
================================= */
/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #ddd;
  height: 80px;
}
.header-inner {
  margin: 0 auto;
  /* padding: 0 24px; */
  padding: 0 clamp(30px, 3vw, 80px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

/* ===============================
  header-inner 内のロゴSVGのみ横並び
================================= */
/* ロゴ全体 */
.header-inner .header-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(4px, 1.5vw, 12px);
  flex-wrap: nowrap;
  margin-left: 40px; /* ハンバーガー分 */
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* white-space: nowrap;*/ /* 折り返し防止 */
}

/* ヘッダー内共通 img 設定 */
.header-logo img {
  display: block;
  width: auto;
  max-width: none;
  flex-shrink: 0; /* 縮まない */
  height: clamp(50px, 4.5vw, 80%);
}

.header-nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  margin-left: auto;
  align-items: center;
}
.header-nav a {
  font-size: 1rem;
  font-weight: 500;
}

/* ==================================================
  ドロップダウン
================================================== */
/* PCナビ：画像のみ表示用 */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background: #f2f2f2;
}

.dropdown.open .dropdown-menu {
  display: block;
}

/* スマホ - ドロップダウン */

.sp-dropdown {
  width: 100%;
}

.sp-dropdown-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 16px;
  text-align: left;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sp-dropdown-toggle .arrow {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.sp-dropdown-menu {
  display: none;
  background: #f7f7f7;
}

.sp-dropdown-menu a {
  display: block;
  padding: 12px 40px;
  font-size: 0.95rem;
  border-top: 1px solid #e0e0e0;
}

.sp-dropdown.active .sp-dropdown-menu {
  display: block;
}

.sp-dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.header-cta a.primary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1rem;
  background: var(--accent);
  color: #222;
  border: none;
  white-space: nowrap;
  margin-left: 20px;
}

/* Hamburger - 常に表示 */
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  padding: 0 16px;
  display: block;
}

/* Left Side Menu */
.sp-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #fff;
  border-right: 1px solid #ddd;
  z-index: 200;
  padding-top: 80px;
  overflow-y: auto;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}
.sp-menu.active {
  transform: translateX(0);
}
.sp-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
}
.sp-menu a img.icon {
  width: 16px;
  height: 16px;
}
.sp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  cursor: pointer;
}

/* ===============================
  フッター - Footer
================================= */
footer {
  background: var(--bg);
  padding: 48px 24px;
  font-size: 0.85rem;
}
footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 1rem;
}

/* ===============================
  各ページ共通
================================= */
/* リスト表示 */
/* 全体の箇条書きスタイル */
ul {
  display: block;
  margin: 20px 0 0 20px;
  padding: 0;
  list-style: disc;
  font-size: 1rem;
  line-height: 1.5;
}
li {
  margin-bottom: 0.5rem;
  width: 100%;
  height: auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid-4 {
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  /*
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  */
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  /*
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  */
}
/* テキストレイアウト */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}

/* Cards 基本 */
.card {
  /* margin-bottom: 24px; */
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.card-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}
.card-title span {
  display: inline-block;
}
.card strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--main);
}

/* Hero Section - ベース設定（写真） */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 400px;
  text-align: center;
  color: #fff;
  background-color: #d4d4d4;
  background-size: cover;
  overflow: hidden; /* 画像全体表示 */

  background-image: url("../images/hero_default.jpg");
  background-position: center;
}
.hero::before {
  content: " ";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}
.hero.none-mask::before {
  content: none;
}
.hero-text {
  z-index: 1;
}
.hero-text h1 {
  font-size: 2.4rem;
}
.hero-text p {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/*** HERO画像設定 ***/
/* hero-image-home */
.hero .hero-img {
  display: block;
  width: 100%; /* 横幅に合わせる */
  height: auto; /* 縦横比固定 */
  object-fit: cover; /* トリミングなしで全体表示 */
}
/* hero-image-activity */
.hero.hero-activity {
  background-image: url("../images/facilities/hero_activity.jpg");
  background-position: center;
}

/* Section */
.page-title {
  margin-top: 30px;
  text-align: center;
}
.section {
  padding: 50px 50px 30px;
}
.section .section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
/*
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  white-space: nowrap;
  letter-spacing: 0.2rem;
}
*/

/* テーブルレイアウト */
table caption {
  font-size: 1.2rem;
}

.download-section {
  padding: 50px 0 30px;
}

.download-table-wrapper {
  padding: 20px 0 40px;
}
table.download-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
table.download-table th,
table.download-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}
table.download-table th {
  background: var(--accent);
  color: #222;
  font-weight: 600;
}
table.download-table tbody tr:nth-child(odd) {
  background: #f7f8f6;
}
table.download-table tbody tr:hover {
  background: #e6f0e8;
}

/* PDFリンクなどファイルリンク強調 */
.file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}
.file-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #222;
}
.file-link img.icon {
  width: 16px;
  height: 16px;
}
/* 補助説明文等 */
.infobox {
  padding: 20px 0 50px;
}

/* ===============================
  Top > 新着情報 ・ モーダル表示
================================= */
.news-list {
  display: block;
  list-style: none;
  margin: 0;
}
.news-list li {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}
.news-item {
  display: flex;
  padding: 12px 20px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}
.news-item:hover {
  background: #e0e0e0;
}

.news-list time {
  display: inline-block;
  color: #666;
  font-size: 0.9rem;
}
.news-list .news-text {
  display: inline-block;
  padding-left: 1.5rem;
  font-size: 1rem;
}

/* Modal - モーダル表示部分 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: #fff;
  border-radius: 6px;
  overflow-y: auto;
  z-index: 1001;
}

.modal-close {
  position: absolute;
  top: 0px;
  right: 6px;
  cursor: pointer;
  font-size: 26px;
  z-index: 1002;
}
.modal-content a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: #222;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 12px;
}
.modal-content a:hover {
  background: var(--accent);
  color: #222;
}

/* ===============================
  Top > 阿蘇リンク集
================================= */
.aso-links {
  text-align: center;
  margin-bottom: 24px;
}
.aso-links-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.aso-links a {
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  margin: 8px;
}
.aso-links a img.icon {
  width: 16px;
  height: 16px;
}
.aso-links a img {
  height: 48px;
  width: auto;
  display: block;
}

/* ===============================
  ご利用の流れ等・番号付きステップ表示
================================= */
.step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin-right: 12px;
}
/* ステップカード（左側に色付きバー） */
.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.step-card .card {
  position: relative;
  padding: 16px 16px 16px 36px; /* 左側のバー分余白確保 */
  border-left: 6px solid var(--accent); /* 左側に色付きバー */
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.step-card .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.step-card .card-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  gap: 12px;
  border-left: unset;
  padding-left: unset;
}

/* ==============================
  Link - リンク集（共通）
============================== */

.link-section {
  margin-bottom: 48px;
}

.link-section h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--main);
}

/* カードグリッド */
.link-section .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* カード本体 */
.section.link-section .card {
  display: flex;
  align-items: center;

  padding: 14px 16px;
  min-height: 3.2em; /* 2行分を基準に自然に伸びる */

  background: #fff;
  border-radius: 8px;

  text-decoration: none;
  color: var(--text);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* タイトル文字 */
.section.link-section .card .link-card-title {
  display: block;
  width: 100%;

  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* hover */
.section.link-section .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TOPへ戻るボタン */
.back-to-top {
  display: block;
  width: fit-content;
  margin: 20px auto;
  background-color: var(--accent);
  border-radius: 3px;
}
.back-to-top a {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 1rem;
  width: 100%;
  font-size: 1rem;
}

/*
  ▼ミドルサイズ（タブレット）=============================================================================
*/
@media (max-width: 1059px) {
  /* ヘッダー回り */
  h2 {
    font-size: 1.4rem;
  }
  .header-inner .header-logo img {
    height: 70%;
  }

  .header-nav {
    display: none;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    width: 100%;
    padding: 1rem 2rem 0;
    font-size: 1rem;
  }
  .hero {
    min-height: 350px;
    background-image: url("../images/hero_default_md.jpg");
  }

  /* 👆編集点 */

  /* グリッド関係 */
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/*▲ミドルサイズ ここまで    =============================================================================*/

/*
  ▼スモールサイズ（スマホ）=============================================================================
*/
@media (max-width: 700px) {
  h2 {
    font-size: 1.2rem;
  }

  header {
    height: 60px;
  }
  .header-inner .header-logo {
    margin: 0 auto;
    justify-content: center;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: 250px;
    background-image: url("../images/hero_default_sm.jpg");
  }

  .hero-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
  }
  .hero-text p {
    width: 100%;
    padding: 1rem 2rem 0;
    font-size: 1rem;
  }
  .news-item {
    flex-direction: column;
  }
  .news-list .news-text {
    padding: unset;
  }

  /* ダウンロードテーブル等 */
  table caption {
    font-size: 1.2rem;
  }

  .download-table-wrapper {
    overflow-x: auto;
  }
  table.download-table {
    min-width: 550px;
    border: 2px solid #808080;
  }
  table.download-table th {
    white-space: nowrap;
  }

  .section {
    padding: 30px 24px 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .section-purpose .grid-4 {
    grid-template-columns: 1fr;
  }
  .grid-5 {
    grid-template-columns: 1fr 1fr;
  }

  /* 👆編集点 */
  /*
  .section-title {
    white-space: normal;
    font-size: 1.5rem;
    letter-spacing: 0.15rem;
  }
  .header-cta {
    order: 3;
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .grid-5 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    padding: 14px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin-right: 8px;
    font-size: 1rem;
  }
  .step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 0.9rem;
  }
  .step-card .card-title {
    font-size: 1rem;
  }
  .activity-grid {
    gap: 16px;
  }
  .section.link-section .card {
    min-height: auto;
    padding: 12px 14px;
  }
  .modal-content {
    padding: 16px;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-content-text {
    font-size: 0.95rem;
  }
  .header-logo .org-name {
    font-size: 0.65rem;
  }
  */
}
/*▲スモールサイズ ここまで ============================================================================*/
