@charset "utf-8";

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
レイアウトトークン
  この2つの数値でサイト全体の横幅が決まります。
  --wrap    … セクション・ヘッダー・フッターの最大幅
  --measure … 長文本文の最大幅（18px の日本語で約50字/行）
=============================================================＝*/

:root {
    --wrap: 1200px;
    --measure: 900px;
    /* スクロールバーを除いた実際の表示幅。main.js が実測値で上書きする。
       100vw はスクロールバー幅を含むため、全幅セクションが
       表示幅より 15px ほど広くなり横スクロールが出てしまう。 */
    --vw: 100vw;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
common
=============================================================＝*/

html {
    font-size: 62.5%;
}

body {
    font-family: "Source Sans 3",
        "Montserrat",
        "Afacad",
        sans-serif;
    font-style: normal;
    color: #393636;
    line-height: 2;
}

img {
    max-width: 100%;
    height: auto;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
header sp
=============================================================＝*/
.header {
    width: 100%;
    padding: 20px 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header__menu {
    width: 40px;
    margin-top: 8px;

}

.header__inner {
    max-width: 270px;
    font-size: 1.4rem;
}

.subtopic__name {
    display: none;
}

.header__nav {
    display: none;
}

.nav__drawer {
    display: block;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    padding: 50px 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s;
    flex-direction: column;
    justify-content: center;

}

.nav__drawer.active {
    transform: translateX(0);
}

.nav__btn {
    width: 50px;
    position: absolute;
    top: 71px;
    right: 10px;
}

.drawer__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    width: 100%;
    max-width: 280px;
    margin: 80px auto 0;
}

.drawer__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
}

.nav__en {
    font-family: "Montserrat";
    font-size: 2rem;
    font-weight: 600;
}

.nav__jp {
    font-size: 1.6rem;
    margin-top: 8px;
}

body.fixed {
    overflow: hidden;
}


/* =======================================================
header pc
==========================================================*/
@media screen and (min-width:1000px) {
    .header {
        align-items: center;
        padding: 46px 47px 26px;
    }

    .header__topic {
        width: 460px;
        margin-left: 0;
    }

    .header__nav {
        display: block;
    }


    .header__inner {
        width: 550px;
        max-width: none;
        flex-shrink: 0;
        font-size: 2rem;
    }

    .subtopic--txt {
        display: flex;
    }

    .subtopic__name {
        display: inline;
    }


    .header__logo {
        display: flex;
        flex-direction: column;
    }

    .header__list {
        display: flex;
        gap: 30px;
        font-size: 2rem;
        line-height: 3;
    }

    .nav__btn {
        width: 50px;
        position: absolute;
        top: 117px;
        right: 39px;
    }


    .nav__en {
        font-size: 4rem;
        font-weight: 600;
        line-height: 1;
    }

    .nav__jp {
        font-size: 2rem;
        margin-top: 8px;
        font-size: 1.4rem;
    }

    .drawer__list {
        gap: 40px 40px;
        width: 100%;
        max-width: 860px;
        margin: 180px auto 0;
    }


}

/* =======================================================
fv
==========================================================*/

.fv {
    width: var(--vw);
    margin-left: calc(50% - var(--vw) / 2);
    margin-right: calc(50% - var(--vw) / 2);
}

.main__fv {
    width: 100%;
    display: block;
}

/* =======================================================
concept sp
==========================================================*/
.concept {
    margin: 30px 7.5%;
    text-align: center;
}

.concept__title {
    display: block;
    color: #fff;
    background-color: #92CCA4;
    border-radius: 17px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 17px 0;
    font-family: "Montserrat";
    margin-bottom: 48px;
}

.concept__title-sp {
    display: block;
}

.concept__title-pc {
    display: none;
}

.concept__btn {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.circle-btn-green,
.circle-btn-yellow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    position: relative;
}

.circle-btn-green::after {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    content: "";
    position: absolute;
    right: 0;
    z-index: 0;
}

.circle-btn-yellow::after {
    background-color: #F9DF7F;
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    content: "";
    position: absolute;
    z-index: 0;
}

.circle-btn-green span,
.circle-btn-yellow span {
    display: flex;
    align-items: end;
    gap: 8px;
    z-index: 2;

}

/* =======================================================
concept pc
==========================================================*/
@media screen and (min-width:1002px) {
    .concept__title {
        margin-top: 80px;
        font-size: 3.2rem;
    }

    .concept__title-sp {
        display: none;
    }

    .concept__title-pc {
        display: block;
    }



    .circle-btn-green span,
    .circle-btn-yellow span {
        align-items: center;
        margin: 50px 23px;
    }
}


/* =======================================================
about sp
==========================================================*/
.about {
    text-align: center;
    background-color: #D0ECD9;
    padding: 30px 6.3%;
    width: var(--vw);
    margin-left: calc(50% - var(--vw) / 2);
    margin-right: calc(50% - var(--vw) / 2);
}

.about__list {
    text-align: left;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 2;
    list-style: disc;
    padding-left: 1.5em;
}

.about__txt {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    margin-top: 20px;
    text-align: left;
}

/* 「栄養ビスタは…」の行と view more を並べる。狭い画面では縦積み。 */
.about__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
}

