:root {
  --bg: #151b2e;
  --panel: #121a2d;
  --gold: #a855f7;
  --cyan: #00d4ff;
  --muted: rgba(255,255,255,0.65);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:'Noto Sans JP',system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:#fff;
  line-height:1.4;
  min-height:100vh;
}
a{text-decoration:none;color:inherit;}
.container{width:100%;max-width:480px;margin:0 auto;padding:0 20px;}
header{padding:15px 0;text-align:center;position:relative;}
.logo{
  display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:8px;
}
.logo img{width:50px;height:50px;border-radius:12px;box-shadow:0 0 30px rgba(168,85,247,0.3);}
.logo span{font-size:1.5rem;font-weight:700;background:linear-gradient(120deg,#c084fc,#a855f7);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.tag{color:var(--muted);font-size:0.85rem;letter-spacing:0.1em;}
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  position:relative;
}
.hero-bg{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:500px;
  height:100%;
  background:url('../images/株価予測.png') center/cover no-repeat;
  opacity:0.15;
  z-index:-1;
  mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent);
  -webkit-mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent);
}
.hero-avatar{
  width:136px;
  height:136px;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto 26px;
  border:3px solid rgba(168,85,247,0.6);
  box-shadow:0 14px 40px rgba(0,0,0,0.4),0 0 50px rgba(168,85,247,0.5),0 0 80px rgba(90,211,255,0.4),0 0 100px rgba(168,85,247,0.3);
  position:relative;
  animation:avatarGlow 4s ease-in-out infinite;
  transform:none;
}
.hero-avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  transform:translate(-6% ,6%) scale(1.8);
  padding:0;
}
/* Avatar Animation */
@keyframes avatarFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-6px);}
}
@keyframes avatarGlow{
  0%,100%{
    box-shadow:0 14px 40px rgba(0,0,0,0.4),0 0 50px rgba(168,85,247,0.4),0 0 80px rgba(90,211,255,0.3),0 0 100px rgba(168,85,247,0.2);
    border-color:rgba(168,85,247,0.5);
  }
  50%{
    box-shadow:0 14px 50px rgba(0,0,0,0.45),0 0 70px rgba(168,85,247,0.7),0 0 100px rgba(90,211,255,0.5),0 0 130px rgba(168,85,247,0.4);
    border-color:rgba(0,212,255,0.7);
  }
}
.badge{
  display:inline-block;
  padding:4px 14px;
  background:rgba(168,85,247,0.1);
  border:1px solid rgba(168,85,247,0.3);
  border-radius:50px;
  font-size:0.7rem;
  color:var(--gold);
  margin-top:10px;
  margin-bottom:16px;
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:1;}
  50%{opacity:0.7;}
}
h1{
  font-size:2rem;
  line-height:1.2;
  margin-bottom:15px;
  text-align:center;
}
/* Hero Title */
.hero-title{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:0 12px;
}
.hero-title .title-line{
  font-size:clamp(2.2rem,5vw,2.6rem);
  color:#fff;
  line-height:1.05;
  white-space:normal;
}
.hero-title .title-line:first-child{
  font-size:clamp(2.4rem,6vw,3rem);
  background:linear-gradient(120deg,#ffffff 0%,#8dd5ff 35%,#5ad3ff 65%,#ffffff 100%);
  background-size:200% auto;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:heroShine 6s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}
.hero-title .hl{
  color:var(--gold);
  position:relative;
  font-size:clamp(2.4rem,5.5vw,2.8rem);
}
.hero-title .title-cyber{
  font-family:'Russo One','Noto Sans JP','Segoe UI',sans-serif;
  font-weight:900;
  letter-spacing:0.12em;
  font-size:clamp(2.8rem,7vw,3.6rem);
  background:conic-gradient(from 120deg, #9df0ff, #4bc8ff, #6ad8ff, #d2f8ff, #9df0ff, #cfa8ff);
  background-size:220% 220%;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 20px rgba(75,200,255,0.55), 0 0 30px rgba(157,240,255,0.38);
  animation:cyberGlow 6s ease-in-out infinite;
}
/* Cyber Animation */
@keyframes cyberGlow{
  0%{background-position:0% 50%; text-shadow:0 0 18px rgba(87,213,255,0.45), 0 0 26px rgba(160,247,255,0.3);}
  25%{background-position:50% 60%; text-shadow:0 0 22px rgba(207,168,255,0.45), 0 0 32px rgba(157,240,255,0.35);}
  50%{background-position:100% 50%; text-shadow:0 0 26px rgba(87,213,255,0.6), 0 0 36px rgba(207,168,255,0.48);}
  75%{background-position:50% 40%; text-shadow:0 0 22px rgba(207,168,255,0.45), 0 0 32px rgba(157,240,255,0.35);}
  100%{background-position:0% 50%; text-shadow:0 0 18px rgba(87,213,255,0.45), 0 0 26px rgba(160,247,255,0.3);}
}
.hero-title .underline{
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-underline-offset:6px;
  text-decoration-thickness:2px;
}
/* Responsive Title */
@media (max-width:480px){
  .hero-title{gap:4px;padding:0 8px;}
  .hero-title .title-line{
    font-size:clamp(1.6rem,7vw,2.1rem);
    line-height:1.15;
  }
  .hero-title .title-line:first-child{
    font-size:clamp(1.8rem,7.5vw,2.3rem);
  }
  .hero-title .hl{
    font-size:clamp(1.8rem,7vw,2.4rem);
  }
  .hero-title .title-cyber{
    font-size:clamp(2.0rem,8vw,2.6rem);
    letter-spacing:0.08em;
    line-height:1.1;
  }
  .hero-title .underline{
    text-underline-offset:4px;
    text-decoration-thickness:1.5px;
  }
}
/* Hero Animation */
@keyframes heroShine{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes glowPulse{
  0%,100%{text-shadow:0 0 14px rgba(192,132,252,0.28);}
  50%{text-shadow:0 0 22px rgba(168,85,247,0.45);}
}
.sub{
  font-size:0.95rem;
  color:var(--muted);
  margin-bottom:25px;
  text-align:center;
  line-height:1.4;
}
/* Input Section */
.input-section{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:22px 20px;
  margin-bottom:30px;
  backdrop-filter:blur(10px);
}
.input-label{
  display:block;
  font-size:0.9rem;
  color:var(--muted);
  margin-bottom:10px;
  text-align:left;
  font-weight:700;
}
.input-group{margin-bottom:16px;position:relative;width:100%;}
.input-group i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--gold);}
input{
  width:100%;padding:18px 20px 18px 50px;border-radius:12px;
  border:2px solid rgba(255,255,255,0.1);background:rgba(0,0,0,0.3);
  color:#fff;font-size:1.1rem;
  transition:all 0.3s ease;
}
input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 30px rgba(168,85,247,0.3);}
.input-group i{font-size:1.2rem;}
.btn{
  width:100%;padding:14px 30px;border:none;border-radius:12px;
  background:linear-gradient(135deg,#a855f7 0%,#c084fc 50%,#a855f7 100%);
  color:#0a0e1a;font-weight:700;font-size:1.1rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:10px;
  box-shadow:0 0 30px rgba(168,85,247,0.3);
  transition:all 0.3s ease;
}
.btn:hover{transform:translateY(-3px);box-shadow:0 15px 40px rgba(168,85,247,0.4);}
.btn:active{transform:translateY(-1px);}
.btn i{font-size:1.2rem;}
/* Features Section */
.features{
  padding:25px 0;
}
/* Stats Section */
.stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  padding:25px 0;
  margin:25px 0;
  border-top:1px solid rgba(255,255,255,0.05);
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.stat-item{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:80px;
}
.stat-number{
  font-size:1.5rem;
  font-weight:700;
  color:var(--gold);
  display:block;
  margin-bottom:8px;
  font-family:system-ui;
  line-height:1.2;
  white-space:nowrap;
}
.stat-label{
  font-size:0.8rem;
  color:var(--muted);
  line-height:1.4;
  display:block;
}
/* Market Data */
.market-data-section{
  margin:25px 0;
  padding:20px 0;
}
.market-data-title{
  text-align:center;
  font-size:1.1rem;
  color:var(--gold);
  margin-bottom:6px;
  font-weight:700;
}
.market-data-subtitle{
  text-align:center;
  font-size:0.7rem;
  color:var(--muted);
  margin-bottom:25px;
}
.market-data-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(168,85,247,0.3) transparent;
  padding:10px 0;
}
.market-data-scroll::-webkit-scrollbar{
  height:6px;
}
.market-data-scroll::-webkit-scrollbar-track{
  background:rgba(255,255,255,0.05);
  border-radius:3px;
}
.market-data-scroll::-webkit-scrollbar-thumb{
  background:rgba(168,85,247,0.5);
  border-radius:3px;
}
.market-data-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(168,85,247,0.7);
}
.market-data-container{
  display:flex;
  gap:20px;
  min-width:max-content;
  padding:0 20px;
}
.market-panel{
  min-width:280px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  padding:20px;
  backdrop-filter:blur(10px);
}
.panel-title{
  color:var(--gold);
  font-size:0.95rem;
  font-weight:700;
  margin-bottom:15px;
  text-align:center;
}
.market-table{
  width:100%;
  border-collapse:collapse;
  font-size:0.8rem;
}
.market-table thead th{
  color:#fff;
  font-weight:600;
  padding:8px 6px;
  text-align:left;
  border-bottom:1px solid rgba(168,85,247,0.3);
  font-size:0.75rem;
}
.market-table thead th:nth-child(1),
.market-table tbody td:nth-child(1){
  color:var(--cyan);
  width:50px;
}
.market-table thead th:nth-child(2),
.market-table tbody td:nth-child(2){
  color:var(--gold);
  font-weight:600;
}
.market-table thead th:nth-child(4),
.market-table tbody td:nth-child(4){
  color:var(--gold);
  text-align:right;
  font-weight:600;
}
.market-table tbody td{
  color:#fff;
  padding:10px 6px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.market-table tbody tr:last-child td{
  border-bottom:none;
}
.market-table tbody tr:hover{
  background:rgba(168,85,247,0.05);
}
/* Footer */
footer{
  padding:30px 0;
  text-align:center;
  color:var(--muted);
  font-size:0.75rem;
  border-top:1px solid rgba(255,255,255,0.05);
}
footer a:hover{
  color:var(--cyan);
  text-decoration:underline;
}
/* Policy Modal */
.policy-modal-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.8);
  z-index:1000;
  overflow-y:auto;
  padding:20px;
}
.policy-modal-overlay.active{
  display:flex;
  align-items:center;
  justify-content:center;
}
.policy-modal-content{
  background:var(--panel);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:16px;
  padding:30px;
  max-width:600px;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  position:relative;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.policy-close{
  position:absolute;
  top:15px;
  right:15px;
  background:none;
  border:none;
  color:var(--muted);
  font-size:20px;
  cursor:pointer;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  transition:all 0.3s ease;
}
.policy-close:hover{
  background:rgba(255,255,255,0.1);
  color:#fff;
}
.policy-modal-content h3{
  color:#fff;
  font-size:1.5rem;
  margin-bottom:20px;
  padding-right:40px;
}
.policy-text{
  color:var(--muted);
  font-size:0.9rem;
  line-height:1.7;
}
.policy-text h4{
  color:#fff;
  font-size:1rem;
  margin-top:20px;
  margin-bottom:10px;
}
.policy-text p{
  margin-bottom:12px;
}
.policy-text strong{
  color:#fff;
}
/* Modal Overlay */
.overlay{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,0.7);backdrop-filter:blur(6px);z-index:20;padding:16px;
}
.overlay.active{display:flex;}
.modal{
  background:var(--panel);border:1px solid rgba(255,255,255,0.1);border-radius:18px;
  padding:24px;max-width:360px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,0.5);text-align:center;position:relative;
  overflow:hidden;
}
.analysis-modal::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:url('../images/株_情报.png') center/cover no-repeat;
  opacity:0.1;
  z-index:0;
}
.analysis-modal>*{
  position:relative;
  z-index:1;
}
.result-modal::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:url('../images/株価.png') center/cover no-repeat;
  opacity:0.1;
  z-index:0;
}
.result-modal>*{
  position:relative;
  z-index:1;
}
/* Progress Bar */
.progress-wrap{display:flex;flex-direction:column;gap:18px;margin-top:20px;}
.progress-item{margin-bottom:0;}
.progress-label{
  display:flex;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:0.85rem;
}
.progress-label span:first-child{color:var(--muted);}
.progress-label span:last-child{color:var(--gold);font-weight:600;}
.bar{height:8px;background:rgba(255,255,255,0.1);border-radius:10px;overflow:hidden;}
.fill{
  height:100%;
  width:0%;
  border-radius:10px;
  transition:width 0.1s linear;
}
.fill.gold{background:linear-gradient(135deg,#a855f7 0%,#c084fc 50%,#a855f7 100%);}
.fill.cyan{background:linear-gradient(90deg,#00d4ff,#00f5d4);}
.fill.purple{background:linear-gradient(90deg,#8b5cf6,#a78bfa);}
.close{position:absolute;top:10px;right:10px;background:none;border:none;color:var(--muted);font-size:16px;cursor:pointer;}
/* LINE Button */
.line-btn{
  width:100%;padding:12px 14px;border:none;border-radius:12px;
  background:#25D366;color:#fff;font-weight:700;font-size:15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px;
  transition:all 0.3s ease;
}
.line-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 30px rgba(37,211,102,0.4);
}
.line-btn.line-green{
  background:#06c755;
  box-shadow:0 10px 30px rgba(6,199,85,0.35);
}
.line-btn.line-green:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 34px rgba(6,199,85,0.45);
}
@keyframes shake{0%,100%{transform:translateX(0);}20%,60%{transform:translateX(-8px);}40%,80%{transform:translateX(8px);}}
@keyframes spin{
  0%{transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}
.shake{animation:shake 0.4s;}
/* Notes */
.privacy-note{
  margin-top:12px;
  font-size:0.55rem;
  color:var(--muted);
  text-align:center;
  line-height:1.4;
}
.footer-links{
  margin-top:8px;
  font-size:0.7rem;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  margin:0 8px;
  cursor:pointer;
}
.footer-links a:hover{
  color:var(--cyan);
  text-decoration:underline;
}
.footer-links span{
  color:var(--muted);
}
.footer-disclaimer{
  margin-top:12px;
  font-size:0.65rem;
  color:var(--muted);
  line-height:1.5;
}
.policy-update-date{
  margin-top:20px;
  font-size:0.9rem;
  color:var(--muted);
}
/* Policy Page */
.policy-page{
  background:var(--bg);
  color:#fff;
  font-family:'Noto Sans JP',system-ui,-apple-system,"Segoe UI",sans-serif;
  padding:24px;
}
.policy-container{
  max-width:760px;
  margin:0 auto;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:24px 20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.4);
}
.policy-container h1{
  font-size:1.6rem;
  margin-bottom:16px;
}
.policy-container h2{
  font-size:1.05rem;
  margin-top:18px;
  margin-bottom:10px;
}
.policy-container p{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:10px;
}
.policy-back{
  margin-top:18px;
}
.policy-back a{
  color:var(--cyan);
  text-decoration:none;
}
.policy-back a:hover{
  text-decoration:underline;
}
/* Analysis Spinner */
.analysis-spinner{
  width:60px;
  height:60px;
  background:rgba(168,85,247,0.1);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 15px;
  animation:spin 2s linear infinite;
}
.analysis-spinner i{
  font-size:1.5rem;
  color:var(--gold);
}
.analysis-title{
  margin-bottom:8px;
}
.analysis-subtitle{
  color:var(--muted);
  font-size:0.85rem;
}
/* Result */
.result-icon{
  font-size:40px;
  color:var(--cyan);
  margin-bottom:10px;
  filter:drop-shadow(0 0 15px rgba(0,212,255,0.6));
}
.result-modal h3{
  background:linear-gradient(120deg,#00d4ff,#a855f7,#00d4ff);
  background-size:200% auto;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:titleShine 3s ease-in-out infinite;
  font-size:1.3rem;
  margin-bottom:8px;
}
@keyframes titleShine{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
.result-subtitle{
  color:var(--cyan);
  font-size:14px;
  text-shadow:0 0 10px rgba(0,212,255,0.4);
}
.result-stock-box{
  margin:14px 0;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
}
.result-stock-box i{
  color:var(--gold);
}
.result-stock-text{
  font-weight:700;
  margin-left:6px;
}
.result-desc{
  font-size:0.78rem;
  color:rgba(255,255,255,0.85);
  line-height:1.6;
  margin:14px 0;
  padding:0 5px;
  text-align:left;
}
.result-desc-img{
  width:100%;
  max-width:310px;
  height:auto;
  margin:14px auto;
  display:block;
  border-radius:8px;
}
.result-gratis{
  color:#06c755;
  font-weight:700;
  font-size:13px;
  margin-top:6px;
}
.result-privacy-note{
  margin-top:16px;
  font-size:0.65rem;
  color:var(--muted);
  text-align:center;
  line-height:1.5;
  padding:0 10px;
}
.small-note{
  font-size:0.62rem;
}
.skip-link{
  position:absolute;
  left:0;
  top:-40px;
  background:#000;
  color:#fff;
  padding:8px;
  text-decoration:none;
  z-index:100;
}
.skip-link:focus{
  top:0;
}
/* Analysis Header */
.analysis-header{
  text-align:center;
  margin-bottom:20px;
}
/* Policy/Agreement/Inquiry Page Styles */
.page-container{
  padding:40px 20px;
  max-width:800px;
  margin:0 auto;
  background:rgba(255,255,255,0.02);
  border-radius:12px;
  margin-top:20px;
  margin-bottom:20px;
}
.page-back-link{
  margin-bottom:30px;
}
.page-back-link a{
  color:#a855f7;
  text-decoration:none;
  font-size:0.9rem;
}
.page-back-link a:hover{
  text-decoration:underline;
}
.page-title{
  font-size:2rem;
  margin-bottom:10px;
  color:#fff;
}
.page-subtitle{
  color:rgba(255,255,255,0.7);
  margin-bottom:30px;
  font-size:0.9rem;
}
.page-content{
  line-height:1.8;
  color:rgba(255,255,255,0.85);
}
.page-section{
  margin-bottom:25px;
}
.page-section h2{
  font-size:1.3rem;
  margin-top:30px;
  margin-bottom:15px;
  color:#a855f7;
  border-bottom:2px solid rgba(168,85,247,0.3);
  padding-bottom:8px;
}
.page-section p{
  margin-bottom:15px;
  font-size:1.05rem;
}
.page-section ul{
  margin-left:20px;
  margin-bottom:25px;
}
.page-section li{
  margin-bottom:8px;
}
.page-highlight-box{
  margin-top:40px;
  padding:20px;
  background:rgba(168,85,247,0.1);
  border-radius:8px;
  border-left:4px solid #a855f7;
}
.page-highlight-box p{
  margin:0;
  font-size:0.9rem;
  color:rgba(255,255,255,0.8);
}
.page-highlight-box strong{
  color:#fff;
}
.inquiry-contact-box{
  background:rgba(168,85,247,0.1);
  border-radius:12px;
  padding:30px;
  margin-bottom:30px;
  border:1px solid rgba(168,85,247,0.3);
}
.inquiry-contact-box h2{
  font-size:1.2rem;
  margin-bottom:15px;
  color:#a855f7;
  border-bottom:none;
  padding-bottom:0;
  margin-top:0;
}
.inquiry-warning-box{
  background:rgba(255,193,7,0.1);
  border-radius:8px;
  padding:20px;
  border-left:4px solid #ffc107;
  margin-bottom:30px;
}
.inquiry-warning-box strong{
  color:#ffc107;
}
.inquiry-info-box{
  background:rgba(168,85,247,0.1);
  border-radius:8px;
  padding:20px;
  border-left:4px solid #a855f7;
}
.inquiry-info-box h3{
  font-size:1.1rem;
  margin-bottom:10px;
  color:#a855f7;
}
.noscript-message{
  padding:20px;
  text-align:center;
  background:#151b2e;
  color:#fff;
}
