@charset "utf-8";

/*
Theme Name: Shouei Official
Theme URI: https://shouei-official.com/
Author: PEP
Author URI: https://pepinc.biz/
Description: 株式会社昭栄 公式サイト用オリジナルWordPressテーマ
Version: 1.3.1
Text Domain: shouei
*/

/* =========================================================
   0. Design Tokens / Base
========================================================= */
:root {
    --color-navy: #182578;
    --color-navy-deep: #101946;
    --color-navy-mid: #313656;
    --color-blue: #22588e;
    --color-teal: #31b499;
    --color-green: #35e27e;

    --color-white: #ffffff;
    --color-off-white: #f6f8fb;
    --color-text: #17204f;
    --color-muted: #68708a;
    --color-border: #dfe3ec;

    --gradient-brand: linear-gradient(
        -215deg,
        #1f223c 0%,
        #22588e 44%,
        #31b499 77%,
        #35e27e 100%
    );

    --header-height: 94px;
    --content-wide: 1480px;
    --content-medium: 1024px;

    --ease-standard: cubic-bezier(.22, 1, .36, 1);
    --shadow-soft: 0 20px 50px rgba(7, 18, 63, .12);
    --shadow-card: 0 14px 40px rgba(7, 18, 63, .16);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-navy-mid);
    color: var(--color-white);
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "Hiragino Mincho Pro",
        serif;
    font-size: 1.5rem;
    line-height: 1.9;
    letter-spacing: .015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
}

body.appear {
    background: var(--color-navy-mid);
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dt,
dd,
figure {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        opacity .25s ease,
        transform .25s ease;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

::selection {
    background: var(--color-navy);
    color: var(--color-white);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
}

section {
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

h1,
h2,
h3,
h4,
.p-common__lead {
    line-break: strict;
}

@supports (text-wrap: pretty) {
    h1,
    h2,
    h3,
    h4,
    .p-common__lead,
    .heading {
        text-wrap: pretty;
    }
}

.bg-gradient {
    background: var(--gradient-brand);
}

#container {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    opacity: 0;
}

body.appear #container {
    animation: PageAnimeAppear 1s .2s forwards;
}

.sp-br {
    display: block;
}

@media screen and (min-width: 560px) {
    .sp-br {
        display: none;
    }
}


/* =========================================================
   1. Layout
========================================================= */
.wrap-1480 {
    width: min(calc(100% - 48px), var(--content-wide));
    margin-inline: auto;
}

.wrap-1024 {
    width: min(calc(100% - 48px), var(--content-medium));
    margin-inline: auto;
}

.wrap-960 {
    width: min(calc(100% - 48px), 960px);
    margin-inline: auto;
}

.wrap {
    width: min(90%, 1280px);
    margin-inline: auto;
}

.common-inner,
.common-sp__inner {
    width: 100%;
}

.common-sp__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.col-2,
.col-3,
.col-4 {
    min-width: 0;
}

.col-2 {
    width: 100%;
}

.col-4 {
    flex: 0 0 48%;
    max-width: 48%;
    margin-top: 3.2rem;
}

@media screen and (min-width: 560px) {
    .common-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .col-2 {
        flex: 0 0 48%;
        max-width: 48%;
    }

    .col-3 {
        flex: 0 0 31.25%;
        max-width: 31.25%;
    }

    .col-4 {
        flex: 0 0 22%;
        max-width: 22%;
        margin-top: 0;
    }

    .reverse {
        flex-direction: row-reverse;
    }
}

@media screen and (max-width: 559px) {
    .wrap-1480,
    .wrap-1024,
    .wrap-960 {
        width: min(calc(100% - 32px), 100%);
    }

    .col-2 + .col-2 {
        margin-top: 4rem;
    }
}


/* =========================================================
   2. Common Typography
========================================================= */
section .en {
    color: var(--color-white);
    font-family: "Cinzel", serif;
    font-size: clamp(4.2rem, 4.8vw, 6.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .12em;
}

section .en .jp {
    display: block;
    margin-top: 1.2rem;
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "YuMincho",
        serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .12em;
}

.p-common__lead {
    position: relative;
    margin-bottom: 2.8rem;
    padding-left: 1.8rem;
    font-size: clamp(1.9rem, 1.6vw, 2.3rem);
    font-weight: 600;
    line-height: 1.65;
}

.p-common__lead::before {
    content: "";
    position: absolute;
    top: .15em;
    bottom: .15em;
    left: 0;
    width: 1px;
    background: currentColor;
    opacity: .65;
}

.p-common__title {
    margin-bottom: 1.2rem;
    font-family: "Cinzel", serif;
    font-size: clamp(3rem, 3.4vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .08em;
}


/* =========================================================
   3. Loading / Page Transition
========================================================= */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: var(--color-navy);
    color: var(--color-white);
    text-align: center;
}

#splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    letter-spacing: .2em;
    white-space: nowrap;
}

.splashbg1,
.splashbg2 {
    display: none;
}

body.appear .splashbg1,
body.appear .splashbg2 {
    display: block;
    position: fixed;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 50vh;
    background: var(--color-navy);
}

body.appear .splashbg1 {
    bottom: 50%;
    transform: scaleY(1);
    transform-origin: top;
    animation: PageAnime 1.4s ease-in-out forwards;
}

body.appear .splashbg2 {
    top: 50%;
    transform: scaleY(1);
    transform-origin: bottom;
    animation: PageAnime2 1.4s ease-in-out forwards;
}

@keyframes PageAnime {
    to {
        transform: scaleY(0);
    }
}

@keyframes PageAnime2 {
    to {
        transform: scaleY(0);
    }
}

@keyframes PageAnimeAppear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* =========================================================
   4. Header / Global Navigation
========================================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(24, 37, 120, .08);
    box-shadow: 0 4px 24px rgba(10, 23, 79, .04);
    backdrop-filter: blur(10px);
}