/* 横並びのため左右のマージンだけ解除する。
   上下まで 0 にすると箇条書きとの間隔が消えるので触らない。 */
.about__footer .about__txt {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.about__viewMore {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 10px;
    min-height: 36px;
    padding: 0 20px;
    border-radius: 999px;
    background-color: #fff;
    color: #393636;
    font-family: "Montserrat";
    font-size: 1.4rem;
    line-height: 1;
}

.about__viewMore img {
    width: 20px;
    height: auto;
}

/* =======================================================
about pc
==========================================================*/
@media screen and (min-width:1002px) {
    .about {
        padding: 120px 0;
    }

    .about__list {
        margin-left: 100px;
        font-size: 2.4rem;
        line-height: 2;
    }

    .about__txt {
        font-size: 3.2rem;
        line-height: 2;
        margin-left: 100px;
    }
}

/* =======================================================
search sp
==========================================================*/
.search {
    margin: 30px auto;
    text-align: center;
}

.search__title {
    font-size: 2.4rem;
    font-weight: 700;
    font-family: "Montserrat";
    color: #F9DF7F;
}

.top__search {
    display: flex;
    justify-content: center;
    margin: 50px;
}

/* 角丸はサイト内の他のボタン（丸ボタン・ピル）に合わせて完全な丸にする */
.search-form-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    border: 1px solid #898989;
    border-radius: 999px;
    width: 320px;
}

.search-form-3 input {
    width: 250px;
    height: 45px;
    padding: 5px 15px 5px 22px;
    border: none;
    box-sizing: border-box;
    font-size: 1.6rem;
    outline: none;
}

.search-form-3 input::placeholder {
    color: #898989;
}

.search-form-3 button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 45px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.search-form-3 button::after {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z' fill='%23777777'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: '';
}


/* =========================================================================================================== */

.btn--green {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px auto;
}

.search__btn-green,
.search__btn-white {
    display: flex;
    align-items: center;
    width: 230px;
    height: 71px;
    border-radius: 100px;
    padding-left: 24px;
    position: relative;
}

