/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    /* 日本語本文 */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Rules */
.nav-item a,
.intro-en,
.hero-logo {
    font-family: 'Jost', sans-serif;
    /* 英字全般 */
}

.intro-ja {
    font-family: 'Sawarabi Gothic', sans-serif;
    /* 日本語見出し */
}

/* Site Header (Nav & SNS) */
.site-header {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.main-nav {
    background-color: #2849d1;
    padding: 6px;
    /* 内側のカプセルのための余白 */
    border-radius: 50px;
    /* カプセル型 */
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    /* カプセルボタン間の隙間はパディングで調整 */
}

.nav-item a {
    color: #fff;
    font-weight: 500;
    /* Jostの500でモダンかつ軽やかに */
    padding: 9px 24px;
    display: block;
    font-size: 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    /* 大文字に合わせて少し広げる */
    border: none;
    /* 仕切り線を明示的に排除 */
    text-transform: uppercase;
    /* 大文字に変更 */
}

.nav-item.current a {
    background-color: #fff;
    color: #2849d1;
}

.sns-icons {
    display: flex;
    flex-direction: row;
    /* 横並び */
    gap: 15px;
    /* アイコン間の余白 */
    margin-right: 15px;
    /* ナビのカプセル右端と揃えるための調整 */
}

.sns-link img {
    width: 30px;
    /* 少し小さめにして軽やかに */
    height: 30px;
    display: block;
    transition: opacity 0.3s ease;
}

.sns-link:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: block;
    /* 隙間防止 */
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-logo {
    position: absolute;
    top: 38%;
    /* 人物（テーブルのイラスト）の少し上に配置するための調整 */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-logo {
        top: 20%;
        transform: translateX(-50%);
    }
}

.hero-logo-img {
    width: 45%;
    max-width: 500px;
    height: auto;
    display: inline-block;
}

@media (max-width: 768px) {
    .hero-logo-img {
        width: 70%;
    }
}

/* Introduction Section (Blue Area) */
.intro-section {
    background-color: #2849d1;
    color: #fff;
    padding: 140px 20px;
    text-align: center;
    display: block;
    /* 隙間防止 */
    margin-top: -1px;
    /* 稀に発生するレンダリングの隙間を埋める */
}

.intro-en {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
}

.intro-ja {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .intro-ja {
        font-size: 1.2rem;
        font-weight: 500;
        letter-spacing: 0.05em;
    }
}

/* Full Image Section */
.full-img-section {
    width: 100%;
    display: block;
    line-height: 0;
    /* 下部の隙間排除 */
}

.full-img-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* Wave Blue Block */
.wave-block-container {
    width: 100%;
    display: block;
    line-height: 0;
    position: relative;
    z-index: 10;
    /* 画像の上に重ねる */
    margin-top: -140px;
    /* 上の画像に食い込ませる */
    margin-bottom: -150px;
    /* 下の画像に食い込ませる */
}

.wave-graphic-wrap {
    position: relative;
    width: 100%;
    /* コンテンツの高さに合わせてSVGを伸縮させるか、SVGの高さを固定して中央配置するか検討 */
}

.wave-bg-img {
    width: 100%;
    height: 480px;
    display: block;
}

/* 最後のブロックなどを下平らにする調整 */
.wave-block-container.is-bottom-flat {
    background-color: transparent;
    margin-bottom: 0;
}

.wave-block-container.is-bottom-flat .wave-graphic-wrap {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.wave-block-container.is-bottom-flat .blue-patch {
    background-color: #2849d1;
    height: 220px;
    margin-top: -170px;
    position: relative;
    z-index: 20;
}

.wave-block-container.is-bottom-flat [class*="line-bottom"] {
    display: none;
}

.wave-line-img {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.line-top-1 {
    top: 50px;
}

.line-top-2 {
    top: 32px;
}

.line-top-3 {
    top: 50px;
}

.line-bottom-1 {
    bottom: 52px;
}

.line-bottom-2 {
    bottom: 32px;
}

.line-bottom-3 {
    bottom: 32px;
}

.wave-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    color: #fff;
    text-align: center;
    line-height: 1.6;
    padding-top: 10px;
    /* ネガティブマージン適用後の垂直バランスを調整 */
}

.wave-white .wave-text-overlay {
    color: #2849d1;
}

.wave-text-overlay .inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.block-en {
    font-family: 'Jost', sans-serif;
    font-size: 2.2rem;
    font-weight: 500;
}

.block-ja {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #2849d1;
        padding: 0 10px;
        height: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header::-webkit-scrollbar {
        display: none;
    }

    .main-nav {
        width: auto;
        padding: 0;
        border-radius: 0;
        overflow: visible;
        flex-shrink: 0;
    }

    .nav-list {
        padding: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .sns-icons {
        padding: 0;
        margin: 0;
        width: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .sns-link img {
        width: 22px;
        height: 22px;
    }

    .nav-item a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .nav-item.current a {
        padding: 6px 15px;
        /* Reduce vertical padding to make white ground smaller */
    }

    .intro-section {
        padding: 100px 20px 60px;
        /* Shift content down to account for fixed header */
    }

    /* Wave Block Mobile Adjustments */
    .wave-block-container {
        margin-top: -60px;
        margin-bottom: -70px;
    }

    .wave-bg-img {
        height: 180px;
    }

    .line-top-1 {
        top: 43px;
    }

    .line-top-2 {
        top: 43px;
    }

    .line-top-3 {
        top: 47px;
    }

    .line-bottom-1 {
        bottom: 47px;
    }

    .line-bottom-2 {
        bottom: 44px;
    }

    .wave-text-overlay .inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .block-en {
        font-size: 1rem;
    }

    .block-ja {
        font-size: 0.65rem;
        padding: 0 15px;
        line-height: 1.4;
    }

    /* Bottom Flat Patch Adjustment */
    .wave-block-container.is-bottom-flat .wave-graphic-wrap {
        height: 200px;
    }

    .wave-block-container.is-bottom-flat .blue-patch {
        height: 100px;
        margin-top: -86px;
    }
}

/* Profile Section */
.profile-section {
    background-color: #fff;
    padding: 100px 20px 100px;
    text-align: center;
}

@media (max-width: 768px) {
    .profile-section {
        padding: 60px 20px 80px;
    }
}

.profile-title-wrap {
    margin-bottom: 60px;
    color: #2849d1;
}

.profile-en {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.profile-ja {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.profile-ja::before,
.profile-ja::after {
    content: "";
    display: block;
    width: 40px;
    height: 1.5px;
    background-color: #2849d1;
}

.profile-ja::before {
    transform: rotate(45deg);
}

.profile-ja::after {
    transform: rotate(-45deg);
}

.profile-card {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid #2849d1;
    border-radius: 40px;
    padding: 80px 40px;
}

.profile-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #2849d1;
    background-color: #fff;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-sns {
    display: flex;
    gap: 15px;
}

.profile-sns .sns-link img {
    width: 25px;
    height: 25px;
}

.profile-right {
    text-align: left;
    color: #2849d1;
}

.profile-text {
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 2;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .profile-text {
        font-size: 0.9rem;
    }
}

.profile-btn-wrap {
    display: block;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    padding: 12px 35px;
    border: 1.5px solid #2849d1;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2849d1;
    transition: all 0.3s ease;
}

/* Works Section */
.works-section {
    background-color: #fff;
    padding: 100px 20px 140px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .works-section {
        padding: 60px 20px 80px;
    }
}

.works-title-wrap {
    text-align: left;
    margin-bottom: 80px;
    color: #2849d1;
    position: relative;
    display: inline-block;
}

.works-en {
    font-family: 'Jost', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
}

.works-en::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 150%;
    height: 1.5px;
    background-color: #2849d1;
}

.works-ja {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

.works-grid-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
}

.works-grid-upper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.works-grid-lower {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.works-item-inner {
    aspect-ratio: 1.4 / 1;
    border: 2px solid #2849d1;
    border-radius: 30px;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.works-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.works-item-inner:hover img {
    transform: scale(1.05);
}

.works-footer {
    text-align: center;
}

.works-footer-text {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #2849d1;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Responsive for Works */
@media (max-width: 768px) {

    .works-grid-upper,
    .works-grid-lower {
        grid-template-columns: 1fr;
    }

    .works-title-wrap {
        margin-bottom: 50px;
    }

    .works-en {
        font-size: 2.2rem;
    }
}

.btn-more:hover {
    background-color: #2849d1;
    color: #fff;
}

.btn-more .arrow {
    position: relative;
    width: 30px;
    height: 1px;
    background-color: currentColor;
}

.btn-more .arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 1px;
    background-color: currentColor;
    transform: rotate(35deg);
    transform-origin: right center;
}

/* Responsive for Profile */
@media (max-width: 768px) {
    .profile-card-inner {
        flex-direction: column;
        gap: 40px;
    }

    .profile-right {
        text-align: center;
    }

    .profile-ja {
        font-size: 1.2rem;
    }

    .profile-card {
        padding: 40px 20px;
    }
}

/* Contact Section */
.contact-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card-wrap {
    position: relative;
    z-index: 2;
    width: 400px;
}

.contact-card {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #2849d1;
}

.contact-text {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #2849d1;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 35px;
    font-weight: 500;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 15px 40px;
    background-color: #2849d1;
    color: #fff;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #1e3bb3;
}

.btn-contact .arrow {
    position: relative;
    width: 40px;
    height: 1px;
    background-color: #fff;
}

.btn-contact .arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 12px;
    height: 1px;
    background-color: #fff;
    transform: rotate(35deg);
    transform-origin: right center;
}

/* Detailed Footer */
.site-footer {
    background-color: #2849d1;
    color: #fff;
    padding: 100px 40px 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
}

.footer-logo img {
    width: 320px;
    height: auto;
}

.footer-nav-wrap {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 20px;
}

.footer-nav-list {
    display: flex;
    align-items: center;
}

.footer-nav-item a {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    text-transform: uppercase;
}

.footer-nav-item a:hover {
    opacity: 0.7;
}

.footer-nav-item+.footer-nav-item::before {
    content: "|";
    margin: 0 15px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-sns {
    display: flex;
    gap: 20px;
}

.footer-sns .sns-link img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    opacity: 0.8;
}

/* Responsive Extensions */
@media (max-width: 768px) {
    .contact-section {
        height: auto;
        padding: 80px 20px;
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }

    .footer-nav-wrap {
        align-items: center;
    }

    .footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-logo img {
        width: 200px;
    }
}

/* =======================================================
   Coming Soon Page
======================================================= */
.comingsoon-main {
    background-color: #fff;
}

/* .comingsoon-main .hero {
    height: 100vh;
} */

/* .comingsoon-main .hero-bg img {
    object-position: center bottom;
} */

.striped-line {
    width: 100%;
    /* margin-top: -10px; */
    /* Slight overlap to avoid gaps */
    position: relative;
    z-index: 5;
    line-height: 0;
    display: block;
}

.striped-line-img {
    width: 100%;
    height: auto;
    display: block;
}

.comingsoon-content {
    background-color: #fff;
    padding: 100px 20px 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.comingsoon-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.comingsoon-text {
    font-family: 'Jost', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #2849d1;
    letter-spacing: 0.08em;
}

.comingsoon-title-wrap::before,
.comingsoon-title-wrap::after {
    content: "";
    display: block;
    width: 30px;
    height: 1.5px;
    background-color: #2849d1;
}

.comingsoon-title-wrap::before {
    transform: rotate(45deg);
}

.comingsoon-title-wrap::after {
    transform: rotate(-45deg);
}

.comingsoon-illustration {
    width: 100%;
    max-width: 500px;
    /* To match screenshot proportion */
    display: flex;
    justify-content: center;
}

.comingsoon-illustration img {
    width: 100%;
    height: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: -80px;
    /* Stretch into the section below */
    left: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

.scroll-indicator .circle {
    width: 8px;
    height: 8px;
    border: 1.5px solid #2849d1;
    border-radius: 50%;
    margin-bottom: 15px;
}

.scroll-indicator .text {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    color: #2849d1;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    margin-bottom: 20px;
}

.scroll-indicator .line {
    width: 1px;
    height: 80px;
    background-color: #2849d1;
}

@media (max-width: 768px) {
    .comingsoon-content {
        padding: 60px 20px 100px;
    }

    .scroll-indicator {
        left: 20px;
        bottom: -40px;
    }

    .scroll-indicator .line {
        height: 40px;
    }
}