/* ================================
   base
================================ */
body {
    margin: 0;
    font-family: sans-serif;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ================================
   background
================================ */
body.home {
    background: url("photos/bg-home.jpg") center / cover no-repeat fixed;
}

body.about {
    background: url("photos/bg-about.jpg") center / cover no-repeat fixed;
}

body.contact {
    background: url("photos/bg-contact.jpg") center / cover no-repeat fixed;
}

body.contact {
    min-height: 100vh;
    min-height: 100svh;
    /* iOS対策 */
}



body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

@media (max-width: 768px) {

    body.home,
    body.about,
    body.contact {
        background-attachment: scroll;
    }
}

/* ================================
   nav
================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 20;

    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px;

    background: transparent;
    border-bottom: none;

    opacity: 0;
    transform: translateY(-10px);
    transition: 0.6s ease;
}

nav.is-show {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    color: #fff;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 16px;
    border-radius: 999px;

    font-family: "Archivo Black", sans-serif;
    font-size: 18px;
    letter-spacing: 0.08em;

    transition: 0.25s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    opacity: 0.6;
}

/* nav inner */
.nav-inner {
    display: flex;
    align-items: center;
}

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);

        flex-direction: column;
        gap: 16px;

        background: rgba(0, 0, 0, 0.8);
        padding: 20px 28px;
        border-radius: 16px;

        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
}

/* ================================
   hero
================================ */
.hero {
    position: fixed;
    inset: 0;
    z-index: 5;

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

    background-image: url("photos/hero.jpg");
    background-size: cover;
    background-position: center;

    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.2s ease, transform 1.2s ease;

}

.hero.is-show {
    opacity: 1;
    transform: scale(1);
}

.hero.is-hide {
    opacity: 0;
    transform: scale(0.98);

    pointer-events: none;
    z-index: -1;
    /* ← これが決定打 */
}


/* hero text */
.hero-text {
    position: absolute;
    inset: 0;
    z-index: 10;

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

}

.hero-text h1 {
    margin: 0;
    font-family: "Potta One", cursive;
    font-size: clamp(64px, 10vw, 140px);
    letter-spacing: 0.08em;
    color: #e60012;

    pointer-events: auto;
}

.hero-text h1 a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    pointer-events: auto;
}

.hero-text h1:hover {
    text-shadow:
        0 0 12px rgba(230, 0, 18, 0.6),
        0 0 40px rgba(230, 0, 18, 0.4);
}

.hero-spacer {
    height: 100vh;
    background: transparent;
}

/* ================================
   gallery
================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 40px;

    max-width: 1400px;
    margin: 0 auto;
}

.gallery a {
    display: block;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;

    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery a:hover img {
    transform: scale(1.06);
    filter: brightness(0.95);
}

@media (hover: none) {
    .gallery a:hover img {
        transform: none;
    }
}

/* ================================
   fade in
================================ */
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

body.about nav {
    position: relative;
    opacity: 1;
    transform: none;

}

body.contact nav {
    position: relative;
    opacity: 1;
    transform: none;

}

/* ================================
   about
================================ */
.about-wrap {
    width: 100%;
    box-sizing: border-box;

    margin: 160px 0 200px;
    padding-left: 80px;
    padding-right: 40px;

    text-align: left;
}



.about-name {
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: clamp(0.04em, 0.8vw, 0.08em);
    margin: 0 0 40px 0;
    line-height: 1.2;

    color: #fff;
}

.about-text {
    font-family: "BIZ UDPGothic", sans-serif;
    font-size: 16px;
    line-height: 2.2;
    letter-spacing: 0.02em;
    opacity: 0.9;
    color: #fff;
}

.about-wrap h1 {
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: 0.12em;
    margin-bottom: 32px;
}


.about-wrap p {
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.about-block {
    max-width: 640px;
}

.about-block p {
    font-size: 14px;
    line-height: 2.1;
    letter-spacing: 0.04em;

    margin: 0 0 28px 0;
}


.about-lead {
    font-size: 15px;
    line-height: 2.4;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.about-history {
    list-style: none;
    padding: 0;
    margin: 0;

    font-size: 14px;
    letter-spacing: 0.06em;
}

.about-history li {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.about-history span {
    min-width: 52px;
    opacity: 0.6;
}

.about-block h2 {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 16px;
}

.about-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-block li {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.06em;
}

.about-block a {
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.about-block a:hover {
    opacity: 0.6;
}

.about-link {
    display: inline-block;
    margin-top: 20px;

    font-size: 12px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.about-link:hover {
    opacity: 0.5;
}

.about-photo {
    margin: 0 0 64px 0;
}

.about-photo img {
    width: 520px;
    /* ← サイズは固定の方が強い */
    max-width: 100%;

    display: block;
    margin: 0;
    /* ← 中央寄せ防止 */

    filter: grayscale(10%) contrast(1.05);
}


.about-photo img:hover {
    filter: grayscale(0%) contrast(1.08);
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .about-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-photo img {
        width: 100%;
    }
}

.about-text {
    max-width: 640px;
    /* ← ここで止める */
}

.about-text p {
    margin: 0 0 32px 0;
    line-height: 2.1;
}

.about-timeline {
    font-size: 13px;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

/* =========================
   Contact
========================= */

.contact-wrap {
    width: 100%;
    margin: 160px 0 200px;
    padding-left: 80px;
    padding-right: 40px;

    text-align: left;
}

@media (max-width: 768px) {
    .contact-wrap {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.contact-title {
    font-family: "Dela Gothic One", sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: 0.12em;
    margin-bottom: 40px;
}

.contact-lead {
    font-size: 15px;
    line-height: 2.2;
    letter-spacing: 0.08em;
    opacity: 0.85;

    max-width: 420px;
    margin-bottom: 64px;
}

.contact-block {
    margin-bottom: 40px;
}

.contact-label {
    font-size: 12px;
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 8px;
}

.contact-link {
    font-family: "Archivo Black", sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;

    color: #000;
    text-decoration: none;

    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.contact-link:hover {
    opacity: 0.6;
}

/* =========================
   GLOBAL NAV (ALL PAGES)
========================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;

    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 20px;

    background: transparent;
    backdrop-filter: none;
    border-bottom: none;

    opacity: 1;
    transform: none;
}

/* =========================
   nav.is-show 完全無効化
========================= */

nav.is-show {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;

    opacity: 1;
    transform: none;
}

/* ===== About スマホだけ中央寄せ ===== */
@media (max-width: 768px) {

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

    .about-photo img {
        margin-left: auto;
        margin-right: auto;
    }

    .about-text,
    .about-block {
        margin-left: auto;
        margin-right: auto;
    }

    .about-history li {
        justify-content: center;
    }

    .about-history span {
        text-align: right;
    }
}