@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Shippori+Mincho:wght@400;500;600&display=swap');

:root {
    --bg-color: #fcfaf7;
    --text-color: #1A1A1A;
    --border-color: rgba(0,0,0,0.08);
    --font-serif: "Cormorant Garamond", "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    --header-height: 70px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    
    --h-logo-top: 0px;
    --h-logo-size: 150px;
    --h-wrap-top: 150px; /* 上部に150pxの白い帯を確保 */
    --h-hero-bottom-gap: 0px; /* 下の隙間をなくし、画像にぴったり合わせる */
    --h-hero-min: 0px;
}

.serif-main { font-family: var(--font-serif); }
.serif-sub { font-family: var(--font-serif); text-transform: uppercase; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    opacity: 0.6;
}

ul {
    list-style: none;
}

.mono {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 400;
    color: #666;
}


header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1380px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(10px, 4vw, 50px); 
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease, border 0.3s ease, color 0.3s ease;
}



header.menu-stuck-bg {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


header.on-light,
header.menu-stuck-bg,
header.on-light .nav-center,
header.on-light #menu-toggle {
    color: #1a1a1a;
}

.header-left {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo-vertical-cropped {
    width: 30px;
    height: 80px;
    background-image: url('assets/aruga_meishi.png');
    background-size: 30px 80px; 
    background-position: center top;
    background-repeat: no-repeat;
    filter: invert(1) brightness(2);
    mix-blend-mode: screen;
}

header.on-light .logo-vertical-cropped {
    filter: grayscale(1) contrast(1.2);
    mix-blend-mode: multiply;
}

.nav-center {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
}

#menu-toggle {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    border-bottom: 0.5px solid currentColor;
    padding-bottom: 2px;
}

.nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay.open {
    transform: translateY(0);
}

.menu-links {
    text-align: center;
}

.menu-links li {
    margin-bottom: 2rem;
    overflow: hidden;
}

.menu-links a {
    font-size: 4rem;
    display: block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.menu-overlay.open .menu-links a {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 60px;
    font-family: var(--font-mono);
    cursor: pointer;
}


main, .kyn-footer {
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
    isolation: isolate; 
}

.hero {
    /* 常に下部に150pxの白い帯エリア（.content-layer）が入り込むよう、高さを計算 */
    height: calc(100svh - 150px);
    position: relative;
    overflow: hidden;
    background-color: transparent; /* 背景を透明にして奥の固定レイヤーを透けさせる */
    padding: 0;
}


.hero-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-color); 
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('assets/web/06_web.jpg');
    /* 上下の150px帯の裏で、画面全体を基準に中央でカバー（見切れ）させる */
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    transition: var(--transition);
}


.content-layer {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
}


.parallax-masks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none;
}
.parallax-masks > div {
    position: absolute;
    background-color: var(--bg-color);
}
.mask-top {
    bottom: calc(100% - var(--h-wrap-top)); 
    left: -50vw;
    right: -50vw;
    height: 200vh;
}
.mask-bottom {
    top: calc(100% - var(--h-hero-bottom-gap)); 
    left: -50vw;
    right: -50vw;
    height: 200vh;
}
.mask-left {
    top: var(--h-wrap-top);
    bottom: var(--h-hero-bottom-gap);
    right: calc(100% - clamp(10px, 4vw, 50px)); 
    width: 100vw;
}
.mask-right {
    top: var(--h-wrap-top);
    bottom: var(--h-hero-bottom-gap);
    left: calc(100% - clamp(10px, 4vw, 50px)); 
    width: 100vw;
}

.hero-logo-top {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--h-logo-top);
    height: var(--h-logo-size);
    z-index: 10; 
}

.hero-content {
    position: absolute;
    bottom: calc(var(--h-hero-bottom-gap) + 30px); 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 100%;
}

.hero-content .serif-sub {
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    font-weight: 300;
}

.hero-content h1.serif-main {
    font-size: clamp(1.2rem, 5vw, 3.2rem); 
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: clamp(0em, 0.5vw, 0.1em); 
    white-space: nowrap;
}

.hero-menu {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 25px); 
    margin-top: clamp(8px, 2vw, 20px);
    flex-wrap: nowrap; 
    width: 100%;
}


.hidden-original,
.hidden-original * {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important;
    pointer-events: none !important;
}

.hero-menu.stuck {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    margin-left: 0;
}

header.on-light .hero-menu-btn,
header.menu-stuck-bg .hero-menu-btn {
    color: #1a1a1a;
    transition: color 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}
