/* ==================================================
   BASIC
================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;

    font-family:
        "游明朝",
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        serif;
}


/* ==================================================
   TOP
================================================== */

.hero {
    position: relative;

    height: 100vh;

    overflow: hidden;

    background: #000;
}


.hero-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* ==================================================
   PC：文字アニメーション
================================================== */

.message {
    position: absolute;

    left: 22%;
    bottom: 5%;

    width: 460px;
    height: 260px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    color: #fff;

    z-index: 10;
}


/* 通常の英字 */

.line1 {
    width: 100%;

    font-family:
        "Cormorant Garamond",
        serif;

    font-weight: 400;

    font-size: 2rem;

    line-height: 1.8;

    letter-spacing: .02em;
}


/* 日本語 */

.line2 {
    width: 100%;

    margin-top: 14px;

    font-family:
        "游明朝",
        "Yu Mincho",
        "YuMincho",
        serif;

    font-weight: 400;

    font-size: 1rem;

    line-height: 1.8;

    letter-spacing: .08em;
}


/* 公開予定 */

.line3 {
    width: 100%;

    margin-top: 8px;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.3rem;

    line-height: 1.8;

    letter-spacing: .08em;
}


/* 文字のフェード */

.fade {
    opacity: 0;

    filter: blur(14px);

    transform: translateY(10px);

    transition:
        opacity 1.6s ease,
        filter 1.6s ease,
        transform 1.8s ease;
}


.show {
    opacity: 1;

    filter: blur(0);

    transform: translateY(0);
}


/* ==================================================
   最初の黒画面
================================================== */

.intro-overlay {
    position: absolute;

    inset: 0;

    z-index: 30;

    background: #000;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 1;

    transition:
        opacity 2s ease;
}


.intro-overlay.hide {
    opacity: 0;

    pointer-events: none;
}


.intro-message {
    color: #fff;

    font-family:
        "游明朝",
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        serif;

    font-size:
        clamp(
            1.2rem,
            2vw,
            1.8rem
        );

    letter-spacing: .12em;
}


/* ==================================================
   スマートフォン用説明文
================================================== */

.mobile-description {
    display: none;
}


/* ==================================================
   NEWS
================================================== */

.visual-news {
    container-type: inline-size;
    position: relative;

    height: 100vh;

    overflow: hidden;

    background: #000;
}


.news-background {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* ==================================================
   NEWS CONTENT
================================================== */

.news {
    position: absolute;

    left: 25%;
    top: 10%;

    width: 58%;

    z-index: 10;
}


.news h2 {
    font-family:
        "Cormorant Garamond",
        serif;

    font-style: italic;

    font-size:
        clamp(
            2.2rem,
            3.5vw,
            3.6rem
        );

    font-weight: 500;

    line-height: 1;

    margin-bottom: 4%;
}


.news article {
    position: relative;

    width: 55%;

    max-width: 500px;

    margin-bottom: 5.5%;

    font-size:
        clamp(
            .9rem,
            1.05vw,
            1.15rem
        );

    line-height: 1.45;
}


.news article:nth-of-type(2) {
    margin-left: 15%;
}


.news article:nth-of-type(3) {
    margin-left: 30%;
}


.news article:nth-of-type(4) {
    margin-left: 45%;
}


.news time {
    display: block;

    font-size: .85em;

    margin-bottom: 4px;
}


.news a {
    color: #fff;

    text-decoration: none;

    display: block;

    max-width: 480px;

    line-height: 1.6;
}


.news .more {
    display: block;

    margin-left: 55%;

    margin-top: 0;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1rem;

    font-style: italic;
}


.news article a {
    display: inline-block;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


.news article a:hover {
    transform:
        translateY(4px);

    opacity: .6;
}

.visual-top3 {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.top3-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-placeholder {
    width: 100%;
    min-height: 500px;
}

.contact-section iframe {
    display: block;
    width: 100%;
    max-width: 840px;
    height: 1100px;
    margin: 0 auto;
    border: 0;
}

/* ==================================================
   NEWS ARCHIVE MODAL
================================================== */

.news .more {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.news-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.news-modal.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.news-modal-backdrop {
    position: absolute !important;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    cursor: pointer;
}

.news-modal-window {
    position: relative !important;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100vw - 48px));
    height: min(800px, 82vh);
    height: min(800px, 82dvh);
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .55);
    background: #111;
    color: #fff;
    outline: none;
}

.news-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.news-modal-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1;
}

.news-modal-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.news-modal-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 8px 10px 0;
}

.news-archive-article {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    font-size: 1rem;
    line-height: 1.7;
}

.news-archive-article a {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
}

.news-archive-article a:hover {
    opacity: .65;
}

