body {
background-color: #f0f0f0;
font-family: "Noto Sans JP", sans-serif;
overflow-x: hidden;
margin: 0;
}

.site-description{
    font-size: 0;
}

main{
    overflow-x:clip
}

.skip-link{
    display: none;
}

footer{
    overflow-x:clip
}

ul {
    list-style-type: none;
}

.nav{
    margin-left: auto;
}

/* header */
.logomark,.top-logomark {
    max-width: 150px;
margin-bottom: -80px;
}

.shu-logo{
    max-width: 200px;
    margin-right: 10px;
    margin-left: 20px;
}

.shu-logo img{
width: 100%;
}

.spbr{
    display: none;
}

.nav__sp{
    display: none;
}

@media (max-width: 1283px) {
.logomark,.top-logomark {
    max-width: 140px;
margin-bottom: -65px;
position: absolute;}

    .logomark img {
        max-width: 80px;
    }

    .top-logomark img {
        max-width: 120px;
    }

    .shu-logo{
        display: none;
    }

    .nav__sp{
        display: flex;
        position: absolute;
        right: 0;
        top: -.3rem;
    }

    .nav__sp img{
        width: 120px;
        margin: 23px 52px 0 0;
    }

    .spbr{
        display: block;
    }

}

.site-header {
    position: fixed;
    background-color: #F0F0F0;
    margin: auto;
    width: 100%;
    top: 0;
    z-index: 3;
    /* z-index: 100; */}

.site-header__wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
    margin: 10px;}


.nav__wrapper li a{
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    background-color: #fff;
    border-radius: 30px;
    padding: 8.5px 20px;
    border: solid 2px #000;
    margin-right:15px;
    text-decoration: none;
    color: #000;
    font-size: 18px;
    margin: 5px;
}


.nav__wrapper li a:hover{
    background-color: #000;
    color: #fff;
    transition: 0.5s;
}

.nav__wrapper li a.nowpage{
    background-color: #000;
    color: #fff;
}

.header-search-panel {
    display: flex;
    align-items: center;
}

.header-search-panel--pc {
    margin: 5px 10px;
}

.header-search-toggle,
.header-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 48px;
    /* .nav__wrapper li a と同じ横余白で nav とボタン群の見た目を揃える */
    padding: 8.5px 20px;
    border: solid 2px #000;
    border-radius: 30px;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.header-search-toggle {
    gap: 4px;
    width: 103px;
    background-color: #fff;
    color: #000;
}

.header-search-toggle::before {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("/img/search.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: '';
}

/* nav__wrapper li a:hover と同じく :hover 内に transition を置き、
   フェードインのみ (戻りは即時、フェードアウトなし) にする */
.header-search-toggle:hover {
    background-color: #000;
    color: #fff;
    transition: 0.5s;
}

.header-search-toggle:hover::before {
    filter: invert(1);
    transition: 0.5s;
}

/* 閉じるボタンから検索ボタンに切り替わった直後はフェードを抑制する
   ( JS で一時付与 → 次フレームで除去 ) */
.header-search-toggle.no-fade,
.header-search-toggle.no-fade::before {
    transition: none !important;
}

.header-search-close {
    width: 103px;
    flex-shrink: 0;
    /* form 右端を通常時のラインナップ右端に揃える ( panel right - close width - 5 = ラインナップ right ) */
    margin-left: 5px;
    background-color: #000;
    color: #fff;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    height: 48px;
    background-color: #fff;
    border: solid 2px #000;
    border-radius: 30px;
}

/* Figma準拠: input 自体に focus outline は付けず、keyboard focus はフォーム全体で示す */

.header-search-form input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 5px 14px;
    border: none;
    border-radius: 28px 0 0 28px;
    background: transparent;
    box-sizing: border-box;
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    outline: none;
    text-overflow: ellipsis;
}

.header-search-form input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.header-search-form input::placeholder {
    color: #777;
}

.header-search-form--sp:focus-within {
    outline: solid 2px #000;
    outline-offset: 3px;
}

.header-search-form--pc:focus-within {
    outline: none;
}

.header-search-form--pc input:focus-visible {
    box-shadow: inset 0 0 0 1px #000;
}

.header-search-form button {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 103px;
    height: 100%;
    padding: 0;
    border: none;
    border-left: solid 2px #000;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.header-search-form button::before {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("/img/search.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: '';
}

