/* ===== サロン診るくん - Clean Professional Design ===== */
:root {
  --brown: #8B4513;
  --brown-hover: #7A3B10;
  --beige: #F5E6D3;
  --beige-pale: #FBF6F0;
  --navy: #2C3E50;
  --text: #2C3E50;
  --text-light: #5D6D7E;
  --text-muted: #95A5A6;
  --green: #06C755;
  --white: #ffffff;
  --border: #E8E0D8;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); line-height: 1.8; background: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 30px; height: 30px; background: var(--brown); color: var(--white); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; }
.logo-owl { width: 32px; height: 32px; object-fit: contain; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--brown); }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { font-size: 13px; font-weight: 500; color: var(--text-light); }
.nav a:hover { color: var(--brown); }
.nav-mypage { background: var(--beige); padding: 6px 16px; border-radius: 20px; color: var(--brown) !important; font-weight: 600 !important; }
.nav-mypage:hover { background: var(--brown); color: var(--white) !important; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-brown { background: var(--brown); color: var(--white); }
.btn-brown:hover { background: var(--brown-hover); }
.btn-line { background: var(--green); color: var(--white); }
.btn-primary { background: var(--brown); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-small { padding: 7px 14px; font-size: 12px; border-radius: 6px; background: var(--brown); color: var(--white); }

/* ===== Section Common ===== */
.section-header { text-align: center; margin-bottom: 40px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.section-divider { height: 1px; background: var(--beige); margin: 0; border: none; }

/* ===== Hero ===== */
/* ===== Hero Banner (full width) ===== */
.hero-banner-section { width: 100%; overflow: hidden; line-height: 0; }
.hero-banner-img { width: 100%; height: auto; display: block; }

.hero { background: var(--white); padding: 56px 0 48px; }
.hero-inner { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: var(--beige); color: var(--brown); padding: 4px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; }
.hero h1 { font-size: 34px; font-weight: 900; line-height: 1.4; margin-bottom: 14px; color: var(--text); }
.hero-accent { color: var(--brown); }
.hero-sub { font-size: 15px; color: var(--text-light); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hero-stat { text-align: center; padding: 12px 24px; }
.hero-stat strong { display: block; font-size: 22px; font-weight: 900; color: var(--brown); line-height: 1.2; }
.hero-stat span { font-size: 10px; color: var(--text-muted); }
.hero-stat-divider { width: 1px; background: var(--border); }
.hero-visual { flex: 0 0 340px; display: flex; align-items: center; justify-content: center; }
.hero-owl-img { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; }

/* ===== Trust Bar (beige divider) ===== */
.trust-bar { background: var(--beige); padding: 12px 0; text-align: center; }
.trust-bar p { font-size: 11px; font-weight: 600; color: var(--brown); letter-spacing: 1.5px; }

/* ===== Categories ===== */
.categories { padding: 64px 0; background: var(--white); }
.categories h2 { font-size: 24px; font-weight: 900; color: var(--text); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; margin: 0 auto; }
.category-btn { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; transition: all 0.2s; font-size: 13px; font-weight: 600; text-align: left; }
.category-btn:hover { border-color: var(--brown); background: var(--beige-pale); }
.cat-icon { font-size: 18px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--beige); border-radius: 8px; flex-shrink: 0; }
.cat-name { flex: 1; color: var(--text); font-size: 13px; }
.cat-arrow { color: var(--text-muted); font-size: 12px; }
.category-btn:hover .cat-arrow { color: var(--brown); }

/* ===== How it works ===== */
.how-it-works { padding: 64px 0; background: var(--beige-pale); border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); }
.how-it-works h2 { font-size: 24px; font-weight: 900; }
.steps { display: flex; align-items: center; justify-content: center; }
.step { text-align: center; flex: 0 0 180px; }
.step-img { width: auto; max-width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); margin: 0 auto 12px; display: block; }
.step-num { width: 44px; height: 44px; background: var(--brown); color: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; margin: 0 auto 12px; }
.step-content h3 { font-size: 15px; margin-bottom: 4px; font-weight: 700; color: var(--text); }
.step-content p { color: var(--text-light); font-size: 12px; line-height: 1.6; }
.step-connector { width: 40px; height: 1px; background: var(--brown); opacity: 0.25; margin: 0 6px; margin-bottom: 48px; }

/* ===== Features ===== */
.features { padding: 64px 0; background: var(--white); }
.features h2 { font-size: 24px; font-weight: 900; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; border: 1px solid var(--border); transition: all 0.2s; }
.feature-card:hover { border-color: var(--brown); transform: translateY(-2px); }
.feature-icon { font-size: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--beige); border-radius: 12px; margin: 0 auto 16px; }
.feature-card h3 { font-size: 15px; margin-bottom: 8px; font-weight: 700; color: var(--text); }
.feature-card p { font-size: 12px; color: var(--text-light); line-height: 1.8; }