body.admin-bar #header {
    top: 32px;
}

#header.UpMove {
    animation: UpAnime .5s forwards;
}

#header.DownMove {
    animation: DownAnime .5s forwards;
}

/* メニュー展開中はヘッダーを必ず表示したままにする */
body.nav-open #header {
    opacity: 1;
    transform: none;
    animation: none;
}

@keyframes UpAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-110px);
    }
}

@keyframes DownAnime {
    from {
        opacity: 0;
        transform: translateY(-110px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translate(-50%, -50%);
    color: var(--color-navy);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .1em;
    white-space: nowrap;
}

#header h1 span {
    position: static;
    order: -1;
    display: block;
    width: 28px;
    transform: none;
}

#header h1 span img {
    width: 100%;
    height: auto;
}

#g-nav {
    height: 100%;
}

#g-nav-list {
    height: 100%;
}

#g-nav ul {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: clamp(1.8rem, 3vw, 5rem);
}

#g-nav ul li {
    position: relative;
    margin: 0 .4rem;
    letter-spacing: .08em;
    white-space: nowrap;
}

#g-nav ul li a {
    display: block;
    padding: 1rem 1.15rem;
    color: #25284a;
    font-size: 1.35rem;
    font-weight: 500;
}

#g-nav ul li a:hover {
    color: var(--color-navy);
}

.nav05b li::before,
.nav05b li::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--color-navy);
    transition: width .25s ease .15s;
}

.nav05b li::before {
    top: 0;
    right: 0;
}

.nav05b li::after {
    bottom: 0;
    left: 0;
}

.nav05b li span {
    display: block;
}

.nav05b li span::before,
.nav05b li span::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 0;
    background: var(--color-navy);
    transition: height .25s ease;
}

.nav05b li span::before {
    top: 0;
    left: 0;
}

.nav05b li span::after {
    right: 0;
    bottom: 0;
}

.nav05b li.current::before,
.nav05b li.current::after,
.nav05b li:hover::before,
.nav05b li:hover::after {
    width: 100%;
}

.nav05b li.current span::before,
.nav05b li.current span::after,
.nav05b li:hover span::before,
.nav05b li:hover span::after {
    height: 100%;
}

.openbtn {
    display: none;
}

.circle-bg {
    display: none;
}

/* メニュー展開中は背面のページをスクロールさせない */
body.nav-open {
    overflow: hidden;
    touch-action: none;
}

