/* chirashi_kansei.css */

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #222;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin: 10px 0;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 15px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

.button:hover {
  background-color: #0056b3;
}

.highlight-button {
  background-color: #ff6f61;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 20px;
  display: block;
  text-align: center;
  margin-top: 15px;
}

.highlight-button:hover {
  background-color: #e95b50;
}

.link {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.container.training-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* 見出し */
.training-header h1 {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.35;
  margin-bottom: 12px;
}

.training-header .lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 2.0;
  margin-bottom: 20px;
}

/* セクション共通 */
.section {
  margin: 36px 0;
}

.section > h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  border-left: 5px solid #e60033;
  padding-left: 12px;
  margin-bottom: 14px;
}

.section > h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #222;
}

.section-desc {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #333;
}

/* ボタンレイアウト */
.button-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 840px) {
  .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ボタン共通デザイン */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 10px;
  background: #666;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: all .2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

/* 強調ボタン（暖色系） */
.btn-main {
  background: #e60033;
}

.btn-main:hover {
  background: #ff334d;
}

/* アクセントボタン（オレンジ） */
.btn-accent {
  background: #f47b20;
}

.btn-accent:hover {
  background: #ff9440;
}

/* ボタン中央寄せ */
.button-center {
  text-align: center;
  margin-top: 12px;
}

/* チラシカード */
.chirashi-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.chirashi-card-img {
  flex: 0 0 160px;
  text-align: center;
}

.chirashi-card-img img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* モバイル専用チラシ名（デスクトップでは非表示） */
.chirashi-mobile-title {
  display: none;
}

/* バッジを1行にまとめる */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.badge-row .badge {
  margin-bottom: 0;
}

/* 画像リンク */
.chirashi-img-link {
  display: block;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}

.chirashi-img-link:hover {
  opacity: 0.82;
  transform: scale(1.02);
  text-decoration: none;
}

.chirashi-card-img-placeholder {
  width: 160px;
  height: 120px;
  background: #f0f4f8;
  border: 2px dashed #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}

.chirashi-card-body {
  flex: 1;
}

@media (max-width: 560px) {
  .chirashi-card {
    flex-direction: column;
  }
  /* モバイル専用タイトル：先頭に表示 */
  .chirashi-mobile-title {
    display: block;
    order: 1;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
  }
  /* 画像：タイトルの次 */
  .chirashi-card-img,
  .chirashi-card-img-placeholder {
    width: 100%;
    flex: none;
    order: 2;
  }
  /* 本文エリア（バッジ・説明・ボタン）：画像の後 */
  .chirashi-card-body {
    order: 3;
    display: flex;
    flex-direction: column;
  }
  /* body内のh3はモバイルでは非表示（chirashi-mobile-titleを使用） */
  .chirashi-card-body h3 {
    display: none;
  }
}

.chirashi-card h3 {
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.chirashi-card .badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.badge-free {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.badge-paid {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

.badge-new {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.badge-renewal {
  background: #f3e5f5;
  color: #6a1b9a;
  border: 1px solid #ce93d8;
}

.badge-data {
  background: #e8f4fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.badge-print {
  background: #fce4ec;
  color: #880e4f;
  border: 1px solid #f48fb1;
}

.chirashi-card p {
  font-size: 17px;
  color: #444;
  margin: 0 0 16px;
  line-height: 1.85;
}

/* =========================================
   既存ツールセクション
   ========================================= */
.existing-tools-header {
  margin: 56px 0 24px;
  padding: 20px 24px;
  background: #f0f4f8;
  border-radius: 10px;
  border-left: 6px solid #2c3e50;
}

.existing-tools-header h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  color: #2c3e50;
  border: none;
  padding: 0;
  margin: 0 0 6px;
}

.existing-tools-header p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

.cat-heading {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: #fff !important;
  margin: 40px 0 16px;
  padding: 12px 18px;
  border-radius: 6px;
}

.cat-heading.bg-cat1 { background-color: #3498db; }
.cat-heading.bg-cat2 { background-color: #e84393; }
.cat-heading.bg-cat3 { background-color: #9b59b6; }
.cat-heading.bg-cat4 { background-color: #f39c12; }

.cat-sub-heading {
  font-size: 16px;
  font-weight: 700;
  color: #444;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px dashed #ccc;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.doc-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e0e6ed;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

/* カード全体をリンク化（stretched link） */
.doc-card .btn-dl::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.doc-img {
  flex: 0 0 64px;
  text-align: center;
}

.doc-img img {
  max-height: 84px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.doc-content {
  flex: 1;
}

.doc-title {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.5;
}

.doc-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e0e6ed;
  color: #555;
  font-weight: normal;
  margin-left: 4px;
  vertical-align: middle;
}

.doc-tag.free { background: #d4edda; color: #155724; }
.doc-tag.paid { background: #f8d7da; color: #721c24; }
.doc-tag.new  { background: #e3f2fd; color: #1565c0; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #0056b3;
  font-weight: 700;
  text-decoration: none;
}

.btn-dl::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #0056b3;
  border-bottom: 2px solid #0056b3;
  transform: rotate(-45deg);
  margin-right: 6px;
}

.btn-dl:hover { text-decoration: underline; }

.simple-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.simple-links a {
  background: #fff;
  border: 1px solid #e0e6ed;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  text-decoration: none;
  transition: all .2s;
}

.simple-links a:hover {
  background: #f39c12;
  color: #fff;
  border-color: #f39c12;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.form-card {
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid #f39c12;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.form-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.form-desc {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.65;
}

.form-dl-btn {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  transition: background .2s;
}

.form-dl-btn:hover { background: #e0e6ed; text-decoration: none; }

.banner-card {
  text-align: center;
  background: #fff3cd;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ffeeba;
  margin-bottom: 32px;
}

.banner-card a {
  font-size: 17px;
  font-weight: 700;
  color: #856404;
  text-decoration: none;
}

.banner-card img {
  margin-top: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  max-width: 560px;
  width: 100%;
}

.section-divider {
  border: none;
  border-top: 3px solid #e0e6ed;
  margin: 48px 0;
}
