/* --- reset --- */

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

:root {
    --bg-white: #ffffff;
    --bg-soft: #fcfbf9;
    --text-main: #333333;
    --border-color: #e0ddd8;
    --accent-color: #a89486;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Montserrat', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font-serif);
    color: var(--text-main);
    background-color: var(--bg-soft);
}

@media screen and (max-width: 768px) {
    body, html {
        overflow-y: auto;
    }
}

.sp-br {
    display: none;
}

@media screen and (max-width: 768px) {
    .sp-br {
        display: block;
        content: "";
        margin: 0;
    }
}

/* AdSence */

.ad-spacer {
    margin: 40px auto;
    text-align: center;
    max-width: 900px;
    min-height: 100px;
    background: transparent;
    overflow: hidden;
}

.ad-spacer::before {
    content: "スポンサーリンク";
    display: block;
    font-size: 10px;
    color: #bbb;
    margin-bottom: 5px;
}

/* --- menu-trigger --- */

@media screen and (max-width: 768px) {
    .menu-trigger {
        display: block;
        position: fixed;
        top: 30px;
        right: 30px;
        width: 28px;
        height: 14px;
        z-index: 3000;
        cursor: pointer;
    }

    .menu-trigger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 1px;
        background: var(--text-main);
        transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
    }

    .menu-trigger span:first-child { 
        top: 0; 
    }

    .menu-trigger span:last-child { 
        bottom: 0; 
    }

    .menu-trigger.is-active span {
        transition-delay: 0.3s;
    }

    .menu-trigger.is-active span:first-child {
        top: 7px;
        transform: rotate(45deg);
    }

    .menu-trigger.is-active span:last-child {
        bottom: 6px;
        transform: rotate(-45deg);
    }
}

.triptych-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

@media screen and (max-width: 768px) {
    .triptych-layout {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
}

.pane {
    height: 100vh;
    background-color: var(--bg-white);
}

.pane-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 40px;
}

/* --- left --- */

#pane-left {
    flex: 0 0 320px;
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    #pane-left {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media screen and (max-width: 450px) {
    #pane-left { height: 140px; }
}

@media screen and (max-width: 768px) {
    #pane-left .side-footer { 
        display: none; 
    }
}

@media screen and (max-width: 450px) {
    #pane-left { 
        height: 140px; 
    }
}

.gradient-overlay {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: 1;
    filter: blur(35px); 
}

@media screen and (max-width: 768px) {
    .gradient-overlay { 
        filter: blur(25px); 
    }
}

.v-line {
    position: absolute;
    top: 0;
    width: 80%;
    height: 100%;
    opacity: 0.6;
}

.line-1 {
    left: -15%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-color) 50%, 
        transparent 100%);
    animation: floatingLine 12s infinite alternate ease-in-out;
}

.line-2 {
    right: -15%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d1c7bc 50%, 
        transparent 100%);
    animation: floatingLine 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatingLine {
    0% { 
        transform: translateX(-25%) rotate(-4deg) scaleY(1);
    }
    100% { 
        transform: translateX(25%) rotate(4deg) scaleY(1.1);
    }
}

#pane-left .logo {
    font-family: var(--font-sans);
    font-size: 2.2rem;
    letter-spacing: 0.35em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
}

@media screen and (max-width: 768px) {
    #pane-left .logo { margin-top: 20px; 
    }
}

@media screen and (max-width: 450px) {
    #pane-left .logo { font-size: 1.5rem; }
}

#pane-left .tagline {
    font-size: 0.85rem;
    line-height: 2.6;
    color: #555;
    letter-spacing: 0.12em;
}

@media screen and (max-width: 768px) {
    .tagline { 
        margin-top: -25px; 
    }
}

#pane-left .side-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    left: 0;
    font-size: 0.7rem;
    color: #bbb;
    text-align: center;
}

/* --- center --- */

#pane-center {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: none; 
    scrollbar-width: none;
}

@media screen and (max-width: 768px) {   
    #pane-center {
        width: 100%;
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }
}

#pane-center::-webkit-scrollbar { 
    display: none; 
}

/* --- slider --- */

.slider-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 60px 80px;
    background-color: var(--bg-soft);
}

@media screen and (max-width: 768px) {
    .slider-wrapper {
        height: 60vh;
        padding: 20px;
    }
}

