@charset "UTF-8";
:root {
  --ink: #1a2b20;
  --muted: #5d6b61;
  --line: #dce4d9;
  --white: #ffffff;
  --green: #1e7a4e;
  --green-dark: #14593a;
  --fairway: #17603c;
  --turf-deep: #0d3b25;
  --cream: #f4f7f0;
  --sand: #f1ecdd;
  --gold: #d99e2b;
  --gold-dark: #b8831d;
  --amber: #b7791f;
  --danger: #b42318;
  --navy: #17314d;
  --shadow: 0 18px 48px rgba(13, 59, 37, 0.10);
  --radius: 10px;
  --cta-color: #d99e2b;
  --cta-hover: #b8831d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.65;
}

button, input, select {
  font: inherit;
}

/* ===== ヒーローヘッダー（フェアウェイ） ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0d3b25 0%, #14593a 45%, #1e7a4e 100%);
  color: var(--white);
  padding: 48px 20px 88px;
  overflow: hidden;
}

/* 芝の刈り込みストライプ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 44px, rgba(255, 255, 255, 0) 44px 88px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 100% - 40px);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 22px;
  color: #ffffff;
  font-size: clamp(17px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(6, 32, 19, 0.45);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(6, 32, 19, 0.25);
}

/* ゴルフボール風のマーク */
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e8ece6 55%, #c3cdc0 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(13, 59, 37, 0.35);
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.1vw, 16px);
}

/* ピンフラッグ＋ボールの装飾イラスト */
.hero-art {
  position: absolute;
  right: -10px;
  bottom: 34px;
  z-index: 1;
  width: clamp(180px, 24vw, 300px);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

/* フェアウェイの丘シルエット（ヒーロー下端） */
.hero-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: 70px;
  display: block;
  pointer-events: none;
}

/* ===== メインコンテナ（中央寄せ） ===== */
.main-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

/* ===== セクション見出し（ピンフラッグ付き） ===== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 800;
  color: var(--turf-deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green) 0 120px, var(--line) 120px 100%) 1;
}

.section-heading::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 22px;
  background-image: url("../assets/img/icon-flag.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ===== カード ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 14px 20px;
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 700;
  color: var(--white);
  background: var(--fairway);
}

.card-body {
  padding: 20px;
}

.panel-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(30, 122, 78, 0.08), rgba(30, 122, 78, 0.02)), #fbfdf9;
  border-top: 4px solid var(--green);
}

.panel-title {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--turf-deep);
}

.panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 0.9vw, 13px);
}

/* ===== 入力フォームグリッド ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.field {
  display: grid;
  gap: 5px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2ea;
}

.field:nth-child(odd) {
  border-right: 1px solid #eef2ea;
}

.field.full-width {
  grid-column: 1/-1;
  border-right: none;
}

.field:last-child {
  border-bottom: none;
}

label {
  color: #2c4033;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
}

.hint {
  color: var(--muted);
  font-size: clamp(11px, 0.85vw, 12px);
}

/* ===== スピナー付き数値入力 ===== */
.spin-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #c3d0c3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s;
}

.spin-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 122, 78, 0.16);
}

.spin-wrap input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border: none;
  padding: 0 12px;
  font-size: clamp(15px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  text-align: right;
  -moz-appearance: textfield;
}

.spin-wrap input:focus {
  outline: none;
}

.spin-wrap input::-webkit-inner-spin-button,
.spin-wrap input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.spin-unit {
  display: flex;
  align-items: center;
  padding: 0 8px 0 2px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  user-select: none;
}

.spin-btns {
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e6ece3;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.spin-wrap:hover .spin-btns,
.spin-wrap:focus-within .spin-btns {
  opacity: 1;
}

.spin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex: 1;
  border: none;
  background: #f4f7f1;
  color: #a9b5a9;
  font-size: clamp(10px, 0.78vw, 11px);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  padding: 0;
  transition: background 0.1s, color 0.1s;
}

.spin-btn:hover {
  background: #e2eadd;
  color: #3d5245;
}

.spin-btn:active {
  background: #d2ddcb;
  color: #2c4033;
}

