/* Google Fonts のインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:italic,wght@400;500&display=swap');

:root {
  --bg: #fdfdfb;
  --card-bg: #ffffff;
  --text-main: #2c3e50;
  --text-sub: #576574;
  --accent-1: #5d8aa8; /* Linspace: Air Blue */
  --accent-2: #c06c84; /* Spectral: Dusty Rose (赤系) */
  --accent-3: #d4a373; /* Peak: Amber Gold (黄色系) */
  --border: #e8e8e1;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  line-height: 1.7;
}

/* PCのみ有効な改行 */
.br-pc { display: none; }
@media (min-width: 1025px) {
  .br-pc { display: inline; }
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

.title-en {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--text-sub);
  font-size: 1.1rem;
}

h1 {
  font-size: 2rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  margin: 15px 0;
}

.system-desc {
  max-width: 850px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-sub);
  font-weight: 300;
}

/* メイングリッド設定 */
.main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

/* カードデザイン */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 40px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column; /* 縦並び */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 6px;
  opacity: 0.6;
  transition: var(--transition);
}
.card:hover::after { opacity: 1; height: 10px; }
.c1::after { background: var(--accent-1); }
.c2::after { background: var(--accent-2); }
.c3::after { background: var(--accent-3); }

.card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 30px 0;
}

/* ここが重要：中身を縦に広げる設定 */
.inner-content {
  flex-grow: 1; /* 親要素いっぱいに広がる */
  display: flex;
  flex-direction: column; /* 中身も縦並び */
}

.description-area {
  flex-grow: 1; /* ここが伸びることで、下のエリアを押し下げる */
  margin-bottom: 30px;
}

/* 見出しのスタイル */
h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}
.c1 h3 { color: var(--accent-1); }
.c2 h3 { color: var(--accent-2); }
.c3 h3 { color: var(--accent-3); }

p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin: 0;
}

.point-tag {
  display: inline-block;
  margin-top: 25px;
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border-left: 4px solid var(--border);
}
.c1 .point-tag { border-left-color: var(--accent-1); color: var(--accent-1); }
.c2 .point-tag { border-left-color: var(--accent-2); color: var(--accent-2); }
.c3 .point-tag { border-left-color: var(--accent-3); color: var(--accent-3); }

/* 下部サマリーバーのレスポンシブ修正 */
.synthesis-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.logic-node {
  display: flex;
  align-items: flex-start; /* アイコンとテキストの頭を揃える */
  gap: 15px;
  min-width: 220px; /* PC/スマホ共通で各項目の幅を確保して揃える */
}

.dot { 
  width: 14px; 
  height: 14px; 
  border-radius: 50%; 
  margin-top: 5px; /* テキストの1行目の高さに合わせる微調整 */
  flex-shrink: 0; /* ドットが潰れないように固定 */
}

.node-text b { 
  font-size: 0.95rem; 
  display: block; 
  line-height: 1.4; 
  margin-bottom: 4px;
}

.node-text span { 
  font-size: 0.8rem; 
  color: var(--text-sub); 
  display: block; 
  line-height: 1.4;
}

/* スマホ用の個別調整 */
@media (max-width: 1024px) {
  .synthesis-bar {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;    /* バー全体を中央に配置 */
    padding: 30px;
    gap: 20px;
  }

  .logic-node {
    width: 240px; /* スマホ画面でドットの位置が縦に揃うように幅を固定 */
    justify-content: flex-start; /* 中身は左揃え */
    margin: 0 auto; /* 固定幅の項目自体を中央に寄せる */
  }
}

/* レスポンシブ設定 */
@media (max-width: 1024px) {
  .main-grid { grid-columns: 1fr; grid-template-columns: 1fr; }
  .description-area { flex-grow: 0; } /* スマホでは押し下げない */
}
/* --- Comparison Matrix Styles --- */
.matrix-section {
  margin-bottom: 60px;
}

.matrix-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 500;
  color: var(--text-sub);
}

.matrix-wrapper {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow-x: auto; /* スマホで表がはみ出さないように */
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th, 
.comparison-table td {
  padding: 20px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--bg);
}

/* 【修正ポイント】1列目（項目）は左揃え、それ以外は中央揃え */
.comparison-table th {
  text-align: left;
}

.comparison-table td,
.comparison-table thead th:not(:first-child) {
  text-align: center;
}

.comparison-table thead th {
  background: #fafafa;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
}

.comparison-table th:first-child {
  width: 150px;
  color: var(--text-sub);
  font-weight: 500;
}

/* 列ごとのアクセントカラー（:rootの色が反映されます） */
.col-c1 { color: var(--accent-1) !important; }
.col-c2 { color: var(--accent-2) !important; }
.col-c3 { color: var(--accent-3) !important; }

.comparison-table tbody tr:hover {
  background-color: #fcfcf9;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* スマホ対応：横スクロールを促すヒント */
@media (max-width: 600px) {
  .matrix-wrapper {
    margin: 0 -10px;
    border-radius: 8px;
  }
}