.news-date {
    display: block;
    margin-bottom: 6px;
    font-size: .82em;
    opacity: .75;
}

.news-title {
    display: block;
    overflow-wrap: anywhere;
}

.news-archive-status {
    padding: 12px 0;
    line-height: 1.8;
}

body.news-modal-open {
    overflow: hidden;
}

/* NEWSの配置と幅を、NEWSエリアの大きさに合わせて調整 */
.news {
    left: 25%;
    width: 58%;
    top: clamp(5%, 8vh, 10%);
}

.news h2 {
    font-size: clamp(2rem, 3.5cqw, 3.6rem);
    margin-bottom: 4%;
}

.news article {
    width: 45%;
    max-width: 500px;
    margin-bottom: clamp(12px, 2.8cqw, 5.5%);
    font-size: clamp(.82rem, 1.05cqw, 1.15rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* 段階的にずらす配置を保ち、ずらす幅をエリア基準にする */
.news article:nth-of-type(2) { margin-left: 12%; }
.news article:nth-of-type(3) { margin-left: 24%; }
.news article:nth-of-type(4) { margin-left: 36%; }
.news a { max-width: 100%; overflow-wrap: anywhere; }
.news .more { margin-left: 42%; }

@media screen and (max-width: 600px) {
    .news-modal {
        padding: 0;
    }

    .news-modal-window {
        width: 100%;
        height: 86vh;
        height: 86dvh;
        padding: 24px 22px;
        border-left: 0;
        border-right: 0;
    }

    .news-modal-header {
        padding-bottom: 18px;
    }

    .news-modal-list {
        padding-top: 20px;
    }
}

/* ========================================
   TOP 3 MENU
======================================== */
.visual-top3 {
    position: relative;
    isolation: isolate;
}

.top3-image {
    position: relative;
    z-index: 0;
}

.main-menu {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 45%;
    z-index: 5;
    color: #fff;
    font-family: "Cormorant Garamond", "Yu Mincho", serif;
}

.menu-item {
    margin: 0 0 clamp(14px, 2.2vh, 28px);
}

.menu-item summary {
    display: block;
    list-style: none;
    position: relative;
    padding-left: 1.5em;
    color: #fff;
    font-size: clamp(1.0rem, 1.6vw, 1.6rem);
    line-height: 1.8;
    cursor: pointer;
}

.menu-item summary::-webkit-details-marker {
    display: none;
}

.menu-item summary::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 0;
    font-size: .68em;
    transition: transform .2s ease;
}

.menu-item[open] > summary::before {
    transform: rotate(90deg);
}

.sub-menu {
    list-style: none;
    margin: .5em 0 0 2em;
    padding: 0;
}

.sub-menu li {
    margin: 0 0 .45em;
}

.sub-menu a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(.9rem, 1.15vw, 1.2rem);
    line-height: 1.7;
    opacity: .88;
}

.sub-menu a:hover {
    opacity: .6;
}

@media screen and (max-width: 1024px) {
    .main-menu {
        top: 6%;
        left: 8%;
        width: 70%;
    }
    .menu-item {
        margin-bottom: 12px;
    }
    .menu-item summary {
        font-size: clamp(1rem, 3.2vw, 1.5rem);
    }
    .sub-menu a {
        font-size: clamp(.85rem, 2.6vw, 1.1rem);
    }
}

.contact-section h2 {
    font-size: 3rem;
    margin-top: 100px;
    text-align: center;
    margin-bottom: 24px;
}

/* ========================================
   FOOTER / SNS
======================================== */
.site-footer {
    padding: 30px 20px 24px;
    background: #000;
    color: #fff;
    text-align: center;
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 42px);
    margin-bottom: 18px;
}
.social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #fff;
    opacity: .9;
}
.social-item svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.social-note {
    width: auto;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.06em;
}
.footer-copyright {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: .85rem;
    letter-spacing: .04em;
    opacity: .75;
}
@media screen and (max-width: 600px) {
    .site-footer { padding: 24px 16px 20px; }
    .footer-social { gap: 28px; margin-bottom: 14px; }
}