.main-slider {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 24px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-label {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    border-radius: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    height: 40px;
    margin-top: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #333333;
    transform: scale(1.2);
}

/* --- news --- */

.news-section {
    padding: 100px 80px;
    background-color: var(--bg-white);
    scroll-snap-align: start;
}

.news-header {
    margin-bottom: 60px;
    text-align: center;
}

.news-header .en-title {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-main);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.news-item a {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

@media screen and (max-width: 450px) {
    .news-item a { gap: 15px; flex-direction: column; }
}

.news-item a:hover {
    opacity: 0.7;
}

.news-img {
    flex: 0 0 160px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

@media screen and (max-width: 450px) {
    .news-img { width: 100%; height: 150px; }
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-text {
    flex: 1;
}

.news-date {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.news-title {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

.news-more {
    margin-top: 60px;
    text-align: center;
}

.more-button {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 15px 60px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.more-button:hover {
    background-color: var(--text-main);
    color: #fff;
}

/* --- recommend --- */

.carousel-section {
    padding: 100px 0;
    background-color: var(--bg-soft);
    scroll-snap-align: start;
}

.carousel-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 80px;
}

@media screen and (max-width: 450px) {
    .carousel-header {
      padding: 0 20px;
      margin-bottom: 30px;
      width: 100%;
      text-align: center;
    }
}

.carousel-header .en-title {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

@media screen and (max-width: 450px) {
    .carousel-header .en-title {
      display: block;
      margin: 0 auto;  
    }
}

.carousel-header .jp-sub {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
}

@media screen and (max-width: 450px) {
    .carousel-container {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: scroll;
    }
}

.carousel-container.active {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-inner {
    display: flex;
    gap: 30px;
    padding: 0 80px;
    width: max-content;
}

@media screen and (max-width: 450px) {
    .carousel-inner {
        padding: 0 10vw; 
        gap: 20px;
        width: calc((80vw + 20px) * 4 + 20vw);
    }
}

.carousel-item {
    flex: 0 0 320px;
    scroll-snap-align: center;
}

@media screen and (max-width: 450px) {
    .carousel-item {
        flex: 0 0 80vw; 
        margin: 0 auto;
        text-align: center;
        scroll-snap-align: center;
    }
}

.carousel-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.carousel-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background-color: #eee;
    margin-bottom: 20px;
}

.carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.carousel-item:hover .carousel-img img {
    transform: scale(1.08);
}

.carousel-text .category {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--accent-color);
    letter-spacing: 0.2em;
    font-weight: 700;
}

.carousel-title {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: 400;
}

/* --- List --- */

.tile-section {
    padding: 100px 80px;
    background-color: var(--bg-white);
    scroll-snap-align: start;
}

@media screen and (max-width: 450px) { 
    .tile-section {
        padding: 60px 20px;
    }
}

.tile-header {
    text-align: center;
    margin-bottom: 60px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media screen and (max-width: 450px) {
    .tile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
         grid-auto-rows: 160px;
        gap: 15px; 
        max-width: 100%;
        padding: 0;
    }
}

.tile-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #eee;
}

@media screen and (max-width: 450px) {
    .tile-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        width: 100%;
        aspect-ratio: 4 / 5; 
    }
}

.tile-large {
    grid-column: span 2;
    grid-row: span 2;
}

.tile-medium {
    grid-column: span 1;
    grid-row: span 2;
}

.tile-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media screen and (max-width: 450px) {
    .tile-large, .tile-medium, .tile-small {
        height: 100%;
        width: 100%;
    }
}

.tile-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.tile-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.tile-item:hover img {
    transform: scale(1.1);
}

.tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

@media screen and (max-width: 450px) {
    .tile-overlay {
        opacity: 1; 
        background: rgba(0, 0, 0, 0.15);
    }
}

.tile-item:hover .tile-overlay {
    opacity: 1;
}

.tile-cat {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    border: 1px solid #fff;
    padding: 8px 16px;
}

@media screen and (max-width: 450px) {  
    .tile-cat {
        font-size: 0.75rem;
        padding: 6px 12px;
        letter-spacing: 0.2em;
    }
}

/* --- right --- */

#pane-right {
    flex: 0 0 260px;
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

@media screen and (max-width: 768px) {
    #pane-right {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(15px);
        z-index: 2000; /* メニュー本体 */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
        opacity: 0;
        border-left: 1px solid var(--border-color);
        box-shadow: -15px 0 40px rgba(0,0,0,0.03);
    }
}

#pane-right .main-menu {
    list-style: none;
    text-align: left;
}

#pane-right .main-menu li { 
    margin-bottom: 35px;
 }

#pane-right .main-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    transition: color 0.3s;
}

#pane-right .main-menu a:hover { 
    color: var(--accent-color); 
}

#pane-right .search-box {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #999;
}

/* --- End Banner --- */

.end-banner-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    background-color: var(--bg-soft);
    scroll-snap-align: start;
}

@media screen and (max-width: 768px) {
    .end-banner-wrapper {
        height: 60vh;
        padding: 20px;
    }
}

.end-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    background-color: #eee;
}

.end-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
    filter: brightness(0.9);
}

.end-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.end-copy {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .end-copy {
        font-size: 18px;
    }
}

.end-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- pane right --- */

@media screen and (max-width: 768px) {
    #pane-right.is-open {
        right: 0;
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {    
    .main-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }
}

@media screen and (max-width: 768px) {  
    #pane-right.is-open .main-menu li {
        opacity: 1;
        transform: translateY(0);
    }
    #pane-right.is-open .main-menu li:nth-child(1) { transition-delay: 0.3s; }
    #pane-right.is-open .main-menu li:nth-child(2) { transition-delay: 0.6s; }
    #pane-right.is-open .main-menu li:nth-child(3) { transition-delay: 0.9s; }
    #pane-right.is-open .main-menu li:nth-child(4) { transition-delay: 1.2s; }
    #pane-right.is-open .main-menu li:nth-child(5) { transition-delay: 1.5s; }
}

@media screen and (max-width: 768px) { 
    .menu-overlay {
        background: rgba(168, 148, 134, 0.15);
        transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1), visibility 1s;
    }
}

@media screen and (max-width: 768px) { 
    .menu-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
}
    
@media screen and (min-width: 769px) {
    .menu-trigger { display: none; }
}