/* Google Fonts（Montserrat / Noto Sans JP）は header.php の <link> で読み込む。
   @import は直列ダウンロードになり適用が遅れ、FVの英字ループがカクつく原因になっていた。 */

@font-face {
  font-family: 'icomoon';
  src:  url('../fonts/icomoon.ttf');
  src:  url('../fonts/icomoon.eot?ch1k2p#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?ch1k2p') format('truetype'),
    url('../fonts/icomoon.woff?ch1k2p') format('woff'),
    url('../fonts/icomoon.svg?ch1k2p#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'icomoon' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  
  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Colors */
    --color-orange: #e63200;
    --color-black: #202020;
    --color-white: #fff;
    --color-data-blue: #63a7e8;
    --color-career-orange: #fa7652;
    --color-training-green: #99c28b;
    --color-benefit-pink: #f9aea9;
    --color-gray: #eaebef;
}

body {
    font-family: YakuHanJP, "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--color-black);
}
/* 下層ページのみ背景をグレーに。.home は WordPress が TOPページ（is_front_page）に付けるクラス */
body:not(.home) {
    background-color: var(--color-gray);
}
a {
    text-decoration: none;
    color: var(--color-black);
    word-break: break-all;
}
img {
    height: auto;
    max-width: 100%;
}
/* 見出し・ラベルの英字は全ページ大文字で表示する。
   HTML側の綴りは変えず CSS で見た目だけ統一しているのは、
   ・PHP/JSに散らばる全箇所を書き換えるより漏れが出ないため
   ・スクリーンリーダーが大文字を1文字ずつ読み上げるのを避けるため */
.en {
    font-family: "montserrat", "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
}
/* コピーライトは法人名（BREXA Holdings Inc.）を含むので元の表記のまま */
.copyright.en {
    text-transform: none;
}
.sp {
    display: none;
}
.laptop {
    display: none;
}

/* スクロールで可視領域に入ったら表示。付与するのは .reveal / .reveal-chars だけでよく、
   .reveal-ready と .is-visible は JS が付ける（JS 無効時は通常表示のまま）。
   transition は .is-visible 側だけに書く。初期状態の適用を瞬時にして、
   ページ読み込み時に「表示 → 隠れる」の逆再生が走るのを防ぐため */
.reveal.reveal-ready {
    opacity: 0;
    transform: translateY(18px);
}
.reveal.reveal-ready.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1);
}
.reveal-chars.reveal-ready .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(.35em);
}
.reveal-chars.reveal-ready.is-visible .char {
    opacity: 1;
    transform: none;
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
/* .reveal-group は直下の子を順番にフェードイン。ずらす秒数は JS が animation-delay で入れる。
   transition ではなく animation を使うのは、子要素が持つ hover 用の transition を
   上書きして壊さないため。fill-mode: backwards で待機中だけ開始状態を保つ */
.reveal-group.reveal-ready > * {
    opacity: 0;
}
.reveal-group.reveal-ready.is-visible > * {
    opacity: 1;
    animation: reveal_group_up .9s cubic-bezier(.22, .61, .36, 1) backwards;
}
@keyframes reveal_group_up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* 職種カード。TOPページ（.top_roles_list）と研修ページ（.training_roles_list）で共用。
   セクション側の余白と背景色だけ top.css / up.css で個別に指定する */
.top_roles_list,
.training_roles_list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.top_roles_link,
.training_roles_link {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    width: calc( (100% - 80px) / 3 );
    transition: all .2s;
    position: relative;
}
.top_roles_link:hover,
.training_roles_link:hover {
    box-shadow: 5px 5px 13px 0px rgba(0, 0, 0, 0.15);
}
.top_roles_link .top_roles_item_icon,
.training_roles_link .training_roles_item_icon {
    width: 70px;
}
.top_roles_link .top_roles_item_title,
.training_roles_link .training_roles_item_title {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 10px 0 0;
    position: relative;
    padding-bottom: 15px;
    border-bottom: solid 1px #d9d9d9;
    margin-bottom: 20px;
}
.top_roles_link .top_roles_item_title::after,
.training_roles_link .training_roles_item_title::after {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "icomoon";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e902";
    display: block;
    color: var(--color-orange);
    position: absolute;
    top: 50%;
    right: 0;
    font-size: .7em;
    transform: translateY(-50%);
}
.top_roles_link .top_roles_item_description,
.training_roles_link .training_roles_item_description {
    font-size: 1.6rem;
    line-height: 1.8;
}
@media screen and (max-width: 1599px) and (min-width: 1024px) {
    .top_roles_list,
    .training_roles_list {
        gap: 20px;
    }
    .top_roles_link,
    .training_roles_link {
        width: calc( (100% - 40px) / 3);
        padding: 20px;
    }
    .top_roles_link .top_roles_item_icon,
    .training_roles_link .training_roles_item_icon {
        width: 50px;
    }
    .top_roles_link .top_roles_item_title,
    .training_roles_link .training_roles_item_title {
        font-size: 1.7rem;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .top_roles_link .top_roles_item_description,
    .training_roles_link .training_roles_item_description {
        font-size: 1.4rem;
    }
}
@media screen and (max-width:1023px) {
    .top_roles_list,
    .training_roles_list {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
        margin-top: 25px;
    }
    .top_roles_link,
    .training_roles_link {
        width: calc(50% - 5px);
        padding: 20px 15px;
    }
    .top_roles_link .top_roles_item_icon,
    .training_roles_link .training_roles_item_icon {
        width: 50px;
        margin: 0 auto;
    }
    .top_roles_link .top_roles_item_title,
    .training_roles_link .training_roles_item_title {
        font-size: 1.3rem;
        padding-bottom: 10px;
        padding-right: 10px;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    .top_roles_link .top_roles_item_description,
    .training_roles_link .training_roles_item_description {
        font-size: 1.1rem;
    }
}

/* アプリ風リンクカード。TOPページ（.top_app_links）と下層ページ（.up_app_links）で共用。
   セクション側の余白と背景色だけ top.css / up.css で個別に指定する */
.app_links_list {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.app_link_item {
    width: calc( (100% - 80px) / 5);
    aspect-ratio: 1;
    border-radius: 20px;
    background-color: #fff;
    transition: all .2s;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.app_link_item:hover {
    box-shadow: 6px 6px 15px 0px rgba(0, 0, 0, 0.25);
}
.app_link_item .app_link_item_icon {
    width: 140px;
    margin: 0 auto;
    padding: 30px 0;
}
.app_link_item img {
    vertical-align: bottom;
}
.app_link_item .textarea {
    width: 100%;
    padding-top: 20px;
    border-top: solid 1px #d9d9d9;
    line-height: 1;
    margin-top: auto;
}
.app_link_item .textarea .app_link_item_title {
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
}
.app_link_item .textarea .app_link_item_title::after {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "icomoon";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e902";
    display: block;
    color: var(--color-orange);
    position: absolute;
    top: calc(50% + 10px);
    right: 0;
    font-size: .5em;
    transform: translateY(-50%);
}
.app_link_item .textarea .app_link_item_title_jp {
    font-size: 1.2rem;
    font-weight: 500;
    padding-left: 20px;
    position: relative;
    margin-top: 10px;
}
.app_link_item .textarea .app_link_item_title_jp::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-orange);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
@media screen and (max-width:1599px) and (min-width:1024px) {
    .app_links_list {
        gap: 10px;
    }
    .app_link_item {
        width: calc((100% - 40px) / 5);
        border-radius: 16px;
        padding: 14px;
    }
    .app_link_item .app_link_item_icon {
        width: 80px;
        padding: 20px 0;
    }
    .app_link_item .textarea {
        padding-top: 10px;
    }
    .app_link_item .textarea .app_link_item_title {
        font-size: 1.5rem;
    }
    .app_link_item .textarea .app_link_item_title_jp {
        font-size: .8rem;
        padding-left: 0;
        color: var(--color-black);
        margin-top: 7px;
    }
    .app_link_item .textarea .app_link_item_title_jp::before {
        display: none;
    }
}
@media screen and (max-width: 1023px) {
    .app_links_list {
        flex-wrap: wrap;
        gap: 10px;
    }
    .app_link_item {
        width: calc( 50% - 5px );
        aspect-ratio: unset;
        height: auto;
        padding: 15px;
        border-radius: 10px;
    }
    .app_link_item .app_link_item_icon {
        width: 60px;
        padding: 10px 0 0;
    }
    .app_link_item .textarea {
        padding-top: 10px;
        margin-top: 20px;
    }
    .app_link_item .textarea .app_link_item_title {
        font-size: 1.25rem;
    }
    .app_link_item .textarea .app_link_item_title_jp {
        font-size: .8rem;
        padding-left: 0;
        margin-top: 5px;
    }
    .app_link_item .textarea .app_link_item_title_jp::before {
        display: none;
    }
}

/* 見出し背面の斜めバー1本。has-bar を付けた要素にだけ出る。
   色を変えたい箇所は --title-bar-color を上書きするだけでよい。
   --title-bar-x/y は要素の左下を基準にしたバー左端の中心位置 */
.has-bar {
    --title-bar-angle: -35deg;
    --title-bar-color: #e42f17;
    --title-bar-color-fade: transparent;
    --title-bar-thickness: 155px;
    --title-bar-length: 30vw;
    --title-bar-x: -12vw;
    --title-bar-y: -150%;
    --title-bar-duration: 1.2s;
    --title-bar-ease: cubic-bezier(.22, 1, .36, 1);
    --title-bar-delay: 0s;
    position: relative;
    z-index: 0;
}
.has-bar::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: var(--title-bar-x);
    bottom: var(--title-bar-y);
    width: var(--title-bar-length);
    height: var(--title-bar-thickness);
    margin-top: calc(var(--title-bar-thickness) / -2);
    transform-origin: 0 50%;
    transform: skewY(var(--title-bar-angle));
    background: linear-gradient(to right, var(--title-bar-color-fade), var(--title-bar-color));
    pointer-events: none;
}
/* 初期状態は左端に畳む。transition を .is-visible 側にだけ書く理由は .reveal と同じ */
.has-bar.reveal-ready::before {
    transform: skewY(var(--title-bar-angle)) scaleX(0);
}
.has-bar.reveal-ready.is-visible::before {
    transform: skewY(var(--title-bar-angle)) scaleX(1);
    transition: transform var(--title-bar-duration) var(--title-bar-ease);
    transition-delay: var(--title-bar-delay);
}

/* 背景の斜めバー2本。.deco_bars を付けた要素の ::before / ::after で描く。
   両端は skewY による平行四辺形なので垂直に切れる。
   --bar-thickness は垂直方向の高さ、--bar-*-length は水平方向の幅、
   --bar-*-x/y はバー左端の中心。セクション側で上書きして使う */
.deco_bars {
    --bar-angle: -37deg;
    --bar-color: #e42f17;
    --bar-color-fade: rgba(228, 47, 23, 0);
    /* 動きの調整用。ease は easeOutQuint 相当で、出だしが速く終わりがゆっくり */
    --bar-duration: 1.8s;
    --bar-ease: cubic-bezier(.22, 1, .36, 1);
    --bar-delay: 1.25s;
    --bar-stagger: .3s;
    --bar-thickness: 12vw;
    --bar-a-length: 56vw;
    --bar-a-x: -10%;
    --bar-a-y: 105%;
    --bar-b-length: 44vw;
    --bar-b-x: 64.6%;
    --bar-b-y: 84.7%;
    position: relative;
    overflow: hidden;
}
.deco_bars::before,
.deco_bars::after {
    content: "";
    position: absolute;
    z-index: 0;
    height: var(--bar-thickness);
    margin-top: calc(var(--bar-thickness) / -2);
    transform-origin: 0 50%;
    transform: skewY(var(--bar-angle));
    pointer-events: none;
}
/* 1本目は右上端が濃い */
.deco_bars::before {
    left: var(--bar-a-x);
    top: var(--bar-a-y);
    width: var(--bar-a-length);
    background: linear-gradient(to right, var(--bar-color-fade), var(--bar-color));
}
/* 2本目は左下端が濃く、向きが逆 */
.deco_bars::after {
    left: var(--bar-b-x);
    top: var(--bar-b-y);
    width: var(--bar-b-length);
    background: linear-gradient(to right, var(--bar-color), var(--bar-color-fade));
}
/* 初期状態。transition を書かないので瞬時に縮む。
   1本目は左端、2本目は右端を基点に縮める。translateX で挟むことで、
   transform-origin（skewY の基点）は左端のまま scaleX だけ右端基準にできる */
.deco_bars.reveal-ready::before {
    transform: skewY(var(--bar-angle)) scaleX(0);
}
.deco_bars.reveal-ready::after {
    transform: skewY(var(--bar-angle)) translateX(100%) scaleX(0) translateX(-100%);
}
/* 可視領域に入ったら伸びる。切り口が縦のまま先端が進む。
   1本目は左下→右上、2本目は右上→左下と、互いに逆向き */
.deco_bars.reveal-ready.is-visible::before,
.deco_bars.reveal-ready.is-visible::after {
    transition: transform var(--bar-duration) var(--bar-ease);
    transition-delay: var(--bar-delay);
}
.deco_bars.reveal-ready.is-visible::before {
    transform: skewY(var(--bar-angle)) scaleX(1);
}
.deco_bars.reveal-ready.is-visible::after {
    transform: skewY(var(--bar-angle)) translateX(100%) scaleX(1) translateX(-100%);
    transition-delay: calc(var(--bar-delay) + var(--bar-stagger));
}
.deco_bars .inner {
    position: relative;
    z-index: 1;
}


@media screen and (min-width:1600px) {
    .inner {
        max-width: 1580px;
        margin: 0 auto;
    }
}
@media screen and (max-width:1599px) {
    .desktop {
        display: none;
    }
}
@media screen and (max-width:1599px) and (min-width:1024px) {
    .inner {
        max-width: 1000px;
        margin: 0 auto;
    }
    .laptop {
        display: block;
    }
}

@media screen and (max-width:1099px) and (min-width:641px) {
    .pc {
        display: none;
    }
    .sp {
        display: block;
    }
    .inner {
        width: 100%;
        padding: 0 5%;
    }
}

@media screen and (max-width:640px) {
    .pc {
        display: none;
    }
    .sp {
        display: block;
    }
    .inner {
        width: 100%;
        padding: 0 5%;
    }

}



.main_header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
}
.main_header.scrolled {
    background-color: #fff;
}
.main_header .header_logo {
    width: 180px;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.main_header .header_logo .en {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}
.main_header.scrolled .header_logo .en,
.main_header.on-light .header_logo .en {
    color: #5e5e5e;
}
.main_header .header_logo #path01,
.main_header .header_logo #path02 {
    fill: #fff;
    transition: all .2s;
}
/* .on-light はページ最上部の背景が明るいときに付く。背景が透明のままでも中身は濃色にする */
.main_header.scrolled .header_logo #path01,
.main_header.on-light .header_logo #path01 {
    fill: var(--color-orange);
}
.main_header.scrolled .header_logo #path02,
.main_header.on-light .header_logo #path02 {
    fill: #63696e;
    transition: all .2s;
}
body.subpage .main_header .header_logo,
body.subpage .main_header .header_logo #path01,
body.subpage .main_header .header_logo #path02 {
    transition: none;
}

