@charset 'UTF-8';
/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* index.phpのレイアウト */
.page-header {
  text-align: center;
  padding: 2em 1em;
  background-color: #f9f9f9;
}

.page-header h1 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  padding: 2em 0em;
  max-width: 1200px;
  margin: 0 auto;
}

.simulation-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃え */
  text-align: center;  /* テキスト中央揃え */
}

.simulation-card h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  text-align: center;
  border: none !important;
  padding: 0 !important;
  background: none !important;
  position: relative;
}

.simulation-card p {
  flex-grow: 1;
  font-size: 0.95em;
  margin-bottom: 1em;
  color: #333;
}

.simulation-card .use-case {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 1em;
  background-color: #f1f9fc;
  padding: 0.6em 1em;
  border-left: none; /* 左線を消去 */
  border-radius: 4px;
}


/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* ヒーロー画像の説明文のレイアウト */

.page-title--hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.page-title--hero .page-title-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 中央配置のテキストボックス */
.page-title-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 0 1em;
  max-width: 90%;
}

/* h1 の表示を一行に保ち、改行させない */
.page-title-text h1 {
  display: block;
  white-space: nowrap; /* 改行防止 */
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.4em 1.2em;
  border-radius: 6px;
  color: #003366;
  font-size: 2.2rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
  width: fit-content;
}

.page-title-text .page-description {
  font-size: 1rem;
  margin-top: 1em;
  color: #333333;
}



/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 入力欄のスライダーのレイアウト */
/* スライダー全体のラッパー */
.slider-wrapper {
  margin-top: 0.75em;
  width: 100%;
}

/* スライダー本体（共通クラス） */
input[type="range"].styled-slider {
  width: 100%;
  appearance: none;
  height: 8px;
  background: linear-gradient(to right, #66bfe4, #e3f3fb);
  border-radius: 4px;
  outline: none;
  transition: background 0.3s;
}

/* スライダーつまみ - Webkit（Chrome・Safariなど） */
input[type="range"].styled-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #66bfe4;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-top: -6px;
}

/* スライダーつまみ - Firefox */
input[type="range"].styled-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #66bfe4;
  border-radius: 50%;
  cursor: pointer;
}

/* スライダーラベル（左右のメモリ） */
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85em;
  color: #555;
  margin-top: 0.25em;
}




/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* シミュレーション結果のレイアウト */
/* シミュレーション結果全体 */
.result-section.modern-result {
  background-color: #f5faff; /* やさしい水色 */
  padding: 1em;
  border-radius: 12px;
  margin-top: 2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #d0e7f5;
}

/* タイトル */
.result-section .result-header h2 {
  font-size: 1.6em;
  color: #004b75;
  margin-bottom: 1.2em;
}

/* カード本体 */
.result-card {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

/* 行ごとの並び */
.result-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

/* 各項目 */
.result-item {
  flex: 1;
  min-width: 200px;
  background-color: #ffffff;
  padding: 1em;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 見出し */
.result-item .label {
  font-weight: bold;
  color: #555;
  margin-bottom: 0.5em;
}

/* 値 */
.result-item .value {
  font-size: 1.3em;
  color: #1a73e8;
}

/* ハイライト項目（特に目立たせたい行） */
.result-item.highlight {
  background-color: #e8f4fd;
  border-color: #c7e1fb;
  color: #004b75;
}

.result-item.highlight .value {
  font-weight: bold;
  font-size: 1.4em;
  color: #0b5cad;
}



/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* スマホ対応 */
@media (max-width: 768px) {
  /* ーーーーーーーーーーーーーーーーーーーーー */
  /* ヒーロー画像の説明文のレイアウト */
  .page-title-text h1 {
    font-size: 1.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.4em 1em;
  }

  .page-title-text .page-description {
    font-size: 0.9rem;
    padding: 0.2em 0.6em;
  }
}

/* ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */