/* =====================
   Base
===================== */

*,
*::before,
*::after{
box-sizing:border-box;
}

body{
margin:0;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;
line-height:1.9;
color:#222;
background:#ffffff;
}

/* =====================
   Header
===================== */

.site-header{
height:72px;
display:flex;
justify-content:space-between;
align-items:center;
padding:0 28px;
background:#ffffff;
position:fixed;
top:0;
left:0;
z-index:100;
width:100%;
border-bottom:1px solid #eee;
}

.logo-area{
display:flex;
align-items:center;
}

.logo-area img{
height:38px;
}

.home-link{
margin-left:14px;
color:#0b1f3a;
text-decoration:none;
font-size:14px;
}

.home-link:hover{
text-decoration:underline;
}

/* =====================
   Header CTA
===================== */

.trial-button{
background:#c9a14a;
color:#0b1f3a;
padding:11px 22px;
border-radius:4px;
text-decoration:none;
font-weight:600;
font-size:14px;
transition:all .2s ease;
}

.trial-button:hover{
opacity:.85;
transform:translateY(-1px);
}

/* =====================
   Section
===================== */

section{
padding:40px 20px;
max-width:740px;
margin:0 auto;
text-align:center;
}

section p,
section ul,
.text-block,
.faq-item{
max-width:620px;
margin-left:auto;
margin-right:auto;
text-align:left;
list-style: none;
}

/* =====================
   Heading
===================== */

h1{
font-size:38px;
line-height:1.4;
font-weight:600;
}

h2{
font-size:28px;
margin-bottom:30px;
font-weight:600;
}

h3{
font-weight:600;
}

/* =====================
   Hero
===================== */

.hero{
background:#0b1f3a;
color:white;
text-align:center;
padding:100px 20px 60px;
}

.sub{
font-size:20px;
margin:28px 0;
opacity:.9;
}

.limit-top{
margin-top:14px;
font-size:14px;
opacity:.7;
text-align:center;
}

/* =====================
   CTA
===================== */

.cta-main{
display:inline-block;
background:#28a745;
color:#0b1f3a;
padding:16px 38px;
font-size:18px;
border-radius:3px;
text-decoration:none;
font-weight:600;
margin-top:24px;
transition:all .2s ease;
}

.cta-main:hover{
opacity:.9;
transform:translateY(-2px);
}

.cta-note{
font-size:13px;
margin-top:8px;
opacity:.7;
}

.cta-sub{
font-size:13px;
margin-top:8px;
opacity:.7;
}

.final-cta{
background:#f3f5f8;
padding:80px 20px 100px;
border-bottom:1px solid #e5e7eb;
}


/* =====================
   Empathy
===================== */

.empathy ul{
display:inline-block;
text-align:left;
padding-left:20px;
}

.empathy li{
margin-bottom:14px;
padding-left:26px;
position:relative;
}

.empathy li::before{
content:"✓";
position:absolute;
left:0;
color:#c9a14a;
font-weight:bold;
}

/* =====================
   Diagnosis
===================== */

.diagnosis{
background:#ffffff;
border-radius:12px;
padding:30px 30px;
margin-top:0px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
scroll-margin-top:34px;
}

.question{
margin-bottom:30px;
}

.question p{
font-weight:600;
margin-bottom:16px;
text-align:center;
}

.question button{
margin:6px;
padding:10px 22px;
border:1px solid #ddd;
border-radius:3px;
background:white;
cursor:pointer;
font-size:14px;
transition:.2s;
}

.question button:hover{
background:#f3f3f3;
}

.question button.active{
background:#b9c4d3;
color:white;
border-color:#757f8b;
}

.diagnosing{
padding:40px;
font-size:20px;
font-weight:600;
color:#6b7280;
text-align:center;
animation: diagnosingPulse 1s infinite;
}




/* =====================
   Result
===================== */

.result{
margin-top:40px;
scroll-margin-top:100px;
}

.result-card{
background:white;
padding:40px;
border-radius:6px;
box-shadow:0 25px 50px rgba(0,0,0,.12);
text-align:left;
max-width:640px;
margin:auto;
animation:fadeUp .5s ease;
}

.result-card h3{
font-size:22px;
margin:14px 14px;
}

.result-card p{
margin-bottom:10px;
}

.result-btn{
background:#ff7a00;
color:white;
padding:14px 36px;
border:none;
cursor:pointer;
font-size:20px;
margin-top:20px;
border-radius:4px;
}

.result-btn:hover{
background:#e86d00;
opacity:.9;
transform:translateY(-2px);
}

/* クリック不可ラベル */
.result-badge {
  display:inline-block;
  padding:0;
  background:none;
  color:#21426d;
  font-weight:700;
  font-size:16px;
  margin-bottom:8px;
  border-radius:0;
  text-decoration: underline;        /* 下線を付ける */
  text-underline-offset: 3px;  
}

/* クリック可能ボタン */
.trial-button,
.result-card,
.cta-main,
.result-btn,
.restart-btn {
  border-radius:12px; /* 角丸統一 */
  box-shadow:0 4px 12px rgba(0,0,0,0.22);

}

.result-card {
    background: #ffffff;
    border: 2px solid #eef2f6;
    border-radius: 16px;
    padding: 32px 20px;
    margin: 20px auto;
    max-width: 500px; /* PCで見ても広がりすぎないように */
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* 診断結果のバッジ */
.result-badge {
    display: inline-block;
    background: #4a5568;
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 16px;
}

.result-card h3 {
    color: #2d3748;
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.4;
}
.result-card p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* メインのCTAボタン（リンク） */
.cta-main {
    display: inline-block;
    background: #ff6b6b;
    color: #fff !important;
    text-decoration: none;
    /* 左右のパディングを 0.5em 程度に減らして横幅を稼ぐ */
    padding: 0.8em 0.5em; 
    border-radius: 12px;
    font-weight: bold;
    /* フォントサイズを少し下げる（1.1rem → 0.95rem） */
    font-size: 0.95rem; 
    margin: 24px auto 12px;
    width: 95%; /* 少し広げる */
    max-width: 320px; /* 文字数に合わせて少し広げる */
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #e05a5a;
    
    white-space: nowrap;
    /* 万が一はみ出た時、枠を突き抜けないように隠す */
    overflow: hidden;
    text-overflow: clip; 
    box-sizing: border-box; /* パディングを含めた幅計算にする */
}

.cta-main:hover {
    background: #fa5252;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e05a5a;
}

/* 補足テキスト */
.cta-sub {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 30px;
}

#pageTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background-color: #58d68d;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

#pageTopBtn:hover {
  background-color: #45b97c;
  transform: scale(1.05);
}

/* スクロールするまで非表示にする場合 */
#pageTopBtn.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#pageTopBtn.show {
  opacity: 1;
}



/* --- 今回のメイン：もう一度診断するボタン --- */
button[onclick="restartDiagnosis()"], 
.restart-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #718096;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    white-space: nowrap; /* これも改行させない */
}

button[onclick="restartDiagnosis()"]:hover,
.restart-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}


/* =====================
   Text
===================== */

.text-block{
line-height:1.9;
margin-left:120px;
margin-bottom:40px;
max-width:640px;
}

.problem-deep{
background:#f5f6f8;
margin-top:0px;
}

.reason{
background:#ffffff;
}


.highlight{
font-weight:600;
color:#0b1f3a;
}



/* =====================
   FAQ
===================== */

.faq-item{
max-width:640px;
margin:0 auto 18px;
padding:22px;
background:white;
border:1px solid #eee;
}

.faq-item h3{
font-size:17px;
margin-bottom:6px;
color:#0b1f3a;
}

.faq-item p{
margin:0;
}

.floating-banner {
    position: fixed;
    z-index: 99999;
    bottom: 0;
    left: 1px;
}
.floating-banner:hover {
    opacity: .9;
}

/* =====================
   Footer
===================== */

.footer{
background:#0b1f3a;
color:white;
padding:50px 0 20px;
margin-top:60px;
}

.footer-inner{
max-width:1100px;
margin:auto;
padding:0 24px;
}

.footer-content{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
gap:40px;
}

.footer-logo img{
height:28px;
filter:brightness(0) invert(1);
}

.footer-nav{
display:flex;
gap:28px;
}

.footer-nav a{
color:white;
text-decoration:none;
font-size:14px;
opacity:.9;
}

.footer-nav a:hover{
opacity:1;
}

.footer-bottom{
text-align:center;
border-top:1px solid rgba(255,255,255,.2);
padding-top:20px;
font-size:13px;
opacity:.7;
}

/* =====================
   Responsive
===================== */

@media(max-width:700px){

.hero{
padding:110px 20px 90px;
}

.footer-content{
flex-direction:column;
text-align:center;
}

.footer-nav{
flex-direction:column;
gap:10px;
}

}

@media(max-width:600px){

h1{font-size:28px;}
h2{font-size:22px;}

.cta-main{
font-size:16px;
padding:14px 26px;
}

}

@media (max-width: 480px) {
    .result-card h3 { font-size: 1.25rem; }
    .cta-main { font-size: 0.85rem; }
}


/* =====================
   Animation
===================== */

@keyframes fadeUp{

from{
opacity:0;
transform:translateY(20px);
}

to{
opacity:1;
transform:translateY(0);
}

}

@keyframes diagnosingPulse{
0%{opacity:0.4;}
50%{opacity:1;}
100%{opacity:0.4;}
}