@media screen and (max-width: 1300px) {

    /*
     * stacking order
     * circle-bg : 900  （#header の外側）
     * #header   : 1000
     * g-nav     : header 内 2
     * logo      : header 内 3
     * openbtn   : header 内 4
     *
     * 子要素の z-index は親の stacking context を越えられないため、
     * #header 自体を circle-bg より上に置くことが重要。
     */
    .circle-bg {
        display: block;
        position: fixed;
        right: -50px;
        bottom: -50px;
        z-index: 900;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: var(--color-navy);
        pointer-events: none;
        transform: scale(0);
        transform-origin: center;
        transition: transform .65s var(--ease-standard);
        will-change: transform;
    }

    .circle-bg.circleactive {
        transform: scale(60);
    }

    #g-nav {
        position: fixed;
        inset: 0;
        z-index: 2;
        width: 100%;
        height: 100dvh;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition:
            visibility 0s linear .35s,
            opacity .25s ease;
    }

    #g-nav.panelactive {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    #g-nav-list {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100dvh;
        padding:
            calc(var(--header-height) + 2rem)
            2rem
            max(3rem, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #g-nav ul {
        position: static;
        display: block;
        width: min(86%, 420px);
        height: auto;
        padding: 0;
        opacity: 0;
        transform: translateY(18px);
        transition:
            opacity .3s ease .16s,
            transform .45s var(--ease-standard) .16s;
    }

    #g-nav.panelactive ul {
        opacity: 1;
        transform: translateY(0);
    }

    #g-nav ul li {
        margin: .55rem 0;
        text-align: center;
    }

    #g-nav ul li a {
        display: block;
        padding: 1.25rem 1rem;
        color: var(--color-white);
        font-size: clamp(1.7rem, 4.5vw, 2rem);
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: .1em;
    }

    #g-nav ul li a:hover,
    #g-nav ul li a:focus-visible {
        color: var(--color-white);
        background: rgba(255, 255, 255, .08);
    }

    .nav05b li::before,
    .nav05b li::after,
    .nav05b li span::before,
    .nav05b li span::after {
        background: rgba(255, 255, 255, .9);
    }

    .openbtn {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 4;
        display: block;
        width: var(--header-height);
        height: var(--header-height);
        margin: 0;
        padding: 0;
        border: 0;
        background: var(--color-navy);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    body.admin-bar .openbtn {
        top: 32px;
    }

    .openbtn span {
        position: absolute;
        left: 25%;
        display: block;
        width: 50%;
        height: 2px;
        border-radius: 999px;
        background: var(--color-white);
        transform-origin: center;
        transition:
            top .3s ease,
            left .3s ease,
            width .3s ease,
            opacity .2s ease,
            transform .3s ease;
    }

    .openbtn span:nth-of-type(1) {
        top: 35%;
    }

    .openbtn span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .openbtn span:nth-of-type(3) {
        top: 65%;
    }

    .openbtn.active span:nth-of-type(1) {
        top: 50%;
        left: 30%;
        width: 40%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .openbtn.active span:nth-of-type(2) {
        opacity: 0;
    }

    .openbtn.active span:nth-of-type(3) {
        top: 50%;
        left: 30%;
        width: 40%;
        transform: translateY(-50%) rotate(45deg);
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar #header,
    body.admin-bar .openbtn {
        top: 46px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    #header h1 {
        font-size: 1.7rem;
    }

    #header h1 span {
        width: 24px;
    }
}

@media screen and (max-width: 390px) {
    #header h1 {
        font-size: 1.55rem;
        letter-spacing: .06em;
    }

    #header h1 span {
        width: 22px;
    }
}


/* =========================================================
   5. Animation Utilities
========================================================= */
.flipDown {
    opacity: 0;
    animation: flipDownAnime 1s forwards;
}

@keyframes flipDownAnime {
    from {
        opacity: 0;
        transform: perspective(2500px) rotateX(100deg);
    }
    to {
        opacity: 1;
        transform: perspective(2500px) rotateX(0);
    }
}

.fadeUp {
    opacity: 0;
    animation: fadeUpAnime .65s forwards;
}

.fadeLeft {
    opacity: 0;
    animation: fadeLeftAnime .65s forwards;
}

.fadeRight {
    opacity: 0;
    animation: fadeRightAnime .65s forwards;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeUpTrigger,
.fadeLeftTrigger,
.fadeRightTrigger {
    opacity: 0;
}

.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .9s var(--ease-standard),
        transform .9s var(--ease-standard);
}

.fadein.scrollin {
    opacity: 1;
    transform: translateY(0);
}

.motion-txt {
    display: block;
    position: relative;
    overflow: hidden;
}

.motion-txt::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background: var(--color-blue);
    transform: translate3d(-101%, 0, 0);
}

.js-scroll.show .motion-txt::after {
    transform: translate3d(0, 0, 0);
    transition: transform .4s var(--ease-standard);
}

.js-scroll.done .motion-txt::after {
    transform: translate3d(101%, 0, 0);
    transition: transform .8s var(--ease-standard);
}

.motion-txt .motion-inner {
    opacity: 0;
}

.js-scroll.done .motion-txt .motion-inner {
    opacity: 1;
}


/* =========================================================
   6. First View
========================================================= */
#lead {
    position: relative;
    min-height: 100svh;
    padding-top: clamp(12rem, 12vh, 15rem);
    overflow: hidden;
}

#slider-area {
    position: relative;
    left: 50%;
    z-index: 1;
    width: min(72%, 1320px);
    height: min(68svh, 720px);
    min-height: 520px;
    transform: translateX(-50%);
    overflow: hidden;
}

