:root{
  --cream:#fffaf0;--cream-deep:#fff4da;--blue:#f1e9f6;--blue-line:#d9c9e6;
  --blue-dark:#af98cc;--brown:#55362b;--ink:#4d4039;--muted:#75675f;
  --gold:#e2a739;--green:#789367;--rose:#e37d70;--line:#ead9bd;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{
  margin:0;color:var(--ink);font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;line-height:1.7;
  background-color:var(--cream);
  background-image:radial-gradient(circle,#f0bd58 1.2px,transparent 1.4px),radial-gradient(circle,#f6d990 1px,transparent 1.2px);
  background-position:0 0,18px 18px;background-size:36px 36px;font-size:18px;
}
.site-header{width:min(900px,calc(100% - 32px));margin:auto;padding:18px 0 8px;text-align:center}
.brand{display:inline-flex;align-items:center;justify-content:center;gap:10px;color:var(--brown);text-decoration:none}
.brand strong{display:block;font:italic 700 28px Georgia,"Times New Roman",serif;line-height:1}
.brand small{display:block;margin-top:3px;font-size:10px;letter-spacing:.28em}
.brand-leaf{color:var(--green);font-size:20px;transform:rotate(-18deg)}
.brand-leaf:last-child{transform:rotate(18deg)}
main{width:min(920px,calc(100% - 28px));margin:0 auto 70px}
.hero{padding:18px 12px 18px;text-align:center}
.hero-heading-wrap{display:flex;align-items:center;justify-content:center;gap:18px}
.hero-animal{display:block;width:150px;height:130px;object-fit:contain;flex:0 0 auto}
.hero-copy{min-width:0}
.hero-title{display:flex;align-items:center;justify-content:center;gap:14px}
.hero-title span{color:var(--gold);font-size:20px}
.hero h1{margin:0;color:var(--brown);font-size:clamp(27px,5vw,40px);font-weight:700;letter-spacing:.06em}
.hero-copy>p{margin:12px 0 0;color:var(--brown);font-size:18px}
.workspace{margin-top:10px}
.section-heading{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 16px;text-align:center}
.section-heading:before,.section-heading:after{content:"";flex:1;border-top:1px dashed #e6bc73}
.section-heading span{color:var(--green)}
.section-heading h2{margin:0;color:var(--brown);font-size:27px;letter-spacing:.08em;white-space:nowrap}
.prototype-note{margin:0 0 14px;padding:15px 18px;border:1px solid #ead7a4;border-radius:12px;background:#fff9e6;color:#755c42;font-size:17px;line-height:1.8}
.prototype-note strong{margin-right:7px;color:var(--brown)}
.alert{margin:0 0 12px;padding:12px 15px;border:1px solid #e3a49d;border-radius:12px;background:#fff0ee;color:#8a4540}
.alert p{margin:0}
.input-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;
  padding:25px;border:1px solid var(--blue-line);border-radius:17px;background:var(--blue);
  box-shadow:0 5px 0 rgba(175,152,204,.16);
}
.field{display:flex;min-width:0;flex-direction:column;gap:5px}
.field-wide{grid-column:1/-1}
label,.mode-picker legend{color:var(--brown);font-weight:700;font-size:18px}
input,select{
  display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:47px;
  padding:11px 14px;border:1px solid #d8cbe3;border-radius:9px;color:var(--ink);background:#fff;font:inherit;font-size:18px;
}
.mode-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;width:100%;min-width:0;margin:0;padding:0;border:0}
.mode-picker legend{display:block;width:100%;margin:0 0 6px;padding:0}
.mode-option{position:relative;display:block;min-width:0;cursor:pointer}
.mode-option>input[type="radio"]{position:absolute;width:1px;height:1px;min-height:0;margin:0;padding:0;opacity:0;pointer-events:none}
.mode-card-body{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;height:100%;min-height:190px;padding:13px 12px 13px 8px;border:2px solid #d8cbe3;border-radius:13px;background:#fff;box-shadow:0 3px 0 rgba(175,152,204,.12);transition:border-color .18s,background .18s,transform .18s,box-shadow .18s}
.mode-option:hover .mode-card-body{border-color:#bca8d2;transform:translateY(-1px)}
.mode-option>input:focus-visible+.mode-card-body{outline:3px solid rgba(175,152,204,.35);outline-offset:3px}
.mode-option>input:checked+.mode-card-body{border-color:var(--blue-dark);background:#faf7fc;box-shadow:0 4px 0 rgba(175,152,204,.27),inset 0 0 0 1px #fff}
.mode-option>input:checked+.mode-card-body:after{content:"選択中";position:absolute;top:9px;right:9px;padding:2px 7px;border-radius:999px;color:#fff;background:var(--blue-dark);font-size:11px;line-height:1.5;letter-spacing:.04em}
.mode-visual{position:relative;display:flex;align-items:center;justify-content:center;width:76px;height:110px}
.mode-visual img{display:block;width:76px;height:98px;object-fit:contain}
.mode-visual>span{position:absolute;right:0;bottom:5px;display:grid;place-items:center;width:29px;height:29px;border:2px solid #fff;border-radius:50%;color:#fff;background:var(--blue-dark);font-size:14px;font-weight:700;box-shadow:0 2px 4px rgba(85,54,43,.16)}
.mode-copy{display:block;min-width:0;padding-top:16px}
.mode-copy strong{display:block;color:var(--brown);font-size:18px;line-height:1.45}
.mode-copy small{display:block;margin-top:7px;color:var(--muted);font-size:14px;font-weight:400;line-height:1.65}
.input-grid[data-active-mode="ranking"] [data-modes="time ranking"]{grid-column:1/-1}
.primary-button{min-height:54px;border:0;border-radius:27px;color:#fff;background:var(--blue-dark);cursor:pointer;font:700 19px inherit;letter-spacing:.08em;box-shadow:0 3px 0 #8f77ad}
.primary-button:hover{filter:brightness(1.05)}
.results{margin-top:34px;padding-top:6px}
.result-heading{text-align:center}
.eyebrow{margin:0;color:var(--gold);font:700 11px Georgia,serif;letter-spacing:.22em}
.result-heading h2{margin:5px 0;color:var(--brown);font-size:27px}
.result-heading>p:last-child{margin:3px;color:var(--muted);font-size:17px}
.best-card{margin:20px auto;max-width:540px;padding:22px;border:1px solid #edc4bd;border-radius:16px;background:#fff0ed;text-align:center;box-shadow:0 4px 0 rgba(211,122,109,.12)}
.best-card span{color:var(--rose);font-size:12px}
.best-card h3{margin:1px;color:var(--brown);font-size:32px}
.rank-stars{letter-spacing:.04em}
.judgement{display:inline-flex;align-items:center;justify-content:center;min-width:62px;padding:4px 12px;border-radius:999px;color:#fff;font-weight:700;line-height:1.4}
.judgement-best{background:#5f75bf}.judgement-good{background:#72966b}.judgement-small-good{background:#8aa9b8}.judgement-neutral{background:#9b9189}.judgement-bad{background:#dc9145}.judgement-worst{background:#ba5555}
.direction-warning{margin:10px 0;padding:8px 10px;border-radius:8px;background:#fff0ee;color:#9b3737;font-weight:700}
.judgement-card-bad,.judgement-card-worst{border-color:#e2aaa3;background:#fff4f2}
.no-results{margin:20px 0;padding:18px;border:1px solid #e2aaa3;border-radius:12px;background:#fff4f2;color:#813f39;text-align:center;font-weight:700}
.avoid-box{margin:18px 0;padding:17px 20px;border:2px solid #d98c84;border-radius:14px;background:#fff4f2;color:#733a36}
.avoid-box h3{margin:0 0 8px;font-size:20px}.avoid-box ul{margin:0;padding-left:1.4em}.avoid-box li+li{margin-top:5px}
.avoid-times{margin:22px 0;padding:18px 20px;border:2px solid #d98c84;border-radius:14px;background:#fff4f2;color:#733a36}
.avoid-times h3{margin:0;font-size:21px}.avoid-times>p{margin:4px 0 10px;font-size:15px}.avoid-times ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.avoid-times li{padding:10px 12px;border-radius:9px;background:#fff}.avoid-times li p{margin:3px 0;font-size:15px}.avoid-times .avoid-reason{color:#8f4a43;font-weight:700}
.direction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.direction-card{min-width:0;padding:18px;border:1px solid var(--blue-line);border-radius:14px;background:rgba(234,243,252,.94)}
.direction-card:nth-child(3n+2){background:#fff0ed;border-color:#edc4bd}
.direction-card:nth-child(3n+3){background:#f1f6e9;border-color:#d4e0c6}
.direction-card header{display:flex;justify-content:space-between;gap:10px}
.direction-card h3{margin:0;color:var(--brown);font-size:20px}
.direction-card header span{color:var(--gold)}
.direction-card>.advice-summary{min-height:4em;font-size:17px;font-weight:700}
.advice-block{margin:13px 0;padding:11px 13px;border-radius:10px;background:rgba(255,255,255,.72)}
.advice-block h4{margin:0 0 5px;color:var(--brown);font-size:16px}
.advice-block ul{margin:0;padding-left:1.25em}.advice-block li{font-size:15px;line-height:1.65}.advice-block li+li{margin-top:4px}
.advice-caution{border-left:4px solid #dc9145;background:#fff8ed}.advice-tip{border-left:4px solid var(--blue-dark);background:#faf7fc}
.other-uses{margin:10px 0!important;padding:8px 10px;border-radius:8px;background:#f1f6e9;color:#536746!important;font-size:15px!important}
.direction-card dl{display:grid;grid-template-columns:1fr 1fr;margin:13px 0}
.direction-card dl div{display:flex;justify-content:space-between;padding:6px 8px;border-bottom:1px dotted #c7bba9;font-size:16px}
.direction-card dt{color:var(--muted)}
.direction-card dd{margin:0;color:#8069a0;font-weight:700}
details{border-top:1px solid rgba(150,125,103,.28);padding-top:9px}
summary{color:#8069a0;cursor:pointer;font-size:17px;font-weight:700}
.technical-details{margin-top:12px;color:var(--muted)}
.technical-details summary{font-size:13px;font-weight:400}.technical-details table,.technical-details p{font-size:12px!important;line-height:1.55}
table{width:100%;margin-top:7px;border-collapse:collapse;font-size:16px}
th,td{padding:5px;border-bottom:1px dotted #d1c2ad;text-align:left}
th{color:var(--brown)}
.chart-info{margin-top:18px;padding:16px 19px;border:1px solid #d5e2c8;border-radius:12px;background:#f1f6e9}
.chart-info h3,.chart-info p{margin:3px}
.caution{margin-top:18px;color:var(--muted);font-size:15px;text-align:center}
.ranking-list{display:grid;gap:10px;margin:21px 0;padding:0;list-style:none}
.ranking-list>li{display:grid;grid-template-columns:45px 1fr auto;align-items:start;gap:13px;padding:16px;border:1px solid var(--blue-line);border-radius:13px;background:var(--blue)}
.ranking-list>li:nth-child(2n){background:#fff0ed;border-color:#edc4bd}
.rank-number{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;background:var(--blue-dark);font:700 18px Georgia,serif}
.rank-main h3{margin:0 0 8px;color:var(--brown);font-size:26px;line-height:1.4;letter-spacing:.015em}
.rank-main>.advice-summary{margin:7px 0 10px;color:var(--ink);font-size:17px;font-weight:700}
.rank-stars{white-space:nowrap}
footer{padding:28px 20px 36px;color:var(--muted);font-size:15px;text-align:center}
footer p{margin:3px}

@media(max-width:720px){
  main{width:min(100% - 18px,920px);margin-bottom:45px}
  .site-header{padding-top:14px}
  .brand strong{font-size:25px}
  .hero{padding:12px 5px 14px}
  .hero-heading-wrap{flex-direction:column;gap:0}
  .hero-animal{width:138px;height:110px;margin-bottom:-4px}
  .hero-title{gap:8px}
  .hero h1{font-size:27px;letter-spacing:.02em}
  .hero-copy>p{font-size:17px}
  .section-heading h2{font-size:22px}
  .input-grid,.direction-grid{grid-template-columns:minmax(0,1fr)}
  .input-grid{gap:13px;padding:16px 14px}
  .input-grid>.field{width:100%;max-width:100%;overflow:hidden}
  .field-wide{grid-column:auto}
  .mode-picker{grid-template-columns:minmax(0,1fr);gap:10px}
  .mode-card-body{grid-template-columns:82px minmax(0,1fr);min-height:142px;padding:10px 13px 10px 8px}
  .mode-visual{width:82px;height:112px}.mode-visual img{width:82px;height:104px}
  .mode-copy{padding-top:10px}.mode-copy strong{padding-right:52px;font-size:18px}.mode-copy small{font-size:15px}
  input[type="date"],input[type="time"]{
    -webkit-appearance:none;appearance:none;display:block!important;box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    inline-size:100%!important;max-inline-size:100%!important;min-inline-size:0!important;
    overflow:hidden;font-size:18px
  }
  input[type="date"]::-webkit-date-and-time-value,input[type="time"]::-webkit-date-and-time-value{min-width:0;text-align:left}
  .direction-card>p{min-height:0}
  .ranking-list>li{grid-template-columns:40px minmax(0,1fr)}
  .rank-stars{grid-column:2}
  .rank-main h3{font-size:22px;line-height:1.45}
}
@media(max-width:390px){
  main{width:calc(100% - 12px)}
  .input-grid{padding:14px 10px}
  .prototype-note{padding:10px 11px}
  .hero h1{font-size:24px}
  .hero-animal{width:120px;height:98px}
  .hero-title span{font-size:16px}
  .section-heading:before,.section-heading:after{min-width:15px}
  .ranking-list>li{padding:13px}
}

/* ===== TOPページと共通（フォント・ページ見出し）※背景・ヘッダー・フッターは /common/common.css ===== */
h1,h2{font-family:"Zen Antique Soft",serif;font-weight:400;}
.direction-card h3,.best-card h3,.rank-main h3{font-family:"Zen Maru Gothic",sans-serif;font-weight:700;}
.eyebrow,.rank-number{font-family:"Libre Baskerville",serif;}
main{width:min(1100px,calc(100% - 40px));}
.workspace{max-width:920px;margin:10px auto 0;}


/* ページ見出し */
.page-head{padding:12px 0 28px;text-align:center;}
.page-head-art{display:flex;align-items:flex-end;justify-content:center;gap:16px;}
.page-head-art img{flex-shrink:0;width:auto;height:7.5rem;}
.page-head-right{transform:scaleX(-1);}
.page-title{position:relative;align-self:center;margin:0;padding:0 64px;color:#4b3a2f;font-size:2.75rem;letter-spacing:.08em;line-height:1.3;}
.page-title::before,.page-title::after{content:'';position:absolute;top:50%;transform:translateY(-50%);background:center/contain no-repeat;}
.page-title::before{left:0;width:44px;height:58px;background-image:url(/images/motherN01-star-left.png);}
.page-title::after{right:0;width:48px;height:72px;background-image:url(/images/motherN01-star-right.png);}
.page-lead{margin:12px 0 0;font-size:1.0625rem;letter-spacing:.1em;}

/* セクション見出し */
.section-heading{gap:12px;margin-bottom:1.25rem;}
.section-heading img{flex-shrink:0;width:auto;height:2.25rem;}
.section-heading h2{color:#4b3a2f;font-size:2rem;}


/* タブレット */
@media (max-width:999px){
.page-head-art img{height:6rem;}
.page-title{padding:0 52px;font-size:2.125rem;}
.page-title::before{width:34px;height:44px;}
.page-title::after{width:36px;height:54px;}
}

/* スマホ */
@media (max-width:599px){
main{width:calc(100% - 20px);}
.page-head{padding:8px 0 22px;}
.page-head-art{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"title title" "left right";align-items:end;gap:6px 8px;}
.page-title{grid-area:title;justify-self:center;padding:0 32px;font-size:1.5rem;letter-spacing:.02em;}
.page-title::before{width:24px;height:32px;}
.page-title::after{width:26px;height:38px;}
.page-head-left{grid-area:left;justify-self:start;}
.page-head-right{grid-area:right;justify-self:end;}
.page-head-art img{height:4.5rem;max-width:100%;object-fit:contain;}
.page-lead{margin-top:8px;font-size:.9375rem;letter-spacing:.04em;}
.section-heading img{height:1.75rem;}
.section-heading h2{font-size:1.375rem;}
}
/* ランキングの順位と日時（本文と見分けやすく） */
.rank-number{width:2.75rem;height:2.75rem;font-family:"Libre Baskerville",serif;font-size:1.375rem;font-style:italic;font-weight:700;line-height:1;}
.rank-main h3{margin:0 0 .875rem;padding:.25rem 0 .75rem;border-bottom:2px dashed #e6bc73;font-family:"Zen Antique Soft",serif;font-weight:400;font-size:1.75rem;letter-spacing:.04em;line-height:1.35;}
.rank-main>.advice-summary{margin-top:0;}
.advice-summary,.rank-main>.advice-summary,.direction-card>.advice-summary{font-weight:400;font-size:1.0625rem;line-height:1.85;color:#4b3a2f;}
@media (max-width:599px){
.rank-number{width:2.375rem;height:2.375rem;font-size:1.125rem;}
.rank-main h3{font-size:1.375rem;padding-bottom:.625rem;}
}
