@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #050505;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-accent: #c9a76d;
    /* ゴールド系 */
    --color-surface: #111111;
    --color-surface-hover: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-sans: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-serif: 'Montserrat', 'Noto Sans JP', sans-serif;
    /* Forcing sans across the board */
    --font-en: 'Montserrat', sans-serif;

    /* Dimensions */
    --header-height: 80px;
    --container-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

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

.flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    background: transparent;
}

.header.is-scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-accent);
    line-height: 1;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.sp-nav-logo {
    display: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 14px;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-contact {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    letter-spacing: 0.1em;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}


/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.4);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    transform: translateY(-15vh);
    /* 地球に被らないよう上へ移動（少し下に調整） */
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-title-main {
    font-family: var(--font-en);
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-sub {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--color-accent);
}

.hero-text {
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sp-br {
    display: none;
}

.pc-br {
    display: inline;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.plane-wrap {
    color: var(--color-text);
    animation: fly-down 2.5s infinite;
    opacity: 0.8;
}

.plane-icon {
    display: block;
    width: 22px;
    height: 22px;
    transform: rotate(180deg);
    /* 機首を下に向ける */
}

@keyframes fly-down {
    0% {
        transform: translateY(-70px);
        opacity: 0;
    }

    40% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(30px);
        opacity: 0;
    }
}

.scroll-indicator::before {
    content: '';
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-accent));
    animation: scroll-thickness 2.5s infinite;
}

