


:root {
  --ink: #1a1814;
  --paper: #f5f2ec;
  --warm-mid: #e8e2d6;
  --accent: #8b5e3c;
  --accent-light: #c4956a;
  --accent-pale: #f0e6d8;
  --muted: #7a7060;
  --border: #d4cfc6;
  --progress-bg: #e0d9ce;
  --white: #ffffff;
  --shadow: rgba(26,24,20,0.08);
}

.jag-shindan * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.jag-shindan {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.9;
  min-height: 100vh;
}

/* ── PROGRESS BAR ── */
.jag-shindan .progress-wrap {
  background: var(--progress-bg);
  height: 2px;
  width: 100%;
}
.jag-shindan .progress-bar {
  height: 2px;
  background: var(--accent);
  transition: width 0.5s ease;
}

/* ── MAIN LAYOUT ── */
.jag-shindan .shindan-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 120px;
}

/* ── INTRO SCREEN ── */
.jag-shindan .intro-screen {
  text-align: left;
}
.jag-shindan .intro-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.jag-shindan .intro-headline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.jag-shindan .intro-headline em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 1px;
}
.jag-shindan .intro-body {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 48px;
  line-height: 2;
}
.jag-shindan .intro-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}
.jag-shindan .intro-meta-item {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.jag-shindan .intro-meta-item strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
}
.jag-shindan .divider-line {
  width: 48px;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── BUTTONS ── */
.jag-shindan .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.jag-shindan .btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.jag-shindan .btn-primary .arrow {
  font-size: 0.8rem;
  transition: transform 0.25s;
}
.jag-shindan .btn-primary:hover .arrow {
  transform: translateX(4px);
}

/* ── QUESTION SCREEN ── */
.jag-shindan .question-screen { display: none; }
.jag-shindan .question-screen.active { display: block; }

.jag-shindan .q-header {
  margin-bottom: 40px;
}
.jag-shindan .q-number {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}
.jag-shindan .q-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}
.jag-shindan .q-sub {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── OPTION CARDS ── */
.jag-shindan .options-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}
.jag-shindan .options-grid.two-col {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 580px) {
  .jag-shindan .options-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.jag-shindan .option-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.jag-shindan .option-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  transform-origin: bottom;
}
.jag-shindan .option-card:hover {
  border-color: var(--accent-light);
  background: var(--accent-pale);
}
.jag-shindan .option-card:hover::before {
  transform: scaleY(1);
}
.jag-shindan .option-card.selected {
  border-color: var(--accent);
  background: var(--accent-pale);
}
.jag-shindan .option-card.selected::before {
  transform: scaleY(1);
}
.jag-shindan .option-card .option-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.jag-shindan .option-card .option-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.jag-shindan .option-check {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: transparent;
  transition: all 0.2s;
}
.jag-shindan .option-card.selected .option-check {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.jag-shindan .option-card .option-check.square {
  border-radius: 3px;
}

/* ── FREETEXT ── */
.jag-shindan .freetext-wrap {
  margin-bottom: 32px;
}
.jag-shindan .freetext-wrap textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 18px 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.8;
  resize: vertical;
  min-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}
.jag-shindan .freetext-wrap textarea:focus {
  border-color: var(--accent-light);
}
.jag-shindan .freetext-wrap textarea::placeholder {
  color: #c0b8ac;
}

/* ── NAV BUTTONS ── */
.jag-shindan .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}
.jag-shindan .btn-back {
  font-size: 0.82rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  padding: 8px 0;
  transition: color 0.2s;
}
.jag-shindan .btn-back:hover { color: var(--ink); }
.jag-shindan .btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.jag-shindan .btn-next:hover { background: var(--accent); }
.jag-shindan .btn-next:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--ink);
}
.jag-shindan .skip-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  margin-left: 16px;
}