.spin-btn + .spin-btn {
  border-top: 1px solid #e6ece3;
}

/* ===== セレクトボックス ===== */
.control-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c3d0c3;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 7px 12px;
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 600;
  cursor: pointer;
}

.control-select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(30, 122, 78, 0.16);
}

/* ===== KPIカード ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.kpi-label {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: clamp(23px, 2vw, 28px);
  font-weight: 800;
  color: var(--turf-deep);
  line-height: 1.2;
}

.kpi-value.positive {
  color: var(--green);
}

.kpi-value.negative {
  color: var(--danger);
}

.kpi-sub {
  font-size: clamp(11px, 0.85vw, 12px);
  color: var(--muted);
  margin-top: 6px;
}

/* ===== 診断バッジ（結果バナー） ===== */
.score-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 28px 24px 26px;
  background: radial-gradient(ellipse at 50% -20%, rgba(30, 122, 78, 0.14), rgba(30, 122, 78, 0) 60%), linear-gradient(90deg, rgba(30, 122, 78, 0.06), rgba(217, 158, 43, 0.06)), var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: scorePop 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

@keyframes scorePop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.score-bar .score-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
}

.score-bar .score-label::before,
.score-bar .score-label::after {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.score-bar .score-label::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.score-bar .score-value {
  margin: 0;
  font-size: clamp(30px, 6.4vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--green);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.score-bar.warning {
  border-top-color: var(--amber);
}

.score-bar.warning .score-value {
  color: var(--amber);
}

.score-bar.danger {
  border-top-color: var(--danger);
}

.score-bar.danger .score-value {
  color: var(--danger);
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: var(--green);
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  white-space: nowrap;
}

.badge.warning {
  background: var(--amber);
}

.badge.danger {
  background: var(--danger);
}

/* ===== ブラーロック付きセクション ===== */
.locked-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.locked-blur {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
  padding: 24px;
  background: var(--white);
  min-height: 300px;
}

.locked-blur table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(13px, 1vw, 14px);
}

.locked-blur th, .locked-blur td {
  padding: 7px 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.locked-blur thead th {
  background: var(--fairway);
  color: var(--white);
  font-size: clamp(11px, 0.85vw, 12px);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(250, 252, 248, 0.8);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 28px;
  cursor: pointer;
}

/* パター練習グリーン風の円形アイコン台座 */
.locked-overlay .lo-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1;
  color: var(--white);
  background: radial-gradient(circle at 35% 30%, #2b8f5f, var(--fairway) 70%);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(13, 59, 37, 0.28);
}

.locked-overlay h3 {
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--turf-deep);
  margin: 0 0 8px;
  font-weight: 800;
}

.locked-overlay p {
  font-size: clamp(14px, 1.05vw, 15px);
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 400px;
  line-height: 1.6;
}

.locked-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 auto;
  padding: 9px 20px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--gold);
  color: #1c2a20;
  font-size: clamp(14px, 1.05vw, 15px);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(217, 158, 43, 0.36);
  transition: background 0.15s;
}

.locked-cta-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
}

/* ===== CTA下部バナー（フェアウェイパネル） ===== */
.cta-bottom {
  position: relative;
  padding: 28px 24px;
  color: var(--white);
  background: linear-gradient(150deg, var(--turf-deep) 0%, var(--fairway) 70%, var(--green) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.cta-bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 36px, rgba(255, 255, 255, 0) 36px 72px);
  pointer-events: none;
}

.cta-bottom > * {
  position: relative;
}

.cta-bottom h2 {
  margin: 0;
  font-size: clamp(19px, 1.55vw, 22px);
  line-height: 1.35;
}

.cta-bottom > p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(13px, 1vw, 14px);
}

.cta-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 1vw, 14px);
}

.cta-list li {
  display: flex;
  gap: 10px;
}