#slider-area #slider {
    width: 100%;
    height: 100%;
}

#lead h2.heading {
    position: absolute;
    top: clamp(20rem, 23vh, 27rem);
    right: max(4.5vw, 3.2rem);
    z-index: 2;
    max-width: min(70vw, 1100px);
    margin: 0;
    color: var(--color-white);
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "YuMincho",
        serif;
    font-size: clamp(3.8rem, 3.25vw, 6.2rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .04em;
    text-align: right;
    text-shadow: 0 2px 18px rgba(10, 27, 73, .6);
}

#lead h2.heading span {
    display: block;
    margin-top: 1.2rem;
    font-size: clamp(2rem, 2vw, 3.8rem);
    line-height: 1.4;
    letter-spacing: .06em;
}

@media screen and (max-width: 1200px) {
    #slider-area {
        width: 78%;
    }

    #lead h2.heading {
        right: 3.2rem;
    }
}

@media screen and (max-width: 768px) {
    #lead {
        min-height: auto;
        padding-top: 10rem;
        padding-bottom: 7rem;
    }

    #slider-area {
        left: 0;
        width: 88%;
        height: 66svh;
        min-height: 460px;
        transform: none;
    }

    #lead h2.heading {
        top: 18rem;
        right: 2rem;
        max-width: 82%;
        font-size: clamp(3rem, 8vw, 4.4rem);
    }

    #lead h2.heading span {
        font-size: clamp(1.8rem, 5vw, 2.6rem);
    }
}

@media screen and (max-width: 480px) {
    #lead {
        padding-top: 9rem;
    }

    #slider-area {
        width: 90%;
        height: 58svh;
        min-height: 420px;
    }

    #lead h2.heading {
        top: 17rem;
        right: 1.6rem;
        max-width: 88%;
        font-size: clamp(2.6rem, 8.4vw, 3.7rem);
        line-height: 1.55;
    }

    #lead h2.heading span {
        margin-top: .8rem;
    }
}


/* =========================================================
   7. News
========================================================= */
#news {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: min(42vw, 570px);
    padding: 3.2rem 3.8rem;
    background: rgba(255, 255, 255, .98);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

#news::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 7rem;
    height: 2px;
    background: var(--color-navy);
}

#news h2 {
    margin-bottom: 2.2rem;
    color: var(--color-navy);
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "YuMincho",
        serif;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
}

#news ul {
    display: grid;
    gap: .6rem;
}

#news li {
    margin: 0;
}

#news li a {
    display: block;
    margin-inline: -1.2rem;
    padding: .85rem 1.2rem;
    color: var(--color-navy);
    border-radius: 2px;
}

#news li a:hover {
    background: #f2f4f9;
}

#news li a p {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1.4rem;
}

#news li time {
    color: #8a8fa2;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#news li a p > span {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--color-navy);
    font-size: 1.4rem;
    line-height: 1.6;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-empty {
    color: var(--color-muted);
    font-size: 1.4rem;
}

@media screen and (max-width: 960px) {
    #news {
        width: min(54vw, 520px);
        padding: 2.6rem 3rem;
    }
}

@media screen and (max-width: 768px) {
    #news {
        position: relative;
        bottom: auto;
        width: calc(100% - 3.2rem);
        margin: -3.5rem auto 0;
        padding: 2.8rem 2.4rem;
    }

    #news li a p {
        grid-template-columns: 8rem minmax(0, 1fr);
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #news {
        width: calc(100% - 2.4rem);
        margin-top: -2.5rem;
        padding: 2.5rem 2rem;
    }

    #news li a p {
        display: block;
    }

    #news li time {
        display: block;
        margin-bottom: .25rem;
    }

    #news li a p > span {
        white-space: normal;
    }
}


/* =========================================================
   8. Message
========================================================= */
#message {
    padding: clamp(9rem, 10vw, 14rem) 0 clamp(10rem, 11vw, 15rem);
}

#message .common-inner {
    align-items: center;
    gap: 6%;
}

#message .col-2 {
    flex: 1 1 0;
    max-width: none;
}

#message .en {
    margin-bottom: 5rem;
}

#message .p-common__lead {
    color: var(--color-white);
}

#message .col-2:first-child > p:not(.p-message__name) {
    margin-top: 1.6rem;
    font-size: 1.5rem;
    line-height: 2.05;
}

#message .col-2:last-child {
    overflow: hidden;
}

#message .col-2:last-child img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 1.1s var(--ease-standard);
}

#message .col-2:last-child:hover img {
    transform: scale(1.015);
}

.p-message__name {
    margin-top: 3.6rem;
    font-size: 1.45rem;
    text-align: right;
    letter-spacing: .08em;
}

