@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');


:root{
  --ink:#1B2430;
  --ink-soft:#5B6675;
  --line:#D3D3D3;
  --surface:#FFFFFF;
  --bg:#FAFBFC;
  --focus:#1857A9;
  --brand:#26344A;
  --brand-dark:#182333;
  --brand-tint:#EEF1F5;
  --examinee:#1857A9;
  --examinee-dark:#123F80;
  --examinee-tint:#E9F1FC;
  --judge:#1F7A4D;
  --judge-dark:#155C39;
  --judge-tint:#EAF6EF;
  --radius-lg:14px;
  --radius-md:10px;
  --radius-sm:6px;
  --shadow-card:0 2px 10px rgba(20,30,50,0.05);
}

[data-theme="examinee"]{
  --brand:var(--examinee);
  --brand-dark:var(--examinee-dark);
  --brand-tint:var(--examinee-tint);
}

[data-theme="judge"]{
  --brand:var(--judge);
  --brand-dark:var(--judge-dark);
  --brand-tint:var(--judge-tint);
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

h1,
h2,
h3{
  font-family:'Zen Kaku Gothic New','Noto Sans JP',sans-serif;
  margin:0;
  color:var(--ink);
}

p{
  margin:0;
}

ul{
  margin:0;
  padding:0;
  list-style:none;
}

a{
  color:inherit;
  text-decoration:none;
}

img,
svg{
  display:block;
  max-width:100%;
}

button{
  font:inherit;
}

a:focus-visible,
button:focus-visible{
  outline:3px solid var(--focus);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}

.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}

.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
}

.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:16px;
  padding-bottom:16px;
}

.logo-lockup{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-mark{
  height:36px;
  width:auto;
}

.logo-divider{
  width:1px;
  height:30px;
  background:var(--line);
}

.logo-caption{
  font-size:13px;
  line-height:1.55;
  color:var(--ink-soft);
  white-space:nowrap;
}

.header-links{
  display:flex;
  align-items:center;
  gap:24px;
}

.header-links a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-soft);
  white-space:nowrap;
}

.header-links a:hover{
  color:var(--brand);
}

.icon-circle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--brand-tint);
  color:var(--brand);
  font-size:13px;
  font-weight:700;
  transition:background-color .15s ease;
}

.icon-circle svg{
  width:18px;
  height:18px;
}

.header-links a:hover .icon-circle{
  background:var(--brand);
  color:#fff;
}

@media (max-width: 1100px){
  .logo-caption{
    display:none;
  }

  .logo-divider{
    display:none;
  }

  .header-links{
    gap:16px;
  }
}

.hero-band{
  background:var(--bg);
  padding:56px 0 64px;
}

[data-theme="examinee"] .hero-band{
  background-image:url('../images/back-blue.jpg');
  background-size:cover;
  background-position:center;
}

[data-theme="judge"] .hero-band{
  background-image:url('../images/back-green.jpg');
  background-size:cover;
  background-position:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--brand);
  background:var(--brand-tint);
  border-radius:999px;
  padding:6px 14px;
  margin-bottom:18px;
}

.hero-title{
  font-size:clamp(26px, 3.6vw, 38px);
  font-weight:900;
  line-height:1.5;
  text-align:center;
  margin-bottom:14px;
}

.hero-sub{
  max-width:640px;
  margin:0 auto;
  text-align:center;
  font-size:16.5px;
  color:var(--ink-soft);
}

.hero-head{
  margin-bottom:40px;
}

.hero-head--center{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.portal-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
  background:var(--brand-tint);
  color:var(--brand);
}

.portal-icon svg{
  width:30px;
  height:30px;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
  max-width:820px;
  margin:0 auto;
  align-items:stretch;
}

.portal-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:36px 32px 32px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.portal-card[data-accent="examinee"]{
  --brand:var(--examinee);
  --brand-dark:var(--examinee-dark);
  --brand-tint:var(--examinee-tint);
  background:#DBF3FF;
}

.portal-card[data-accent="judge"]{
  --brand:var(--judge);
  --brand-dark:var(--judge-dark);
  --brand-tint:var(--judge-tint);
  background:#E4FFDF;
}

.portal-card__title{
  font-size:21px;
  font-weight:700;
  color:var(--brand);
  margin-bottom:8px;
}

.portal-card__desc{
  font-size:15px;
  color:var(--ink-soft);
  margin-bottom:26px;
}

.portal-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13.5px;
  font-weight:700;
  color:var(--brand);
  margin-bottom:10px;
}

.portal-card .portal-icon{
  background:#fff;
  border:2px solid #C7CFD9;
}

.btn-group{
  width:100%;
}