header.on-light .hero-menu-btn::after,
header.menu-stuck-bg .hero-menu-btn::after {
    background-color: #1a1a1a;
    transition: background-color 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.hero-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1px, 0.5vw, 2px); 
    transition: var(--transition);
    color: white;
    position: relative;
    padding-bottom: clamp(2px, 1vw, 4px); 
    width: 105px;
}

.hero-menu-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(25px, 5vw, 60px); 
    height: 0.5px;
    background-color: white;
}

.hero-menu-btn .btn-main {
    font-size: clamp(0.75rem, 1.5vw, 1.1rem); 
    letter-spacing: clamp(0em, 0.5vw, 0.1em);
    text-indent: clamp(0em, 0.5vw, 0.1em);
    line-height: 1; 
}

.hero-menu-btn .btn-sub {
    font-size: clamp(0.45rem, 1vw, 0.55rem); 
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    border-bottom: none;
    padding-bottom: 0;
    color: #ffffff;
    font-weight: 500; 
    line-height: 1; 
    transition: color 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

header.on-light .hero-menu-btn .btn-sub,
header.menu-stuck-bg .hero-menu-btn .btn-sub {
    color: #1a1a1a;
}

.hero-menu-btn:hover {
    opacity: 0.6;
}


section {
    padding: 80px clamp(10px, 4vw, 50px); 
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(3px, 1.5vw, 15px); 
    
    padding: 0 clamp(10px, 4vw, 50px) clamp(40px, 7.5vw, 90px); 
}
.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.intro-text-centered {
    padding-top: 95px; /* 65pxから30px下げて配置 */
    padding-bottom: 35px; /* 全体の高さを変えないために下を30px詰める */
    padding-left: clamp(10px, 4vw, 50px);
    padding-right: clamp(10px, 4vw, 50px);
    text-align: center;
    position: relative;
}

.intro-text-centered p {
    font-size: 1rem; 
    line-height: clamp(2, 3vw, 2.2);
}

.section-manifesto {
    padding-top: 50px;
}

.manifesto-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

.manifesto-image {
    margin-right: clamp(40px, 8vw, 120px);
}

.manifesto-image img {
    max-height: clamp(300px, 50vh, 500px);
    width: auto;
    object-fit: contain;
}

.manifesto-text {
    writing-mode: vertical-rl;
    font-size: 0.6rem; 
    line-height: 1.4;
    margin: 0;
    text-align: left;
    letter-spacing: 0.1em;
    color: #333;
}

.intro-tagline {
    margin-top: 0; /* 150px帯の中央に配置するため0に変更 */
    margin-bottom: 0;
    color: #AAA;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.25em;
}

.intro-label-v {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #888;
    white-space: nowrap;
    font-size: 1rem;
}


.footer-lifestyle-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Footer */
.kyn-footer {
    padding: 0 clamp(10px, 4vw, 50px) 20px;
    border-top: none;
    background-color: var(--bg-color);
    margin-top: -1px; /* スマホ特有の隙間（背景が1px見える線）防止 */
    padding-top: 1px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.footer-grid .label {
    display: block;
    margin-bottom: 30px;
    color: #999;
    font-size: 1rem;
    letter-spacing: 0.35em;
}


.footer-col-newsletter {
    max-width: 350px;
}

.newsletter-form {
    border-top: 0.5px solid rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #BBB;
    font-weight: 300;
}

.newsletter-form button {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: #AAA;
    font-weight: 300;
}

.newsletter-note {
    font-size: 1rem;
    color: #888;
    margin-bottom: 60px;
}

.footer-lifestyle-img {
    width: 180px;
    margin-top: 20px;
}

.footer-lifestyle-img img {
    width: 100%;
    height: auto;
}

.footer-image-greeting {
    width: 100%;
    height: auto;
    display: block;
    max-width: 500px;
}

.footer-contact-title-group {
    margin-bottom: clamp(1px, 0.25vw, 2px);
    text-align: center;
    align-items: center;
    width: fit-content;
    gap: clamp(1px, 0.5vw, 2px);
    padding-bottom: clamp(2px, 1vw, 4px);
    display: flex;
    flex-direction: column;
    position: relative;
}
.footer-contact-title-main {
    font-size: clamp(0.75rem, 1.5vw, 1.1rem);
    letter-spacing: clamp(0em, 0.5vw, 0.1em);
    line-height: 1;
}
.footer-contact-title-sub {
    font-size: clamp(0.45rem, 1vw, 0.55rem);
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #999;
    line-height: 1;
}


.footer-list {
    border-top: none;
    text-transform: none;
}

.footer-list li {
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    padding: 10px 0;
}

.list-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-list .index {
    width: 25px;
    color: #BBB;
    font-size: 0.8rem; 
    margin-top: 2px;
}

.footer-list-row {
    display: flex;
    align-items: flex-start;
}

.footer-small-text {
    font-size: 0.7rem; 
}

.footer-list .arrow {
    color: #AAA;
    font-size: 0.8rem; 
}

.footer-list a {
    font-size: 0.8rem; 
    line-height: 1.4; 
    letter-spacing: 0.1em; 
    font-weight: 300;
    color: #1a1a1a; 
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(0,0,0,0.1);
    font-weight: 300;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #AAA;
    line-height: 1.4;
}

.footer-meta {
    display: flex;
    gap: 80px;
}


.custom-order-section,
.lifetime-warranty-section {
    padding-top: 0;
    padding-bottom: 0;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px; 
    
    padding-bottom: clamp(3px, 1.5vw, 15px);
    max-width: 1200px;
    margin: 0 auto;
}

.concept-grid.reverse {
    direction: rtl;
}

.concept-grid.reverse > * {
    direction: ltr;
}

.concept-text {
    grid-column: span 2;
    padding: 0; 
    padding-inline-end: 0; 
    display: flex;
    gap: 15px; 
    align-items: flex-start;
}

.concept-image {
    grid-column: span 1;
}

.brand-section-title {
    margin-top: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
    text-align: center;
    align-items: center;
    width: 100px;
    gap: clamp(1px, 0.5vw, 2px);
    padding-bottom: clamp(2px, 1vw, 4px);
    display: flex;
    flex-direction: column;
    position: relative;
    flex-shrink: 0;
}

.brand-section-title::after,
.footer-contact-title-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(25px, 5vw, 60px);
    height: 0.5px;
    background-color: #1a1a1a;
}

.brand-title-main {
    font-size: clamp(0.75rem, 1.5vw, 1.1rem);
    letter-spacing: clamp(0em, 0.5vw, 0.1em);
    font-weight: 300;
    line-height: 1;
    white-space: nowrap; 
}

.brand-title-sub {
    font-size: clamp(0.45rem, 1vw, 0.55rem);
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #999;
    line-height: 1;
}

.concept-catch {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.4;
    color: #1a1a1a;
    font-weight: 300;
}

.concept-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    text-align: justify;
    margin-bottom: 40px;
}