/* ===== CTA ===== */
.cta { padding: 64px 0; background: var(--beige-pale); border-top: 1px solid var(--beige); }
.cta-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; }
.cta-content { max-width: 480px; margin: 0 auto; }
.cta-box h2 { font-size: 22px; font-weight: 900; margin-bottom: 10px; color: var(--text); }
.cta-box p { color: var(--text-light); margin-bottom: 24px; font-size: 14px; }

/* ===== Skill List Hero ===== */
.skill-list-hero { background: var(--white); padding: 40px 0 28px; text-align: center; border-bottom: 1px solid var(--beige); }
.skill-list-hero h1 { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.skill-list-hero .hero-sub { color: var(--text-muted); font-size: 14px; }

/* ===== Skill List ===== */
.skill-list-page { padding: 32px 0 64px; background: var(--white); }
.category-filter { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 32px; }
.filter-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; background: var(--beige-pale); color: var(--text-light); border: 1px solid var(--border); transition: all 0.2s; }
.filter-btn:hover { background: var(--beige); color: var(--brown); border-color: var(--brown); }
.filter-btn.active { background: var(--brown); color: var(--white); border-color: var(--brown); }

.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; transition: all 0.2s; display: flex; flex-direction: column; overflow: hidden; }
.skill-card-thumb { width: 100%; height: 250px; overflow: hidden; background: var(--beige-pale); }
.skill-card-thumb img { width: 100%; height: 200px; object-fit: cover; object-position: center; display: block; }
.skill-card-thumb-fallback { display: none; width: 100%; height: 250px; align-items: center; justify-content: center; background: var(--beige); color: var(--brown); font-size: 16px; font-weight: 700; text-align: center; padding: 16px; }
.skill-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 24px 24px; }
.skill-card:hover { border-color: var(--brown); }
.skill-card-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--white); margin-bottom: 12px; align-self: flex-start; }
.skill-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.skill-card-desc { font-size: 12px; color: var(--text-light); line-height: 1.7; flex: 1; margin-bottom: 14px; }
.skill-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.skill-card-points { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.pain-tag { font-size: 10px; background: var(--beige); color: var(--brown); padding: 2px 6px; border-radius: 3px; }
.skill-card-price { text-align: right; flex-shrink: 0; margin-left: 10px; }
.price-label { font-size: 9px; color: var(--text-muted); display: block; }
.price-value { font-size: 18px; font-weight: 900; color: var(--brown); }
.skill-card-cta { text-align: center; padding: 8px; background: var(--beige-pale); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--brown); transition: all 0.2s; }
.skill-card:hover .skill-card-cta { background: var(--brown); color: var(--white); }

/* ===== Skill Detail Hero ===== */
.skill-detail-hero { background: var(--beige-pale); padding: 44px 0 32px; border-bottom: 1px solid var(--beige); }
.skill-hero-inner { display: flex; align-items: center; gap: 36px; }
.skill-hero-text { flex: 1; }
.skill-detail-hero h1 { font-size: 28px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.skill-hero-visual { flex: 0 0 400px; display: flex; align-items: center; justify-content: center; }
.skill-hero-img { width: 100%; max-width: 380px; height: auto; border-radius: var(--radius-lg); }
.skill-hero-fallback { width: 180px; height: 180px; background: var(--beige); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.fallback-icon { font-size: 64px; }

/* ===== Skill Detail ===== */
.skill-detail { padding: 40px 0 72px; background: var(--white); }
.skill-detail-grid { display: flex; gap: 36px; align-items: flex-start; }
.skill-detail-main { flex: 1; min-width: 0; }
.skill-detail-sidebar { flex: 0 0 280px; }
.sidebar-sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 14px; }
.skill-card-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.skill-card-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-icon { font-size: 20px; }
.skill-desc { font-size: 14px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.8; }
.pain-list, .findings-list { list-style: none; }
.pain-list li, .findings-list li { padding: 8px 0 8px 24px; position: relative; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--beige-pale); }
.pain-list li:last-child, .findings-list li:last-child { border-bottom: none; }
.pain-list li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; background: var(--brown); border-radius: 50%; }
.findings-list li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; background: var(--green); border-radius: 2px; }
.sample-section { text-align: center; background: var(--beige-pale); border-color: var(--beige); }
.sample-section p { margin-bottom: 14px; font-size: 14px; color: var(--text-light); }
.price-box, .plan-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; position: relative; }
.plan-box:first-of-type { border-color: var(--brown); border-width: 2px; }
.price-box h3, .plan-box h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.btn-block { display: block; width: 100%; }
.pricing-section { text-align: center; }
.price-cards { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.price-card { flex: 1; min-width: 200px; max-width: 280px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 20px; position: relative; }
.price-card.popular { border-color: var(--brown); border-width: 2px; }
.popular-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brown); color: var(--white); padding: 3px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.price-card h3 { font-size: 16px; margin-bottom: 6px; }
.price { font-size: 28px; font-weight: 900; margin-bottom: 4px; color: var(--brown); }
.price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.price-note { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.commitment-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ===== Mypage Hero ===== */
.mypage-hero { background: var(--beige-pale); padding: 44px 0 32px; text-align: center; border-bottom: 1px solid var(--beige); }
.mypage-hero h1 { font-size: 24px; font-weight: 900; color: var(--text); }

/* ===== Mypage Notice ===== */
.mypage-notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 600; line-height: 1.7; }
.notice-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.notice-processing { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }

