@charset "UTF-8";

/* ============================================================
   下層ページ共通シェル（トップ以外の全ページ）
   ------------------------------------------------------------
   全テンプレートが共有している骨格を、ホームと同じテイストで塗り直す層。

     <main>
       <div class="background animation"><img …写真…></div>
       <section class="billboard">
         <div class="page-title-wrapper">
           <div class="page-title-area">
             <p  class="page-eyebrow animation">NEWS</p>       ← 任意
             <h1 class="page-title animation">…</h1>            ← 欧文
             <h1 class="page-title-jp animation">…</h1>         ← 和文
             <p  class="page-sub-title animation">…</p>
           </div>
         </div>
         <article class="page-article">
           <div class="page-content"> …本文… </div>
         </article>
       </section>
     </main>

   役割分担:
     components.css … 新規マークアップ用の .tp-* パーツ
     page-shell.css … 既存クラス（.page-* / .billboard / .button …）の塗り直し
   色・書体・角丸は必ず tokens.css の var(--…) を経由する。

   ブレークポイントは 1080px / 768px。
   ============================================================ */

/* ============================================================
   ページ全体
   ============================================================ */

body {
    background-color: var(--c-paper);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.9;
    color: var(--c-ink);
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ============================================================
   ヒーロー（写真 ＋ インクのオーバーレイ）
   ============================================================ */

.billboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 写真は残す。旧デザインの brightness フィルタはやめ、
   オーバーレイ側でインク（寒色）に寄せてホームと同じ色温度にする */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* ヒーロー（.page-title-wrapper）より必ず高くしておく。
       余った下側は .page-article（不透明・z-index:1）が覆い隠す */
    height: 640px;
    z-index: -1;
    overflow: hidden;
    /* リビール */
    transform: scale(1.06);
    transition: transform 2.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.background.visible {
    transform: scale(1);
}

/* 写真の質感をクリアに見せる。
   暗さは filter と薄いオーバーレイで適度に調整し、写真本来のディテールと色合いを活かす。 */
.background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75) contrast(1.04);
}

/* 色被せは .background の擬似要素ではなく .page-title-wrapper に置く。
   .background は z-index:-1 の position:fixed で、その擬似要素は描画されない
   （実測でここに置いたオーバーレイは一切ペイントされなかった）。 */

/* ラッパーは画面いっぱい。テキストの max-width と左右余白は .page-title-area 側で持つ。
   こうしておくと、オーバーレイ・グリッド・図形が 100vw のような小細工なしで
   全幅に広がる（100vw はスクロールバーぶん横にはみ出して余計な横スクロールを生む）。 */
.page-title-wrapper {
    width: 100%;
    padding: 210px 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: relative;
    box-sizing: border-box;
}

/* 写真の存在感を引き立たせるオーバーレイ。
   青のベタ塗りを抑え、左側の白文字の可読性を確保しながら、写真のディテールと色彩を鮮明に見せる。 */
.page-title-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(11, 16, 36, 0.68) 0%, rgba(15, 23, 42, 0.36) 55%, rgba(23, 68, 215, 0.22) 100%),
        linear-gradient(to bottom, rgba(7, 11, 26, 0.5) 0%, rgba(7, 11, 26, 0.05) 45%, rgba(7, 11, 26, 0.45) 100%);
    pointer-events: none;
    z-index: 0;
}

/* グリッド線。トップの .tp-hero と同じ 64px 方眼を、暗い地の上なので白で引く。
   ::before（デュオトーン）の上・図形とテキストの下に敷く */
.page-title-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   ヒーローの幾何モチーフ
   ------------------------------------------------------------
   トップの円のコンポジションを下層ページにも持ち込む層。
   基底クラス .tp-geo は components.css。ここは配置・サイズ・色だけ。

   置き場所は .page-title-wrapper の内側に限る。
   .background は position: fixed; z-index: -1 なので、その中に入れた
   要素・擬似要素は一切ペイントされない（実測で確認済み）。

   テキストは左寄せなので、図形はすべて右半分に置いて可読性を守る。
   transform は corporate.js が書き込むため CSS では触らない。
   ============================================================ */

.page-geo-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* 位置は .page-geo 側で決める。.tp-geo が付いているものだけ JS が transform を書く */
.page-geo {
    position: absolute;
    opacity: 0;
    animation: pageGeoIn 0.9s var(--ease-out) both;
    animation-delay: calc(var(--g, 1) * 0.1s + 0.25s);
}