.header-search-form--pc button {
    background-color: #000;
    color: #fff;
}

.header-search-form--pc button::before {
    filter: invert(1);
}

.header-search-form--pc button:focus-visible,
.header-search-toggle:focus-visible,
.header-search-close:focus-visible {
    outline: solid 2px #000;
    outline-offset: -3px;
}

.header-search-form input:focus-visible {
    outline: none;
}

.header-search-form--pc button:focus-visible,
.header-search-close:focus-visible {
    outline-color: #fff;
}

.header-search-form--pc {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.header-search-form--sp {
    display: none;
}

.header-search-panel--pc.is-open {
    justify-content: flex-end;
}

.header-search-panel [hidden] {
    display: none;
}

@media (min-width: 1284px) {
.site-header__wrapper {
    display: grid;
    /* col2 (1fr) を空のスペーサーにして nav + 検索パネルを右寄せ */
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0; }

.top-logomark {
    grid-column: 1;
    grid-row: 1;
}

.nav {
    grid-column: 3;
    grid-row: 1;
    /* セル全体に広げて nav__item の左端をセル左端 (検索フォーム左端) と一致させる */
    width: 100%;
    box-sizing: border-box;
    /* 同セルに重なる検索ボタン (.header-search-toggle 103px) と衝突しないよう余白を確保 */
    padding-right: 113px;
}

/* .nav と同じセルに重ね、通常時はセル右端、検索開時はセル全体を占有 */
.header-search-panel--pc {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

.shu-logo {
    grid-column: 4;
    grid-row: 1;
}

.nav__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
     }
.nav__wrapper li a{
  font-size: clamp(18px, 1vw, 25px);
  }

/* 領域を維持してフォームの左端を nav__item の左端に揃える */
.site-header__wrapper.header-search-is-open .nav {
    visibility: hidden;
}

.site-header__wrapper.header-search-is-open .header-search-panel--pc {
    justify-self: stretch;
    /* ul.nav__wrapper のデフォルト padding-left (40px) + nav__wrapper li a の margin (5px) -
       panel 自身の margin-left (10px) ぶんを左に詰めて、フォーム左端をニュースボタン左端に揃える */
    padding-left: 35px;
    box-sizing: border-box;
}
}

@media (max-width: 1023px) {
    .nav__wrapper li a{
        font-size: 16px;
    }
    .logomark,.top-logomark{
        margin: 0 0 -20px 0;
    }
}


@media (max-width: 1283px) {

    .site-header{
        min-height: 53px;
    }
    .site-header__wrapper {
    padding-top: 0rem;}

    .nav__wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: -1;
    background-color: #d9f0f7;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; }
    .nav__wrapper.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); }

    .header-search-form--pc {
        display: none;
    }

    .header-search-panel--pc {
        display: none;
    }

    .header-search-form--sp {
        display: flex;
        width: calc(100% - 60px);
        margin: 0 30px 24px auto;
    }

    .header-search-form--sp button {
        width: 54px;
        border-left: none;
    }

    .header-search-form--sp button span {
        display: none;
    }

    /* メニュー開時は閉じた状態の集英社ロゴを非表示（メニュー内ロゴと重複するため） */
    .nav__sp:has(.toggle-btn.active) > a {
        visibility: hidden;
    }
}

.nav__item a {
    display: block;
    padding: 1.5rem 1rem;
}

.nav__item a img{
    height:35px
}

.toggle-btn {
    right: 0;
    /* 集英社100ロゴ（nav__sp top + margin-top）の中央にアイコン中央を揃える */
    top: calc(-0.3rem + 23px + (120px * 97.89 / 566.93 - 50px) / 2);
    width: 50px;
    height: 50px;
    position: fixed;
    z-index: 103;
    border-radius: 0 0 0 10px;
    border: none;
    background-color: transparent;
    background-image: url("/img/menu-search.svg");
    background-position: center;
    background-repeat: no-repeat;
    /* 集英社100ロゴ（120px幅 ≈ 21px高）と同じ高さに合わせる */
    background-size: calc(120px * 97.89 / 566.93 * 40 / 31) calc(120px * 97.89 / 566.93);
}