/* ===== Mypage ===== */
.mypage { padding: 40px 0 72px; background: var(--white); }
.mypage-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.mypage-card h2 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--brown); }
.mypage-empty { text-align: center; background: var(--beige-pale); border-color: var(--beige); }
.mypage-empty p { margin-bottom: 16px; color: var(--text-light); }
.plan-info { display: flex; align-items: center; gap: 16px; }
.plan-badge { background: var(--brown); color: var(--white); padding: 6px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; text-transform: capitalize; }
.plan-detail p { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.empty-text { color: var(--text-muted); font-size: 14px; }
.processing-text { color: #F39C12; font-size: 13px; font-weight: 600; }
.history-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
th { background: var(--beige-pale); font-weight: 600; color: var(--text); }
.status-completed { color: #27AE60; font-weight: 600; }
.status-processing { color: #F39C12; font-weight: 600; }
.status-failed { color: #E74C3C; font-weight: 600; }

/* ===== Admin ===== */
.admin-page { padding: 40px 0; background: var(--white); }
.admin-page h1 { margin-bottom: 20px; }
.dashboard-cards { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.dash-card { flex: 1; min-width: 160px; background: var(--white); padding: 24px; border-radius: var(--radius-lg); text-align: center; border: 1px solid var(--border); }
.dash-card h3 { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.dash-num { font-size: 32px; font-weight: 900; color: var(--brown); }

/* ===== Error ===== */
.error-page { padding: 80px 0; text-align: center; background: var(--white); }
.error-page h1 { font-size: 72px; font-weight: 900; color: var(--beige); margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--text); color: rgba(255,255,255,0.5); padding: 28px 0; text-align: center; font-size: 12px; }
.footer-links { margin-top: 10px; }
.footer-links a { color: rgba(255,255,255,0.35); margin: 0 10px; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 32px 0 24px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 20px; }
  .hero h1 { font-size: 26px; }
  .hero-sub br { display: none; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: none; max-width: 240px; margin: 0 auto; }
  .hero-stats { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; gap: 12px; }
  .step-connector { width: 1px; height: 20px; margin: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-cards { flex-direction: column; align-items: center; }
  .dashboard-cards { flex-direction: column; }
  .cta-box { padding: 32px 20px; }
  .cta-box h2 { font-size: 20px; }
  .skill-detail-grid { flex-direction: column; }
  .skill-detail-sidebar { flex: none; width: 100%; }
  .sidebar-sticky { position: static; }
  .plan-info { flex-direction: column; align-items: flex-start; }
  .skill-hero-inner { flex-direction: column; text-align: center; gap: 20px; }
  .skill-hero-visual { flex: none; max-width: 280px; margin: 0 auto; }
  .skill-hero-fallback { width: 140px; height: 140px; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .skill-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat-divider { width: 80%; height: 1px; margin: 0 auto; background: var(--border); }
}

/* ===== Banner Sections (Problem / Solution / CTA) ===== */
.banner-section { padding: 40px 0; }
.banner-img-wrap { text-align: center; }
.banner-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.banner-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--beige);
  border-radius: 16px;
}
.banner-fallback-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--brown);
}
@media (max-width: 600px) {
  .banner-section { padding: 24px 0; }
  .banner-fallback { min-height: 140px; }
  .banner-fallback-text { font-size: 18px; }
}

/* ===== Diagnose Form ===== */
.diagnose-form { margin-top: 16px; }
.input-url {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; margin-bottom: 12px; box-sizing: border-box;
  transition: border-color 0.2s;
}
.input-url:focus { outline: none; border-color: var(--brown); }
.diagnose-status {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--beige-pale); border-radius: var(--radius); margin-top: 12px;
}
.diagnose-spinner {
  width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--brown);
  border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.diagnose-status p { font-size: 13px; color: var(--text-light); }