@keyframes pageGeoIn {
    from {
        opacity: 0;
        scale: 0.9;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* 輪郭だけの大きな円。右上から画面外へ抜ける */
.page-geo--ring {
    width: clamp(300px, 42vw, 520px);
    height: clamp(300px, 42vw, 520px);
    top: -22%;
    right: -8%;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

/* ペリウィンクルの淡い円 */
.page-geo--disc {
    width: clamp(150px, 20vw, 260px);
    height: clamp(150px, 20vw, 260px);
    top: 24%;
    right: 15%;
    background-color: rgba(168, 187, 255, 0.15);
}

/* 半円（上だけ丸い）。ヒーローの下辺に座らせる */
.page-geo--half {
    width: clamp(120px, 17vw, 210px);
    height: clamp(60px, 8.5vw, 105px);
    right: 26%;
    bottom: 0;
    border-radius: 999px 999px 0 0;
    background-color: var(--c-cobalt);
}

/* ★ シグネチャ: 本文の地（ペーパー）が四分円になってヒーローへせり上がる。
   ヒーローと本文の境目を直線ではなく「角」で受ける。
   トップの .tp-geo--quarter と同じ右下アンカー・同じ曲がり方 */
.page-geo--quarter {
    width: clamp(110px, 15vw, 200px);
    height: clamp(110px, 15vw, 200px);
    right: 0;
    bottom: 0;
    border-radius: 100% 0 0 0;
    background-color: var(--c-paper);
}

/* シアンの小さな四角。円ばかりの中の一点だけ角を立てる */
.page-geo--dot {
    width: clamp(10px, 1.1vw, 15px);
    height: clamp(10px, 1.1vw, 15px);
    top: 42%;
    right: 35%;
    border-radius: 1px;
    background-color: var(--c-cyan);
}

/* ページごとに表情を変えるための配置違い。
   同じ部品でも重心が変わるので、12ページが同じ絵にならない */
.page-geo-field--b .page-geo--ring {
    top: auto;
    bottom: -34%;
    right: -14%;
}

.page-geo-field--b .page-geo--disc {
    top: 12%;
    right: 6%;
}

.page-geo-field--b .page-geo--half {
    right: 8%;
}

.page-geo-field--b .page-geo--dot {
    top: 30%;
    right: 28%;
}

.page-geo-field--c .page-geo--ring {
    top: 6%;
    right: 22%;
}

.page-geo-field--c .page-geo--disc {
    top: auto;
    bottom: 8%;
    right: -6%;
}

.page-geo-field--c .page-geo--half {
    right: 42%;
}

.page-geo-field--c .page-geo--dot {
    top: 24%;
    right: 12%;
}

/* テキストの器。本文（.page-content）と同じ最大幅・同じ左右余白に揃える */
.page-title-area {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* eyebrow（任意）。ダーク面なのでペリウィンクル */
.page-eyebrow {
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.35em;
    line-height: 1.6;
    color: var(--c-periwinkle);
    margin-bottom: 14px;
}

/* 欧文タイトル（NEWS / Contact など）。
   トップのワードマークと同じ「詰めた特大 Space Grotesk」に揃える。
   ここが下層ページを最もホームらしくするレバー。
   長いタイトル（WordPress Development 等）は2行に折り返して構わない */
.page-title {
    font-family: var(--f-disp);
    font-size: clamp(40px, 7.2vw, 92px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #fff;
    width: fit-content;
    max-width: 100%;
}

/* 和文タイトル（記事タイトル・プライバシーポリシー など） */
.page-title-jp {
    font-family: var(--f-body);
    font-size: clamp(26px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: #fff;
    width: 100%;
    max-width: 900px;
}

/* タイトル下のコバルトの短線。ホームの幾何的な差し色と呼応させる */
.page-title-area::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background-color: var(--c-cobalt);
    margin-top: 26px;
    order: 99;
}

.page-sub-title {
    font-family: var(--f-body);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: var(--c-on-dark);
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
}

/* ヒーロー内のリビール（.animation → .visible は corporate.js の共通コントラクト） */
.page-eyebrow,
.page-title,
.page-title-jp,
.page-sub-title {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}

.page-eyebrow.visible,
.page-title.visible,
.page-title-jp.visible,
.page-sub-title.visible {
    opacity: 1;
    transform: none;
}

.page-title.visible {
    transition-delay: 0.08s;
}

.page-sub-title.visible {
    transition-delay: 0.16s;
}

/* 旧デザインのネイビーの幕。マークアップが残っていても出さない */
.animation-object {
    display: none;
}

/* ============================================================
   記事詳細（Single Post）固有のコンパクト調整
   ------------------------------------------------------------
   記事本文への導入を早めるため、ヒーローの縦幅と上下余白をコンパクトに詰める。
   ============================================================ */

body.single-post .background,
.tp-page--single .background {
    height: 500px;
}

body.single-post .page-title-wrapper,
.tp-page--single .page-title-wrapper,
.single-page .page-title-wrapper {
    padding: 130px 0 60px;
}

body.single-post .category-area,
.tp-page--single .category-area {
    margin-bottom: 10px;
}

body.single-post .page-title-jp,
.tp-page--single .page-title-jp {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.42;
    letter-spacing: 0.01em;
}

body.single-post .page-title-wrapper .modified-date,
.tp-page--single .page-title-wrapper .modified-date {
    margin-top: 14px;
}

body.single-post .page-title-area::after,
.tp-page--single .page-title-area::after {
    margin-top: 20px;
    width: 44px;
    height: 2px;
}

body.single-post .page-article,
.tp-page--single .page-article {
    padding-top: 44px;
}


/* ============================================================
   本文エリア
   ============================================================ */

.page-article {
    width: 100%;
    background-color: var(--c-paper);
    padding: 88px 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-content {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

/* 見出しだけを置く節の頭。複数ページで使う（旧 blog.css から移設） */
.section-header {
    margin-bottom: 32px;
}

/* 本文の先頭が見出しのとき、上の余白は .page-article が持っているので二重にしない */
.page-content > *:first-child,
.page-content > .section-header:first-child > * {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* ただし h2 の上罫とコバルトの短線は見出しの記号なので、先頭でも残す */
.page-content > h2:first-child,
.page-content > .page-h2:first-child,
.page-content > .section-header:first-child > .section-title-h2 {
    padding-top: 22px;
    border-top: 1px solid var(--c-line);
}

/* 一覧を抱える節のまとまり（対応ゲーム一覧など） */
.games-section {
    width: 100%;
    margin-top: 32px;
    margin-bottom: 36px;
}

/* 更新日・カテゴリなどのメタ表記 */
.modified-date {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 20px;
    padding: 0 var(--gutter);
    box-sizing: border-box;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--c-ink-mute);
}

.modified-date p {
    display: flex;
    align-items: center;
    line-height: 1.4;
}

/* ヒーロー内に置かれる場合（記事詳細）は本文側の余白を持たせない */
/* 記事詳細のヒーロー内に出る更新日。
   .page-title-area の中に入れているので、左右余白は器から受け取る（自分では持たない）。
   コバルトの短線（.page-title-area::after は order:99）より前に並ぶ */
.page-title-wrapper .modified-date {
    max-width: none;
    width: auto;
    margin: 18px 0 0;
    padding: 0;
    position: relative;
    z-index: 1;
    color: var(--c-on-dark-mute);
}

.modified-date i {
    padding: 0 6px 0 0;
    margin: 0;
    font-size: 0.95em;
}

.category-area {
    margin-bottom: 14px;
}

.category,
.category a {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    line-height: 1;
    color: var(--c-periwinkle);
    text-decoration: none;
}

/* ============================================================
   本文プロース
   ------------------------------------------------------------
   テンプレートが書く .page-h2 / .page-text などの「クラス版」と、
   記事本文（DB）が出力する素の h2 / p / ul などの「要素版」の
   両方を同じ見た目にする。記事本文はGutenbergの
   wp-block-heading / wp-block-paragraph しか持たないため要素で当てる。
   ============================================================ */

.page-h2,
.page-content--article h2 {
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: var(--c-ink);
    margin-top: 72px;
    margin-bottom: 28px;
    padding-top: 22px;
    position: relative;
    border-top: 1px solid var(--c-line);
}

/* 罫の左端だけコバルトに差す（ホームの幾何的な差し色に合わせる） */
.page-h2::before,
.page-content--article h2::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background-color: var(--c-cobalt);
}

.page-h3,
.page-content--article h3 {
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.015em;
    color: var(--c-ink);
    margin-top: 44px;
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 4px solid var(--c-cobalt);
}

.page-h4,
.page-content--article h4 {
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(17px, 1.7vw, 19px);
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.015em;
    color: var(--c-ink);
    margin-top: 32px;
    margin-bottom: 14px;
    padding-left: 18px;
    position: relative;
}

.page-h4::before,
.page-content--article h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background-color: var(--c-cyan);
}

.page-h5,
.page-content--article h5 {
    width: 100%;
    font-family: var(--f-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--c-ink);
    margin-top: 24px;
    margin-bottom: 10px;
}

.page-text,
.page-content--article > p,
.page-content--article li {
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.02em;
    color: var(--c-ink);
    width: 100%;
    max-width: 820px;
    margin-bottom: 20px;
}

.page-content--article ul,
.page-content--article ol {
    width: 100%;
    max-width: 820px;
    margin-bottom: 20px;
    padding-left: 1.4em;
}

.page-content--article ul {
    list-style: disc;
}

.page-content--article ol {
    list-style: decimal;
}

.page-content--article li {
    margin-bottom: 8px;
}

.page-content--article li::marker {
    color: var(--c-cobalt);
}

/* テンプレートが書く箇条書き（.page-ul / .page-li） */
.page-ul {
    width: 100%;
    max-width: 820px;
    margin-bottom: 24px;
    padding-left: 0;
    list-style-type: none;
}

.page-li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.95;
    color: var(--c-ink);
}

.page-li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 6px;
    height: 6px;
    background-color: var(--c-cobalt);
}

/* リンク: ホームの .tp-text-link と同じ「下線が伸びる」挙動（最初は青文字のみ、ホバーで下線） */
.page-text a,
.page-li a,
.career-content a,
.page-content--article > p a,
.page-content--article li a,
.page-content--article blockquote a,
.page-content--article td a,
.box26 a,
.page-table a {
    color: var(--c-cobalt);
    text-decoration: none;
    font-weight: 700;
    background-image: linear-gradient(var(--c-cobalt), var(--c-cobalt));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 1px;
    transition: color var(--dur-fast) ease, background-size var(--dur-base) ease;
}

.page-text a:hover,
.page-li a:hover,
.career-content a:hover,
.page-content--article > p a:hover,
.page-content--article li a:hover,
.page-content--article blockquote a:hover,
.page-content--article td a:hover,
.box26 a:hover,
.page-table a:hover {
    color: var(--c-cobalt-deep);
    background-size: 100% 1px;
}

.page-img,
.page-content--article img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid var(--c-line);
}

.page-content--article blockquote {
    width: 100%;
    max-width: 820px;
    margin: 0 0 24px;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--c-sky);
    color: var(--c-ink-soft);
}

.page-content--article table {
    width: 100%;
    margin-bottom: 28px;
    border-collapse: collapse;
    font-size: 15px;
}

.page-content--article th,
.page-content--article td {
    padding: 12px 14px;
    border: 1px solid var(--c-line);
    text-align: left;
    line-height: 1.7;
}

.page-content--article th {
    background-color: var(--c-paper-deep);
    font-weight: 700;
}

/* ============================================================
   セクション見出し（.section-title-h2 系 / .section-title 系）
   ------------------------------------------------------------
   blog / wordpress / web-production / message が使う。
   上のプロース見出しと同じトーンに揃える。
   ============================================================ */

.section-header {
    width: 100%;
}

.section-title-h2 {
    display: block;
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: var(--c-ink);
    margin-top: 72px;
    margin-bottom: 28px;
    padding-top: 22px;
    position: relative;
    border-top: 1px solid var(--c-line);
}

.section-title-h2::after {
    content: none;
}

.section-title-h2::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--c-cobalt);
    border-radius: 0;
}