/* SNSアイコン共通 */
.site-footer .social-item {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* マウスを乗せたとき */
.site-footer .social-item:hover {
    text-decoration: none;
    transform: translateY(3px);
    opacity: 0.7;
}

/* クリックしている間 */
.site-footer .social-item:active {
    transform: translateY(5px);
}

/* ==================================================
   画面幅に応じたレイアウト調整
   ================================================== */

/* タブレット（画面幅601〜1024px） */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .hero { height: auto; min-height: 0; aspect-ratio: 1920 / 1300; }
    .hero-image { width: 100%; height: 100%; object-fit: contain; }
    .message { display: none; }
    .mobile-description { display: block; padding: 36px 28px 40px; border-top: 1px solid #555; border-bottom: 1px solid #555; background: #000; color: #fff; text-align: center; font-size: 1rem; line-height: 1.9; letter-spacing: .06em; }
    .mobile-description p { margin: 0; }
    .mobile-description p + p { margin-top: 10px; }
    .visual-news { height: auto; min-height: 0; overflow: visible; }
    .news-background { display: none; }
    .news { position: static; width: 100%; padding: 42px 8% 60px; }
    .news article, .news article:nth-of-type(2), .news article:nth-of-type(3), .news article:nth-of-type(4) { width: 80%; max-width: none; margin: 0 0 24px; font-size: 1rem; }
    .news .more { margin-left: 0; }
    .visual-top3 { height: auto; min-height: 0; overflow: visible; }
    .top3-image { width: 100%; height: auto; object-fit: contain; }
    .main-menu { top: 6%; left: 8%; width: 70%; }
    .contact-section { min-height: 0; padding: 48px 6%; }
    .contact-section h2 { margin-top: 0; font-size: 2.5rem; }
    .contact-section iframe { width: 100%; max-width: 840px; }
}

/* タブレット（画面幅601〜1024px）：画像に重ね、全メニューを常時表示 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
.visual-top3 {
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0;
    overflow: visible !important;
    background: #000;
}

    .visual-top3 > .top3-picture {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

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

    /* 画像左側の黒い余白にメニューを配置 */
    .visual-top3 > .main-menu {
        position: absolute !important;
        top: 5%;
        right: auto !important;
        bottom: auto !important;
        left: 5% !important;
        width: 43% !important;
        max-width: 43%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        background: transparent;
        color: #fff;
        z-index: 5;
    }

    .visual-top3 .menu-item {
        margin: 0 0 clamp(8px, 1.4vw, 14px);
    }

    /* タブレットでも各メニューとリンクを最初から表示し、開閉を無効化 */
    .visual-top3 .menu-item > summary {
        display: block;
        cursor: default;
        list-style: none;
        padding-left: 0;
        font-size: clamp(1rem, 2.1vw, 1.35rem);
        line-height: 1.4;
        pointer-events: none;
    }

    .visual-top3 .menu-item > summary::-webkit-details-marker {
        display: none;
    }

    .visual-top3 .menu-item > summary::before {
        content: none !important;
    }

    .visual-top3 .menu-item > .sub-menu,
    .visual-top3 .menu-item:not([open]) > .sub-menu,
    .visual-top3 .menu-item[open] > .sub-menu {
        display: block !important;
        margin: 4px 0 0 1em;
        padding: 0;
        list-style: none;
    }

    .visual-top3 .sub-menu li {
        margin: 0 0 5px;
    }

    .visual-top3 .sub-menu a {
        display: inline-block;
        color: #fff;
        font-size: clamp(.9rem, 1.7vw, 1.1rem);
        line-height: 1.4;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .visual-top3 .mobile-contact-menu a,
    .visual-top3 .mobile-contact-menu a:link,
    .visual-top3 .mobile-contact-menu a:visited,
    .visual-top3 .mobile-contact-menu a:hover,
    .visual-top3 .mobile-contact-menu a:active {
        color: #fff !important;
        text-decoration: none !important;
    }
}

/* スマートフォン（画面幅600px以下） */
@media screen and (max-width: 1024px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero { height: auto; min-height: 0; aspect-ratio: auto; overflow: visible; }
    .hero-image { content: url("top1-sp.png"); display: block; width: 100%; height: auto; object-fit: contain; }
    .message { display: none !important; }
    .intro-overlay { position: fixed; inset: 0; width: 100%; height: 100%; }
    .mobile-description { display: block; width: 100%; margin: 0; padding: 42px 24px 48px; border-top: 1px solid #555; border-bottom: 1px solid #555; background: #000; color: #fff; text-align: center; font-size: .98rem; line-height: 1.9; letter-spacing: .04em; }
    .mobile-description p { margin: 0; }
    .mobile-description p + p { margin-top: 10px; }

    .visual-news { position: relative; height: auto; min-height: 0; overflow: visible; background: #000; }
    .news-background { display: none; }
    .news { position: static; width: 100%; padding: 36px 24px 52px; }
    .news h2 { font-size: 2.5rem; margin-bottom: 28px; }
    .news article, .news article:nth-of-type(2), .news article:nth-of-type(3), .news article:nth-of-type(4) { width: 100%; max-width: none; margin: 0 0 24px; font-size: .95rem; line-height: 1.65; }
    .news .more { margin: 8px 0 0; }

    /* TOP3：スマートフォンでは画像の黒い余白にメニューを重ねる */
    .visual-top3 {
        position: relative;
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
        padding: 0;
        background: #000;
    }
    .visual-top3 > .top3-picture {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    .visual-top3 .top3-image {
        display: block;
        width: 100%;
        height: auto !important;
        max-width: 100%;
        object-fit: contain;
    }
    .visual-top3 > .main-menu {
        position: absolute !important;
        top: 40%;
        right: auto !important;
        bottom: auto !important;
        left: 5% !important;
        width: 90% !important;
        max-width: 90%;
        margin: 0;
        padding: 0 2% 2%;
        box-sizing: border-box;
        background: transparent;
        color: #fff;
        z-index: 5;
    }
    .visual-top3 .menu-item {
        margin: 0 0 clamp(8px, 2.2vw, 16px);
    }

    /* メニュー項目とリンクは最初からすべて表示し、開閉操作をなくす */
    .visual-top3 .menu-item > summary {
        display: block;
        cursor: default;
        list-style: none;
        padding-left: 0;
        font-size: clamp(.9rem, 4.2vw, 1.05rem);
        line-height: 1.45;
    }
    .visual-top3 .menu-item > summary::-webkit-details-marker { display: none; }
    .visual-top3 .menu-item > summary::before { content: none !important; }
    .visual-top3 .menu-item > summary { pointer-events: none; }
    .visual-top3 .menu-item > .sub-menu,
    .visual-top3 .menu-item:not([open]) > .sub-menu,
    .visual-top3 .menu-item[open] > .sub-menu {
        display: block !important;
        margin: 4px 0 0 1em;
        padding: 0;
        list-style: none;
    }
    .visual-top3 .sub-menu li { margin: 0 0 4px; }
    .visual-top3 .sub-menu a {
        display: inline-block;
        color: #fff;
        font-size: clamp(.82rem, 3.8vw, .98rem);
        line-height: 1.4;
        text-decoration: none;
        overflow-wrap: anywhere;
    }
    
/* 携帯版CONTACTリンクの色と下線を統一 */
.visual-top3 .mobile-contact-menu a,
.visual-top3 .mobile-contact-menu a:link,
.visual-top3 .mobile-contact-menu a:visited,
.visual-top3 .mobile-contact-menu a:hover,
.visual-top3 .mobile-contact-menu a:active {
    color: #fff !important;
    text-decoration: none !important;
}


    /* CONTACT見出しとフォームの間に余白を設ける */
    .contact-section {
        position: relative;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0;
        padding: 38px 18px 40px;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, .22);
        overflow-x: clip;
    }
    .contact-section .contact-inner {
        width: 100%;
        max-width: 840px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .contact-section h2,
    .contact-inner h2 {
        margin: 0 0 30px !important;
        padding: 0;
        font-size: clamp(2rem, 9vw, 2.6rem);
        line-height: 1.2;
        text-align: center;
    }
    .contact-section iframe {
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: 1100px;
        margin: 0 auto;
        border: 0;
        box-sizing: border-box;
    }
    .visual-top3, .contact-section, .contact-inner { max-width: 100%; }
    .top3-picture, .top3-image { max-width: 100%; }
    .top3-image { width: 100%; height: auto !important; }
    .site-footer { padding: 24px 16px 20px; }
}

/* スマートフォン専用CONTACTリンクは、PC・タブレットでは非表示 */
@media screen and (min-width: 1025px) {
    .mobile-contact-menu { display: none; }
}


/* ==================================================
   TABLET ONLY (768px–1024px)
   Keep phone (<=767px) and desktop (>=1025px) unchanged.
================================================== */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* Tablet hero image with a small black margin, using the tablet asset. */
    .hero {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        overflow: hidden;
        padding: 16px 0;
        background: #000;
    }
    .hero-image {
        content: url("top1-tb.png");
        display: block;
        width: calc(100% - 32px);
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        object-fit: contain;
    }

    /* Tablet: match the smartphone menu (all submenus always visible). */
    .visual-top3 .menu-item > summary {
        cursor: default !important;
        pointer-events: none !important;
    }
    .visual-top3 .menu-item > summary::before {
        content: none !important;
    }
    .visual-top3 .menu-item > .sub-menu,
    .visual-top3 .menu-item:not([open]) > .sub-menu,
    .visual-top3 .menu-item[open] > .sub-menu {
        display: block !important;
    }

    /* Tablet TOP3: use the dedicated horizontal image at its natural ratio.
       Do not crop it to a viewport-sized box. */
    .visual-top3 {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        background: #000;
    }

    .visual-top3 > .top3-picture {
        display: block;
        position: relative !important;
        width: 100%;
        height: auto !important;
        overflow: visible;
    }

    .visual-top3 .top3-image {
        display: block;
        width: 100%;
        height: auto !important;
        max-width: 100%;
        object-fit: contain !important;
    }
}