.toggle-btn__line {
    background: #000;
    display: block;
    height: 2px;
    position: absolute;
    transition: opacity 0.2s, transform 0.5s;
    width: 17px;
    left: 16.5px;
    opacity: 0;
}

.toggle-btn__line--top {
    top: 19px;
}

.toggle-btn__line--center {
    top: 25px;
    opacity: 0;
}

.toggle-btn__line--bottom {
    top: 31px;
}

.toggle-btn__line--top.active {
    top: 25px;
    transform: rotate(45deg);
    background: #000;
    opacity: 1;
}
.toggle-btn__line--center.active {
    transform: scaleX(0);
    opacity: 0;
}
.toggle-btn__line--bottom.active {
    top: 25px;
    transform: rotate(135deg);
    background: #000;
    opacity: 1;
}

.toggle-btn.active{
    top: 0;
    background-color: #fff;
    background-image: none;
}

.toggle-btn.active .toggle-btn__line--top,
.toggle-btn.active .toggle-btn__line--bottom {
    opacity: 1;
}

.global-nav {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 1);
    width: 100%;
    height: 100%;
    z-index: 102;
    left: 0;
    top: 0;
}

.global-nav__inner {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    overflow-x: hidden;
   /* overflow-y: scroll; */

}

.global-nav__list{
    text-align: right;
    margin-top: 80px;
    padding-right: 30px;
    width: 100%;
}

.global-nav .global-nav__list {
    margin-top: 0;
}

.global-nav .header-search-form--sp {
    /* 集英社ロゴ下端に重ならないよう配置: 23px(.nav__sp img margin-top) - 4px(.logomark__right-inversion top) + 約21px(ロゴ高) + 20px(余白) */
    margin-top: calc(23px - 4px + 21px + 20px);
    margin-bottom: 24px;
}

.global-nav__item {
  margin-bottom: 25px;
}

.global-nav__item a {
  color: #fff;
    font-size: 21px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.5s;
}

.global-nav__item a:hover {
  opacity: 0.7;
}
.global-nav__sns{
    margin-top: 0;
    text-align: right;
    padding-right: 30px;
}
.global-nav__sns img{
    margin: 0;
    max-width:35px;
}

.global-nav__link-icon{
    width: 49%;
    margin: 10px auto;
    text-align: center;
}

.global-nav__link-icon img{
    margin: 0;
}

.global-nav__icon{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    padding: 0;
}

.global-link__icon{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    padding: 0;
    width: 90%;
    max-width: 750px;
    margin: 10px auto 0 auto;
}

.global-nav__sns-icon{
margin-left: 20px;
}

.global-nav__sns-icon img{
    width: 30px;
}

.global-nav__link{
    width: 100%;
}

.logomark__right-inversion{
    position: absolute;
}

.menu-copyright{
    width: 100%;
    margin-top: 20px;
}

.menu-copyright p{
    color: #fff;
    font-size: 12px;
    text-align: center;
}

/*footer*/

.footer-share{
    margin: 80px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-share__list{
    display: flex;
}
.footer-share__list li{
    margin: 10px;
}

.footer-bnr{
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 0;
}

.footer-bnr__list{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    padding: 0;
    justify-content: space-evenly;
}

.footer-bnr__list li{
    width: 25%;
    padding: 20px;
    text-align: center;
}

.footer-access{
    margin: auto;
    text-align: center;
}

.footer-access a{
    font-weight: 600;
    font-size: 18px;
    text-decoration: underline;
    color: #000;
    background-image: url("../img/pagelink.svg");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.footer-copyright{
    margin: 60px auto;
    text-align: center;
}
@media (max-width: 1023px) {
.footer-bnr__list{
    width: 90%;
    max-width: 100%;
}

.footer-bnr__list img{
width: 120px;
}
.footer-bnr__list li{
width: 49%;
margin: 10px auto;
padding: 0;
}
.footer-container>.footer-bnr{
    max-width: 400px;
}
}


@media (max-width: 1283px) {
.site-header__wrapper {
    padding-top: 0;
    padding-bottom: 0; }

.site-header{
    z-index: 102;
}

.logomark__right-inversion{
    top: -4px;
    right: 10px;
}

}

.error__wrapper{
    height:200px;
    margin:200px auto 0 auto;
    text-align:center;
}

.error__wrapper h2{
font-size:45px;
}

.error__wrapper p{
line-height:1.8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