.store-link-button {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 5px;
    border-bottom: 0.5px solid currentColor;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.store-link-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-family: var(--font-serif);
    white-space: nowrap;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.store-link-button::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border-width: 4px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.store-link-button:hover::after,
.store-link-button:hover::before {
    opacity: 1;
    visibility: visible;
}

.store-link-button:hover {
    opacity: 0.5;
}



.concept-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-modal {
    visibility: hidden;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.95);
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    display: flex; 
}

.image-modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.15s ease;
    opacity: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-mono);
}

.modal-close:hover {
    color: #999;
}

.gallery-item,
.manifesto-image img,
.concept-image img {
    cursor: pointer;
}
.gallery-item img,
.manifesto-image img,
.concept-image img {
    transition: transform 0.5s ease, opacity 0.3s;
}
.gallery-item:hover img,
.manifesto-image img:hover,
.concept-image img:hover {
    transform: scale(1.02);
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}




@media (max-width: 650px) {
    .manifesto-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .manifesto-image {
        margin-right: 0;
    }
    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(3px, 1.5vw, 15px);
        padding-bottom: 60px; 
    }
    .concept-text .concept-desc {
        margin-bottom: 0; 
    }
    .concept-grid.reverse {
        direction: ltr;
    }
    .concept-image {
        grid-column: span 2;
        justify-self: center;
        width: calc(50% - (clamp(3px, 1.5vw, 15px) / 2));
    }
}

/* タブレット用の設定 */
@media (max-width: 1024px) {
    /* ズーム設定はcoverに任せるため削除 */
}

@media (max-width: 768px) {
    :root {
        --header-height: 42px; /* 60% of the desktop 70px height */
    }
    

    
    section {
        padding: 80px 5px; 
    }
    .brand-section-title {
        width: 75px; 
        
        margin-top: 6px; 
    }
    .brand-title-main {
        white-space: nowrap; 
    }
    .concept-text {
        grid-column: span 2;
        padding-inline-end: 0;
        flex-direction: row;
        gap: 2px; 
        padding-left: 0; 
    }

    .footer-contact-content {
        
        flex-grow: 0 !important;
        width: auto !important;
    }

    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 60px;
        margin-bottom: 60px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
        gap: 30px;
    }
    .footer-meta {
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
    }
}


@media (min-width: 1380px) {
    .hero-bg-layer {
        background-size: 1280px auto;
    }
}
