@charset "UTF-8";

/* --- 全体設定 --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  background-color: #fcfcfd;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* カラー定義 */
:root {
  --blue-color: #1a62b8;
  --red-color: #e24941;
  --darkblue-color: #0b3d75;
  --bg-light: #f8f9fa;
}

/* --- ヒーローセクション (トップビジュアル) --- */
.hero-section {
    position: relative;
    padding: 60px 20px 80px;
    background-color: #f2f7fd;
    background-image: url(../img/feature-img-00.png);
    background-repeat: no-repeat;
    background-position: center;
    
    /* ▼ 横幅100%・縦幅100%にして強制的に余白をなくす */
    background-size: 100% 100%;
    
    overflow: hidden;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.sub-subtitle {
  color: #1a62b8;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.main-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.main-title .blue { color: var(--blue-color); }
.main-title .red { color: var(--red-color); }

.hero-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  font-weight: 600;
}

/* ヒーロー写真レイアウト */
.hero-images {
  position: relative;
  width: 480px;
  height: 320px;
}

.img-wrapper {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-img {
  width: 220px;
  height: 220px;
  top: 0;
  right: 80px;
}

.sub-img-left {
  width: 140px;
  height: 140px;
  bottom: 10px;
  left: 20px;
}

.sub-img-right {
  width: 130px;
  height: 130px;
  bottom: 0px;
  right: 10px;
}

/* --- 利用者の声 メインコンテンツ --- */
.voice-section {
  padding: 60px 0 100px;
}

.voice-category {
  margin-bottom: 60px;
}

/* カテゴリヘッダー（見出し） */
.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.category-header .dots {
  letter-spacing: 4px;
  font-size: 1.2rem;
}

.blue-header .dots,
.blue-header h2 {
  color: var(--blue-color);
}

.red-header .dots,
.red-header h2 {
  color: var(--red-color);
}

.icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px){
  .icon-title{
    text-align: center;
  }
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.category-icon svg {
  width: 20px;
  height: 20px;
}

.blue-bg { background-color: var(--blue-color); }
.red-bg { background-color: var(--red-color); }

.category-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* カードグリッド (3列配置) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* --- カードデザインの調整 --- */
.voice-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;

  /* ▼ カード全体の固定高さを指定したい場合（必要に応じてサイズ調整してください） */
  height: 280px; 
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  flex-shrink: 0; /* ヘッダー部分が縮まないように固定 */
}

/* ▼ 文章部分をスクロール可能にする設定 */
.card-text {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
  
  /* エリアいっぱいに広げて余りをスクロール表示 */
  flex: 1;
  overflow-y: auto;
  padding-right: 6px; /* スクロールバーとテキストの被りを防止 */
}

/* ▼ スクロールバーをシンプルで綺麗なデザインにするカスタムスタイル (オプション) */
.card-text::-webkit-scrollbar {
  width: 5px;
}
.card-text::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.card-text::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.card-text::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
.card-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  flex: 1;
  margin-right: 8px;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* バッジのカラーバリエーション */
.blue-badge { background-color: var(--blue-color); }
.red-badge { background-color: var(--red-color); }
.darkblue-badge { background-color: var(--darkblue-color); }
.pink-badge { background-color: #e85285; }

.user-meta {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 0.75rem;
  color: #555;
  white-space: nowrap;
  margin-right: 8px;
}

.user-name {
  font-weight: 700;
  color: #333;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.card-text {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
}


/* --- スマホ・タブレット用レスポンシブ (768px以下) --- */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .hero-images {
    width: 100%;
    max-width: 340px;
    height: 240px;
    margin-top: 30px;
  }

  .main-img {
    width: 160px;
    height: 160px;
    right: 20px;
  }

  .sub-img-left {
    width: 100px;
    height: 100px;
  }

  .sub-img-right {
    width: 90px;
    height: 90px;
  }

  /* カードを1列にする */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .voice-card {
    padding: 18px 15px;
  }

  .card-badge {
    padding: 6px 8px;
  }

  .badge-text {
    font-size: 0.75rem;
  }
}