.section-title-h3 {
    display: block;
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    line-height: 1.6;
    color: var(--c-ink);
    margin-top: 44px;
    margin-bottom: 18px;
    padding-left: 16px;
    position: relative;
}

.section-title-h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    background: var(--c-cobalt);
    border-radius: 0;
}

.section-title-h4 {
    display: block;
    width: 100%;
    font-family: var(--f-body);
    font-size: clamp(17px, 1.7vw, 19px);
    font-weight: 700;
    line-height: 1.6;
    color: var(--c-ink);
    margin-top: 32px;
    margin-bottom: 14px;
    padding-left: 18px;
    position: relative;
}

.section-title-h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    transform: none;
    width: 8px;
    height: 8px;
    background: var(--c-cyan);
    border-radius: 0;
    box-shadow: none;
}

/* 旧 .section-title 系（message ページ） */
.section-title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--f-en);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--c-ink);
    margin-block: 12px 8px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

.section-title.visible {
    opacity: 1;
    transform: none;
}

.section-title-ja {
    font-family: var(--f-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--c-ink-soft);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease 0.1s, transform 0.9s var(--ease-out) 0.1s;
}

.section-title-ja.visible {
    opacity: 1;
    transform: none;
}

.section-text-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.9s ease 0.15s;
}

.section-text-area.visible {
    opacity: 1;
}

