/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--white);
}

/* カラーパレット（黒と赤をモチーフ） */
:root {
    --accent-red: #dc2626;
    --white: #ffffff;
    --medium-gray: #9ca3af;
    --black: #000000;
    --chimera-red: #b31212;

    /* スペーシング */
    --section-padding: 80px 0;

    /* トランジション */
    --transition-smooth: all 0.3s ease;
}

/* 基本スタイル */
html {
    scroll-behavior: smooth;
}

/* リストの黒丸（・）を非表示に */
ul {
    list-style: none;
}

/* リンクのデフォルトの下線を非表示に */
a {
    text-decoration: none;
    color: inherit; /* 親要素の色を継承する */
}

/* ヘッダー */
.header {
    background: var(--chimera-red) url("images/noise_512.png");
    background-blend-mode: multiply;
    z-index: 100;
}
.header:has(.hamburger.is-active) {
    backdrop-filter: blur(15px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(15px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 15px 20px; */
    padding: 0.8lvw 1.1lvw;
}

/* ヘッダーロゴ */
.header-logo {
    display: flex;
    align-items: center;
    width: 2.1lvw;
}

.logo-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ヘッダーナビゲーション */
.desktop-nav {
    display: block;
}

.nav-list {
    font-family: "Zen_Antique";
    display: flex;
    list-style: none;
    gap: 1.6lvw;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1lvw;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-list a:hover {
    color: black;
}

.nav-list a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: var(--transition-smooth);
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger,
.mobile-nav {
    display: none;
}

/* セクション共通スタイル */
section {
    padding: var(--section-padding);
}

/* 背景２ */
.second-bg {
    background-image: url("images/marble2.png");
    background-size: contain;
    background-position: top;
    position: relative;
}
.second-bg::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--chimera-red) url("images/noise_512.png");
    background-blend-mode: multiply;
    z-index: -1;
}

/* トップセクション */
.top-section {
    color: var(--white);
    text-align: center;
    padding: 7.9lvw 0;
    background: var(--chimera-red) url("images/noise_512.png");
    background-blend-mode: multiply;
}

.top-logo {
    margin-bottom: 6.3lvw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-logo-image {
    width: 40%;
    margin-bottom: 1.5lvw;
}

.top-logo-text {
    font-family: "Caudex-Bold";
    font-weight: bold;
    font-size: 2lvw;
    color: black;
    letter-spacing: 0.11lvw;
    word-spacing: 0.26lvw;
}

/* 社是 */
section#policy {
    display: flex;
    background: linear-gradient(
            0deg,
            black 0%,
            var(--chimera-red),
            var(--chimera-red)
        ),
        url("images/noise_512.png");
    background-blend-mode: multiply;
    position: relative;
}
section#policy::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("images/marble1.png");
    background-size: cover;
    background-position: bottom;
    top: -7%;
    opacity: 0.5;
}
section#policy .policy-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}
section#policy .policy-content {
    width: 50%;
}
section#policy .policy-image {
    width: 100%;
    height: auto;
}
section#policy .side-image {
    overflow: hidden;
}
section#policy .side-left {
    transform: translateX(-45%);
}
section#policy .side-right {
    transform: translateX(45%);
}
section#policy .side-image-left {
    display: block;
    width: 100%;
    height: auto;
}
section#policy .side-image-right {
    display: block;
    width: 100%;
    height: auto;
}

/* はじめにセクション */
section#about {
    background-image: url("images/chimera2.png");
    background-size: 150%;
    background-position: center;
    background-position-x: 66%;
    padding: 40lvw 0 70lvw 0;

    background-color: black;

    position: relative;
}
section#about::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/noise_512.png");
    mix-blend-mode: multiply;
}

.about-contents {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    column-gap: 10lvw;
}
.about-color {
    color: red;
}
.about-image {
    width: 10%;
}
.about-text {
    width: 20lvw;
    min-width: fit-content;
}
.about-explain {
    font-family: "Zen_Antique";
    text-align: left;
    /* font-size: 30px;
    line-height: 1.8; */
    font-size: 1.7lvw;
    line-height: 1.4;
}
.about-agent {
    font-family: "Zen_Antique";
    text-align: right;
    margin-top: 1lvw;
    font-size: 2.1lvw;
    line-height: 3lvw;
}

