/* ===== リセット ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* ===== レイアウト ===== */
main {
  max-width: 1100px;
  width: 90%;
  margin: 40px auto;
}

/* ===== セクション ===== */
.section {
  margin-bottom: 48px;
}

/* ===== カード（超重要UI） ===== */
.card {
  background: #f7f7f7;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;

.card:active {
  transform: scale(0.98);
}


  /* 影 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  /* アニメーション */
  transition: 0.3s;
}

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

/* ===== カード色バリエーション ===== */
.card-red   { border-left: 5px solid #e74c3c; }
.card-blue  { border-left: 5px solid #3498db; }
.card-green { border-left: 5px solid #2ecc71; }
.card-yellow{ border-left: 5px solid #f1c40f; }

/* ===== 見出し ===== */
h1, h2, h3, h4 {
  margin: 0;
}

.title-line {
  font-size: 20px;
  margin-bottom: 6px;
  border-left: 4px solid #333;
  padding-left: 10px;
}

/* サブタイトル */
.sub-text {
  font-size: 18px;
  color: #666;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  text-align: center;
  color: #fff;

  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero * {
  position: relative;
}

.hero-index {
  min-height: 60vh;
}

.hero-index h2 {
  font-size: 40px;
}

/* ===== ヘッダー横並び（画像＋タイトル） ===== */
.flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* アイコン画像 */
.icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;

  /* 影 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== リスト ===== */
ul {
  padding-left: 20px;
}

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

/* ===== リンク ===== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

/* ===== 右寄せ ===== */
.right {
  text-align: right;
}

.right a {
  color: #3498db;
  text-decoration: none;
  position: relative;
}

.right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: 0.3s;
}

.right a:hover::after {
  width: 100%;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .flex {
    flex-direction: column;
    text-align: center;
  }
  .icon {
    margin-bottom: 10px;
  }
  .hero-index {
    min-height: 50vh;
  }
}

.card-special {
  background: linear-gradient(135deg, #333, #111);
  color: #fff;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 30px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.card-special .sub-text {
  color: #ccc;
}

.card-special a {
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