.section-text {
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: 0.02em;
    color: var(--c-ink-soft);
    max-width: 820px;
    margin-bottom: 20px;
}

/* ============================================================
   ボタン（.tp-btn と同じ見た目。マークアップは既存のまま）
   ============================================================ */

.button-area {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin: 8px 0 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--c-cobalt);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(30, 69, 198, 0.24);
    transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.button:hover {
    background-color: var(--c-cobalt-deep);
    box-shadow: 0 12px 30px rgba(30, 69, 198, 0.32);
    transform: translateY(-2px);
}

.button:focus-visible {
    outline: 2px solid var(--c-cyan);
    outline-offset: 3px;
}

.button-text {
    display: flex;
    align-items: center;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: #fff;
    margin: 0;
}

.button-text i,
.button i {
    padding: 0;
    margin-left: 8px;
    font-size: 0.85em;
    transition: transform var(--dur-fast) ease;
}

.button:hover i {
    transform: translateX(4px);
}

/* 白抜きボタン */
.white-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid rgba(23, 28, 51, 0.4);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--c-ink);
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.white-btn:hover {
    background-color: var(--c-ink);
    border-color: var(--c-ink);
    color: var(--c-paper);
}

.white-btn-text {
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    margin: 0;
    color: inherit;
}

/* ============================================================
   CTA（セクション間の誘導）
   ============================================================ */