/* リストマーカー＝ゴルフボール */
.cta-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e8ece6 55%, #b9c4b6 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 8px;
  padding: 18px 48px;
  border: 1px solid transparent;
  color: #1c2a20;
  background: var(--gold);
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(217, 158, 43, 0.4);
  transition: background 0.15s, transform 0.1s;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:hover {
  background: var(--gold-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.disclaimer {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(11px, 0.85vw, 12px);
}

/* ===== フッター ===== */
.footer {
  border-top: 3px solid var(--green);
  background: var(--turf-deep);
  padding: 20px 0;
  text-align: center;
}

.footer-inner {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(11px, 0.85vw, 12px);
}

/* ===== ページ切替 ===== */
.page-view {
  display: block;
}

.page-view.hidden {
  display: none;
}

.submit-area {
  text-align: center;
  padding: 24px 20px 8px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  min-width: 280px;
  border-radius: 8px;
  padding: 14px 40px;
  border: none;
  color: var(--white);
  background: linear-gradient(160deg, var(--green), var(--green-dark));
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(30, 122, 78, 0.35);
  transition: filter 0.15s, transform 0.1s;
}

.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.back-btn:hover {
  background: #eef2ea;
  color: var(--ink);
}

/* ===== モバイル固定CTA ===== */
.mobile-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(13, 59, 37, 0.14);
}

.mobile-sticky .cta-button {
  width: 100%;
  min-height: 56px;
  padding: 16px 20px;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 900;
  border-radius: 8px;
  background: var(--gold);
  color: #1c2a20;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(217, 158, 43, 0.35);
}

.mobile-sticky .cta-button:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .main-container {
    padding: 20px 16px 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field:nth-child(odd) {
    border-right: none;
  }
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .kpi-value {
    font-size: clamp(19px, 1.55vw, 22px);
  }
  .section-heading {
    font-size: clamp(16px, 1.25vw, 18px);
  }
  .hero-art {
    width: 150px;
    opacity: 0.5;
  }
}
@media (max-width: 540px) {
  .page {
    padding-bottom: 78px;
  }
  .hero {
    padding: 32px 16px 66px;
  }
  .hero-inner {
    width: calc(100% - 28px);
  }
  .hero-art {
    display: none;
  }
  .hero-hills {
    height: 44px;
  }
  .main-container {
    width: calc(100% - 28px);
    padding: 16px 0 28px;
  }
  .lead {
    font-size: clamp(13px, 1vw, 14px);
  }
  .section-heading {
    font-size: clamp(16px, 1.15vw, 17px);
    margin-bottom: 12px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .kpi-card {
    display: block;
    text-align: left;
    padding: 16px 18px;
  }
  .kpi-card .kpi-label {
    margin-bottom: 4px;
    font-size: clamp(12px, 0.9vw, 13px);
  }
  .kpi-card .kpi-value {
    font-size: clamp(22px, 1.9vw, 26px);
    text-align: left;
  }
  .kpi-card .kpi-sub {
    display: block;
    margin-top: 6px;
  }
  .score-bar {
    padding: 22px 16px 20px;
    gap: 10px;
  }
  .score-bar .score-value {
    font-size: clamp(23px, 2vw, 28px);
  }
  .submit-btn {
    width: 100%;
    min-width: auto;
  }
  .spin-wrap input {
    font-size: clamp(16px, 1.25vw, 18px);
    min-height: 44px;
  }
  .spin-btns {
    opacity: 1;
  }
  .spin-btn {
    width: 38px;
  }
  .spin-unit {
    font-size: clamp(13px, 1vw, 14px);
  }
  .cta-actions .cta-button {
    width: 100%;
  }
  .cta-bottom h2 {
    font-size: clamp(17px, 1.3vw, 19px);
  }
  .locked-overlay h3 {
    font-size: clamp(16px, 1.15vw, 17px);
  }
  .locked-overlay p {
    font-size: clamp(13px, 1vw, 14px);
  }
  .mobile-sticky {
    display: block;
  }
}
.hint-link {
  color: var(--green);
  text-decoration: underline;
}

.locked-preview-title {
  margin-bottom: 10px;
  color: var(--turf-deep);
  font-size: clamp(14px, 1.05vw, 15px);
  font-weight: 700;
}

.table-heading-left {
  width: 60%;
  text-align: left;
}

.table-total {
  font-weight: 700;
}

.table-value--negative {
  color: var(--danger);
}
