/*CSS変数定義*/
:root {
    --primary-color: #00bcd4;
    --secondary-color: #e91e63;
    --background-color: #f8fafd;
    --text-color: #222;
    --text-secondary-color: #888;
    --border-radius: 12px;
    --box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    --title-font: 'Baskerville Pro', 'Baskerville', 'Montserrat', serif;
    --body-font: 'Noto Sans JP', sans-serif;
}

html {
    font-size: 62.5%; /* 1rem = 10px（ブラウザ標準16pxの62.5%） */
    scroll-behavior: smooth;
    }

body {
    margin: 0;
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    letter-spacing: 0.05em;
    overflow-x:hidden;
}

header,
main,
.footer {
    padding: 0 5vw;
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 5vw 0 5vw;
    background: transparent;
    position: absolute;
    width: 100%;
    z-index: 10;
}

/* body全体のフェードイン＋ブラー効果 */
.page-wrapper {
    opacity: 0;
    filter: blur(24px);
    transition: opacity 1.2s, filter 1.2s;
}
body.is-loaded .page-wrapper {
    opacity: 1;
    filter: blur(0);
}

.header-title {
    font-family: var(--title-font);
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    color: var(--text-color);
}

.nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.nav a:hover {
    color: var(--primary-color);
}
/* 固定メニューの初期状態（非表示・上に隠す） */
.hero-menu {
    position:fixed;
    top: 0; /* メニュー高さ分だけ上に隠す */
    left: 0;
    width: 100vw;
    height:50px;
    z-index: 1000;
    display:flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: top 1s cubic-bezier(.4,0,.2,1);
}
.hero-menu .hero-maininfo {
    width:auto;
    margin-left:5vw;
    margin-right: auto;
    grid-area: maininfo;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
    .hero-maininfo h1 {
        font-family: var(--title-font);
        font-size: 1.7rem;
        font-weight: 400;
        margin: 0 0 0 0;
        letter-spacing: 0.08em;
    }
    .hero-maininfo h2 {
        font-size: 1.1rem;
        font-weight: 300;
        margin: 0 0 0 0;
        letter-spacing: 0.08em;
    }
.hero-menu .hero-nav {
    width:auto;
    margin-left: auto;
    margin-right:5vw;
}

/* 表示時（上からスライドイン） */
.hero-menu.is-menu-visible {
    top: 0px;
    transition-duration: 1s; /* 出てくるときは1s */
}
.hero-menu:not(.is-menu-visible) {
    transition-duration: 0.1s; /* 出てくるときは0.1s */
}


.main-visual {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.main-visual-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../img/main.jpg') center/cover no-repeat;
    filter: blur(4px) brightness(0.8);
    z-index: 1;
}
.main-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.main-visual-content h1 {
    font-family: var(--title-font);
    font-size: 4rem;
    letter-spacing: 0.3em;
    margin: 0 0 1rem 0;
}
.main-visual-content p {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}


.footer {
    padding: 60px 0 60px 0;
    background: linear-gradient(120deg, #fce4ec 60%, #fffde4 100%);
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}
.footer-info {
    display:flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--title-font);
    color: #444;
}
.footer-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    font-weight: 500;
}
.footer-contact {
    text-align:left;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    margin-left:auto;
    margin-right:3vw;
}
.footer-office, .footer-nav, .footer-copyright {
    width:345px;
    margin:0.5em auto 0;
    text-align:left;
}
.footer-office {
    margin-top: 0.5em;
}
.footer-nav {
    text-align: left;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.footer-nav li {
    font-size: 1.1rem;
    margin-bottom: 0.3em;
}
.footer-nav a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #00bcd4;
}
.footer-copyright {
    font-size: 1rem;
    color: #888;
    margin-top: 2em;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    text-align: right;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    letter-spacing: 0.04em;
    padding-right: 0; /* 追加の余白は不要 */
}

.menu-slash-wrap {
    display: inline-flex;
    margin-left: 8px;
    position: relative;
    width: 20px;   /* ← 幅を広げて見切れ防止 */
    height: 16px;
    box-sizing: content-box;
}

.menu-slash {
    display: block;
    width: 12px;
    height: 1.5px;
    background: #e91e63;
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    rotate: -45deg; /* 斜めにする */
}
.menu-slash:first-child {
    bottom: 7px;
    transform: skewX(-25deg);
}
.menu-slash:last-child {
    bottom: 7px;
    left:7px;
    transform: skewX(-25deg);
}

.menu-btn:hover .menu-slash:first-child {
    transform: translateX(0px) translatey(-3px) skewX(0deg);
    rotate:0deg; /* 斜めから水平に変化 */
}
.menu-btn:hover .menu-slash:last-child {
    transform: translateX(-7px) translatey(2px) skewX(0deg);
    rotate:0deg; /* 斜めから水平に変化 */
}

.hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.hero-content nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: auto;
    margin-bottom: 32px;
    padding-right: 40px; /* ← 余白を増やして見切れ防止 */
    box-sizing: border-box;
    z-index: 3;
}
    .hero {
        position: relative;
        width: 100vw;
        height: 100vh;
        min-height: 600px;
        background: url('/images/main-visual.jpg') center/cover no-repeat;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: hidden;
    }
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.35);
        z-index: 1;
    }
    .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        padding: 24px 0 0 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .hero-content h1 {
        font-family: 'Montserrat', serif;
        font-size: 0.5rem;
        font-weight: 400;
        margin: 0 0 0 16px;
        letter-spacing: 0.08em;
    }
    .hero-content h2 {
        font-size: 0.9rem;
        font-weight: 300;
        margin: 0 0 0 16px;
        letter-spacing: 0.08em;
    }
    .hero-content .hero-desc {
        margin: 32vh 0 0 0;
        padding-left: 16px;
        font-size: 1.1rem;
        font-family: 'Montserrat', serif;
        font-weight: 500;
        letter-spacing: 0.08em;
        color: #222;
    }
    .hero-content .hero-news {
        margin: 12px 0 0 0;
        padding-left: 16px;
        font-size: 0.95rem;
        color: #888;
        letter-spacing: 0.08em;
    }
    .hero-content .hero-menu {
        position: absolute;
        right: 24px;
        bottom: 32px;
        font-size: 1.1rem;
        font-family: 'Montserrat', serif;
        color: #222;
        display: flex;
        align-items: center;
        gap: 0.5em;
    }
    .hero-content .hero-menu .menu-icon {
        display: inline-block;
        width: 18px;
        height: 2px;
        background: #e91e63;
        margin-left: 6px;
        border-radius: 1px;
        position: relative;
        top: 1px;
    }
    .hero-maininfo a {
        text-decoration: none;
        color: inherit;
    }

/* --- レスポンシブ対応 --- */
@media (max-width: 700px) {
    .main-visual-content h1 { font-size: 2.2rem; }
    .about-section, .works-section { padding: 24px 2vw; }
    .works-list { flex-direction: column; gap: 20px; }
    .work-item { width: 100%; }
    .header { flex-direction: column; align-items: flex-start; padding: 16px 2vw 0 2vw; }
}
@media (max-width: 480px) {
    .header-title { font-size: 1.5rem; }
    .main-visual { height: 40vh; min-height: 200px; }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.5s cubic-bezier(.4,0,.2,1), transform 3s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#footer-section {
    background: linear-gradient(120deg, #fce4ec 40%, #fffde4 100%);
    background-size: 200% 200%;
    animation: footerGradientMove 6s ease-in-out infinite;
}

@keyframes footerGradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: #232323;
    color: #fff;
    z-index: 2000;
    display: flex;
    height:100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
}
.fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}
.fullscreen-menu-list ul {
    display: flex;
    flex-direction: row-reverse;
    gap: 3vw;
    justify-content: center;
    align-items: flex-start;
    margin: 0 0 2em 0;
    padding: 0;
    list-style: none;
}
.fullscreen-menu-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Noto Serif JP', serif;
}
.fullscreen-menu-list li span {
    color: #bfa76f;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}
.fullscreen-menu-list li .en {
    font-size: 0.9em;
    color: #bfa76f;
    margin-top: 0.5em;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
}
.fullscreen-menu-list a {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
    letter-spacing: 0.15em;
    margin: 0.2em 0;
    transition: color 0.2s;
}
.fullscreen-menu-list a:hover {
    color: #bfa76f;
}
.fullscreen-menu .menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    outline: none;
    /* テキストは非表示に */
    color: transparent;
    font-size: 0;
}

.fullscreen-menu .menu-close::before,
.fullscreen-menu .menu-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 1px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: background 0.2s;
}
.fullscreen-menu .menu-close:hover::before,
.fullscreen-menu .menu-close:hover::after {
    background: rgba(255,255,255,0.5);
}
.fullscreen-menu .menu-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.fullscreen-menu .menu-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.sns-links {
    display: flex;
    gap: 2em;
    justify-content: center;
    margin-top: 2em;
}
.sns-links a {
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1em;
    text-decoration: none;
    letter-spacing: 0.1em;
}
a.works-detail-link{
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--accent-color, #534523);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s, border-bottom 0.2s;
}
a.arrow-rotate::before {
    content: "▶";
    position:relative;
    font-size:0.8rem;
    display: inline-block;
    top:-2px;
    margin-right:0.5em;
    animation: arrow-spin 6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes arrow-spin {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(360deg);
    }
}