@media screen and (max-width: 900px) {
    #message .common-inner {
        gap: 4rem;
    }

    #message .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #message .col-2 + .col-2 {
        margin-top: 4.5rem;
    }

    #message .en {
        margin-bottom: 3.6rem;
    }
}

@media screen and (max-width: 560px) {
    #message {
        padding-block: 8rem 9rem;
    }

    #message .col-2:first-child > p:not(.p-message__name) {
        font-size: 1.45rem;
        line-height: 2;
    }

    #message .col-2:last-child img {
        aspect-ratio: 4 / 3;
    }
}


/* =========================================================
   9. Vision
========================================================= */
#vision {
    padding: 2rem 0 clamp(9rem, 10vw, 14rem);
    color: var(--color-white);
    text-align: center;
}

#vision .p-common__title {
    color: var(--color-white);
}

.p-vision__body {
    margin-bottom: 4.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.8;
}

#vision .common-sp__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 4.8rem);
}

#vision .col-4 {
    max-width: none;
    margin: 0;
}

.p-vision__image {
    overflow: hidden;
}

.p-vision__image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .8s var(--ease-standard);
}

#vision .col-4:hover .p-vision__image img {
    transform: scale(1.03);
}

.p-vision__headline {
    padding: 1.8rem 0 .9rem;
    font-size: clamp(1.7rem, 1.5vw, 2rem);
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

#vision .col-4 p {
    font-size: 1.4rem;
    line-height: 1.95;
    text-align: left;
}

@media screen and (max-width: 960px) {
    #vision .common-sp__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4.5rem 3rem;
    }
}

@media screen and (max-width: 560px) {
    #vision {
        padding-top: 1rem;
    }

    #vision .common-sp__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .p-vision__image img {
        aspect-ratio: 4 / 3;
    }

    #vision .col-4 p {
        font-size: 1.45rem;
    }
}


/* =========================================================
   10. Service
========================================================= */
#service {
    padding: clamp(9rem, 9vw, 13rem) 0 clamp(10rem, 10vw, 14rem);
    background: var(--color-white);
    color: var(--color-navy);
}

#service .en {
    margin-bottom: 5.6rem;
    color: var(--color-navy);
}

#service .p-common__lead {
    margin-bottom: 2.8rem;
}

.p-service__intro {
    max-width: 1120px;
    margin-bottom: 5rem;
}

.p-service__intro p {
    font-size: 1.5rem;
    line-height: 2;
}

.p-service__intro p + p {
    margin-top: .6rem;
}

#service .common-inner {
    gap: 3.5%;
}

#service .col-2 {
    flex: 1 1 0;
    max-width: none;
}

.p-service__image {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    background: #e9edf3;
}

.p-service__image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .85s var(--ease-standard);
}

#service .col-2:hover .p-service__image img {
    transform: scale(1.025);
}

.p-service__image p {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem 1.6rem;
    background: rgba(15, 23, 77, .9);
    color: var(--color-white);
    font-size: 1.8rem;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(3px);
}

.p-service__body {
    font-size: 1.45rem;
    line-height: 1.95;
}

@media screen and (max-width: 768px) {
    #service .en {
        margin-bottom: 4rem;
    }

    .p-service__intro {
        margin-bottom: 4rem;
    }
}

@media screen and (max-width: 559px) {
    #service {
        padding-block: 8rem 9rem;
    }

    #service .common-inner {
        display: block;
    }

    #service .col-2 + .col-2 {
        margin-top: 4.5rem;
    }

    .p-service__image p {
        font-size: 1.6rem;
    }
}


/* =========================================================
   11. Works
========================================================= */
#works {
    padding: clamp(9rem, 9vw, 13rem) 0 clamp(9rem, 9vw, 12rem);
    background: var(--color-navy-mid);
    color: var(--color-white);
}

#works .en {
    margin-bottom: 5.6rem;
}

#works .p-common__lead {
    margin-bottom: 4.8rem;
    color: var(--color-white);
}

#works > .wrap-1480 > .common-sp__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4rem clamp(2rem, 3vw, 4.8rem);
}

#works > .wrap-1480 > .common-sp__inner .col-4 {
    max-width: none;
    margin: 0;
}

.p-works__image {
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
}

.p-works__image img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .75s var(--ease-standard);
}

#works .col-4:hover .p-works__image img {
    transform: scale(1.025);
}

.p-works__body {
    min-height: 5.4rem;
    padding-top: 1.6rem;
    font-size: 1.35rem;
    line-height: 1.7;
    text-align: center;
}