.cta-hero-section {
    width: 100%;
    position: relative;
    margin: 48px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-hero-background {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.cta-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    margin: 0;
    max-width: none;
    transition: transform 0.6s var(--ease-out);
}

.cta-hero-section:hover .cta-hero-background img {
    transform: scale(1.04);
}

.cta-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 16, 36, 0.82), rgba(23, 68, 215, 0.72));
    backdrop-filter: none;
}

.cta-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 560px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    line-height: 1.7;
}

.cta-hero-title {
    font-family: var(--f-body);
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-shadow: none;
}

.cta-hero-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--c-on-dark);
    margin-bottom: 26px;
    text-shadow: none;
}

.cta-hero-button,
.cta-button-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--c-cobalt-deep);
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: none;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.cta-hero-button:hover {
    background: var(--c-sky);
    color: var(--c-cobalt-deep);
    transform: translateY(-2px);
    border-color: transparent;
    text-decoration: none;
}

.cta-hero-button:active,
.cta-button-inline:active {
    transform: translateY(0);
}

.cta-hero-button-text,
.cta-button-inline-text {
    font-weight: 700;
}

.cta-hero-button-icon,
.cta-button-inline-icon {
    font-size: 0.85em;
    margin-left: 0;
    padding: 0;
    transition: transform var(--dur-fast) ease;
}

.cta-hero-button:hover .cta-hero-button-icon,
.cta-button-inline:hover .cta-button-inline-icon {
    transform: translateX(4px);
}

.cta-section-inline {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 32px 0 48px;
}

.cta-button-inline {
    background: var(--c-cobalt);
    color: #fff;
    box-shadow: 0 8px 22px rgba(30, 69, 198, 0.24);
}