/* ── RANGE SLIDER ── */
.jag-shindan .range-wrap { margin-bottom: 32px; }
.jag-shindan .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.jag-shindan input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.jag-shindan input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
}
.jag-shindan .range-value {
  text-align: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-top: 16px;
}
.jag-shindan .range-value span {
  font-family: 'Noto Sans JP';
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── RESULT SCREEN ── */
.jag-shindan .result-screen { display: none; }
.jag-shindan .result-screen.active { display: block; }
.jag-shindan .result-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent-light);
  padding: 6px 16px;
  margin-bottom: 28px;
}
.jag-shindan .result-headline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}
.jag-shindan .result-body {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 40px;
}
.jag-shindan .result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 540px) {
  .jag-shindan .result-cards { grid-template-columns: 1fr; }
  .jag-shindan .shindan-main { padding: 48px 20px 100px; }
}
.jag-shindan .result-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
}
.jag-shindan .result-card .rc-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.jag-shindan .result-card .rc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 8px;
}
.jag-shindan .result-card .rc-body {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.8;
}
.jag-shindan .cta-block {
  background: var(--ink);
  padding: 40px 40px;
  color: var(--paper);
  margin-bottom: 32px;
}
.jag-shindan .cta-block .cta-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.jag-shindan .cta-block .cta-headline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.jag-shindan .cta-block .cta-body {
  font-size: 0.82rem;
  color: #b0a898;
  line-height: 1.9;
  margin-bottom: 28px;
}
.jag-shindan .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.jag-shindan .btn-cta:hover { background: var(--accent-light); }
.jag-shindan .result-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
  border-left: 2px solid var(--border);
  padding-left: 16px;
}

/* ── TRANSITIONS ── */
.jag-shindan .screen {
  animation: jag-sh-fadeUp 0.4s ease both;
}
@keyframes jag-sh-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === MET images 2026-09-07 === */
.jag-shindan{position:relative; overflow:hidden;}
.jag-shindan > .jh-bg-media{position:absolute; inset:0; z-index:0; pointer-events:none;}
.jag-shindan > .jh-bg-media picture{display:block; width:100%; height:100%;}
.jag-shindan > .jh-bg-media img{display:block; width:100%; height:100%; object-fit:cover; opacity:.025; mix-blend-mode:multiply;}
.jag-shindan > .progress-wrap,
.jag-shindan > .shindan-main{position:relative; z-index:1;}

.jag-shindan .intro-screen{position:relative; overflow:hidden;}
.jag-shindan .intro-screen .jh-hero-media{position:absolute; inset:0; z-index:0; pointer-events:none;}
.jag-shindan .intro-screen .jh-hero-media picture{display:block; width:100%; height:100%;}
.jag-shindan .intro-screen .jh-hero-media img{display:block; width:100%; height:100%; object-fit:cover; opacity:.26; mix-blend-mode:multiply;}
.jag-shindan .intro-screen > *:not(.jh-hero-media){position:relative; z-index:1;}

.jag-shindan .jh-met-footer{position:relative; width:100%; max-width:100%; overflow:hidden; height:clamp(160px,20vw,320px); background:var(--paper); pointer-events:none;}
.jag-shindan .jh-met-footer picture{display:block; width:100%; height:100%;}
.jag-shindan .jh-met-footer img{display:block; width:100%; height:100%; object-fit:cover; object-position:bottom right; opacity:.14; mix-blend-mode:multiply;}
@media (max-width:640px){
  .jag-shindan .jh-met-footer{height:clamp(110px,32vw,220px);}
}

.jag-shindan .jag-txo{text-shadow:0 1px 0 #fff,0 -1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff,1px 1px 0 #fff,-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,0 0 6px #fff}
.jag-shindan .jag-txo-strong{-webkit-text-stroke:3px #fff;paint-order:stroke fill}

/* === MET images 可読性強化 2026-09-08d: 硬い白フチ→スクリム方式に刷新（全ページ展開） === */
/* solutionページでの検証結果を全ページへ展開。文字を縁取るのではなく、文字が乗る帯を
   紙色(--card相当 #FFF9ED)の半透明スクリムで均一な明るさに整える方式に統一。
   あわせて、従来どのページでもh1見出しが白フチの対象外だった箇所にも保護を追加した。 */
.jag-shindan .intro-screen .jh-hero-media img{opacity:.16;}
.jag-shindan .intro-screen .jh-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,249,237,.28) 0%,rgba(255,249,237,.6) 14%,rgba(255,249,237,.64) 86%,rgba(255,249,237,.3) 100%);pointer-events:none;}
.jag-shindan .intro-screen > p{text-shadow:0 1px 2px rgba(255,249,237,.85),0 0 6px rgba(255,249,237,.45)}
.jag-shindan .intro-screen > h1{text-shadow:0 1px 2px rgba(255,249,237,.8),0 0 5px rgba(255,249,237,.4)}

