﻿  /* --- 全体・レイアウト（2x2グリッド、レスポンシブ） --- */
  .golf-sim-wrapper {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background: #fff;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px;
    box-sizing: border-box;
  }
	@media (max-width: 768px) {
	  .golf-sim-wrapper {
			padding:25px 15px;
		}
	}
  .gs-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
  }
  .gs-col {
    flex: 1;
    width: 100%;
    min-width: 0;
		position:relative;
  }
  
  .gs-divider-horizontal {
    border-top: 1px dotted #ccc;
    margin: 40px 0;
  }

  @media (max-width: 768px) {
    .gs-row {
      flex-direction: column;
      gap: 30px;
      margin-bottom: 30px;
    }
    .gs-divider-horizontal { margin: 30px 0; }
  }

  /* --- フォーム・UI部品 --- */
  .gs-form-group { margin-bottom: 24px; }
  .gs-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .gs-label { font-weight: bold; font-size: 1rem; }
  
  .gs-select {
    width: 100%; padding: 10px 15px; font-size: 1rem;
    border: 1px solid #4CAF50; border-radius: 4px; background-color: #fff;
    cursor: pointer; font-weight: bold; color: #333;
  }

  .gs-number-input {
    width: 60px; padding: 6px 6px 6px 10px; font-size: 1.1rem; text-align: center;
    border: 1px solid #ccc; border-radius: 4px; font-weight: bold; color: #333;
		text-align:left;
  }
	input[type="number"] {
		-moz-appearance: textfield;
	}
	input[type="number"]::-webkit-outer-spin-button,
	input[type="number"]::-webkit-inner-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}

  .gs-range-input {
		appearance:none;
    width: 100%; height: 4px; background: #ddd;
    border-radius: 3px; outline: none; cursor: pointer; margin-top: 5px;

		/* 初期値 (JSで書き換わります) */
		--progress: 50%;
		/* 左側が青色、右側がグレーのグラデーション */
		background: linear-gradient(to right, #4CAF50 var(--progress), #ddd var(--progress));
  }
  .gs-range-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    background: #4CAF50; border-radius: 50%; cursor: pointer;
  }

  /* --- 結果表示エリア --- */
  .gs-result-card {
    background-color: #F1F8F1; border-radius: 8px; padding: 15px 15px;
    display: flex; justify-content: space-between; align-items: center;
    text-align: center; margin-bottom: 15px;
  }
  .gs-result-divider { width: 1px; height: 70px; background-color: #ccc; }
  .gs-result-item { flex: 1; }
  .gs-result-label { font-size: 0.9rem; color: #555; font-weight: bold; }
	.gs-result-label small { font-size:0.75rem; }
  .gs-result-value { font-size: 3rem; font-weight: bold; color: #4CAF50; line-height: 1; }
  .gs-result-value.smash-val { color: #333; }
  .gs-result-unit { font-size: 1.1rem; color: #333; font-weight: normal; margin-left: 2px; }

  /* 理想飛距離サマリー */
  .gs-ideal-summary {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: 10px; margin-top: 10px;
  }
  .gs-ideal-summary-text { font-size: 0.9rem; color: #333; line-height: 1.4; padding-right:10px;  }
	.gs-ideal-summary-text small { font-size:0.75rem; }
  .gs-ideal-summary-val { font-size: 2rem; font-weight: bold; color: #333; line-height: 1; transform: translateY(4px); white-space:nowrap; display:flex; align-items:baseline; gap:5px; }
  .gs-ideal-summary-val span { font-size: 1rem; font-weight: normal; }
	.gs-ideal-summary-val span#gs-ideal-dist-summary { font-size:2rem; }
	.gs-ideal-summary-val span small { font-size:0.8rem; display:block; }

  /* --- ▼ 右上：腕前診断エリア（新しい画像演出） --- */
  .gs-diag-area {
    border: 1px solid #E0E0E0; border-radius: 10px;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    height: 100%; min-height: 300px; text-align: center;
		overflow:hidden;
		opacity:0;
		transition:all 0.25s linear 0s;
  }
	.gs-diag-area.-on {
		opacity:1;
	}
	.gs-diag-area::after {
		content:'';
		display:block;
		background:rgba(255,255,255,0.75);
		position:absolute; top:0; left:0; right:0; bottom:0;
		width:100%; height:100%;
		opacity:0;
		transition:all 0.25s ease-in-out 0s;
	}
	.gs-diag-area.-recheck::after {
		opacity:1;
	}

  /* 診断ボタン */
  .gs-btn-diag {
    border: 4px solid #009f36; background:#F0FAF3; color: #009f36; border-radius: 10px;
    font-size: 32px; font-weight: bold; cursor: pointer;
    transition: 0.2s; line-height: 1.4;
    display: flex; align-items: center; justify-content:center; gap: 10px;
		width:100%; aspect-ratio:1/1;
		box-shadow: 0px 4px 4px #00000033;
		position:absolute;
		z-index:1;
  }
  .gs-btn-diag:hover { background-color: #009f36; color:#FFF; transform: translateY(-2px); }
  .gs-btn-recheck {
    border: 1px solid #009f36; background:#F0FAF3; color: #009f36; border-radius: 20px;
    font-size: 20px; font-weight: bold; cursor: pointer;
    transition: 0.2s; line-height: 1.4;
    display: flex; align-items: center; justify-content:center; gap: 10px;
		width:140px; height:80px; box-shadow: 0px 4px 4px #00000033;
		position:absolute; left:50%; bottom:-100px; transform:translateX(-50%); opacity:0;
		transition:all 0.5s ease-in-out 0s, opacity 0.1s linear 0s;
  }
	.gs-btn-recheck:hover {
		opacity:0.9;
	}
	.gs-diag-area.-recheck + .gs-btn-recheck {
		display:flex;
		opacity:1; bottom:50px;
		transition:all 0.35s ease-in-out 0s, opacity 0.1s linear 0s;
	}
	@media (max-width: 768px) {
		.gs-diag-area.-recheck {
		}
		.gs-diag-area.-recheck + .gs-btn-recheck {
			bottom:50%;
		}
	}

  /* ▼ 診断結果表示 (新しい画像とアニメーション) ▼ */
  .gs-diag-result { display: none; width: 100%; }
  .gs-diag-label { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; }
  
  /* 画像を表示するコンテナ */
  .gs-diag-visual-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 診断結果のアルファベット画像 */
  .gs-diag-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    
    /* 初期状態：縮小・透明 */
		/*
    transform: scale(0);
    opacity: 0;
		*/
  }
  
  /* サブテキスト */
  .gs-diag-sub { font-size: 1.2rem; font-weight: bold; color: #000; display:none; }
  .gs-diag-txt { font-size:14px; color:#333; line-height:1.7; padding:5px 25px 20px; opacity:0; transition:all 0.25s ease-in-out 0.5s; text-align:left; }
  .gs-diag-area.-on .gs-diag-txt { opacity:1; }


  /* ▲ ガチャ演出風 ズームインアニメーション ▲ */
	/*
  .zoom-in-anim {
    animation: zoomIn 0.5s ease-out 1s 1 normal both;
  }
	*/

  @keyframes zoomIn {
    0% {
      transform: scale(0);
      opacity: 0;
    }
    60% {
      transform: scale(1.1); /* 少し行き過ぎる */
      opacity: 1;
    }
    100% {
      transform: scale(1); /* 戻る */
      opacity: 1;
    }
  }

  /* --- 下段：テーブル --- */
  .gs-table-title { font-size: 1rem; font-weight: bold; margin-bottom: 15px; color: #333; }
	.gs-table-title small { font-size:0.75rem; }
  .gs-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
  .gs-table th, .gs-table td { border: 1px solid #e0e0e0; padding: 9px 8px; text-align: center; }
  .gs-table th { background-color: #EAEAEA; color: #333; font-weight: bold; }
  
  /* テーブルハイライト */
  .gs-row-active { background-color: #F1F8F1 !important; }
  .gs-row-active td { color: #2E7D32; font-weight: bold; }
  
  /* 右下：判定基準テーブル特定 */
  .gs-rule-table th { background-color: #EAEAEA; }
  .gs-rule-table td:nth-child(1) { font-weight: bold; }


/* --- ▼ 追加：ポップアップ演出用CSS ▼ --- */
.gs-popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: none;
  justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.3s ease;
  cursor: pointer;
}
.gs-popup-overlay.is-active { display: flex; }
.gs-popup-overlay.is-show { opacity: 1; }

.gs-popup-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gs-popup-img {
  max-width: 90vw; max-height: 70vh;
  transform: scale(0.3); opacity: 0;
  transition: transform 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s, opacity 0.4s ease 0.5s;
}
.gs-popup-overlay.is-show .gs-popup-img {
  transform: scale(1); opacity: 1;
}

.gs-popup-text {
  color: #fff; font-weight: bold; font-size: 1.1rem; margin-top: 25px;
  animation: gs-blink 1.5s 4s infinite;
	opacity:0;
	transition:opacity 0.5s linear 3s;
}
.gs-popup-overlay.is-show .gs-popup-text {
	opacity:1;
}
@keyframes gs-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* --- ▲ 追加ここまで ▲ --- */