/* 実績セクション */
section#business {
    padding-bottom: 15lvw;
    background-color: black;
    position: relative;
}
section#business::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/noise_512.png");
    mix-blend-mode: multiply;
}

.business-container {
    position: relative;
}

.work-image {
    width: 12%;
    height: auto;
    position: absolute;
    top: -50%;
    right: 15%;
}

.business-grid {
    display: grid;
    gap: 2.7lvw;
    justify-items: center;
}

.achievement-card {
    font-family: "Zen_Antique";
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 80%;
}

.card-title {
    color: var(--white);
    font-size: 3.3lvw;
    margin: 0;
    margin-bottom: 1lvw;
}

.card-content {
    display: flex;
    gap: 1.1lvw;
}

/* 実績カード画像部分（65%） */
.card-image {
    flex: 0 0 65%;
    margin: auto;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 実績カード詳細部分（35%） */
.card-details {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    padding: 0 1.05lvw 0 0.8lvw; /* 右側に余白を追加 */
    position: relative;
}

.release-date {
    font-size: 1.7lvw;
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 1lvw;
}

.description {
    font-size: 1.2lvw;
    line-height: 1.3;
    margin-bottom: 1.6lvw;
    flex-grow: 1;
    word-break: auto-phrase;
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-button {
    display: block;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
    margin-top: auto; /* ボタンを下部に配置 */
    margin-bottom: 10px;
    width: 60%;
}

.button-image {
    width: 100%;
    display: block;
}

.button-image:hover {
    transform: translateY(-3px);
}

.button-image:active {
    transform: translateY(3px);
}

/* 会社概要セクション */
.company-section {
    padding: 12.5lvw 0;
}

.company-content {
    display: flex;
    align-items: flex-end;
    gap: 3.15lvw;
    max-width: 70%;
    margin: 0 auto;
}

.company-title {
    flex: 0 0 13lvw;
    text-align: center;
}

.company-title-image {
    width: 100%;
}

.company-info {
    flex: 1;
    font-family: "Zen_Antique";
}

.company-item {
    display: flex;
    align-items: flex-start;
    padding: 1.05lvw;
    font-size: 1.7lvw;
    font-weight: 400;
    margin-bottom: 2.5lvw;
}

.company-item:last-child {
    margin-bottom: 0;
}

.company-label {
    flex: 0 0 8lvw;
    margin-right: 2lvw;
}

.company-value {
    word-break: auto-phrase;
    flex: 1;
    line-height: 1.3;
}

/* お問い合わせセクション */
.contact-section {
    text-align: center;
    padding: 44lvh 0 30lvh 0;
}

.contact-section .section-title {
    font-family: "Cinzel-Bold";
    font-size: 6.3lvw;
    color: black;
    margin-bottom: 6lvw;
}

.contact-description {
    font-family: "Zen_Antique";
    font-size: 2lvw;
    color: black;
    line-height: 1.2;
    margin-bottom: 7.5lvw;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.1lvw;
}

.contact-button-wrapper {
    margin-top: 2.1lvw;
}

.contact-btn {
    display: inline-block;
    width: 20%;
    vertical-align: bottom;
}

.contact-btn img {
    width: 100%;
    display: block;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.contact-btn:active {
    transform: translateY(3px);
}

/* フッター */
.footer {
    background-color: black;
    padding: 2.1lvw 0 1.1lvw;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-left: 2.5lvw;
    width: 6.7lvw;
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-nav {
    font-family: "Zen_Antique";
    font-size: 1.2lvw;
    margin-right: 2.5lvw;
}

.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 1.6lvw;
}

.footer-nav-list a {
    text-decoration: none;
    position: relative;
}

.footer-nav-list a:hover {
    color: var(--accent-red);
}
.footer-nav-list a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-smooth);
}
.footer-nav-list a:hover::after {
    width: 100%;
}

.footer-copyright {
    font-family: "Zen_Antique";
    text-align: center;
}

.footer-copyright p {
    color: var(--medium-gray);
    font-size: 0.8lvw;
}

/* ユーティリティクラス */
.mobile-only {
    display: none;
}

/* スクロールアニメーション用 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== レスポンシブデザイン ===== */

@media (max-width: 1024px) {
    /* ヘッダー */
    .header-logo {
        width: 4.2lvw;
    }
    .nav-list {
        gap: 2.3lvw;
    }
    .nav-list a {
        font-size: 1.5lvw;
    }

    /* 社是 */
    section#policy .policy-content {
        width: 110%;
    }

    /* はじめに */
    section#about {
        padding: 30lvw 0 50lvw;
        background-position-y: 15%;
    }

    /* 実績 */
    .description {
        font-size: 1.4lvw;
        margin-bottom: 2.3lvw;
    }

    /* 会社概要 */
    .company-item {
        font-size: 2lvw;
    }

    /* 問い合わせ */
    .contact-section {
        padding: 30lvw 0 15lvw;
    }

    /* フッター */
    .footer-nav {
        font-size: 2lvw;
    }
    .footer-nav-list {
        gap: 2.2lvw;
    }
    .footer-copyright p {
        font-size: 1.2lvw;
    }
}

