
/* 本文・見出しで同じ読みやすいゴシック体を使用。極太書体と合成太字を避ける。 */
@font-face{font-family:'Noto Sans JP';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/noto-sans-jp-home.woff2') format('woff2')}
:root {
  --ink:#171717; --paper:#f5f2e9; --white:#fffdf7; --red:#e83b31;
  --muted:#66635f; --line:#d7d2c9;
  --display:'Noto Sans JP','Yu Gothic','Meiryo',sans-serif;
  --body:'Noto Sans JP','Yu Gothic','Meiryo',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-synthesis:none;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.wrap{width:min(1180px,calc(100% - 48px));margin:0 auto}
.skip-link{position:absolute;top:-60px;left:12px;z-index:20;padding:12px;background:#fff}
.skip-link:focus{top:12px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.topbar{background:var(--ink);color:#fff;position:relative;z-index:2}
.topbar-inner{height:76px;display:flex;justify-content:space-between;align-items:center}
.brand{display:flex;align-items:baseline;gap:14px}
.brand-jp{font-family:var(--display);font-size:23px;font-weight:700;letter-spacing:-.04em;transform:skew(-7deg);display:inline-block}
.brand-mark{color:var(--red)}
.brand-en{font-size:9px;letter-spacing:.18em;font-weight:800;color:#aaa}
.top-nav{display:flex;gap:28px;font-size:12px;font-weight:700}
.top-nav a:hover{color:#ff8e80}
.top-nav a:focus-visible,.hero-cta:focus-visible,.exam-card:focus-visible,.filter:focus-visible,.search-field input:focus-visible{outline:3px solid #f2a32b;outline-offset:4px}
.hero{min-height:560px;position:relative;overflow:hidden;background:#f1eee5;border-bottom:5px solid var(--ink)}
.hero:before{content:'';position:absolute;top:-230px;right:-440px;width:700px;height:950px;background:var(--ink);transform:rotate(29deg);z-index:0}
.hero:after{content:'';position:absolute;top:-150px;right:-70px;width:60px;height:820px;background:var(--red);transform:rotate(29deg);z-index:0}
.hero-noise{position:absolute;inset:0;opacity:.17;pointer-events:none;background-image:repeating-linear-gradient(120deg,transparent 0,transparent 12px,#9b978d 12.5px,transparent 13px);background-size:22px 22px}
.hero-inner{position:relative;z-index:1;min-height:532px;display:flex;align-items:center;justify-content:space-between;padding:45px 0 58px}
.hero-copy{position:relative;z-index:1;max-width:850px}
.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:900;display:flex;align-items:center;gap:10px}
.red-dot{width:9px;height:9px;background:var(--red);display:inline-block;transform:rotate(45deg)}
.hero-title{font-family:var(--display);font-weight:700;font-size:clamp(76px,10.2vw,148px);letter-spacing:-.045em;line-height:1.24;margin:12px 0 8px;transform:skew(-6deg) rotate(-1deg);transform-origin:left center;filter:drop-shadow(3px 4px 0 rgba(0,0,0,.10))}
.hero-title span{display:inline-block}
.hero-title-last{position:relative;z-index:0}
.red-slash{position:absolute;z-index:-1;left:7%;bottom:7%;height:17px;width:110%;background:var(--red);transform:rotate(-7deg);clip-path:polygon(0 28%,100% 0,96% 100%,3% 82%)}
.hero-kicker{font-family:var(--display);font-weight:600;font-size:clamp(19px,2.4vw,29px);letter-spacing:.01em;margin:6px 0 14px}
.hero-lead{font-size:15px;line-height:1.9;font-weight:600;margin:0 0 28px}
.hero-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:50px;background:var(--red);color:#fff;border:3px solid var(--ink);padding:17px 20px;font-size:14px;font-weight:900;box-shadow:6px 6px 0 var(--ink);transition:transform .18s,box-shadow .18s}
.hero-cta:hover{transform:translate(3px,3px);box-shadow:3px 3px 0 var(--ink)}
.hero-cta span{font-size:24px;line-height:1}
.hero-aside{color:#fff;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:10px;margin-right:10px}
.hero-aside-number{font-family:var(--display);font-size:clamp(75px,10vw,135px);opacity:.12;line-height:1}
.hero-aside-label{font-size:10px;letter-spacing:.25em;font-weight:900;writing-mode:vertical-rl}
.hero-aside-line{height:50px;width:2px;background:var(--red)}
.hero-bottom{position:absolute;z-index:1;left:0;right:0;bottom:0;padding:12px max(24px,calc((100vw - 1180px)/2));display:flex;justify-content:space-between;background:var(--ink);color:#fff;font-size:10px;font-weight:900;letter-spacing:.18em}
.exams-section{padding:78px 0 98px}
.section-topline{display:flex;align-items:center;gap:16px;font-size:11px;letter-spacing:.15em;font-weight:900}
.section-index{color:var(--red)}
.section-rule{flex:1;height:1px;background:#c8c3bb}
.section-count{color:var(--muted)}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin:20px 0 36px}
.section-label{color:var(--red);font-size:11px;font-weight:900;letter-spacing:.22em;margin:0 0 7px}
.section-heading h2{font-family:var(--display);font-weight:700;font-size:clamp(29px,4vw,50px);letter-spacing:-.035em;line-height:1.45;margin:0}
.period{color:inherit}
.section-heading>p{font-size:13px;line-height:1.9;color:var(--muted);font-weight:600;margin:0 0 4px}
.exam-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filter{background:transparent;color:var(--ink);border:1px solid #c9c4bb;padding:10px 15px;border-radius:2px;font-size:12px;font-weight:800;cursor:pointer}
.filter[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.filter:hover:not([aria-pressed="true"]){background:#e9e4da}
.search-field{display:flex;align-items:center;background:var(--white);border:1px solid var(--line);min-width:250px;padding:0 12px}
.search-icon{font-size:24px;color:var(--muted);margin-right:8px}
.search-field input{border:0;outline:0!important;padding:12px 0;width:100%;background:transparent;font-size:13px}
.search-field:focus-within{outline:3px solid #f2a32b;outline-offset:2px}
.exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.exam-card{min-width:0;background:var(--white);border:2px solid var(--ink);position:relative;display:flex;flex-direction:column;min-height:325px;padding:22px 22px 18px;transition:transform .16s,box-shadow .16s;box-shadow:5px 5px 0 #bdb7ad}
.exam-card:hover{transform:translate(-3px,-3px);box-shadow:8px 8px 0 var(--ink)}
.card-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.card-category{font-size:11px;font-weight:900;letter-spacing:.08em}
.card-status{font-size:10px;color:#14604e;background:#e5f4e9;padding:5px 8px;font-weight:800}
.card-main{display:flex;align-items:center;gap:17px;margin-top:25px}
.card-symbol{flex:none;width:70px;height:70px;display:grid;place-items:center;background:var(--ink);color:var(--white);font-family:var(--display);font-weight:700;font-size:35px;transform:skew(-7deg)}
.card-name{font-family:var(--display);font-weight:700;font-size:clamp(17px,1.8vw,23px);line-height:1.45;letter-spacing:-.025em}
.card-english{font-size:9px;letter-spacing:.06em;font-weight:900;color:var(--red);margin-top:6px;overflow-wrap:anywhere}
.card-description{font-size:12px;line-height:1.9;color:#55524d;font-weight:600;margin:23px 0 14px}
.card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-bottom:16px}
.card-tag{font-size:10px;border:1px solid #d6d1c8;padding:5px 7px;color:#77736d;font-weight:700}
.card-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;font-weight:900;font-size:12px}
.card-arrow{font-size:24px;line-height:1;color:var(--red)}
.card-name{margin:0}.card-bottom{gap:10px}.card-bottom>a{flex:1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:10px 12px;line-height:1.6;font-size:12px;border:1px solid var(--ink);text-decoration:none}.exam-info-link{background:var(--white);color:var(--ink)}.exam-study-link{background:var(--ink);color:#fff}.exam-study-link .card-arrow{font-size:21px;color:#ff6558}.card-bottom>a:focus-visible{outline:3px solid #b52a22;outline-offset:4px}.card-bottom>a:hover{box-shadow:2px 2px 0 #aaa49a}.exam-info-link:hover{background:#f0ebe2}
@media(max-width:600px){.card-bottom{flex-direction:column;align-items:stretch}.card-bottom>a{font-size:13px;min-height:48px}}
.empty-message{background:#fff;border:1px solid var(--line);padding:25px;text-align:center}
.future-banner{display:flex;align-items:center;gap:20px;margin-top:30px;padding:25px 27px;background:#eae5dc;border:1px dashed #b8b1a6}
.future-sign{display:grid;place-items:center;width:55px;height:55px;border:2px solid #999287;font-size:30px;color:#80796f;flex:none}
.future-banner strong{display:block;font-size:17px;font-weight:900}
.future-banner p{font-size:12px;color:#6a655d;margin:7px 0 0}
.future-small{font-size:9px;letter-spacing:.2em;font-weight:900;color:var(--red);display:block;margin-bottom:6px}
.about-section{background:var(--ink);color:#fff;padding:76px 0}
.about-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.section-label.light{color:#ff7063}
.about-section h2{font-family:var(--display);font-weight:600;font-size:clamp(26px,3.4vw,42px);line-height:1.65;letter-spacing:-.025em;margin:10px 0}
.about-section h2 span{color:#ff7063}
.about-copy{align-self:center;font-size:13px;line-height:2.2;color:#ddd}
.about-copy p{margin:0 0 13px}
.footer{background:#0c0c0c;color:#aaa;padding:32px 0}
.footer-inner{display:flex;align-items:center;gap:20px;justify-content:space-between}
.footer-brand{color:#fff;font-family:var(--display);font-weight:700;font-size:17px;white-space:nowrap}
.footer-brand span{font-family:var(--body);font-size:8px;letter-spacing:.1em;color:#777;display:block}
.footer p{font-size:10px;max-width:500px;line-height:1.7}
.footer small{font-size:10px;white-space:nowrap}
.footer-legal{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:18px;padding-top:16px;border-top:1px solid #36332e;font-size:12px}
.footer-legal a{display:inline-flex;align-items:center;min-height:36px;color:#ddd;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.footer-legal a:hover{color:#ff8e80}.footer-legal a:focus-visible{outline:3px solid #ff8e80;outline-offset:4px}
@media(max-width:960px){.hero:before{right:-490px}.hero:after{right:-90px}.hero-aside{display:none}.hero-title{font-size:clamp(70px,12vw,116px)}.exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-card{min-height:320px}.section-heading>p{max-width:240px}}
@media(max-width:680px){
  .wrap{width:min(100% - 32px,540px)}
  .topbar-inner{height:65px}
  .brand-jp{font-size:20px}
  .brand-en{display:none}
  .top-nav{gap:16px;font-size:11px}
  .top-nav a:last-child{display:none}
  /* モバイルでは斜めの黒背景を文章の下へ移し、黒文字との重なりを防ぐ */
  .hero{min-height:525px;background:#f1eee5}
  .hero:before{top:auto;bottom:36px;right:-220px;width:350px;height:148px;transform:skewX(-28deg);opacity:1}
  .hero:after{top:auto;bottom:110px;right:-95px;width:155px;height:12px;transform:rotate(-16deg)}
  .hero-inner{min-height:500px;padding:38px 0 112px;align-items:flex-start}
  .hero-copy{max-width:100%;width:100%}
  .hero-copy .eyebrow,.hero-copy .hero-title,.hero-copy .hero-kicker,.hero-copy .hero-lead{color:var(--ink)}
  .hero-title{font-size:clamp(56px,15vw,91px);line-height:1.4;letter-spacing:-.045em;margin:15px 0 7px}
  .red-slash{height:10px}
  .hero-kicker{font-size:18px}
  .hero-lead{font-size:13px;line-height:1.9;max-width:335px}
  .hero-cta{font-size:12px;padding:14px 14px;gap:25px}
  .hero-bottom{font-size:8px;padding:12px 16px}
  .exams-section{padding:57px 0 65px}
  .section-heading{display:block;margin-bottom:26px}
  .section-heading h2{font-size:clamp(26px,7vw,39px)}
  .section-heading>p{margin-top:14px;font-size:12px}
  .exam-tools{flex-direction:column;align-items:stretch}
  .search-field{min-width:0}
  .exam-grid{grid-template-columns:1fr;gap:16px}
  .exam-card{min-height:270px;padding:20px}
  .card-main{margin-top:20px}
  .card-name{font-size:22px}
  .card-description{margin:17px 0 10px}
  .future-banner{padding:18px;gap:14px}
  .future-banner strong{font-size:14px}
  .about-section{padding:54px 0}
  .about-inner{grid-template-columns:1fr;gap:12px}
  .footer-inner{flex-direction:column;align-items:flex-start;gap:10px}
}
@media(max-width:360px){.hero-title{font-size:54px}.hero-cta{gap:12px}.hero:before{right:-240px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* INK / RIP v2 — 紙全体をCanvasで描画。時計・stepsアニメーションは撤去。 */
.opening{position:fixed;inset:0;z-index:1000;overflow:hidden;background:transparent;isolation:isolate;touch-action:none}
.opening[hidden]{display:none!important}
#opening-canvas{width:100%;height:100%;display:block}
html.play-intro,html.play-intro body{overflow:hidden}
.opening-skip{position:absolute;z-index:2;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));border:1px solid #171717;border-radius:0;background:#171717;color:#fff;padding:13px 18px;font-family:var(--body);font-size:11px;font-weight:800;cursor:pointer;letter-spacing:.08em;min-height:44px}
.opening-skip span{margin-left:16px}
.opening-skip:hover{background:#e83b31}
.opening-skip:focus-visible,.opening-replay:focus-visible{outline:3px solid #e83b31;outline-offset:4px}
.top-nav{align-items:center}
.opening-replay{font-size:11px;font-weight:800;color:#f3ede1;border:1px solid #666;background:transparent;padding:9px 10px;cursor:pointer;white-space:nowrap;min-height:36px}
.opening-replay:hover{border-color:#e83b31;color:#ff9e94}
@media(max-width:680px){.opening-replay{font-size:10px;padding:7px 8px}.top-nav{gap:9px}}
@media(max-width:360px){.opening-replay span{display:none}.opening-replay{font-size:17px;line-height:1;padding:5px 8px}}
@media(prefers-reduced-motion:reduce){.opening{display:none!important}}
