/* 共通カードスタイル（再掲） */
.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 4px 1em 10px 1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 2em 0;
  text-align: center;
  transition: 0.3s ease;
    position: relative;
}
.result-card h2 {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  font-size: 1.4em;
}
.result-image {
  max-width: 100%;
  border-radius: 12px;
  margin: 1em 0;
}
.type-label {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}
.type-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #444;
  white-space: pre-wrap;
  margin-bottom: 1.5em;
    text-align:left;
}

/* ▼ MBTI16タイプのカラー分け（左線 or アクセントバー） */
.result-card.type-istj { border-left: 6px solid #607D8B; }   /* グレイッシュブルー */
.result-card.type-isfj { border-left: 6px solid #4DB6AC; }   /* アクアグリーン */
.result-card.type-infj { border-left: 6px solid #7986CB; }   /* ラベンダーブルー */
.result-card.type-intj { border-left: 6px solid #7E57C2; }   /* ディープパープル */

.result-card.type-istp { border-left: 6px solid #90A4AE; }   /* スモーキーグレー */
.result-card.type-isfp { border-left: 6px solid #81C784; }   /* ソフトグリーン */
.result-card.type-infp { border-left: 6px solid #64B5F6; }   /* スカイブルー */
.result-card.type-intp { border-left: 6px solid #4FC3F7; }   /* ライトブルー */

.result-card.type-estp { border-left: 6px solid #EF5350; }   /* レッド系 */
.result-card.type-esfp { border-left: 6px solid #FFB74D; }   /* オレンジ系 */
.result-card.type-enfp { border-left: 6px solid #FFA726; }   /* 明るいオレンジ */
.result-card.type-entp { border-left: 6px solid #FFD54F; }   /* イエロー系 */

.result-card.type-estj { border-left: 6px solid #FF7043; }   /* サンセットオレンジ */
.result-card.type-esfj { border-left: 6px solid #BA68C8; }   /* ライラック */
.result-card.type-enfj { border-left: 6px solid #F06292; }   /* ピンク系 */
.result-card.type-entj { border-left: 6px solid #F57C00; }   /* ダークオレンジ */


.type-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}


/* ▼ 商品紹介エリア（診断カードの下に表示） */
.product-box {
  background: #fff9db;
  border-radius: 12px;
  padding: 1.5em;
  margin-top: 2em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.product-box img {
  width: 150px;
  border-radius: 8px;
  margin: 1em 0;
}

.product-box p {
  margin: 0.5em 0;
  font-size: 0.95em;
  line-height: 1.4;
  color: #444;
}




.save-image-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ffa600;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.save-image-btn:hover {
  background-color: #ff9300;
}


.result-hashtag-footer {
  margin-top: 1em;
  text-align: center;
}

.result-hashtag-footer img {
  position: absolute;
  top: 0px;
  left: 8px;
  width: 50px;
  opacity: 0.8;
}

.reveal-btn {
  background-color: #f2f2f2;
  border: none;
  padding: 0.5em 1em;
  margin-top: 0.5em;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
}


.loadM iframe{
    width: 100%!important;
}


.loadLine {
  margin: 1em 0;
  text-align: center;
}

.line-button {
  background-color: #00c300;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: opacity 0.2s;
}

.line-button:hover {
  opacity: 0.8;
}


.result-hashtag-footer {
  display: none;
}

.retry-btn {
 margin: 0px auto;
    background: #0f6022;
    display:block;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
    text-align: center;
}
.retry-btn:hover {
  background: #44afe8;
}



.share-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  color: #fff;
  min-width: 120px;
}

.share-btn.twitter {
  background-color: #000;
}

@media (max-width: 767px){
   .share-btn.twitter {
      width:100%;
    } 
}

.share-btn.twitter:hover {
  background-color: #222;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.share-btn.line {
  background-color: #00c300;
}

.share-btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}



.copy-url-box {
  margin-top: 15px;
  text-align: center;
}

.copy-url-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}

#shareUrlInput {
  width: 280px;
  padding: 6px 10px;
  font-size: 0.9em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

#copyUrlBtn {
  padding: 6px 16px;
  font-size: 0.9em;
  border: none;
  border-radius: 6px;
  background-color: #555;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

#copyUrlBtn:hover {
  background-color: #333;
}




.brain-section {
  margin: 32px auto;
  padding: 24px;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 640px;
}

.brain-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #444;
  letter-spacing: 0.03em;
}

.brain-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* 画像とボタンの間隔 */
  flex-wrap: wrap; /* 狭い画面では縦並び */
}

.brain-section .pic img {
  max-width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.brain-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ff8a65, #ffca28);
  color: #222;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: all .2s ease;
  white-space: nowrap;
}

.brain-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
}



.share-btn.instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin: 8px 4px;
  border-radius: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.share-btn.instagram:hover {
  opacity: 0.85;
}