.p-works__dl {
    margin-top: 6rem;
    padding-top: 4.8rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: var(--color-white);
    text-align: center;
}

.p-works__lead {
    margin-bottom: 3.2rem;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.8;
}

.p-works__dl .common-sp__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.p-works__dl .col-4 {
    max-width: none;
    margin: 0;
}

.common-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 74px;
    margin: 0;
    padding: 1.5rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 1.35rem;
    line-height: 1.55;
    text-align: center;
}

.common-link:hover {
    background: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.common-link p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.common-link span {
    display: block;
    margin-top: .15rem;
    font-size: 1.1rem;
}

@media screen and (max-width: 960px) {
    #works > .wrap-1480 > .common-sp__inner,
    .p-works__dl .common-sp__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 560px) {
    #works {
        padding-block: 8rem 9rem;
    }

    #works > .wrap-1480 > .common-sp__inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .p-works__image img {
        aspect-ratio: 16 / 10;
    }

    .p-works__body {
        min-height: 0;
        padding-top: 1.3rem;
    }

    .p-works__dl {
        margin-top: 5rem;
    }

    .p-works__dl .common-sp__inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}


/* =========================================================
   12. Company
========================================================= */
#company {
    padding: clamp(9rem, 9vw, 13rem) 0 clamp(10rem, 10vw, 14rem);
    background: var(--color-navy-mid);
    color: var(--color-white);
}

#company .en {
    margin-bottom: 5.6rem;
}

.corporate-table {
    width: min(100%, 1200px);
    margin-inline: auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.corporate-table tbody {
    display: table-row-group;
}

.corporate-table tr {
    display: table-row;
    border-bottom: 1px solid rgba(255, 255, 255, .42);
}

.corporate-table tr:first-child {
    border-top: 1px solid rgba(255, 255, 255, .42);
}

.corporate-table th,
.corporate-table td {
    padding: 2rem 2.4rem;
    vertical-align: top;
    font-size: 1.45rem;
    line-height: 1.75;
}

.corporate-table th {
    width: 30%;
    font-weight: 600;
    text-align: left;
    letter-spacing: .04em;
}

.corporate-table td {
    width: 70%;
}

.corporate-table td a {
    display: inline-block;
    color: var(--color-white);
}

.corporate-table td a:hover {
    opacity: .72;
    text-decoration: underline;
    text-underline-offset: .25em;
}

@media screen and (max-width: 768px) {
    .corporate-table {
        table-layout: auto;
    }

    .corporate-table th,
    .corporate-table td {
        padding: 1.7rem 1rem;
        font-size: 1.4rem;
    }

    .corporate-table th {
        width: 34%;
    }

    .corporate-table td {
        width: 66%;
    }
}

@media screen and (max-width: 480px) {
    #company {
        padding-block: 8rem 9rem;
    }

    .corporate-table tr {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: 1.7rem 0;
    }

    .corporate-table th,
    .corporate-table td {
        display: block;
        width: 100%;
        padding: 0;
    }

    .corporate-table th {
        color: rgba(255, 255, 255, .72);
        font-size: 1.25rem;
    }

    .corporate-table td {
        font-size: 1.45rem;
    }
}


/* =========================================================
   13. Contact / Contact Form 7
========================================================= */
#contact {
    margin-top: 0;
    padding: clamp(9rem, 10vw, 14rem) 0;
    background:
        linear-gradient(135deg, rgba(16, 25, 70, .98), rgba(34, 88, 142, .96));
    color: var(--color-white);
}

#contact .en {
    margin-bottom: 4rem;
}

.contact-heading {
    margin-bottom: 5rem;
    text-align: center;
}

.contact-heading .en {
    text-align: left;
}

.contact-lead {
    margin-bottom: 1.6rem;
    font-size: clamp(2rem, 2.1vw, 2.8rem);
    font-weight: 600;
    line-height: 1.65;
}

.contact-intro {
    max-width: 760px;
    margin-inline: auto;
    color: rgba(255, 255, 255, .85);
    font-size: 1.45rem;
    line-height: 2;
}

.contact-form {
    width: 100%;
    padding: clamp(3rem, 5vw, 6rem);
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-card);
}

.wpcf7 {
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}

.cform {
    width: 100%;
    border-collapse: collapse;
}

.cform tbody {
    display: block;
    width: 100%;
}

.cform tr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
    margin-bottom: 3.2rem;
}

