
/* ===== RESET ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  background:#f4f1eb;
  color:#2d2d2d;
  line-height:1.8;
  min-height:100vh;
}

/* ===== VARIABLES ===== */
:root{
  --navy:#1a2744;
  --navy-light:#243456;
  --gold:#e8b830;
  --gold-light:#ffd75e;
  --green:#2ecc71;
  --blue:#3498db;
  --red:#e74c3c;
  --cream:#f4f1eb;
  --white:#ffffff;
  --dark:#2d2d2d;
  --gray:#6b7280;
  --border:#e0ddd6;
  --shadow:0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:0 8px 32px rgba(0,0,0,0.12);
  --r:16px;
  --r-sm:10px;
  --r-xs:6px;
}

/* ===== LAYOUT WRAPPER ===== */
.page-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px 0;
}

/* ===== HERO ===== */
.hero{
  background:linear-gradient(135deg,var(--navy) 0%,#2c3e6e 100%);
  padding:40px 20px 32px;
  text-align:center;
  position:relative;
  overflow:hidden;
  margin-bottom:28px;
}
.hero::before{
  content:'';position:absolute;top:-60px;right:-60px;
  width:200px;height:200px;
  background:radial-gradient(circle,rgba(232,184,48,0.15),transparent 70%);
  border-radius:50%;
}
.hero-badge{
  display:inline-block;background:var(--gold);color:var(--navy);
  font-size:18px;font-weight:700;padding:4px 16px;border-radius:20px;margin-bottom:16px;
}
.hero h1{color:#fff;font-size:22px;font-weight:900;line-height:1.5;position:relative;z-index:1;}
.hero h1 .gold{color:var(--gold);}
.hero-owl{
  width:80px;height:80px;margin:16px auto 0;border-radius:50%;
  border:3px solid var(--gold);overflow:hidden;background:var(--navy-light);position:relative;z-index:1;
}
.hero-owl img{width:100%;height:100%;object-fit:cover;}
.hero-sub{color:rgba(255,255,255,0.7);font-size:12px;margin-top:10px;position:relative;z-index:1;}

/* ===== OWL GUIDE ===== */
.owl-guide {
	display: flex;
	align-items: center;
	gap: 15px 35px;
	background: var(--white);
	border-radius: var(--r);
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--gold);
}
.owl-guide-icon{
  width:100px;height:100px;border-radius:50%;overflow:hidden;
  flex-shrink:0;border:2px solid var(--gold);
}
.owl-guide-icon img{width:100%;height:100%;object-fit:cover;}
.owl-guide-text{font-size:18px;color:var(--dark);line-height:1.7;}
.owl-guide-text strong{color:var(--navy);}

/* ===== MAIN GRID (PC: 2 columns) ===== */
.main-grid{
  display:flex;
  flex-direction:column;
  gap:24px;
}

/* ===== FILTER ===== */
.filter-panel{
  background:var(--white);border-radius:var(--r);padding:20px;
  box-shadow:var(--shadow);border-top:4px solid var(--navy);
}
.filter-title{
  font-size:20px;font-weight:700;color:var(--navy);margin-bottom:14px;
  display:flex;align-items:center;gap:8px;
}
.filter-title i{color:var(--gold);font-size:18px;}
.filter-label{font-size:16px;font-weight:700;color:var(--gray);margin-bottom:8px;display:block;}
.filter-row{display:flex;flex-direction:column;gap:14px;}
.filter-select{
  width:100%;padding:12px 14px;border:2px solid var(--border);border-radius:var(--r-sm);
  font-family:inherit;font-size:14px;color:var(--dark);background:#faf9f7;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a2744' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
  cursor:pointer;transition:border-color 0.2s;
}
.filter-select:focus{outline:none;border-color:var(--gold);}
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;}
.filter-chip{
  padding:8px 16px;border:2px solid var(--border);border-radius:24px;
  background:var(--white);font-family:inherit;font-size:13px;font-weight:500;
  color:var(--dark);cursor:pointer;transition:all 0.2s;user-select:none;width: 45%;
}
.filter-chip:hover{border-color:var(--gold);background:#fffbe6;}
.filter-chip.active{background:var(--navy);color:#fff;border-color:var(--navy);}
.filter-actions{display:flex;gap:10px;margin-top:4px;}
.btn-filter-apply{
  flex:1;padding:12px;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--navy);font-family:inherit;font-size:14px;font-weight:700;
  border:none;border-radius:var(--r-sm);cursor:pointer;transition:transform 0.15s,box-shadow 0.15s;
}
.btn-filter-apply:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(232,184,48,0.4);}
.btn-filter-reset{
  padding:12px 20px;background:transparent;color:var(--gray);
  font-family:inherit;font-size:13px;font-weight:500;
  border:2px solid var(--border);border-radius:var(--r-sm);cursor:pointer;transition:all 0.2s;
}
.btn-filter-reset:hover{border-color:var(--red);color:var(--red);}