@keyframes scroll-thickness {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }

    40% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    60% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-en {
    display: block;
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.section-ja {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.section-desc {
    margin-top: 20px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    border: 1px solid var(--color-border);
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.btn-more::after {
    content: '→';
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.btn-more:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-more:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   Message
   ========================================================================== */
.message {
    background-color: var(--color-bg);
}

.message-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

.message-text-wrap {
    flex: 1;
}

.message-catch {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.message-text {
    font-size: 15px;
    line-height: 2.2;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.message-sign {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sign-title {
    font-size: 12px;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.sign-name {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 0.2em;
}

.sign-en {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-text-muted);
}

.message-image {
    flex: 1;
    position: relative;
}

.message-image img {
    width: 100%;
    filter: grayscale(100%) contrast(1.2) brightness(0.8);
    transition: filter 0.5s ease;
}

.message-image:hover img {
    filter: grayscale(0%) contrast(1.1) brightness(0.9);
}

.officers-caption {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
}

.officer {
    line-height: 1.3;
}

.officer.coo,
.officer.ceo {
    transform: translateY(12px);
}

.officer span {
    font-size: 10px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 4px;
}

/* ==========================================================================
   Group
   ========================================================================== */
.group {
    background-color: var(--color-surface);
}

.group-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.group-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

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

.group-num {
    font-family: var(--font-en);
    font-size: 80px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    line-height: 1;
    position: absolute;
    top: -40px;
    left: -40px;
    z-index: 0;
}

.group-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.group-name {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.group-sub {
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.group-detail {
    font-size: 15px;
    line-height: 2;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.group-detail .category {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--color-border);
    font-size: 12px;
    margin-bottom: 20px;
}

.group-visual {
    flex: 1;
    height: 400px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.elama-visual {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beyond-bg {
    background-image: url('../img/beyond_global.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.beyond-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.himorogi-box {
    background: #ffffff;
}

.himorogi-logo {
    width: 340px;
}

/* ==========================================================================
   News
   ========================================================================== */
.news {
    background-color: var(--color-bg);
}

.news-list {
    max-width: 800px;
    margin: 0 auto 60px;
    border-top: 1px solid var(--color-border);
}

.news-list li {
    border-bottom: 1px solid var(--color-border);
}

.news-list a {
    display: flex;
    align-items: center;
    padding: 30px 20px;
    transition: background-color 0.3s ease;
}

.news-list a:hover {
    background-color: var(--color-surface);
}

.news-list time {
    font-family: var(--font-en);
    font-size: 16px;
    width: 120px;
    color: var(--color-text-muted);
}

.news-cat {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    margin-right: 30px;
}

.news-title {
    font-size: 15px;
    flex: 1;
}

/* ==========================================================================
   Company / Recruit
   ========================================================================== */
.company-recruit {
    padding: 0;
}

.cr-wrap {
    display: flex;
    height: 500px;
}

.cr-box {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cr-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.cr-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.5s ease;
}

.cr-box:hover .cr-bg {
    transform: scale(1.05);
}

.cr-box:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.cr-content {
    position: relative;
    z-index: 1;
}

.cr-en {
    display: block;
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.cr-ja {
    font-family: var(--font-serif);
    font-size: 32px;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    background-color: var(--color-surface);
}

.contact-box {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info p {
    margin-top: 20px;
    color: var(--color-text-muted);
}

.btn-contact-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 80px;
    background: var(--color-text);
    color: var(--color-bg);
    font-family: var(--font-serif);
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-contact-large:hover {
    background: var(--color-accent);
    color: #000;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #000;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 12px;
    color: var(--color-text-muted);
}

.copyright {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .message-content {
        flex-direction: column;
    }

    .group-item,
    .group-item.reverse {
        flex-direction: column;
        align-items: flex-start; /* 左端を完璧に揃える */
        gap: 40px;
    }

    .group-info {
        width: 100%;
    }

    /* スマホ画面の端からはみ出さないように、数字の位置を微調整 */
    .group-num {
        left: 0;
        top: -30px;
    }

    .group-visual {
        width: 100%;
        height: 280px; /* タブレット・スマホ用の高さを明示的に確保し、背景画像が消えるのを防止 */
        flex: none; /* フレックス縮小を防止 */
    }
}

@media screen and (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .header-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        gap: 40px;
    }

    .header-nav.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* スマホメニュー内のロゴ表示・アニメーション */
    .sp-nav-logo {
        display: block;
        margin-bottom: 10px;
        transform: translateY(-20px);
        opacity: 0;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    }

    .header-nav.is-active .sp-nav-logo {
        transform: translateY(0);
        opacity: 1;
    }

    .sp-nav-logo a {
        display: flex;
        align-items: center;
        gap: 12px;
        justify-content: center;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-list a {
        font-size: 20px;
        letter-spacing: 0.1em;
    }

    .btn-contact {
        padding: 15px 40px;
        font-size: 16px;
        width: 80%;
        max-width: 300px;
        text-align: center;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.is-active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .hero-title-main {
        font-size: 32px;
    }

    .hero-title-sub {
        font-size: 16px;
    }

    .hero-content {
        padding-left: 5%;
    }

    .contact-box {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    /* お知らせ (News) レスポンシブ調整 */
    .news-list a {
        flex-wrap: wrap;
        padding: 20px 15px;
    }

    .news-list time {
        width: auto;
        margin-right: 20px;
        margin-bottom: 10px;
    }

    .news-cat {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .news-title {
        width: 100%;
        flex: none;
    }

    /* 会社概要・採用情報 (Company / Recruit) レスポンシブ調整 */
    .company-recruit {
        padding: 80px 0;
    }

    .cr-wrap {
        flex-direction: column;
        height: auto;
        gap: 24px;
    }

    .cr-box {
        padding: 15vw 0;
        border-radius: 8px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom .flex-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .officers-caption {
        grid-template-columns: repeat(2, 1fr);
    }

    .officer.cso {
        order: 1;
        transform: translateX(12px);
    }

    .officer.cfo {
        order: 2;
        transform: translateX(-12px);
    }

    .officer.coo {
        order: 3;
        transform: translateY(0);
    }

    .officer.ceo {
        order: 4;
        transform: translateY(0);
    }

    .sp-br {
        display: inline;
    }

    .pc-br {
        display: none;
    }

    /* 各コンテンツの日本語タイトルのサイズ調整 (元の約70%) */
    .section-ja {
        font-size: 25px;
    }

    .group-name {
        font-size: 22px;
    }

    .cr-ja {
        font-size: 22px;
    }
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */
.scroll-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.scroll-top.is-visible {
    opacity: 0.7;
    visibility: visible;
}

.scroll-top.is-visible:hover {
    opacity: 1;
}

.plane-wrap-up {
    color: var(--color-accent);
    animation: fly-up 2.5s infinite;
    opacity: 0.8;
}

.plane-icon-up {
    display: block;
    width: 22px;
    height: 22px;
    transform: rotate(0deg);
    /* Upward direction */
}

@keyframes fly-up {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    40% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-70px);
        opacity: 0;
    }
}

.scroll-top::after {
    content: '';
    width: 2px;
    height: 60px;
    background: linear-gradient(to top, transparent, var(--color-accent));
    animation: scroll-up-thickness 2.5s infinite;
}

@keyframes scroll-up-thickness {
    0% {
        transform: scaleY(0);
        transform-origin: bottom;
        opacity: 0;
    }

    40% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }

    60% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
    }
}

    /* Tablet & Mobile responsive for scroll top button */
@media (max-width: 768px) {
    .scroll-top {
        right: 20px;
        bottom: 20px;
    }
}

/* ==========================================================================
   Coming Soon Modal
   ========================================================================== */
.coming-soon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.coming-soon-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.coming-soon-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.coming-soon-modal-content {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 60px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.coming-soon-modal.is-active .coming-soon-modal-content {
    transform: translateY(0);
}

.coming-soon-title {
    font-family: var(--font-en);
    font-size: 24px;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.coming-soon-text {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 30px;
}

.coming-soon-close {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 10px 30px;
    font-size: 14px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-close:hover {
    background: var(--color-text);
    color: var(--color-bg);
}