.cform th {
    flex: 0 0 220px;
    padding-top: 1.25rem;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

.cform td {
    flex: 1 1 auto;
    min-width: 0;
}

.required-srt {
    display: inline-block;
    margin-left: .8rem;
    padding: .15rem .65rem;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.8;
    vertical-align: .1em;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    margin: 0;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background: var(--color-off-white);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1.6;
    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.wpcf7 textarea {
    min-height: 200px;
    resize: vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(34, 88, 142, .1);
}

.wpcf7 input[aria-invalid="true"],
.wpcf7 textarea[aria-invalid="true"] {
    border-color: #b63636;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: .65rem;
    color: #b63636;
    font-size: 1.25rem;
    line-height: 1.5;
}

.contact-agreement__body {
    margin: 3rem 0 0;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.8;
    text-align: center;
}

.contact-agreement__body a {
    display: inline;
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.wpcf7-list-item {
    margin: 0;
}

.wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-navy);
}

.form-btn__inner {
    margin-top: 4rem;
    text-align: center;
}

.wpcf7 .submit-btn,
.wpcf7 input[type="submit"] {
    display: block;
    width: min(100%, 360px);
    min-height: 64px;
    margin: 0 auto;
    padding: 1.6rem 2rem;
    border: 1px solid var(--color-navy);
    border-radius: 0;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .12em;
    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.wpcf7 .submit-btn:hover,
.wpcf7 input[type="submit"]:hover {
    background: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.wpcf7 .wpcf7-spinner {
    display: block;
    margin: 1.5rem auto 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 3rem 0 0;
    padding: 1.4rem 1.6rem;
    border-width: 1px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.7;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #29915d;
    background: #f0faf5;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #c9952d;
    background: #fff9ec;
}

.contact-form__error {
    color: var(--color-text);
    text-align: center;
}

.thanks-block {
    margin-bottom: 12rem;
    text-align: center;
}

.thanks-block h3 {
    margin-bottom: 2rem;
    font-size: 2.4rem;
}

.thanks-text {
    line-height: 2.2;
}

.privacy-policy__wrap {
    max-width: var(--content-wide);
    margin: 0 auto 12rem;
}

.privacy-policy__block {
    margin-bottom: 4rem;
}

@media screen and (max-width: 768px) {
    .contact-heading {
        margin-bottom: 4rem;
        text-align: left;
    }

    .contact-heading .en {
        margin-bottom: 3.2rem;
    }

    .contact-intro {
        margin: 0;
    }

    .cform tr {
        display: block;
        margin-bottom: 2.8rem;
    }

    .cform th {
        display: block;
        margin-bottom: .9rem;
        padding-top: 0;
    }

    .cform td {
        display: block;
        width: 100%;
    }
}

@media screen and (max-width: 560px) {
    #contact {
        padding-block: 8rem 9rem;
    }

    .contact-form {
        padding: 3rem 2rem;
    }

    .wpcf7 textarea {
        min-height: 170px;
    }
}


/* =========================================================
   14. Footer
========================================================= */
footer {
    position: relative;
    z-index: 10;
    color: var(--color-white);
}

footer a {
    color: var(--color-white);
}

.wave {
    position: relative;
}

canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

#footer {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
}

#footer .footer-r {
    width: 70%;
    padding: 4rem;
    background: var(--color-navy);
    color: var(--color-white);
}

#footer .footer-r .map-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10rem;
}

#footer .footer-r .map-area h2 {
    width: 10%;
    height: 10em;
    font-size: 1.3rem;
    line-height: 1.7;
    letter-spacing: .3em;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

#footer .footer-r .map-address {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
}

#footer .footer-r .map-address address {
    margin-bottom: 3rem;
    font-style: normal;
    line-height: 1.9;
}

#footer .footer-r .map-block {
    width: 50%;
}

#footer .footer-r .iframe-area {
    position: relative;
    height: 0;
    padding-top: 30px;
    padding-bottom: 51.65%;
    overflow: hidden;
}

#footer .footer-r .iframe-area iframe,
#footer .footer-r .iframe-area object,
#footer .footer-r .iframe-area embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#footer .footer-link {
    padding-left: 5rem;
    font-size: 1rem;
}

#footer .footer-link li {
    display: inline-block;
}

#footer .footer-link a::after {
    content: "/";
    padding: 0 1rem;
}

#footer .footer-link li:last-child a::after {
    content: "";
    padding: 0;
}

#footer .footer-l {
    width: 30%;
    background: #292929;
}

#footer .footer-l .footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40vh;
    min-height: 280px;
    background: #cfcfcf;
    color: #252525;
    text-align: center;
}

#footer .footer-l .footer-contact-area h2 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    letter-spacing: .1em;
}

#footer .footer-l .footer-contact-area a {
    display: inline-block;
    padding-bottom: 2rem;
    color: #252525;
    font-size: 1.5rem;
}

#footer #copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20vh;
    min-height: 140px;
    background: #292929;
    color: #ccc;
    text-align: center;
}