.cta-button-inline:hover {
    background: var(--c-cobalt-deep);
    color: #fff;
    box-shadow: 0 12px 30px rgba(30, 69, 198, 0.32);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================================
   タブレット
   ============================================================ */

@media screen and (max-width: 1080px) {
    .background {
        height: 560px;
    }

    .page-title-wrapper {
        padding: 176px 0 96px;
    }

    .page-title-area {
        padding: 0 var(--gutter-md);
    }

    .page-content,
    .modified-date {
        padding: 0 var(--gutter-md);
    }

    .page-article {
        padding: 72px 0 88px;
    }

    .page-h2,
    .page-content--article h2,
    .section-title-h2 {
        margin-top: 56px;
    }

    .cta-hero-background {
        height: 280px;
    }

    body.single-post .background,
    .tp-page--single .background {
        height: 440px;
    }

    body.single-post .page-title-wrapper,
    .tp-page--single .page-title-wrapper,
    .single-page .page-title-wrapper {
        padding: 112px 0 48px;
    }

    body.single-post .page-article,
    .tp-page--single .page-article {
        padding-top: 38px;
    }
}

/* ============================================================
   スマートフォン
   ============================================================ */

@media screen and (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .background {
        height: 480px;
    }

    .page-title-wrapper {
        padding: 132px 0 72px;
    }

    .page-title-area {
        padding: 0 var(--gutter-sm);
    }

    .page-content,
    .modified-date {
        padding: 0 var(--gutter-sm);
    }

    .page-article {
        padding: 52px 0 64px;
    }

    .page-eyebrow {
        font-size: 11px;
        letter-spacing: 0.28em;
        margin-bottom: 10px;
    }

    .page-sub-title {
        margin-top: 10px;
    }

    /* SPは幅が狭くタイトルに図形が重なるので、数を減らして端へ寄せる */
    .page-geo--disc,
    .page-geo--dot {
        display: none;
    }

    .page-geo--ring {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -70px;
    }

    /* 四分円（右下）と重ならない位置まで内側へ寄せる */
    .page-geo--half {
        width: 90px;
        height: 45px;
        right: 38%;
    }

    .page-geo-field--b .page-geo--half,
    .page-geo-field--c .page-geo--half {
        right: 38%;
    }

    .page-geo--quarter {
        width: 88px;
        height: 88px;
    }

    .page-title-wrapper::after {
        background-size: 44px 44px, 44px 44px;
    }

    .page-h2,
    .page-content--article h2,
    .section-title-h2 {
        margin-top: 44px;
        margin-bottom: 20px;
        padding-top: 18px;
    }

    .page-h3,
    .page-content--article h3,
    .section-title-h3 {
        margin-top: 32px;
        margin-bottom: 14px;
        padding-left: 12px;
    }

    .page-h4,
    .page-content--article h4,
    .section-title-h4 {
        margin-top: 24px;
        padding-left: 15px;
    }

    .page-text,
    .page-content--article > p,
    .page-content--article li {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .button,
    .white-btn {
        padding: 14px 22px;
    }

    .button-text,
    .white-btn-text {
        font-size: 14px;
    }

    .cta-hero-section {
        margin: 32px 0;
        border-radius: var(--radius-md);
    }

    .cta-hero-background {
        height: 260px;
    }

    .cta-hero-button,
    .cta-button-inline {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .cta-section-inline {
        margin: 24px 0 36px;
    }

    body.single-post .background,
    .tp-page--single .background {
        height: 380px;
    }

    body.single-post .page-title-wrapper,
    .tp-page--single .page-title-wrapper,
    .single-page .page-title-wrapper {
        padding: 92px 0 38px;
    }

    body.single-post .category-area,
    .tp-page--single .category-area {
        margin-bottom: 8px;
    }

    body.single-post .page-title-jp,
    .tp-page--single .page-title-jp {
        font-size: clamp(20px, 5.2vw, 24px);
        line-height: 1.4;
    }

    body.single-post .page-title-wrapper .modified-date,
    .tp-page--single .page-title-wrapper .modified-date {
        margin-top: 10px;
    }

    body.single-post .page-title-area::after,
    .tp-page--single .page-title-area::after {
        margin-top: 16px;
        width: 36px;
    }

    body.single-post .page-article,
    .tp-page--single .page-article {
        padding-top: 32px;
    }
}

/* ============================================================
   reduced motion
   ============================================================ */

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

    .background,
    .page-eyebrow,
    .page-title,
    .page-title-jp,
    .page-sub-title,
    .section-title,
    .section-title-ja,
    .section-text-area {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .button,
    .white-btn,
    .cta-hero-button,
    .cta-button-inline,
    .cta-hero-background img {
        transition: none;
    }

    /* 図形は消さず、動きだけ止める（JS側も reduceMotion で起動しない） */
    .page-geo {
        opacity: 1;
        animation: none;
        scale: 1;
        transform: none !important;
    }
}