.header_inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 25px 40px;
    align-items: center;
}
.header_nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header_nav_main {
    display: flex;
    align-items: center;
    gap: 30px;
}
/* ナビの文字色はヘッダーの状態（透過／白背景）で白と黒を切り替える。
   ドロップダウン内のリンクは常に白いカードの上に乗るので、この切り替えの対象外。
   セレクタを > にして、li直下のリンクだけに限定している */
.header_nav_main .header_nav_item > a {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    transition: all .2s;
}
.header_nav_main .header_nav_item > a:hover {
    color: var(--color-orange);
}
.main_header.scrolled .header_nav_item.main_nav_item > a,
.main_header.scrolled .header_nav_item.main_nav_item .header_nav_toggle,
.main_header.on-light .header_nav_item.main_nav_item > a,
.main_header.on-light .header_nav_item.main_nav_item .header_nav_toggle {
    color: var(--color-black);
}
.main_header.scrolled .header_nav_main .header_nav_item > a:hover,
.main_header.on-light .header_nav_main .header_nav_item > a:hover {
    color: var(--color-orange);
}
.header_nav_dropdown_wrap {
    position: relative;
}
.header_nav_toggle {
    display: block;
    padding: 0;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background: none;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
}
.sp_online_cta_btn {
    display: none;
}
@media screen and (min-width: 1100px) {
    .header_nav_toggle:hover {
        color: var(--color-orange);
    }
    .header_nav_toggle::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        vertical-align: middle;
        position: relative;
        top: -2px;
        transition: transform .3s ease, top .3s ease;
    }
    /* 開いている間は矢印を反転。開閉のトリガーはSPと同じ .is-open（JSが付け外しする） */
    .header_nav_dropdown_wrap.is-open .header_nav_toggle::after {
        transform: rotate(-135deg);
        top: 1px;
    }
    /* 白いカード。地の色は常に白で固定するので
       .scrolled / .on-light ごとの出し分けは不要 */
    .header_nav_dropdown {
        display: flex;
        column-gap: 22px;
        flex-wrap: nowrap;
        /* position:absolute の包含ブロックは親の li（幅60px程度）。
           width:auto のままだと「li幅 - left:50%」が利用可能幅として計算され
           潰れてしまうため、中身なりの幅を明示する */
        width: max-content;
        min-width: 210px;
        position: absolute;
        top: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        padding: 20px;
        list-style: none;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
        z-index: 30;
    }
    .header_nav_dropdown_wrap.is-open .header_nav_dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition: opacity .25s ease, transform .25s ease;
    }
    /* 下線は通常グレー、ホバーでオレンジ。文字左・矢印右で下線幅を揃えるため
       min-width で各項目の最低幅を確保する */
    .header_nav_dropdown_item a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: relative;
        min-width: 160px;
        padding: 10px 14px 10px 0;
        font-size: 1.4rem;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
        border-bottom: 1px solid #e6e6e6;
        transition: color .2s ease, border-color .2s ease;
    }
    /* 矢印はサイト共通の icomoon（.more_btn などと同じ字形） */
    .header_nav_dropdown_item a::after {
        font-family: "icomoon";
        speak: none;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        content: "\e902";
        flex-shrink: 0;
        position: absolute;
        top: 50%;
        right: 0;
        font-size: 1rem;
        color: var(--color-orange);
        transform: translateY(-50%);
    }
    .header_nav_dropdown_item a:hover {
        color: var(--color-orange);
        border-bottom-color: var(--color-orange);
    }
}
.header_nav_cta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header_nav_cta .header_nav_item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    padding: 10px 16px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 30px;
    transition: all .2s;
    background-color: var(--color-orange);
}
.header_nav_cta .header_nav_item a:hover {
    background-color: #fff;
    color: var(--color-orange)
}
.header_hamburger {
    display: none;
}
.header_overlay {
    display: none;
}
/* ロゴSVG（ヘッダー・フッター共用：template-parts/logo-svg.php）
   親要素の幅いっぱいに広げ、高さは元の縦横比から決める。

   iPhone（iOSのブラウザはすべてWebKit）では、大きさの指定が無いインラインSVGを
   置き換え要素の既定値「高さ150px」として扱い、絵をその中央に描く。
   そのためロゴの上下に大きな空白ができ、ヘッダーが倍以上の高さになっていた。
   Chrome／Android（Blink）は縦横比から高さを推測するので再現しない
   （PCの検証モードのスマホ表示も中身はBlinkなので再現しない）。
   width/height 属性（SVG側）と aspect-ratio の両方で、どのブラウザにも推測させない。 */