.search__btn-inner {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.search__btn-green {
    background: #92CCA4;
    color: #fff;
}

.search__btn-white {
    border: 3px solid #92CCA4;
    color: #92CCA4;
}

.search__btn-green::after,
.search__btn-white::after {
    content: "";
    display: block;
    width: 32px;
    height: 6px;
    background-size: contain;
    position: absolute;
    right: 16px;
    bottom: 24px;
}

.search__btn-green::after {
    background: url(images/GroupWhite.svg) no-repeat;
}

.search__btn-white::after {
    background: url(images/GroupGreen.svg) no-repeat;
}


.btn__en {
    font-family: "Montserrat";
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
}

.btn__bottom {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.btn__jp {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
}

.category-btn .search__btn-inner {
    flex-direction: column;
    gap: 0px;
}

.category-btn .btn__en {
    font-size: 2rem;
}

.category-btn.search__btn-white::after {
    bottom: 16px;
}


.search__requestBtn {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 235px;
    margin-top: 30px;
    position: relative;
}

.search__requestBtn-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 144px;
}

.search__requestBtn-txt__en {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: "Montserrat";
    color: #A9A7A7;
    position: relative;
}

.search__requestBtn-txt__en::after {
    content: "";
    display: block;
    width: 29px;
    height: 5px;
    background: url(images/GroupBrown.svg) no-repeat;
    background-size: contain;
    position: absolute;
    right: -59px;
    bottom: 16px;
    z-index: 1;
}

.search__requestBtn-txt__jp {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    color: #A9A7A7;
}

.search__requestBtn::after {
    background-color: #F9DF7F;
    display: block;
    width: 114px;
    height: 114px;
    border-radius: 999px;
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 65px;
    z-index: -1;
}


/* =======================================================
search pc
==========================================================*/
@media screen and (min-width:948px) {
    .search {
        margin: 60px auto;
    }

    .top__search--btn {
        gap: 45px;
    }

    .search__btn {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: center;
    }

    .search__btn-green::after{
        content: "";
        display: block;
        width: 79px;
        height: 28px;
        position: absolute;
        right: 17px;
        bottom: 24px;
    }

    .search__title {
        font-size: 6.4rem;
    }

    .search__btn-green{
        width: 400px;
        height: 120px;
    }
    
    .btn__en {
    font-size: 4.8rem;
    }

    .category-btn .btn__en {
        font-size: 4rem;
    }

    .btn__jp {
        font-size: 2rem;
    }




}

/* =======================================================
comment sp
==========================================================*/

.comment {
    margin: calc(24px + 9.11vw) 0 0;
    text-align: center;
    color: #fff;
    background-color: #92CCA4;
    padding: 30px 6.4% 0;
    position: relative;
    width: var(--vw);
    margin-left: calc(50% - var(--vw) / 2);
    margin-right: calc(50% - var(--vw) / 2);
}

.comment::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: calc(-9.11vw + 1px);
    width: 100%;
    height: 9.11vw;
    background: url('images/wave.svg') no-repeat bottom left;
    background-size: contain;

}

.comment__title {
    font-size: 2rem;
    line-height: 2;
    font-weight: 600;
    text-align: left;
    max-width: var(--measure);
    margin: 0 auto;
}

.comment__txt {
    font-size: 1.6rem;
    max-width: var(--measure);
    margin: 40px auto 0;
    font-size: 1.6rem;
    line-height: 2;
    text-align: left;
}

.logo_white {
    display: none;
}

/* =======================================================
comment pc
==========================================================*/
@media screen and (min-width:1000px) {
    .comment__title {
        font-size: 2.4rem;
    }

    .comment__txt {
        font-size: 1.8rem;
        line-height: 3.8;
    }
}

/* =======================================================
footer sp
==========================================================*/
.footer {
    padding: 10px 6% 25px;
    background-color: #92CCA4;
}

.footer__news {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    min-height: 120px;
    text-align: left;
    margin-top: 18px;
    font-size: 1.6rem;
}

/* カード見出し「News more>>>」 */
.footer__news-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.footer__news-label {
    font-family: "Montserrat";
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.footer__news-more {
    font-family: "Montserrat";
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: #777;
}
/* 最新のお知らせ3件（1件ずつ「日付＋タイトル」を横並び） */
.footer__news-list {
    margin-top: 14px;
}

.footer__news-list li + li {
    margin-top: 8px;
}

.footer__news-item {
    /* ホバー下線を文字幅に合わせるため、箱を中身の幅まで縮める */
    width: fit-content;
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 400;
}

.footer__news-date {
    flex: none;
}

/* カード右上のロゴ */
.footer__brand {
    text-align: right;
    padding-top: 14px;
}

.footer__logo {
    width: 116px;
    height: auto;
}

.footer__sns {
    display: none;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: flex-start;
}

.footer__en,
.footer__jp {
    font-family: "Montserrat";
    font-size: 2rem;
    margin: 0;
}

.footer__item {
    margin-top: 15px;
    width: 100%;
}

.footer__item:first-of-type {
    margin-top: 20px;
}

.footer__item a {
    display: flex;
    align-items: center;
}


.footer__jp::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin: 0 10px;
    background-color: #393636;
}


/* =======================================================
footer pc
==========================================================*/
@media screen and (min-width:1180px) {

    .footer__menu {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 40px;
        align-items: center;
        margin-top: 30px;
    }

    .footer__bottom {
        display: flex;
        justify-content: center;
    }

    .footer__sns {
        display: flex;
        gap: 12px;
    }

    .footer__sns img {
        height: 60px;
        width: auto;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px 23px;
    }

    .footer__item {
        width: auto;
        margin-top: 0;
    }

    .footer__item:first-of-type {
        margin-top: 0;
    }
}
/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
横幅の統一（ファイル末尾に置いて、上の個別指定を上書きする）
=============================================================＝*/