.btn{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:stretch;
  width:100%;
  padding:14px 56px;
  border-radius:var(--radius-md);
  font-size:16px;
  font-weight:700;
  border:1.6px solid transparent;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

.btn:active{
  transform:translateY(1px);
}

.btn-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn-primary{
  background:var(--brand);
  color:#fff;
}

.btn-primary:hover{
  background:var(--brand-dark);
}

.btn-secondary{
  background:#fff;
  color:var(--brand);
  border-color:var(--line);
}

.btn-secondary:hover{
  background:var(--brand-tint);
}

.btn-arrow{
  font-size:15px;
  line-height:1;
}

.btn .btn-arrow{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-size:28px;
  line-height:1;
  font-weight:400;
}

.portal-intro{
  text-align:center;
  margin-bottom:36px;
}

.portal-intro__title{
  font-size:29px;
  font-weight:900;
  margin-bottom:8px;
}

.portal-intro__subtitle{
  font-size:18px;
  font-weight:700;
  color:var(--brand);
  margin-bottom:14px;
}

.portal-intro__desc{
  font-size:15.5px;
  color:var(--ink-soft);
  max-width:460px;
  margin:0 auto;
}

.action-wrap{
  max-width:720px;
  margin:0 auto;
}

.action-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.action-card{
  background:var(--surface);
  border:2px solid var(--line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  padding:30px 24px 26px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.action-card__icon{
  width:56px;
  height:56px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
}

.action-card__icon svg{
  width:24px;
  height:24px;
}

.action-card__icon--solid{
  background:var(--brand);
  color:#fff;
}

.action-card__icon--outline{
  background:var(--brand-tint);
  color:var(--brand);
}

.action-card__title{
  font-size:17.5px;
  font-weight:700;
  margin-bottom:8px;
}

.action-card__desc{
  font-size:14px;
  color:var(--ink-soft);
  margin-bottom:22px;
  flex-grow:1;
}

.notice{
  margin-top:24px;
  background:var(--brand-tint);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:18px 20px;
  display:flex;
  gap:12px;
}

.notice__icon{
  flex:none;
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--surface);
  color:var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:700;
}

.notice__title{
  font-size:15px;
  font-weight:700;
  margin-bottom:4px;
}

.notice__text{
  font-size:14.5px;
  color:var(--ink-soft);
  margin-bottom:8px;
}

.notice__link{
  font-size:14.5px;
  font-weight:700;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.notice__link:hover{
  text-decoration:underline;
}

.site-footer{
  background:#F3F3F3;
  border-top:1px solid var(--line);
  padding:28px 0;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  font-size:14px;
  color:var(--ink-soft);
  margin-bottom:14px;
}

.footer-links a:hover{
  color:var(--brand);
}

.footer-meta{
  text-align:center;
  font-size:13px;
  color:#9AA4B2;
  line-height:1.9;
}

[data-theme="examinee"] .portal-intro .portal-icon,
[data-theme="judge"] .portal-intro .portal-icon{
  border:2px solid #C7CFD9;
}

[data-theme="examinee"] .portal-intro__title{
  color:var(--examinee-dark);
}

[data-theme="judge"] .portal-intro__title{
  color:var(--judge-dark);
}

[data-theme="examinee"] .portal-intro__desc,
[data-theme="judge"] .portal-intro__desc,
[data-theme="examinee"] .action-card__desc,
[data-theme="judge"] .action-card__desc,
[data-theme="examinee"] .notice__text,
[data-theme="judge"] .notice__text,
[data-theme="examinee"] .footer-meta,
[data-theme="judge"] .footer-meta,
[data-theme="examinee"] .logo-caption,
[data-theme="judge"] .logo-caption{
  font-weight:700;
}

[data-theme="examinee"] .header-links a,
[data-theme="judge"] .header-links a{
  color:var(--brand);
  font-weight:700;
}

[data-theme="examinee"] .notice__title,
[data-theme="judge"] .notice__title{
  color:var(--brand);
}

[data-theme="examinee"] .notice__text,
[data-theme="judge"] .notice__text{
  color:var(--ink);
}

[data-theme="examinee"] .notice__icon,
[data-theme="judge"] .notice__icon{
  background:var(--brand);
  color:#fff;
}

[data-theme="examinee"] .notice{
  background:#DBF3FF;
}

[data-theme="judge"] .notice{
  background:#E4FFDF;
}

[data-theme="examinee"] .footer-links,
[data-theme="judge"] .footer-links{
  gap:12px;
}

[data-theme="examinee"] .footer-links a,
[data-theme="judge"] .footer-links a{
  color:var(--brand);
  font-weight:700;
}

[data-theme="examinee"] .footer-divider,
[data-theme="judge"] .footer-divider{
  color:var(--ink-soft);
  font-weight:400;
}

@media (max-width: 860px){
  .card-grid{
    grid-template-columns:1fr;
  }

  .hero-band{
    padding:40px 0 52px;
  }

  .br-pc{
    display:none;
  }
}

@media (max-width: 600px){
  .action-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 560px){
  .container{
    padding:0 18px;
  }

  .site-header__inner{
    padding-top:12px;
    padding-bottom:12px;
  }

  .logo-caption{
    display:none;
  }

  .logo-divider{
    display:none;
  }

  .logo-mark{
    height:26px;
  }

  .header-links{
    gap:8px;
  }

  .header-links a{
    gap:4px;
    font-size:12px;
  }

  .icon-circle{
    width:34px;
    height:34px;
    font-size:14px;
  }

  .icon-circle svg{
    width:17px;
    height:17px;
  }

  .portal-card{
    padding:28px 20px 24px;
  }

  .action-card{
    padding:24px 18px 20px;
  }

  .hero-title,
  .portal-intro__title{
    font-size:23px;
  }

  .hero-head{
    margin-bottom:28px;
  }

  .btn{
    padding:14px 44px;
  }

  .btn .btn-arrow{
    right:14px;
    font-size:22px;
  }
}