#brexa_solvia_logo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 392.7 / 81.4;
    overflow: visible;
}

@media screen and (max-width:1399px) and (min-width:1100px) {
    .header_nav {
        gap: 14px;
    }
    .header_nav_main {
        height: 36px;
        gap: 4px;
    }
    .header_nav_main .header_nav_item > a {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    .header_nav_item .header_nav_toggle {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    .header_nav_sub .header_nav_item {
        height: 36px;
    }
    .header_nav_sub .header_nav_item a {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    .header_nav_cta .header_nav_item a {
        width: 160px;
        height: 36px;
        font-size: 1.2rem;
        padding: 6px 12px;
    }
}

@media screen and (max-width:1099px) {
    .main_header .header_logo {
        top: 40px;
    }
    .header_hamburger {
        display: block;
        position: relative;
        z-index: 1002;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 4px;
        background: var(--color-orange);
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
    }
    .header_hamburger_bar {
        position: absolute;
        left: 50%;
        width: 16px;
        height: 2px;
        background-color: var(--color-white);
        transform: translateX(-50%);
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    }
    .header_hamburger_bar:nth-child(1) { top: 15px; }
    .header_hamburger_bar:nth-child(2) { top: 21px; }
    .header_hamburger_bar:nth-child(3) { top: 27px; }

    .header_hamburger.is-active .header_hamburger_bar:nth-child(1) {
        top: 21px;
        transform: translateX(-50%) rotate(45deg);
    }
    .header_hamburger.is-active .header_hamburger_bar:nth-child(2) {
        opacity: 0;
    }
    .header_hamburger.is-active .header_hamburger_bar:nth-child(3) {
        top: 21px;
        transform: translateX(-50%) rotate(-45deg);
    }

    .header_nav_container {
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        padding: 80px 20px 40px;
        background-color: var(--color-white, #fff);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        visibility: hidden;
        border-radius: 6px;
    }
    .header_nav_container.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .header_nav {
        flex-direction: column;
        gap: 0;
    }

    .header_nav_container .header_nav_main,
    .header_nav_container .header_nav_sub,
    .header_nav_container .header_nav_cta {
        display: block;
        height: auto;
    }
    .header_nav_container .header_nav_item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 4px;
        height: auto;
    }
    .header_nav_container .header_nav_item a {
        display: block;
        padding: 16px 10px;
        font-size: 1.6rem;
        color: var(--color-black);
        height: auto;
    }
    .header_nav_container .header_nav_item a:hover {
        color: #fff;
    }
    .header_nav_toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 10px;
        font-size: 1.6rem;
        color: var(--color-black);
    }
    .header_nav_toggle::after {
        content: "";
        flex-shrink: 0;
        width: 8px;
        height: 8px;
        margin-right: 4px;
        border-right: 2px solid var(--color-black);
        border-bottom: 2px solid var(--color-black);
        transform: rotate(45deg);
        transition: transform .45s ease;
    }
    .header_nav_dropdown_wrap.is-open .header_nav_toggle::after {
        transform: rotate(-135deg);
    }
    .header_nav_dropdown {
        list-style: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .45s ease;
    }
    .header_nav_dropdown_wrap.is-open .header_nav_dropdown {
        max-height: 320px;
    }
    /* 上のナビ共通ルールを > で li 直下限定にしたぶん、
       ドロワー内のこのリンクにも太さを明示しておく（従来の見た目を維持） */
    .header_nav_dropdown_item a {
        display: block;
        padding: 13px 10px 13px 24px;
        font-size: 1.4rem;
        font-weight: 500;
        color: var(--color-black);
    }
    .header_nav_cta {
        margin-top: 20px;
    }
    .header_nav_cta .header_nav_item {
        border-bottom: none;
    }
    .header_nav_cta .header_nav_item a {
        color: #fff;
        text-align: center;
        width: 100%;
    }
    .header_nav_cta .header_nav_item a:hover {
        background-color: var(--color-black);
    }

    .header_overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    .header_overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    body.is-nav-open {
        overflow: hidden;
    }
    .main_header.scrolled .header_nav_main,
    .main_header.scrolled .header_nav_sub .header_nav_item {
        background-color: unset;
    }
}
@media screen and (max-width: 640px) {
    .header_inner {
        padding: 15px 5%;
        align-items: center;
    }
    .main_header .header_logo {
        width: 130px;
        top: 25px;
        left: 5%;
    }
    .main_header.scrolled .header_logo {
        width: 130px;
    }
    .subpage .main_header.scrolled .header_logo {
        width: 130px;
    }
    .sp_online_cta_btn {
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        padding: 10px 16px;
        color: #fff;
        font-size: 1.1rem;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 30px;
        transition: all .2s;
        background-color: var(--color-orange);
        margin-left: auto;
        margin-right: 10px;
    }
    .main_header .header_logo .en {
        font-size: .9rem;
    }
}

span.icon {
    color: #fff;
}
span.icon:before {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "icomoon";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e902";
    display: block;
}

.more_btn {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--color-black);
    width: 380px;
    padding: 30px;
    border-radius: 40px;
    letter-spacing: .05em;
    display: block;
    position: relative;
    line-height: 1;
    text-align: center;
}
.more_btn::after {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "icomoon";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e902";
    display: block;
    color: #fff;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    font-size: .6em;
}

@media screen and (max-width:1599px) and (min-width:1024px) {
    .more_btn {
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        background-color: var(--color-black);
        width: 340px;
        padding: 30px;
        border-radius: 40px;
        letter-spacing: .05em;
        display: block;
        position: relative;
        line-height: 1;
    }
}
@media screen and (max-width:1023px) {
    .more_btn {
        width: 100%;
        margin: 30px auto 0;
    }
}

.headline_loop {
    width: 100%;
    overflow: hidden;
}
.headline_loop_track {
    display: flex;
    width: max-content;
    animation: headline_loop_flow var(--headline-loop-duration, 120s) linear infinite;
    /* 単独の合成レイヤーに載せる。TOPのFVは背景写真が4秒ごとに
       クロスフェードするため、同じレイヤーだとその再描画に巻き込まれてカクつく */
    will-change: transform;
}
/* Webフォント適用でトラック幅が変わると translateX(-50%) の移動量も変わり、
   位置が飛ぶ。フォント確定まで止めておく（クラス付与は header.php のスクリプト） */
.fonts-loading .headline_loop_track {
    animation-play-state: paused;
}
.headline_loop_group {
    display: flex;
    flex-shrink: 0;
}
.headline_loop .en {
    display: block;
    padding-right: .4em;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
@keyframes headline_loop_flow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .headline_loop_track {
        animation: none;
    }
}
.headline_loop._vertical {
    width: auto;
    height: 100%;
}
.headline_loop._vertical .headline_loop_track {
    flex-direction: column;
    width: auto;
    height: max-content;
    animation-name: headline_loop_flow_y;
}
.headline_loop._vertical .headline_loop_group {
    flex-direction: column;
}
.headline_loop._vertical .en {
    padding-right: 0;
    padding-bottom: .4em;
    writing-mode: vertical-rl;
}
@keyframes headline_loop_flow_y {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.footer_cta {
    padding: 80px 0;
    background: url(../images/common/footer_cta_bg.jpg) no-repeat;
    background-size: cover;
    position: relative;
    isolation: isolate;
}
/* .inner の全幅（最大1580px）だとボタン1枚が800px近くなるので、
   ボタン列だけ幅を絞って中央に置く */
.footer_cta_btns {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.footer_cta_btns .footer_cta_btn {
    display: block;
    width: calc(50% - 15px);
    border-radius: 20px;
    color: #fff;
    padding: 56px 40px;
    background-color: rgba(255, 255, 255, .3);
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: background-color .3s ease, border-color .3s ease;
    position: relative;
}
.footer_cta_btns .footer_cta_btn:hover {
    background-color: rgba(255, 255, 255, .5);
    border-color: rgba(255, 255, 255, .55);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .footer_cta_btns .footer_cta_btn {
        background-color: rgba(40, 40, 40, .55);
    }
}
.footer_cta_btns .footer_cta_btn::before {
    content: "";
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 4px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
}
.footer_cta_btns .footer_cta_btn::after {
    -webkit-transition: 0.5s;
    transition: 0.5s;
    font-family: "icomoon";
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\e902";
    display: block;
    color: var(--color-orange);
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    font-size: .8em;
}

.footer_cta_btns .footer_cta_btn .footer_cta_btn_title_en {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
}
.footer_cta_btns .footer_cta_btn .footer_cta_btn_title_jp {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

@media screen and (max-width: 1399px) and (min-width: 1100px) {
    .footer_cta {
        padding: 64px 0;
    }
    .footer_cta_btns {
        gap: 24px;
        max-width: 880px;
    }
    .footer_cta_btns .footer_cta_btn {
        width: calc(50% - 12px);
        padding: 44px 32px;
    }
    .footer_cta_btns .footer_cta_btn::before {
        width: 36px;
        height: 36px;
        right: 22px;
    }
    .footer_cta_btns .footer_cta_btn::after {
        right: 36px;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_en {
        font-size: 1.4rem;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_jp {
        font-size: 1.8rem;
    }
}
@media screen and (max-width: 1099px) and (min-width: 641px) {
    .footer_cta {
        padding: 56px 0;
    }
    .footer_cta_btns {
        gap: 12px;
        max-width: none;
    }
    .footer_cta_btns .footer_cta_btn {
        width: calc(50% - 6px);
        padding: 36px 20px;
    }
    .footer_cta_btns .footer_cta_btn::before {
        width: 34px;
        height: 34px;
        right: 18px;
    }
    .footer_cta_btns .footer_cta_btn::after {
        right: 31px;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_en {
        font-size: 1.3rem;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_jp {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 640px) {
    .footer_cta {
        padding: 44px 0;
        background: url(../images/common/footer_cta_bg.jpg) no-repeat;
        background-size: cover;
        position: relative;
        isolation: isolate;
    }
    .footer_cta_btns {
        flex-direction: column;
        gap: 12px;
        max-width: none;
    }
    .footer_cta_btns .footer_cta_btn {
        width: 100%;
        padding: 26px 20px;
    }
    .footer_cta_btns .footer_cta_btn::before {
        content: "";
        width: 34px;
        height: 34px;
        border-radius: 4px;
        right: 16px;
    }
    .footer_cta_btns .footer_cta_btn::after {
        top: 50%;
        right: 29px;
        transform: translateY(-50%);
        font-size: .7em;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_en {
        font-size: 1rem;
    }
    .footer_cta_btns .footer_cta_btn .footer_cta_btn_title_jp {
        font-size: 1.5rem;
        font-weight: 600;
    }
    .footer_cta .footer_cta_headline_loop {
        top: 50px;
    }
    .footer_cta_headline_loop .en {
        font-size: 6rem;
    }
}

.youtube_links {
    background-color: #efefef;
    padding: 80px 0;
}
.youtube_links_title_wrap {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}
.youtube_links_title_wrap .youtube_links_logo {
    width: 200px;
}
.youtube_links_title_wrap .youtube_links_title {
    font-size: 2rem;
    font-weight: 700;
    color: #202020;
}
.youtube_links_list {
    display: flex;
    gap: 30px;
    list-style: none;
}
.youtube_links_item {
    width: calc( (100% - 90px) / 4 );
}
.youtube_links_link {
    display: block;
}
.youtube_links_link:hover .youtube_links_thumb img {
    transform: scale(1.06);
}
.youtube_links_thumb {
    overflow: hidden;
    border-radius: 6px;
    background-color: #eee;
}
.youtube_links_thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .4s ease;
}
.youtube_links_text {
    margin-top: 12px;
}
.youtube_links_date {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    color: #858585;
}
.youtube_links_name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 8px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-black);
}
@media screen and (max-width: 1399px) and (min-width: 1100px) {
    .youtube_links_list {
        display: flex;
        gap: 20px;
        list-style: none;
    }
    .youtube_links_item {
        width: calc( (100% - 60px) / 4 );
    }
}
@media screen and (max-width: 640px) {
    .youtube_links {
        padding: 40px 0;
    }
    .youtube_links_title_wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .youtube_links_title_wrap .youtube_links_logo {
        width: 130px;
    }
    .youtube_links_title_wrap .youtube_links_title {
        font-size: 1.5rem;
    }
    .youtube_links_list {
        gap: 20px 12px;
        flex-wrap: wrap;
    }
    .youtube_links_item {
        width: calc( 50% - 6px );
    }
    .youtube_links_name {
        font-size: 1.3rem;
    }
}

.main_footer {
    padding: 60px 0 20px;
}
.main_footer .footer_logo #path01 {
    fill: var(--color-orange);
}
.main_footer .footer_logo #path02 {
    fill: #63696e;
    transition: all .2s;
}
/* 1行に必要な幅（ロゴ240px + ナビ + SNS ≒ 1064px）は .inner が1580pxのときしか
   確保できない。収まらない幅では重ならず折り返すよう、3階層とも flex-wrap を許可する。
   gap は「行間 列間」の順 */
.footer_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px 40px;
}
.footer_logo {
    width: 240px;
}
.footer_nav_wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 60px;
}
.footer_nav_main {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.footer_nav_main .footer_nav_item a {
    font-size: 1.4rem;
    color: var(--color-black);
    position: relative;
    padding-right: 20px;
}
.footer_nav_main .footer_nav_item a::after {
    content: "";
    width: 14px;
    height: 14px;
    display: block;
    background: url(../images/common/target_blank.svg) no-repeat;
    background-size: contain;
    position: absolute;
    top: 60%;
    right: 0;
    transform: translateY(-50%);
}
.footer_sns_links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer_sns_links li a {
    display: block;
    width: 46px;
    height: 46px;
}
.main_footer .copyright {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    margin-top: 40px;
}

/* .inner が最大1000pxになる帯。この幅でも1行に収まるよう、
   ロゴ・文字・余白・SNSアイコンをまとめて縮める（適用範囲は .inner の指定と揃える） */
@media screen and (max-width: 1599px) and (min-width: 1024px) {
    .footer_content {
        gap: 20px 24px;
    }
    .footer_logo {
        width: 180px;
    }
    .footer_nav_wrap {
        gap: 16px 32px;
    }
    .footer_nav_main {
        gap: 12px 16px;
    }
    .footer_nav_main .footer_nav_item a {
        font-size: 1.2rem;
    }
    .footer_sns_links li a {
        width: 40px;
        height: 40px;
    }
}
/* .inner が「幅100% + 左右5%」に変わる帯。横幅が最大でも約900px、
   最小で約580pxまで下がるので1行維持は諦めて、ロゴとナビを上下に分ける */
@media screen and (max-width: 1023px) and (min-width: 641px) {
    .footer_content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .footer_nav_wrap {
        width: 100%;
        justify-content: space-between;
    }
}
@media screen and (max-width: 640px) {
    .main_footer {
        padding: 40px 0 15px;
    }
    .footer_nav_wrap {
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
    }
    .footer_content {
        flex-direction: column;
        gap: 20px;
    }
    .footer_logo {
        width: 160px;
    }
    .footer_nav_main {
        flex-wrap: wrap;
        gap: 0;
    }
    .footer_nav_main .footer_nav_item {
        width: 50%;
    }
    .footer_nav_main .footer_nav_item a {
        font-size: 1.2rem;
    }
}
.fv_404 {
    padding: 220px 5% 140px;
    text-align: center;
}
.fv_404_title_en {
    font-size: 9rem;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--color-orange);
}
.fv_404_title_jp {
    margin-top: 24px;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-black);
}
.fv_404_text {
    margin-top: 20px;
    font-size: 1.5rem;
    line-height: 1.9;
    color: #555;
}
@media screen and (max-width: 640px) {
    .fv_404 {
        padding: 140px 5% 80px;
    }
    .fv_404_title_en {
        font-size: 6rem;
    }
    .fv_404_title_jp {
        font-size: 1.7rem;
    }
    .fv_404_text {
        font-size: 1.35rem;
    }
}
