/* ==========================================================================
   スキンケアサプリ — 共通スタイルシート
   ========================================================================== */

:root{
  --bg: #F1F3EE;
  --surface: #E7EAE1;
  --surface-2: #FBFAF7;
  --text: #22261F;
  --text-soft: #565B4C;
  --accent: #5B7A63;
  --accent-deep: #3F5644;
  --warm: #A67C52;
  --line: #D8D9CD;
  --warn-bg: #F6EFE6;
  --warn-line: #D9C6A8;
  --maxw: 720px;
  --header-h: 64px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 0.6em;
  letter-spacing: 0.02em;
}
p{ margin: 0 0 1.1em; color: var(--text); }
a{ color: var(--accent-deep); }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241,243,238,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner{
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  font-family: 'Shippori Mincho', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
}
nav.main-nav{
  display: none;
}
nav.main-nav ul{
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
nav.main-nav a{
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active{
  background: var(--surface);
  color: var(--accent-deep);
}

.menu-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-btn span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.mobile-menu{
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 20px 24px;
  overflow-y: auto;
}
.mobile-menu.open{ display: block; }
.mobile-menu ul{
  list-style: none;
  margin: 0; padding: 0;
}
.mobile-menu li{ border-bottom: 1px solid var(--line); }
.mobile-menu a{
  display: block;
  padding: 16px 4px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Shippori Mincho', serif;
}

@media (min-width: 860px){
  nav.main-nav{ display: block; }
  .menu-btn{ display: none; }
}

/* ---------- Generic sections ---------- */
main{ display: block; }
section{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
}
section.alt{ background: var(--surface); max-width: none; }
section.alt .inner{ max-width: var(--maxw); margin: 0 auto; }

/* ---------- Product detail page ---------- */
.product-hero{ padding: 36px 24px 8px; }
.product-hero h1{ font-size: 26px; margin-bottom: 4px; }
.product-hero .lead{ font-size: 14px; color: var(--text-soft); margin-bottom: 0; }

.spec-card{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0;
}
.spec-card .cell{
  background: var(--surface-2);
  padding: 12px 16px;
}
.spec-card .cell .k{ font-size: 11px; color: var(--warm); margin-bottom: 2px; }
.spec-card .cell .v{ font-size: 14.5px; font-weight: 700; color: var(--text); }

.product-img{
  width: 100%;
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #E1E4DA, #E1E4DA 10px, #D8DBCE 10px, #D8DBCE 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 13px;
  margin-bottom: 8px;
}

.buy-link{
  display: block;
  text-align: center;
  background: var(--accent-deep);
  color: #fff !important;
  text-decoration: none;
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  padding: 14px;
  border-radius: 999px;
  margin: 18px 0 6px;
}
.buy-link:hover{ background: var(--accent); }

.tabs{ margin-top: 30px; }
.tab-nav{
  display: flex;
  border-bottom: 2px solid var(--line);
  gap: 4px;
}
.tab-nav button{
  flex: 1;
  background: none;
  border: none;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 13.5px;
  color: var(--text-soft);
  padding: 12px 6px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-nav button.active{
  color: var(--accent-deep);
  font-weight: 700;
  border-bottom-color: var(--accent-deep);
}
.tab-nav.tab-nav-bottom{
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 4px;
  gap: 2px;
}
.tab-nav.tab-nav-bottom button{
  border-radius: 999px;
  border-bottom: none !important;
  margin-bottom: 0;
}
.tab-nav.tab-nav-bottom button.active{
  background: var(--accent-deep);
  color: #fff;
}
.tab-panel{ display: none; padding-top: 22px; }
.tab-panel.active{ display: block; }

.sub-h{
  font-family: 'Shippori Mincho', serif;
  font-size: 15.5px;
  margin: 26px 0 10px;
  color: var(--accent-deep);
}
.sub-h:first-child{ margin-top: 6px; }

.cite-note{
  font-size: 11px;
  color: var(--text-soft);
}
.cite-note a{ color: var(--text-soft); }

.must-box{
  background: var(--accent-deep);
  color: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 13.5px;
}
.must-box strong{ display: block; font-size: 14.5px; margin-bottom: 4px; }

.eyebrow{
  font-size: 12.5px;
  color: var(--warm);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

/* ---------- Breadcrumb ---------- */
.crumb{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 12.5px;
  color: var(--text-soft);
}
.crumb a{ color: var(--text-soft); text-decoration: none; }
.crumb a:hover{ color: var(--accent-deep); }

/* ---------- Guide (講座) components ---------- */
.guide-hero{
  padding: 36px 24px 8px;
}
.guide-hero .level-badge{
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.level-basic{ background: var(--accent); }
.level-inter{ background: var(--warm); }
.level-advanced{ background: var(--accent-deep); }

.guide-hero h1{ font-size: 24px; }
.guide-hero .lead{
  font-size: 14.5px;
  color: var(--text-soft);
}

.step-block{
  margin: 30px 0;
  padding: 22px 22px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step-block .step-label{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step-block .step-num{
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-block h2{
  font-size: 17px;
  margin: 0;
}
.step-block .item-num{
  flex: none;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: transparent;
  border: 2px solid var(--warm);
  color: var(--warm);
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

.mat-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px; height: 19px;
  border-radius: 4px;
  border: 1.5px solid var(--warm);
  color: var(--warm);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1;
  margin: 0 1px;
  vertical-align: -3px;
}
.step-block p:last-of-type{ margin-bottom: 1.1em; }

.safety-box{
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 20px;
}
.safety-box h3{ margin-top: 0; font-size: 14.5px; color: var(--text); }
.safety-box ol{ margin: 0; padding-left: 1.2em; font-size: 13.5px; color: var(--text-soft); }
.safety-box li{ margin-bottom: 6px; }
.safety-box li:last-child{ margin-bottom: 0; }

.key-point{
  background: var(--warn-bg);
  border-left: 3px solid var(--warm);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--text-soft);
}
.key-point strong{ color: var(--text); }

.img-placeholder{
  width: 100%;
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, #E1E4DA, #E1E4DA 10px, #D8DBCE 10px, #D8DBCE 20px);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 13px;
  margin: 14px 0 4px;
  text-align: center;
  padding: 12px;
}

.illust{
  margin: 14px 0 18px;
  padding: 14px 10px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.illust svg{ width: 100%; height: auto; display: block; }
.illust-caption{
  text-align: center;
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 6px;
}

.verify-note{
  font-size: 12px;
  color: var(--warm);
  background: var(--warn-bg);
  border: 1px dashed var(--warn-line);
  border-radius: 6px;
  padding: 8px 12px;
  margin: 10px 0;
}

table.term-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 14px 0;
}
table.term-table th, table.term-table td{
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.term-table th{
  background: var(--surface);
  font-weight: 700;
  white-space: nowrap;
}
.table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
}

.summary-block{
  margin: 34px 0 10px;
  padding: 20px 22px;
  background: var(--accent-deep);
  border-radius: 12px;
  color: #fff;
}
.summary-block .label{
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #C9D3C4;
  margin-bottom: 6px;
}
.summary-block p{ color: #fff; margin-bottom: 0; font-size: 14.5px; }

.make-steps{
  margin: 16px 0;
  padding: 0;
  list-style: none;
  counter-reset: mkstep;
}
.make-steps li{
  position: relative;
  padding: 11px 14px 11px 46px;
  margin-bottom: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.make-steps li::before{
  counter-increment: mkstep;
  content: counter(mkstep);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Shippori Mincho', serif;
  display: flex; align-items: center; justify-content: center;
}

.faq-item{
  margin: 18px 0;
  padding: 18px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq-item .q{
  font-family: 'Shippori Mincho', serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}
.faq-item .q .qa-mark{ flex: none; color: var(--warm); }
.faq-item .a{
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.faq-item .a .qa-mark{ flex: none; color: var(--accent); }
.faq-item .a p{ margin: 0 0 0.8em; }
.faq-item .a p:last-child{ margin-bottom: 0; }

.next-link{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 28px 0 10px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.next-link:hover{ border-color: var(--accent); }
.next-link .cap{ font-size: 11.5px; color: var(--text-soft); }
.next-link .ttl{ font-family: 'Shippori Mincho', serif; font-size: 15px; }
.next-link .arrow{ color: var(--accent); font-size: 20px; }

/* ---------- Guide index (講座目次) ---------- */
.guide-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.guide-list li a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.guide-list .ttl{ font-family: 'Shippori Mincho', serif; font-size: 15.5px; }
.guide-list .sub{ display:block; font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.guide-list .arrow{ color: var(--accent); font-size: 18px; flex: none; }

.level-group-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
}
.level-group-title:first-of-type{ margin-top: 6px; }
.level-group-title h2{ font-size: 18px; margin: 0; }

/* ---------- Footer ---------- */
.product-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 14px;
}
.product-card{
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
}
.product-card.disabled{ opacity: 0.72; }
.product-card .tag{
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.product-card .body{ flex: 1; min-width: 0; }
.product-card .ttl{
  font-family: 'Shippori Mincho', serif;
  font-size: 15.5px;
}
.product-card .spec{
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 3px;
}
.product-card .badge{
  flex: none;
  font-size: 11px;
  color: var(--warm);
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.product-section-title{
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 36px 0 6px;
}
.product-section-title:first-of-type{ margin-top: 10px; }
.product-section-title h2{ font-size: 18px; margin: 0; }
.product-section-note{
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.tag-aps{ background: #5C84A8; }
.tag-apps{ background: linear-gradient(135deg, #5C84A8 50%, #A67C52 50%); }
.tag-tpna{ background: var(--accent-deep); }
.tag-ha{ background: var(--sage, #5B7A63); background: #5B7A63; }

footer.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 24px 90px;
}
footer.site-footer .inner{
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
footer.site-footer .foot-brand{
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  color: var(--text);
}
footer.site-footer .foot-tagline{
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 4px;
}
footer.site-footer .foot-links{
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
footer.site-footer .foot-links a{
  font-size: 12.5px;
  color: var(--text-soft);
  text-decoration: none;
}
footer.site-footer .copyright{
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.8;
}

.draft-flag{
  background: var(--accent-deep);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 7px 12px;
}

@media (min-width: 720px){
  :root{ --maxw: 760px; }
  .guide-hero h1{ font-size: 28px; }
  section{ padding: 52px 32px; }
}