/* ===== RESULT ===== */
.result-section{margin-bottom:24px;}
.result-header {
	display: flex;
	align-items: center;
	justify-content: left;
	margin: 25px;
}
.result-title{font-size:20px;font-weight:700;color:var(--navy);}
.result-count {
	font-size: 18px;
	color: #1d2b4b;
	background: #fcd257;
	padding: 3px 15px;
	border-radius: 12px;
	font-weight: bold;
	margin-left: 10px;
}
#noFilterMsg{
  text-align:center;padding:40px 20px;
  background:var(--white);border-radius:var(--r);box-shadow:var(--shadow);margin-top: 1em;
}
#noFilterMsg .owl-msg-icon{
  width:72px;height:72px;border-radius:50%;margin:0 auto 12px;
  overflow:hidden;border:3px solid var(--gold);
}
#noFilterMsg .owl-msg-icon img{width:100%;height:100%;object-fit:cover;}
#noFilterMsg p{font-size:14px;color:var(--gray);}
.result-scroll-wrap{display:flex;flex-direction:column;gap:16px;}

/* ===== RESULT CARD ===== */
.result-card{
  background:var(--white);border-radius:var(--r);overflow:hidden;
  box-shadow:var(--shadow);transition:transform 0.2s,box-shadow 0.2s;
}
.result-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}
.result-card-header{
  display:flex;gap:14px;padding:16px;
  background:linear-gradient(135deg,var(--navy),#2c3e6e);
}
.result-card-img{
  width:55%;border-radius:var(--r-sm);overflow:hidden;
  flex-shrink:0;border:2px solid rgba(255,255,255,0.2);
}
.result-card-img img{width:100%;height:100%;object-fit:cover;}
.result-card-name{color:#fff;font-size:17px;font-weight:700;}
.result-card-badges{display:flex;gap:6px;margin-top:4px;flex-wrap:wrap;}
.result-badge{font-size:15px;padding:2px 8px;border-radius:10px;font-weight:500;}
.result-badge.rate{background:var(--gold);color:var(--navy);}
.result-badge.speed{background:rgba(46,204,113,0.2);color:#27ae60;}
.result-card-body{padding:16px;}
.result-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;}
.result-spec{background:#faf9f7;border-radius:var(--r-xs);padding:10px;text-align:center;}
.result-spec-label{font-size:10px;color:var(--gray);margin-bottom:2px;}
.result-spec-value{font-size:16px;font-weight:700;color:var(--navy);}
.result-spec-value.highlight{color:var(--red);font-size:20px;}
.result-card-cta{
  display:block;text-align:center;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--navy);font-family:inherit;font-size:15px;font-weight:700;
  padding:14px;border-radius:var(--r-sm);text-decoration:none;
  transition:transform 0.15s,box-shadow 0.15s;
}
.result-card-cta:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(232,184,48,0.4);}

/* ===== DIVIDER ===== */
.section-divider{
  display:flex;align-items:center;gap:12px;margin:32px 0 24px;
}
.section-divider::before,.section-divider::after{
  content:'';flex:1;height:2px;
  background:linear-gradient(90deg,transparent,#d4cfc5,transparent);
}
.section-divider-text{font-size:25px;color:var(--gray);white-space:nowrap;letter-spacing:0.1em;}

/* ===== TAB RANKING ===== */
.ranking-section{margin-bottom:28px;}
.ranking-section-title{font-size:30px;font-weight:900;color:var(--navy);text-align:center;margin-bottom:4px;}
.ranking-section-sub{font-size:12px;color:var(--gray);text-align:center;margin-bottom:16px;letter-spacing:0.05em;}
.tab-nav{display:flex;gap:4px;background:#e0ddd6;border-radius:var(--r-sm) var(--r-sm) 0 0;padding:4px 4px 0;}
.tab-btn{
  flex:1;padding:12px 8px;border:none;background:transparent;
  font-family:inherit;font-size:12px;font-weight:700;color:var(--gray);
  cursor:pointer;border-radius:var(--r-xs) var(--r-xs) 0 0;transition:all 0.2s;line-height:1.4;
}
.tab-btn.active{background:var(--white);color:var(--navy);box-shadow:0 -2px 8px rgba(0,0,0,0.06);}
.tab-btn:hover:not(.active){background:rgba(255,255,255,0.5);}
.tab-body{background:var(--white);border-radius:0 0 var(--r) var(--r);padding:16px;box-shadow:var(--shadow);}
.tab-content{display:none;}
.tab-content.active{display:block;}

/* ===== RANK CARD ===== */
.rank-card{
  background:var(--cream);border-radius:var(--r);overflow:hidden;
  margin-bottom:16px;border:2px solid #e8e4dc;
  transition:transform 0.2s,box-shadow 0.2s;position:relative;
}
.rank-card:last-child{margin-bottom:0;}
.rank-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);}
.rank-card.rank-1{border-color:var(--gold);background:#fffef6;}
.rank-card.rank-2{border-color:#b0b0b0;background:#fafafa;}
.rank-card.rank-3{border-color:#c9834e;background:#fef9f4;}
.rank-ribbon{position:absolute;top:0;left:0;width:44px;height:44px;overflow:hidden;z-index:2;}
.rank-ribbon span{
  display:block;position:absolute;width:64px;padding:4px 0;text-align:center;
  font-size:11px;font-weight:900;color:#ffffff;
  transform:rotate(-45deg) translate(-18px,-2px);
}
.rank-1 .rank-ribbon span{background:linear-gradient(135deg,#e8b830,#f5d060);}
.rank-2 .rank-ribbon span{background:linear-gradient(135deg,#8e8e8e,#b8b8b8);}
.rank-3 .rank-ribbon span{background:linear-gradient(135deg,#c9834e,#e0a06a);}
.rank-4 .rank-ribbon span,.rank-5 .rank-ribbon span{background:var(--navy);}
.rank-card-inner{padding:16px 16px 16px 20px;}
.rank-card-top{display:flex;gap:14px;align-items:center;margin-bottom:12px;}
.rank-card-thumb{
  width:100px;height:70px;border-radius:var(--r-xs);overflow:hidden;
  flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.rank-card-thumb img{width:100%;height:100%;object-fit:cover;}
.rank-card-name{font-size:18px;font-weight:900;color:var(--navy);}
.rank-1 .rank-card-name::after {
	content: '👑 No.1';
	font-size: 20px;
	background: #e8b83026;
	color: var(--navy);
	padding: 5px 8px;
	border-radius: 10px;
	margin-left: 15px;
	border: 2px solid #e8b830;
}
.rank-card-desc {
	font-size: 16px;
	color: #1e2c4d;
	margin-top: 8px;
}
.rank-card-specs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-bottom:12px;}
.rank-spec{text-align:center;padding:8px 4px;background:var(--white);border-radius:var(--r-xs);border:1px solid #eee9df;}
.rank-spec-label{font-size:16px;color:var(--gray);}
.rank-spec-value{font-size:15px;font-weight:700;color:var(--navy);margin-top:2px;}
.rank-spec-value.red{color:var(--red);}
.rank-card-detail-row{
  display:flex;justify-content:space-between;align-items:center;
  font-size:12px;padding:6px 0;border-bottom:1px dashed #e8e4dc;color:var(--dark);
}
.rank-card-detail-row:last-of-type{border-bottom:none;}
.rank-card-detail-row .label{color:var(--gray);font-weight:500;}
.rank-card-detail-row .value{font-weight:700;}
.rank-card-apps{display:flex;gap:15px 10px;flex-wrap:wrap;padding:10px 0;}
.rank-card-apps img{width:18%;}
.app_img_tab{width:48%;}
.rank-card-cta{
  display:block;text-align:center;padding:13px;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--navy);text-decoration:none;font-size:15px;font-weight:700;
  border-radius:var(--r-sm);transition:transform 0.15s,box-shadow 0.15s;margin-top:8px;
}
.rank-card-cta:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(232,184,48,0.4);}
.rank-card-cta i{margin-left:6px;}

/* ===== EXPLAIN ===== */
.explain-section{
  background:var(--white);border-radius:var(--r);padding:24px 20px;
  margin-bottom:24px;box-shadow:var(--shadow);
}
.explain-title{font-size:18px;font-weight:900;color:var(--navy);text-align:center;margin-bottom:6px;}
.explain-sub{font-size:12px;color:var(--gray);text-align:center;margin-bottom:20px;letter-spacing:0.1em;}
.merit-grid{display:grid;grid-template-columns:1fr;gap:12px;}
.merit-card{
  display:flex;align-items:flex-start;gap:12px;padding:14px;
  background:linear-gradient(135deg,#faf9f7,#f4f1eb);
  border-radius:var(--r-sm);border-left:4px solid var(--gold);
}
.merit-icon{
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  background:var(--navy);color:var(--gold);border-radius:50%;font-size:16px;flex-shrink:0;
}
.merit-text h4{font-size:14px;font-weight:700;color:var(--navy);margin-bottom:2px;}
.merit-text p{font-size:12px;color:var(--gray);line-height:1.6;}

/* ===== FLOW ===== */
.flow-section{
  background:linear-gradient(135deg,var(--navy),#2c3e6e);
  border-radius:var(--r);padding:24px 10px;margin-bottom:24px;
}
.flow-title{font-size:18px;font-weight:900;color:#fff;text-align:center;margin-bottom:6px;}
.flow-sub{font-size:12px;color:rgba(255,255,255,0.5);text-align:center;margin-bottom:20px;letter-spacing:0.1em;}
.flow-steps{display:flex;flex-direction:column;gap:0;}
.flow-step{display:flex;align-items:flex-start;gap:14px;padding:14px 0;position:relative;}
.flow-step:not(:last-child)::after{
  content:'';position:absolute;left:19px;top:52px;width:2px;height:calc(100% - 38px);
  background:rgba(232,184,48,0.3);
}
.flow-step-num{
  width:40px;height:40px;background:var(--gold);color:var(--navy);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:900;flex-shrink:0;position:relative;z-index:1;
}
.flow-step-text h4{color:#fff;font-size:14px;font-weight:700;margin-bottom:2px;}
.flow-step-text p{color:rgba(255,255,255,0.7);font-size:12px;line-height:1.6;}

/* ===== FAQ ===== */
.faq-section{
  background:var(--white);border-radius:var(--r);padding:24px 20px;
  margin-bottom:24px;box-shadow:var(--shadow);
}
.faq-title{font-size:18px;font-weight:900;color:var(--navy);text-align:center;margin-bottom:6px;}
.faq-sub{font-size:12px;color:var(--gray);text-align:center;margin-bottom:20px;letter-spacing:0.1em;}
.faq-item{border-bottom:1px solid #eee9df;overflow:hidden;}
.faq-item:last-child{border-bottom:none;}
.faq-q{
  display:flex;align-items:center;gap:10px;padding:14px 0;
  cursor:pointer;font-size:14px;font-weight:700;color:var(--dark);user-select:none;
}
.faq-q::before{
  content:'Q';display:flex;align-items:center;justify-content:center;
  width:28px;height:28px;background:var(--navy);color:var(--gold);
  border-radius:50%;font-size:12px;font-weight:900;flex-shrink:0;
}
.faq-q::after{
  content:'\f107';font-family:'Font Awesome 6 Free';font-weight:900;
  margin-left:auto;color:var(--gray);transition:transform 0.3s;flex-shrink:0;
}
.faq-item.open .faq-q::after{transform:rotate(180deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height 0.3s ease,padding 0.3s ease;}
.faq-item.open .faq-a{max-height:200px;padding:0 0 14px 38px;}
.faq-a p{font-size:13px;color:var(--gray);line-height:1.7;}

/* ===== FOOTER ===== */
.site-footer{text-align:center;padding:24px 0;border-top:2px solid var(--border);}
.footer-links{display:flex;justify-content:center;gap:20px;margin-bottom:12px;}
.footer-links a{font-size:12px;color:var(--gray);text-decoration:none;}
.footer-links a:hover{color:var(--navy);}
.footer-copy{font-size:11px;color:#b0a998;}

/* ===== MOBILE FIXED FOOTER ===== */
.mobile-footer{
  position:fixed;bottom:0;left:0;right:0;
  background:var(--navy);padding:10px 16px;display:flex;gap:8px;
  z-index:100;box-shadow:0 -4px 16px rgba(0,0,0,0.15);
}
.mobile-footer a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:6px;
  padding:12px;border-radius:var(--r-sm);font-family:inherit;font-size:5vw;
  font-weight:700;text-decoration:none;transition:transform 0.15s;
}
.mobile-footer a:hover{transform:translateY(-1px);}
.mobile-footer .btn-ranking{background:linear-gradient(135deg,var(--gold),var(--gold-light));color:var(--navy);}
.mobile-footer .btn-line{background:#06c755;color:#fff;}

/* =======================================
   RESPONSIVE — TABLET (768px+)
   ======================================= */
@media(min-width:768px){
  .hero{border-radius:0 0 40px 40px;padding:48px 32px 36px;}
  .hero h1{font-size:28px;}
  .hero-owl{width:90px;height:90px;}

  .filter-row{flex-direction:row;gap:16px;}
  .filter-group-app{flex:0 0 260px;}
  .filter-group-cond{flex:1;}
  .filter-actions{margin-top:0;align-self:flex-end;}

  .result-scroll-wrap{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
  }

  .tab-btn{font-size:13px;padding:14px 12px;}

  /* ランクカード横並び化 */
  .rank-card-top{flex-direction:row;align-items:center;}
  .rank-card-thumb{width:140px;height:90px;}
  .rank-card-specs{grid-template-columns:1fr 1fr 1fr 1fr;}
  .app_img_tab{width:32%;}

  .flow-steps{gap:16px;}
  .flow-step{align-items:center;padding:0;}
  .flow-step:not(:last-child)::after{display:none;}
}

/* =======================================
   RESPONSIVE — DESKTOP (1024px+)
   ======================================= */
@media(min-width:1024px){
  .hero{border-radius:0 0 48px 48px;padding:56px 40px 44px;}
  .hero h1{font-size:32px;}
  .hero-owl{width:100px;height:100px;}

  /* 2カラム: メイン + サイドバー */
  .main-grid{
    flex-direction:row;
    gap:28px;
  }
  .main-col{flex:1;min-width:0;}
  .side-col{
    flex:0 0 320px;
    position:sticky;
    top:24px;
    align-self:flex-start;
  }

  .filter-panel{position:relative;}

  .result-scroll-wrap{
    grid-template-columns:1fr 1fr;
  }

  /* ランクカード — さらに広く */
  .rank-card-inner{padding:20px 24px 20px 28px;}
  .rank-card-thumb{width:220px;height:auto;}
  .rank-card-name{font-size:30px;}
  .rank-card-specs{grid-template-columns:repeat(4,1fr);gap:8px;}
  .rank-spec{padding:10px 8px;}
  .rank-spec-value{font-size:23px;}
  .app_img_tab{width:24%;}
  .rank-card-cta{font-size:16px;padding:15px;}

  .mobile-footer{display:none;}

  .merit-card{padding:18px;}
  .merit-text h4{font-size:15px;}
  .merit-text p{font-size:13px;}
}

/* =======================================
   RESPONSIVE — WIDE DESKTOP (1280px+)
   ======================================= */
@media(min-width:1280px){
  .page-wrap{max-width:1500px;}
  .side-col{flex:0 0 360px;}
  .result-scroll-wrap{grid-template-columns:1fr 1fr 1fr;}
}
#datetime {
	display: inline;
}
.date_time {
	color: #fff;
	margin-top: 10px;
}

.hero {
	position: relative;
}
.hero_img {
	position: absolute;
	top: 10%;
}
.hero_img.hero_img1 {
	right: 22%;
}
.hero_img.hero_img2 {
	left: 22%;
}
.hero_img img {
	width: 280px;
}
/* =======================================
   RESPONSIVE — SMALL MOBILE (〜600px)
   ======================================= */
@media(max-width:600px){
  .hero h1{font-size:20px;}
  .rank-card-top{flex-direction:column;align-items:flex-start;}
  .rank-card-thumb{width:100%;height:auto;aspect-ratio:16/9;}
  .rank-card-specs{grid-template-columns:1fr 1fr}
  .tab-btn{font-size:10px;padding:10px 6px;}
  .app_img_tab{width:44%;}
  .rank-card-name {
	font-size: 25px;
	font-weight: 900;
	color: var(--navy);
}
.rank-card-desc {
	font-size: 14px;
}
.rank-spec-value {
	font-size: 20px;
}
.rank-card-apps img {
	width: 45%;
}
.rank-card-apps {
	justify-content: space-around;
}
.explain-title {
	font-size: 25px;
}
.merit-text h4 {
	font-size: 18px;
}
.merit-text p {
	font-size: 15px;
}
.flow-title {
	font-size: 25px;
}
.flow-step-text h4 {
	font-size: 18px;
}
.flow-step-text p {
	font-size: 15px;
}
.faq-title {
	font-size: 25px;
}
.fa-brands, .fab {
	font-size: 8vw;
}
.page-wrap {
	padding: 0 16px 100px;
}
.owl-guide-icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 1em;
}
.owl-guide-text {
	font-size: 16px;
}
.hero_img img {
	width: 100px;
}
.hero_img.hero_img1 {
	right: 0;
}
.hero_img.hero_img2 {
	left: 0;
}
.owl-guide {
	display: block;
}
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp{from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);}}
.animate-in{animation:fadeInUp 0.5s ease both;}