/* リセット・背景 */
* { box-sizing: border-box; margin: 0; padding: 0; }
.sp { display: none; }
.pc { display: block; }
body {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "Times New Roman", serif;
    color: #fff;
    background: linear-gradient(-45deg, #000, #111, #222, #000);
    background-size: 800% 800%;
    animation: gradientBG 25s ease infinite;
    line-height: 1.6;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ヒーロー */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
    text-align: center;
    position: relative;
}
.logo {
    width: 20vw;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}
.logo:nth-of-type(1) {
    opacity: 0;
    animation: logoFadeIn 1s 1s forwards, logoPulse 3s 3s infinite;
}
.logo:nth-of-type(2) {
    opacity: 0;
    animation: fadein 1s forwards;
    animation-delay: 2.5s;
}
.catchphrase {
    opacity: 0;
    font-size: 2rem;
    margin-top: 2rem;
    animation: fadein 1s forwards;
    animation-delay: 4s;
}
@keyframes fadein {
    to { opacity: 1; }
}
@keyframes logoFadeIn { to { opacity: 1; } }
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ハンバーガーメニュー */
.nav-toggle {
    width: 2rem;
    height: 1.5rem;
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    z-index: 3000;
}
.nav-toggle .bar {
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: #fff;
    transition: 0.4s;
    transform-origin: center;
}
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg);
}
.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg);
}
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s, transform 1s;
    z-index: 2000;
}
.nav-menu.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.nav-menu li {
    width: 70%;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #555;
}
.nav-menu li:last-child {
    border-bottom: none;
}
.nav-menu li a {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* ポップアップ */
.content {
    background-image: url('../img/img_bg003.webp');
    background-color: rgba(0,0,0,0.9);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10vh 5vw;
}
.popuptext {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vh;
    opacity: 0;
    transform: translateY(1rem);
    transition: 2s;
}
.popuptext.visible {
    opacity: 1;
    transform: translateY(0);
}
.popuptext li {
    font-size: 1.75rem;
    padding: 0.75rem;
    text-align: center;
    text-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.8);
}

/* 横スクロール（PC） */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100vw;
    height: calc(100vw * 4);
}
.horizontal-scroll-content {
    display: flex;
    width: 500vw;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: #2e3139;
}
.scroll-item {
    flex: 0 0 100vw;
    padding: 10vh 5vw 5vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.scroll-item h2 {
    font-size: 1rem;
    padding-bottom: 1rem;
}
.scroll-item p.BIG {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #f4e8b5;
}

/* テキスト＋画像 */
.scroll-content-inner {
    display: flex;
    gap: 2rem;
}
.text-block, .image-block { flex: 1; }
.text-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.text-block h2,
.text-block .BIG {
    margin: 0;
}
.text-block .pc {
    margin-top: auto;
}
.text-block p {
    font-size: 1.2rem;
    line-height: 1.5;
}
.image-block img {
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(1.5);
}
.scroll-item.visible .scroll-content-inner img {
    animation: popToFit 1s ease forwards;
}
@keyframes popToFit {
    0% { opacity: 0; transform: scale(1.5); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* 会社情報 */
.company-info {
    width: 90%;
    max-width: 800px;
    margin: 5rem auto;
    padding: 2rem;
      background: #2e3139;
    border-radius: 0.5rem;
}
.company-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}
.company-table {
    width: 100%;
    border-collapse: collapse;
}
.company-table th {
    text-align: left;
    font-weight: bold;
    padding: 0.8rem 0;
    font-size: 1rem;
}
.company-table td {
    padding: 0.8rem 0;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
}
.company-table td a {
    text-decoration: none;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.7;
}
.read-more {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #f4e8b5;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.3s;
    text-align: right;
    float: right;
}
.read-more::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #f4e8b5;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: width 0.3s;
    transform-origin: right;
}
.read-more:hover {
    color: #fff;
}
.read-more:hover::after {
    width: 0;
}

/* フッター */
.footer {
    text-align: center;
    padding: 1rem 0;
}
.page-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.page-top.show {
    opacity: 1;
    visibility: visible;
}

/* 出現アニメーション */
.scroll-item h2,
.scroll-item > p,
.scroll-content-inner img {
    opacity: 0;
    transform: translateY(1rem);
    transition: 2s;
    transition-delay: 0.4s;
}
.scroll-item.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.scroll-item.visible > p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.scroll-item .text-block p {
    opacity: 0;
    transform: translateY(1rem);
    transition: 2s;
}
.scroll-item.visible .text-block p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

/* レスポンシブ（スマホ用） */
@media (max-width: 768px) {
    .sp { display: block; }
    .pc { display: none; }
.nav-menu li a {
    font-size: 1.2rem;
}
    .hero {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        text-align: center;
    }
    .hero .logo {
        width: 60vw;
        max-width: 250px;
    }
    .catchphrase {
        font-size: 1.5rem;
        margin-top: 1rem;
        line-height: 1.5;
    }
    .popuptext {
        height: auto;
        padding: 1rem;
    }
    .popuptext li {
        font-size: 1.25rem;
        text-align: left;
        padding: .25rem;
        line-height: 1.7;
    }
    .horizontal-scroll-wrapper {
        height: auto;
        overflow-x: hidden;
        position: static !important;
    }
    .horizontal-scroll-content {
        display: block;
        width: 100%;
        height: auto;
        position: static;
    }

    .scroll-item {
        padding: 0 1rem 3rem;
        position: relative;
    }

    .scroll-content-inner {
        position: relative;
        display: block;
    }

    .image-block img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        display: block;
    }

    .text-block {
        position: absolute;
        top: 0.25rem;
        left: 0.5rem;
        transform: none;
        width: auto;
        text-align: left;
        color: #fff;
        z-index: 2;
    }

    .text-block h2 {
        font-size: 1.5rem;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    .text-block .BIG {
        position: relative;
        font-size: 1.2rem;
        top: -12rem;
        padding: 0;
        text-align: left;
        line-height: 1.6;
    }
    .company-info {
        width: 100%;
        margin: 4rem auto;
        padding: 1rem;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }
    .company-info h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
        border-bottom: 1px solid #555;
        padding-bottom: 0.5rem;
    }
    .company-table tr {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #333;
    }
    .company-table th {
        display: block;
        width: 100%;
        font-weight: bold;
        font-size: 1rem;
        color: #aaa;
        margin-bottom: 0.5rem;
    }
    .company-table td {
        display: block;
        width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
        color: #fff;
        padding-bottom: 1rem;
    }
.read-more {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
    .footer {
        font-size: 0.75rem;
        padding: 1rem;
    }
    .page-top {
        bottom: 1rem;
        right: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}