#footer #page-top {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-white);
    cursor: pointer;
}

#footer #page-top span {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-top: 2px solid var(--color-navy);
    border-left: 2px solid var(--color-navy);
    transform: translateY(4px) rotate(45deg);
}

.footer-left__block {
    padding: 5rem 0 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: .1em;
}

.copyright {
    padding: 1rem 1.6rem 2rem;
    font-size: 1.2rem;
    text-align: center;
}

@media screen and (max-width: 1045px) {
    #footer .footer-r,
    #footer .footer-l {
        width: 100%;
    }

    #footer .footer-l .footer-contact,
    #footer #copyright {
        height: auto;
        min-height: 0;
        padding: 4rem 0;
    }

    #footer .footer-r .map-area h2 {
        width: 5%;
    }

    #footer .footer-link {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #footer .footer-r {
        padding: 7rem 3rem;
    }

    #footer .footer-r .map-area {
        margin-bottom: 0;
    }

    #footer .footer-link {
        display: none;
    }

    #footer .footer-r .map-area h2 {
        width: 100%;
        height: auto;
        margin-bottom: 4rem;
        writing-mode: horizontal-tb;
    }

    #footer .footer-r .map-address {
        width: 48%;
    }

    #footer #page-top {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 560px) {
    #footer .footer-r {
        padding-inline: 2rem;
    }

    #footer .footer-r .map-address,
    #footer .footer-r .map-block {
        width: 100%;
    }

    #footer .footer-r .map-address {
        margin-bottom: 4rem;
    }
}


/* =========================================================
   15. Blog / Single / Page
========================================================= */
#blog {
    padding: 10rem 0;
    background: var(--gradient-brand);
}

.works-content {
    padding-top: 2rem;
}

.blog-content {
    padding: 14rem 0;
    color: var(--color-white);
}

.blog-image {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.blog-link {
    color: var(--color-white);
    box-shadow: 0 10px 35px -14px rgba(0, 0, 0, .45);
}

.blog-link:hover {
    box-shadow: none;
}

.blog-link__body {
    padding: 0 1rem 2rem;
    overflow: hidden;
}

.blog-ttl {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform .5s var(--ease-standard);
}

.blog-link:hover img {
    transform: scale(1.035);
}

.blog-content .col-3 {
    margin-top: 5rem;
}

.article-content {
    padding-top: 4rem;
    padding-bottom: 12rem;
    color: var(--color-white);
}

.blog-common-ttl {
    margin-bottom: 3rem;
    font-size: 2.4rem;
    font-weight: 600;
}

.blog-eyecatch__image {
    margin-bottom: 2rem;
}

.site-main--subpage {
    min-height: 65vh;
    padding-top: 14rem;
}

.page-content {
    color: var(--color-white);
}

.article-content a,
.page-content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.article-meta {
    margin-bottom: 2rem;
    opacity: .8;
}

.article-content__body > * + * {
    margin-top: 1.5em;
}

.article-content__body h2,
.article-content__body h3,
.article-content__body h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin-top: 2em;
    margin-bottom: .75em;
}

.article-content__body img,
.page-content img {
    max-width: 100%;
    height: auto;
}

.navigation.pagination {
    margin-top: 5rem;
}


/* =========================================================
   16. Breadcrumb
========================================================= */
#breadcrumb {
    margin-right: auto;
    margin-left: auto;
    padding-left: 0;
    color: var(--color-white);
    font-size: 1.25rem;
}

#breadcrumb li {
    display: inline;
    list-style: none;
}

#breadcrumb li::after {
    content: ">";
    padding: 0 1rem;
    opacity: .6;
}

#breadcrumb li:last-child::after {
    content: "";
}

#breadcrumb li a {
    display: inline-block;
}

#breadcrumb li a:hover {
    opacity: .65;
}

#breadcrumb li:first-child a::before {
    content: "\f015";
    padding-right: .5rem;
    font-family: "Font Awesome 5 Free";
    font-size: 1.2rem;
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   17. Misc / Accessibility
========================================================= */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    border: 0;
    word-wrap: normal !important;
}

.timeline li {
    position: relative;
    padding-bottom: 2rem;
}

.timeline dl {
    margin: 0 0 2rem 3em;
}

.border-line {
    position: absolute;
    top: 0;
    left: .2em;
    width: 2px;
    height: 0;
    background: #999;
}

.timeline li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #999;
}


/* =========================================================
   18. Reduced Motion
========================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .fadein,
    .fadeUpTrigger,
    .fadeLeftTrigger,
    .fadeRightTrigger {
        opacity: 1 !important;
        transform: none !important;
    }
}