:root{
  --hyx-navy:#10294f;
  --hyx-blue:#183b68;
  --hyx-red:#b52b38;
  --hyx-gold:#e3c784;
  --hyx-cream:#fff9e9;
  --hyx-line:#e8d8b2;
  --hyx-text:#14233a;
}

body.page-id-24 .wp-block-post-title{display:none!important}

.hyx-shell{
  width:calc(100vw - 48px)!important;
  max-width:1400px!important;
  margin:18px 0 16px calc(50% - min(700px,calc(50vw - 24px)))!important;
  color:var(--hyx-text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;
}

.hyx-shell *{box-sizing:border-box}
.hyx-top{display:grid;grid-template-columns:370px 1fr;gap:18px;background:linear-gradient(100deg,#fff9e7,#f8e6b8);padding:24px;border-radius:24px 24px 0 0}
.hyx-brand{background:var(--hyx-navy);color:#fff;border-radius:20px;padding:26px 30px;min-height:188px;display:flex;flex-direction:column;justify-content:center}
.hyx-brand small{color:#ffe17a;font-weight:800;letter-spacing:.08em}
.hyx-brand h1{font-size:48px;line-height:1.08;margin:9px 0 0!important;color:#fff!important;font-weight:800}
.hyx-today{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:18px;background:#fff;border:1px solid var(--hyx-line);border-radius:20px;padding:25px 28px}
.hyx-number{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--hyx-red);color:#fff;font-size:18px;font-weight:800}
.hyx-today-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.hyx-today-copy small{font-weight:800;color:var(--hyx-blue)}
.hyx-today-copy strong{font-family:"Yu Mincho","Noto Serif JP",serif;font-size:20px;line-height:1.7}
.hyx-today-copy span{font-size:14px;font-weight:700}
.hyx-shell button{font:inherit;cursor:pointer}
.hyx-speak,.hyx-actions button,.hyx-assess button,.hyx-reader-actions button,.hyx-question button,.hyx-record-actions button{border:1px solid #cdd6e2;background:#fff;color:var(--hyx-navy);border-radius:12px;padding:11px 16px;font-weight:800}
.hyx-speak,.hyx-shell .primary{background:var(--hyx-blue)!important;color:#fff!important;border-color:var(--hyx-blue)!important}

.hyx-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;background:#fff4d6;padding:0 24px 16px}
.hyx-stats>div{background:#fff;border:1px solid var(--hyx-line);border-radius:15px;min-height:84px;display:grid;place-items:center;align-content:center;gap:4px}
.hyx-stats strong{font-size:24px;color:var(--hyx-red)}
.hyx-stats span{font-size:13px}
.hyx-nav{display:flex;flex-wrap:wrap;gap:8px;background:#f8f0dc;padding:10px 24px 14px;border-radius:0 0 24px 24px}
.hyx-nav button{border:1px solid #d9c9a5;background:#fff;color:#233047;border-radius:999px;padding:11px 18px;font-weight:800;white-space:nowrap}
.hyx-nav button.active{background:var(--hyx-navy);color:#fff;border-color:var(--hyx-navy)}
.hyx-workspace{margin-top:16px;scroll-margin-top:20px}
.hyx-panel{background:#fff;border:1px solid var(--hyx-line);border-radius:22px;padding:28px;box-shadow:0 10px 35px rgba(15,41,79,.08)}
.hyx-panel>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7eaf0;padding-bottom:16px;margin-bottom:20px}
.hyx-panel>header small{font-size:12px;color:#1b63a8;letter-spacing:.16em;font-weight:900}
.hyx-panel h2{margin:3px 0 0!important;font-size:30px!important;color:var(--hyx-navy)!important}
.hyx-panel>header>span{font-weight:800;color:#59677a}
.hyx-poem-heading{display:flex;align-items:center;gap:13px;margin-bottom:14px}
.hyx-poem-heading>span{display:grid;place-items:center;background:var(--hyx-red);color:#fff;width:45px;height:45px;border-radius:50%;font-weight:900}
.hyx-poem-heading>div{display:flex;flex-direction:column;gap:2px}
.hyx-poem-heading small{color:#6a7480}
.hyx-flashcard,.hyx-reading,.hyx-question{background:linear-gradient(145deg,#fffdf7,#f8f1df);border:1px solid var(--hyx-line);border-radius:18px;padding:32px;text-align:center}
.hyx-upper,.hyx-reading p,.hyx-question p{font-family:"Yu Mincho","Noto Serif JP",serif;font-size:28px;line-height:1.75;margin:0 0 18px!important;color:#15233a}
.hyx-answer{border-top:1px dashed #c9b887;margin-top:22px;padding-top:22px}
.hyx-answer p{font-family:"Yu Mincho","Noto Serif JP",serif;font-size:28px;margin:0 0 12px!important;color:var(--hyx-red)}
.hyx-answer small{display:block;max-width:800px;margin:auto;line-height:1.8}
.hyx-assess,.hyx-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px}
.hyx-assess button.selected{background:#e5f6ed;border-color:#24864f;color:#126a3a}
.hyx-assess button.selected.warn{background:#fff0e9;border-color:#c85b31;color:#9d3b19}
.hyx-reader-actions{margin-bottom:14px}
.hyx-speed{display:flex;align-items:center;justify-content:center;gap:12px;font-weight:700;margin:18px 0}
.hyx-speed input{width:min(360px,60vw)}
.hyx-question small{display:block;color:#687588;font-weight:800;margin-bottom:8px}
.hyx-karuta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}
.hyx-karuta-grid button,.hyx-quiz-grid button{border:1px solid #d7dee8;background:#fff;color:#1c2d46;border-radius:14px;padding:20px;font-family:"Yu Mincho","Noto Serif JP",serif;font-size:18px;line-height:1.7;min-height:118px}
.hyx-quiz-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.hyx-quiz-grid button{display:flex;align-items:center;gap:14px;text-align:left;min-height:88px}
.hyx-quiz-grid button span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#eef3f9;font-family:inherit;font-weight:900}
.hyx-karuta-grid button:hover,.hyx-quiz-grid button:hover{border-color:#3973ac;background:#f5f9ff}
.hyx-karuta-grid button.correct,.hyx-quiz-grid button.correct{background:#dff5e8;border-color:#21834c;color:#155d38}
.hyx-karuta-grid button.wrong,.hyx-quiz-grid button.wrong{background:#fde7e7;border-color:#c83f4e;color:#982330}
.hyx-result{display:flex;align-items:center;justify-content:center;gap:16px;min-height:58px;margin-top:14px;font-weight:900;font-size:18px}
.hyx-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hyx-guide-grid article{position:relative;background:#f6f9fc;border:1px solid #dfe6ef;border-radius:16px;padding:22px}
.hyx-guide-grid article>b{position:absolute;right:16px;top:12px;font-size:44px;color:#d8e3ef}
.hyx-guide-grid h3{position:relative;margin:0 0 8px!important;color:var(--hyx-navy)}
.hyx-guide-grid p{position:relative;line-height:1.8;margin:0!important}
.hyx-guide>h3{margin:26px 0 12px!important}
.hyx-one-char{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}
.hyx-one-char button{border:1px solid #d7c9a8;background:#fffdf7;border-radius:13px;padding:12px 8px;color:var(--hyx-text)}
.hyx-one-char strong{display:block;font-size:26px;color:var(--hyx-red)}
.hyx-one-char span{display:block;font-size:11px;margin-top:5px;line-height:1.4}
.hyx-start{display:block;margin:22px auto 0;border:0;border-radius:12px;padding:13px 24px;font-weight:900}
.hyx-record-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.hyx-record-grid>div{background:#f5f8fc;border-radius:14px;padding:22px;text-align:center}
.hyx-record-grid strong{display:block;font-size:34px;color:var(--hyx-red)}
.hyx-record-grid span{font-size:13px}
.hyx-progress{height:15px;background:#e7ecf2;border-radius:999px;overflow:hidden;margin:25px 0 8px}
.hyx-progress span{display:block;height:100%;background:linear-gradient(90deg,#1c67a8,#3da56e);border-radius:inherit}
.hyx-record-actions{display:flex;gap:10px;margin-top:18px}
.hyx-record-actions button:disabled{opacity:.45;cursor:not-allowed}
.hyx-original-hidden{min-height:0!important;margin-top:0!important;padding-top:0!important}

@media(max-width:900px){
  .hyx-top{grid-template-columns:1fr}
  .hyx-brand{min-height:130px}
  .hyx-brand h1{font-size:38px}
  .hyx-today{grid-template-columns:45px 1fr}
  .hyx-speak{grid-column:2;justify-self:start}
  .hyx-karuta-grid{grid-template-columns:repeat(2,1fr)}
  .hyx-one-char{grid-template-columns:repeat(4,1fr)}
}

@media(max-width:620px){
  .hyx-shell{width:calc(100vw - 20px)!important;margin-left:calc(50% - 50vw + 10px)!important}
  .hyx-top{padding:12px;gap:10px}
  .hyx-brand{padding:20px;min-height:112px}
  .hyx-brand h1{font-size:32px}
  .hyx-today{padding:17px 14px;gap:10px}
  .hyx-today-copy strong{font-size:16px;line-height:1.6}
  .hyx-stats{grid-template-columns:repeat(2,1fr);padding:0 12px 12px;gap:8px}
  .hyx-stats>div:last-child{grid-column:1/-1}
  .hyx-nav{padding:10px 12px;display:grid;grid-template-columns:repeat(2,1fr)}
  .hyx-nav button{padding:11px 8px;font-size:13px}
  .hyx-panel{padding:18px 13px;border-radius:16px}
  .hyx-panel h2{font-size:24px!important}
  .hyx-upper,.hyx-reading p,.hyx-question p,.hyx-answer p{font-size:21px}
  .hyx-flashcard,.hyx-reading,.hyx-question{padding:22px 14px}
  .hyx-karuta-grid,.hyx-quiz-grid,.hyx-guide-grid,.hyx-record-grid{grid-template-columns:1fr}
  .hyx-karuta-grid button{min-height:86px;padding:13px;font-size:16px}
  .hyx-one-char{grid-template-columns:repeat(2,1fr)}
  .hyx-record-actions{flex-direction:column}
}