/* destyle.css の main{max-width:1450px} を上書き。全ページの本体幅の基準。 */
main {
    max-width: var(--wrap);
}

/* ヘッダーは背景色を持たないので、要素ごと絞ってよい */
.header {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
}

/* フッターは背景色(#92CCA4)を画面幅いっぱいに見せたいので、
   要素そのものは絞らず、中身だけを本体と同じ幅に揃える。 */
.footer__brand,
.footer__news,
.footer__menu {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
}

/* 全幅（100vw）で抜けているセクションの中の文章に、読みやすい行長を与える */
.about__list,
.about__txt,
.comment__title,
.comment__txt {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
フッター NEWS コーナー（PC）
  デザイン指定の比率に合わせたサイズ
=============================================================＝*/
@media screen and (min-width:1000px) {

    .footer__brand {
        padding-top: 24px;
    }

    .footer__logo {
        width: 220px;
    }

    .footer__news {
        margin-top: 35px;
        padding: 30px 36px;
        min-height: 220px;
        border-radius: 24px;
    }

    .footer__news-head {
        gap: 24px;
    }

    .footer__news-label {
        font-size: 3.2rem;
    }

    .footer__news-more {
        font-size: 1.8rem;
    }

    .footer__news-list {
        margin-top: 24px;
    }

    .footer__news-list li + li {
        margin-top: 12px;
    }

    .footer__news-item {
        gap: 20px;
        font-size: 2rem;
    }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
ボタンの状態・ホバー・アニメーション

  方針
    - ホバー時は文字に下線。左から右へ伸ばす（0.35秒）。
      text-decoration はアニメーションできないため疑似要素を使う。
    - 下線の位置は「字面の下端」基準。行間 2 のぶんを calc で差し引く。
    - 色の変化は 0.3秒。丸ボタンの余白だけデザイン指定で 0.5秒。
    - ベースを先に、メディアクエリを後にまとめている（この順なら
      画面幅ごとの指定が確実に優先される）。
=============================================================＝*/

/* ---------- 丸ボタン（資料を見る / 利用規約） ---------- */

.circle-btn-green::after,
.circle-btn-yellow::after {
    transition: background-color .3s ease;
}

.circle-btn-green::after {
    background-color: #ADD9BB;
}

/* 黄色だけ位置がずれていたので緑と揃える */
.circle-btn-yellow::after {
    right: 0;
    margin-left: 0;
}

.circle-btn-green:hover::after {
    background-color: #C6E5D0;
}

.circle-btn-yellow:hover::after {
    background-color: #FFEEAD;
}

/* 右パディングは 20px → ホバーで 15px（矢印がわずかに右へ動く） */
.circle-btn-green > span,
.circle-btn-yellow > span {
    align-items: end;
    gap: 18px;
    padding-right: 20px;
    transition: padding-right .5s ease;
}

.circle-btn-green:hover > span,
.circle-btn-yellow:hover > span {
    padding-right: 15px;
}

/* 上の `.circle-btn-* span` の指定がラベル用の内側 span にも当たるため打ち消す */
.circle-btn-green .circle-btn__label,
.circle-btn-yellow .circle-btn__label {
    display: inline;
    margin: 0;
}

/* Group.svg は原寸 15x3px と小さいため幅を明示する */
.circle-btn-green img,
.circle-btn-yellow img {
    position: relative;
    z-index: 2;
    flex: none;
    width: 16px;
    height: auto;
}

/* ---------- ALL / NEW のピルボタン（ホバーで配色が反転） ---------- */

.search__btn-green,
.search__btn-white {
    /* 反転時に大きさが変わらないよう、既定でも枠線ぶんの幅を確保する */
    border: 3px solid transparent;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.search__btn-white {
    background: #fff;
    border-color: #92CCA4;
}

.search__btn-green:hover {
    background: #fff;
    border-color: #92CCA4;
    color: #92CCA4;
}

.search__btn-white:hover {
    background: #92CCA4;
    border-color: #92CCA4;
    color: #fff;
}

/* 矢印アイコンも配色の反転に合わせて差し替える */
.search__btn-green:hover::after {
    background-image: url(images/GroupGreen.svg);
}

.search__btn-white:hover::after {
    background-image: url(images/GroupWhite.svg);
}

/* 下線は文字ごとに引くと英語と日本語で分離し、太さも font-size に比例して
   ばらつくため、内側のまとまり全体に 1本の線として引く。 */
.search__btn-inner {
    position: relative;
}

.search__btn-inner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 11px;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s ease;
}

.search__btn-green:hover .search__btn-inner::after,
.search__btn-white:hover .search__btn-inner::after {
    transform: scaleX(1);
}

/* ---------- REQUEST ---------- */

.search__requestBtn::after {
    transition: background-color .3s ease;
}

.search__requestBtn:hover::after {
    background-color: #FFEEAD;
}

/* ---------- ハンバーガーメニュー ---------- */
/* アイコンが画像のため CSS では色を変えられない。ホバー用の画像を重ねる。 */

.header__menu {
    position: relative;
    line-height: 0;
}

.header__btn--hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.header__menu:hover .header__btn--hover,
.header__menu:focus-visible .header__btn--hover {
    opacity: 1;
}

/* ---------- ホバー時の下線（左から右へ伸びる） ---------- */

.circle-btn__label {
    line-height: 1;
}

.circle-btn__label,
.search__requestBtn-txt__jp,
.about__viewMore-label,
.header__list a,
.footer__item a,
.footer__news-more,
.footer__news-item {
    position: relative;
}

/* 下線の実体。既定は幅0で、ホバーで左から伸びる。
   .search__requestBtn-txt__en は ::after を矢印で使っているため ::before を使う。 */
.circle-btn__label::after,
.search__requestBtn-txt__en::before,
.search__requestBtn-txt__jp::after,
.about__viewMore-label::after,
.header__list a::after,
.footer__item a::after,
.footer__news-more::after,
.footer__news-item::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s ease;
    pointer-events: none;
}

/* 位置は「ボックスの下端」ではなく「字面の下端」を基準にする。
   行間が 2 倍だとボックスは字面より (行間 - 文字サイズ) / 2 だけ大きく、
   そのぶんを差し引かないと下線が離れすぎ、隣の行と重なってしまう。 */
.circle-btn__label::after,
.search__requestBtn-txt__en::before,
.search__requestBtn-txt__jp::after {
    height: 2px;
    bottom: calc((100% - 1em) / 2 - 6px);
}

.about__viewMore-label::after,
.header__list a::after,
.footer__item a::after,
.footer__news-more::after,
.footer__news-item::after {
    height: 1px;
    bottom: calc((100% - 1em) / 2 - 5px);
}

.circle-btn-green:hover .circle-btn__label::after,
.circle-btn-yellow:hover .circle-btn__label::after,
.search__requestBtn:hover .search__requestBtn-txt__en::before,
.search__requestBtn:hover .search__requestBtn-txt__jp::after,
.about__viewMore:hover .about__viewMore-label::after,
.header__list a:hover::after,
.footer__item a:hover::after,
.footer__news-more:hover::after,
.footer__news-item:hover::after {
    transform: scaleX(1);
}

/* ---------- 画面幅ごとの調整 ---------- */

@media screen and (min-width:948px) {

    /* 下線の左端を ALL の文字の左端に合わせるため、
       字下げを文字側からまとまり側へ移す */
    .btn__en {
        margin-left: 0;
    }

    .search__btn-inner {
        margin-left: 30px;
    }
}

@media screen and (min-width:1000px) {

    /* body の line-height: 2 が効いて行ボックスが文字の倍あったため詰める。
       a に文字サイズを持たせているのは、下線の位置計算が 1em 基準のため。 */
    .footer__item a {
        font-size: 2rem;
        line-height: 1.4;
    }

    .footer__en,
    .footer__jp {
        line-height: 1.4;
    }
}

/* 円 136px を基準に、デザイン指定の比率で各値を連動させる
     文字 22.2% -> 32px / 矢印の幅 26.3% -> 36px
     矢印の右 19.3% -> 26px / 文字と矢印の間隔 33.3% -> 45px */
@media screen and (min-width:1002px) {

    .circle-btn-green,
    .circle-btn-yellow {
        font-size: 3.2rem;
        min-height: 136px;
    }

    .circle-btn-green::after,
    .circle-btn-yellow::after {
        width: 136px;
        height: 136px;
    }

    .circle-btn-green img,
    .circle-btn-yellow img {
        width: 36px;
        bottom: 6px;
    }

    .circle-btn-green > span,
    .circle-btn-yellow > span {
        margin-right: 0;
        padding-right: 26px;
        gap: 45px;
    }

    .circle-btn-green:hover > span,
    .circle-btn-yellow:hover > span {
        padding-right: 20px;
    }
}

/* 動きを控える設定の利用者には、変化をアニメーションさせない */
@media (prefers-reduced-motion: reduce) {

    .circle-btn-green::after,
    .circle-btn-yellow::after,
    .circle-btn-green > span,
    .circle-btn-yellow > span,
    .search__btn-green,
    .search__btn-white,
    .search__requestBtn::after,
    .header__btn--hover,
    .circle-btn__label::after,
    .search__requestBtn-txt__en::before,
    .search__requestBtn-txt__jp::after,
    .about__viewMore-label::after,
    .header__list a::after,
    .footer__item a::after,
    .footer__news-more::after,
    .footer__news-item::after,
    .search__btn-inner::after {
        transition: none;
    }
}

/* ヘッダー右側（ナビ＋メニューボタン）。以前は HTML に直接書かれていた指定。 */
.header__actions {
    display: flex;
}

.header__nav {
    padding-right: 20px;
}

/* view more ボタン（PC）。参考画像の実寸: ピル 190x44px、文字 1.8rem、矢印 27px */
@media screen and (min-width:1002px) {

    .about__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }

    .about__viewMore {
        gap: 12px;
        min-height: 44px;
        padding: 0 28px;
        font-size: 1.8rem;
    }

    .about__viewMore img {
        width: 27px;
    }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
検索ボックスと REQUEST を横並びにする（トップ・資料一覧 共通）
=============================================================＝*/

.search__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* 器の中では各要素の中央寄せ用マージンを解除する */
.search__row .top__search,
.search__row .tools__search,
.search__row .search__requestBtn {
    margin: 0;
}

/* REQUEST ボタン（788px 以上）。
   以前は mystyle が 948px、tools.css が 788px と別々に同じ内容を持っていたので
   788px に一本化した。黄色い円はデザイン指定の 167px。 */
@media screen and (min-width:788px) {

    .search__requestBtn-txt__en {
        font-size: 4rem;
    }

    .search__requestBtn-txt__jp {
        font-size: 1.6rem;
        margin-top: -13px;
    }

    .search__requestBtn::after {
        width: 167px;
        height: 167px;
        right: -79px;
    }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
「悩み」の箇条書きと、その下の一文の左端を揃える
  箇条書きだけ 900px の器＋左パディング 36px で、
  下の行（1200px の器）より 186px 右にずれていた。
=============================================================＝*/

.about__list {
    max-width: var(--wrap);
    /* マーカーを行頭に置き、下の一文と同じ左端から始める */
    padding-left: 0;
    list-style-position: inside;
}

/* 検索ボックスと REQUEST の間隔を広げる */
@media screen and (min-width:788px) {

    .search__row {
        gap: 64px;
    }
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
ページ送り（お知らせ一覧・資料一覧で共通）

  the_posts_pagination() が出力する標準のマークアップに当てている。
  見た目はカテゴリボタンに合わせた白い丸ピン留め。現在のページだけ塗る。
=============================================================＝*/

/* 読み上げ用の見出し。画面には出さず、スクリーンリーダーにだけ渡す */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.pagination {
    max-width: var(--wrap);
    margin: 40px auto 56px;
    padding: 0 16px;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 2px solid #92CCA4;
    border-radius: 100px;
    background-color: #fff;
    color: #393636;
    font-family: "Montserrat";
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* 「前へ」「次へ」は日本語なので、数字より横に広くとる */
.pagination .prev,
.pagination .next {
    padding: 0 14px;
    font-family: inherit;
    font-size: 1.3rem;
}

/* ホバーは淡く塗る。べた塗りは「今見ているページ」だけの表現に取っておく */
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus-visible {
    background-color: #E4F2E9;
}

/* 表示中のページ */
.pagination .page-numbers.current {
    background-color: #92CCA4;
    border-color: #92CCA4;
    color: #fff;
    cursor: default;
}

/* 「…」は枠を出さずに文字だけ見せる */
.pagination .page-numbers.dots {
    min-width: 24px;
    border-color: transparent;
    background-color: transparent;
}

@media screen and (min-width:1000px) {

    .pagination {
        margin: 64px auto 90px;
    }

    .pagination .nav-links {
        gap: 12px;
    }

    .pagination .page-numbers {
        min-width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .pagination .prev,
    .pagination .next {
        padding: 0 24px;
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pagination .page-numbers {
        transition: none;
    }
}