/* タブレット（768px以下） */
@media (max-width: 768px) {
    /* ヘッダー */
    .desktop-nav {
        display: none;
    }

    /* ===== ハンバーガーボタン ===== */
    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 4.5lvw;
        height: 3.5lvw;
        position: relative; /* 3本線のposition:absoluteの基準点となる */
        z-index: 110; /* ナビゲーションメニューより手前に表示 */
    }

    /* ハンバーガーの3本線 */
    .hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000000; /* 初期状態の線の色は白 */
        mix-blend-mode: difference;
        position: absolute;
        left: 0;
        /* transformとtopの変化を0.3秒かけてアニメーションさせる */
        transition: transform 0.3s, top 0.3s, background-color 0.3s;
    }

    /* 1本目の線の初期位置 */
    .hamburger-line:nth-child(1) {
        top: 0;
    }

    /* 2本目の線の初期位置 */
    .hamburger-line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%); /* 垂直方向中央に配置 */
    }

    /* 3本目の線の初期位置 */
    .hamburger-line:nth-child(3) {
        bottom: 0;
    }

    /* JSによってボタンに .is-active が付いた時のスタイル（×印に変形） */
    .hamburger.is-active .hamburger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg); /* 中央に移動して45度回転 */
    }

    .hamburger.is-active .hamburger-line:nth-child(2) {
        transform: scaleX(0); /* 水平方向に縮んで見えなくなる */
    }

    .hamburger.is-active .hamburger-line:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg); /* 中央に移動して-45度回転 */
    }

    /* ===== ナビゲーションメニュー ===== */
    .mobile-nav {
        display: block;
        background-color: inherit;
        backdrop-filter: blur(15px); /* すりガラス効果 */
        -webkit-backdrop-filter: blur(15px);
        position: fixed;
        top: var(
            --header-height,
            64px
        ); /* ヘッダーの高さ分下に配置(JSで高さを設定) */
        left: 0;
        width: 100%;

        /* --- 表示・非表示のアニメーション設定 --- */
        transform: translateY(0); /* 位置は動かさない */
        opacity: 0; /* 初期状態では透明 */
        visibility: hidden; /* 操作もできなくする */
        /* transform, opacity, visibilityの変化を0.5秒かけてアニメーション */
        transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;

        z-index: 90; /* ヘッダーよりは後ろ、メインコンテンツよりは手前 */
        padding: 2rem 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    /* JSによってメニューに .is-active が付いた時のスタイル */
    .mobile-nav.is-active {
        transform: translateY(0);
        opacity: 1; /* 不透明にする（フェードイン） */
        visibility: visible; /* 表示して操作可能にする */
    }

    /* メニュー項目のリスト */
    .mobile-nav-list {
        display: flex;
        flex-direction: column; /* 項目を縦に並べる */
        align-items: center; /* 中央揃え */
        gap: 1.5rem; /* 各項目の間隔 */
    }

    .mobile-nav-item {
        width: 100%;
        text-align: center;
    }

    /* メニューの各項目 */
    .mobile-nav-item a {
        font-family: "Zen_Antique";
        font-size: 1.5rem;
        font-weight: 500;
        color: #ffffff; /* 文字色を白に固定 */
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* 文字に影を付けて可読性を確保 */
        padding: 0.5rem 1rem;
        transition: color 0.3s, transform 0.3s;
        display: block;
    }

    /* マウスホバー時の効果 */
    .mobile-nav-item a:hover {
        color: #f0f0f0;
        transform: scale(1.05); /* 少し拡大してフィードバックを返す */
    }

    /* .hamburger-btn {
        display: flex;
    } */

    .mobile-only {
        display: block;
    }

    .header-logo {
        width: 4lvw;
    }

    /* 社是 */
    section#policy .policy-content {
        width: 185%;
    }

    /* はじめに */
    section#about {
        background-position-y: 0;
        padding: 20lvw 0 50lvw;
    }
    .about-contents {
        column-gap: 7lvw;
    }
    .about-image {
        width: 12%;
    }
    .about-explain {
        font-size: 2.5lvw;
    }
    .about-agent {
        font-size: 3lvw;
    }

    /* 実績セクション */
    .work-image {
        top: -20%;
    }

    .card-title {
        font-size: 4.5lvw;
    }

    .card-content {
        flex-direction: column;
    }

    .card-image {
        flex: none;
    }

    .card-details {
        flex: none;
    }

    .release-date {
        font-size: 3lvw;
    }
    .description {
        font-size: 2.5lvw;
        margin-bottom: 5lvw;
    }
    .project-button {
        width: 40%;
    }

    /* 会社概要セクション */
    .company-content {
        align-items: flex-start;
        gap: 5lvw;
    }

    .company-title {
        flex: 0 0 15lvw;
    }

    .company-info {
        margin-top: 5lvw;
    }

    .company-item {
        flex-direction: column;
        text-align: left;
        font-size: 2.5lvw;
    }

    .company-label {
        flex: none;
        margin-right: 0;
        margin-bottom: 1lvw;
    }

    /* お問い合わせセクション */
    .contact-section {
        padding: 25lvw 0 20lvw;
    }
    .contact-section .section-title {
        font-size: 8lvw;
        margin-bottom: 1lvw;
    }
    .contact-description {
        font-size: 3lvw;
    }

    /* フッター */
    .footer-content {
        margin-bottom: 1.5lvw;
    }

    .footer-nav {
        font-size: 2.2lvw;
    }

    .footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2lvw;
    }

    .footer-copyright p {
        font-size: 1.2lvw;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    /* ヘッダー */
    .header-container {
        padding: 3lvw 3.5lvw;
    }
    .header-logo {
        width: 5lvw;
    }

    /* セクションタイトル */
    .section-title {
        margin-bottom: 7lvw;
    }

    /* ヒーローセクション */
    .top-section {
        padding: 15lvw 0 7lvw;
    }

    /* 社是 */
    section#policy .policy-content {
        width: 230%;
    }

    /* はじめに */
    section#about {
        background-position-y: 30%;
        padding: 30lvw 0 30lvw;
    }

    .about-explain {
        font-size: 3lvw;
    }
    .about-agent {
        font-size: 3.2lvw;
        margin-top: 3lvw;
    }

    /* 実績セクション */
    .work-image {
        top: -15%;
    }

    .business-grid {
        gap: 7lvw;
    }

    .card-title {
        font-size: 5lvw;
    }

    .card-content {
        padding: 2.5lvw;
    }

    .card-details {
        padding: 0 2.5lvw; /* スマートフォンでは余白をさらに調整 */
    }

    .release-date {
        font-size: 3lvw;
    }

    .description {
        font-size: 3lvw;
        margin-bottom: 6lvw;
    }

    .project-button {
        width: 40%;
    }

    /* 会社概要セクション */
    .company-content {
        gap: 7lvw;
        align-items: flex-start;
    }

    .company-info {
        margin-top: 3lvw;
    }

    .company-item {
        padding: 3.5lvw;
        margin-bottom: 0;
    }

    .company-label {
        font-size: 3.8lvw;
        margin-right: 0;
    }

    .company-value {
        font-size: 3.5lvw;
    }

    /* お問い合わせセクション */
    .contact-section {
        padding: 10lvw 0;
    }

    .contact-description {
        font-size: 3.5lvw;
    }

    .contact-btn {
        width: 25%;
    }

    /* フッター */
    .footer {
        padding: 5lvw 0 3.5lvw;
    }

    .footer-content {
        margin-bottom: 3.5lvw;
    }

    .footer-logo {
        width: 15lvw;
    }

    .footer-nav-list {
        font-size: 3.2lvw;
    }

    .footer-nav-list li {
        writing-mode: vertical-lr;
    }

    .footer-copyright p {
        font-size: 2.5lvw;
    }
}
