@charset "utf-8";

/* ==================================================
   GLC-TI（性格タイプ診断）専用スタイル
================================================== */

/* 説明セクション */
.glcti-intro-box {
  background-color: #ffffff;
  border: 2px solid #00bcd4;
  border-radius: 16px;
  padding: 20px 18px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.08);
}

.glcti-logo-wrap {
  text-align: center;
  margin-bottom: 15px;
}

.glcti-logo-wrap img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.glcti-lead-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 15px;
}

.glcti-point-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glcti-point-list li {
  font-size: 0.9rem;
  font-weight: bold;
  color: #00838f;
  background-color: #e0f7fa;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glcti-point-list li i {
  color: #00bcd4;
}

/* 診断アプリ本体コンテナ */
.glcti-app-container {
  background: #ffffff;
  border: 3.5px solid #ff5e97;
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(255, 94, 151, 0.15);
  text-align: center;
  margin: 30px 0 20px;
  box-sizing: border-box;
}

.glcti-app-title {
  color: #ff3377;
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 6px;
}

.glcti-app-subtitle {
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 25px;
  font-weight: bold;
}

/* スタート画面 */
.start-img {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.btn-start-quiz {
  display: inline-block;
  background-color: #ff5e97;
  color: #ffffff;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 94, 151, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-start-quiz:hover,
.btn-start-quiz:active {
  background-color: #ff3377;
  transform: translateY(-2px);
}

/* 質問画面 */
.quiz-progress {
  font-size: 0.85rem;
  color: #ff3377;
  font-weight: 800;
  margin-bottom: 10px;
}

.quiz-question {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 25px;
  min-height: 70px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  background-color: #fff0f5;
  padding: 15px;
  border-radius: 12px;
}

.quiz-btn-container {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.quiz-btn {
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  padding: 12px 0;
  width: 130px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.quiz-btn:hover,
.quiz-btn:active {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-yes {
  background-color: #ff5e97;
  color: #ffffff;
}

.btn-no {
  background-color: #e0e0e0;
  color: #555555;
}

/* 結果画面 */
.result-common-box {
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.65;
  background: #f0fbfd;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 5px solid #00bcd4;
  color: #006064;
}

.result-type-title {
  font-size: 1.2rem;
  color: #ff3377;
  font-weight: 800;
  margin: 15px 0 10px;
  line-height: 1.4;
}

.result-type-desc {
  font-size: 0.95rem;
  text-align: left;
  line-height: 1.7;
  background: #fff8fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1.5px dashed #ff80ab;
  color: #333333;
}

.btn-reset-quiz {
  background-color: #00bcd4;
  color: #ffffff;
  padding: 12px 35px;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
  transition: transform 0.2s ease;
}

.btn-reset-quiz:hover,
.btn-reset-quiz:active {
  transform: translateY(-2px);
  background-color: #00838f;
}


/* 診断スタート前は枠線コンテナ自体を非表示にする */
.glcti-app-container.hidden {
  display: none !important;
}

/* 隠し要素の非表示制御 */
#quiz-area.hidden,
#result-area.hidden {
  display: none !important;
}

/* ==================================================
   GLC-TI アプリ単体ページ用追加スタイル
================================================== */
body.glcti-app-page {
  background: #e0f7fa !important; /* 爽やかな水色背景 */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
}

/* ヘッダー */
.glcti-app-header {
  width: 100%;
  max-width: 480px;
  height: 50px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.glcti-app-header .app-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.glcti-app-header .app-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: #ff3377;
}

/* メイン枠（スマホ画面サイズ固定） */
.glcti-app-wrapper {
  width: 100%;
  max-width: 480px; /* スマホサイズ固定 */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

/* アプリ風コンテナ調整 */
.glcti-intro-box,
.glcti-app-container {
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* ==================================================
   GLC-TI アプリ風コンテナ（サイズ限定＆画面中央配置）
================================================== */
/* ==================================================
   GLC-TI アプリ風コンテナ（一体化＆デザイン修正）
================================================== */
body.glcti-app-page {
  background: rgba(0, 0, 0, 0.5) !important; /* 背景をダークにしてアプリを際立たせる */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* アプリ枠本体（ヘッダーとコンテンツを1つのカードに一体化） */
.glcti-app-wrapper {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 28px; /* 全体を綺麗に角丸化 */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden; /* 内部パーツの飛び出しを防ぐ */
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* アプリ専用ヘッダー（カードのトップに自然に馴染ませる） */
.glcti-app-header {
  width: 100%;
  height: 54px;
  background: transparent; /* 背景になじませて帯を消す */
  border-bottom: none;      /* 下線を消す */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;           /* 左右の余白を少し調整 */
  box-sizing: border-box;
}

.glcti-app-header .app-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.glcti-app-header .app-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* 内部コンテンツの余白調整 */
.glcti-intro-box,
.glcti-app-container {
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 24px 20px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* 診断スタート下の集合イラスト配置 */
.glcti-chara-footer {
  text-align: center;
  margin-top: 0%;
  width: 100%;
}

.glcti-chara-footer img {
  width: 100%;
  max-width: 160px; /* サイズはカードの幅に合わせて自動で収まります */
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* ヘッダー全体の設定 */
.glcti-app-header {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px; /* 右側の余白を少し調整 */
  box-sizing: border-box;
}

/* 右側エリア（タイトル＋閉じるボタン）のグループ */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ★ 閉じる（✕）ボタンの装飾 */
.app-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-close-btn:hover,
.app-close-btn:active {
  background: #ff3377; /* タップ時・ホバー時に鮮やかなピンクに変化 */
  transform: scale(1.05);
}

/* 結果画面のボタンエリアグループ */
.result-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* 診断を終了して閉じるボタン */
.btn-close-quiz {
  background-color: transparent;
  color: #666666;
  border: 1.5px solid #cccccc;
  padding: 10px 30px;
  font-size: 0.95rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
  min-width: 200px;
}

.btn-close-quiz:hover,
.btn-close-quiz:active {
  background-color: #ff3377;
  color: #ffffff;
  border-color: #ff3377;
}

/* 診断結果画面用の3D回転カードサイズ調整 */
.result-card-wrap {
  width: 150px !important;
  height: 210px !important; /* 縦横比 1 : 1.4 */
  margin: 0 auto;
}

.result-card-wrap .glc-card-face img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 質問ヘッダー（Qアイコン ＋ 1/10テキストの横並び） */
.quiz-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* ★ Q1 アイコンバッジ */
.q-icon-badge {
  background: #ff5e97;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(255, 94, 151, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* 右側の 1 / 10 テキスト */
.quiz-progress {
  font-size: 0.85rem;
  color: #888888;
  font-weight: bold;
  margin-bottom: 0 !important; /* 余白を調整 */
}

/* 質問文枠のスタイル（文章だけになってスッキリ！） */
.quiz-question {
  font-size: 1.05rem !important;
  font-weight: bold;
  margin-bottom: 25px;
  min-height: 80px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left !important;
  color: #333333;
  background-color: #fff0f5;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1.5px solid #ffd1e1;
}

/* ==================================================
   4段階評価ボタン（glcti.html用）レイアウト調整
================================================== */
.quiz-btn-4options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.quiz-btn-4options .btn-opt {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: bold;
  border: 2px solid #00bcd4;
  border-radius: 25px;
  background-color: #ffffff;
  color: #00bcd4;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 188, 212, 0.12);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* ホバー・タップ時の演出 */
.quiz-btn-4options .btn-opt:hover,
.quiz-btn-4options .btn-opt:active {
  background-color: #00bcd4;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.25);
}

/* 非表示用基本クラス */
.hidden {
  display: none !important;
}

/* 診断実行中の枠をコンパクト＆中央寄せにする */
.glcti-app-container {
  padding: 20px 16px !important;
  margin: 10px auto !important;
}

/* 質問エリアを縦コンパクト化 */
.quiz-question {
  min-height: 60px !important;
  font-size: 0.95rem !important;
  padding: 12px 14px !important;
  margin-bottom: 15px !important;
}

/* 4段階ボタンをキュッとコンパクト化 */
.quiz-btn-4options {
  gap: 8px !important;
  margin-top: 10px !important;
}

.quiz-btn-4options .btn-opt {
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
}