@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500&display=swap');

:root {
    --bg-color: #080808;
    --text-color: #FDFBF7;
    --accent-color: #D4AF37; /* Gold */
    --accent-hover: #b8962b;
    --border-color: #333333;
    --font-japanese: 'Noto Serif JP', 'Yu Mincho', 'Shippori Mincho', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-japanese);
    line-height: 1.6;
}

body.view-body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* --- Index (View) Page Styles --- */
.view-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background subtly animated pattern / gradient */
.view-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #24140e 0%, #080302 100%);
    z-index: -2;
}

/* Vignette overlay to make edge text readable */
.view-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

#image-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    filter: blur(25px);
    transition: opacity 1.8s ease-in-out, transform 2s ease-in-out, filter 1.8s ease-in-out;
    border: none;
    z-index: -1;
}

#image-display.show {
    opacity: 0.35; /* さらに少し暗くして文字の視認性を高めます */
    transform: scale(1.1); /* ゆっくりズームする演出 */
    filter: blur(0px);
    transition: opacity 4s ease-out, transform 30s ease-out, filter 4s ease-out;
}

/* Horizontal Captions Container */
#caption-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90vw;
    z-index: 100;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    pointer-events: none;
}

#caption-container.show {
    opacity: 1;
}

#caption-display {
    font-family: var(--font-japanese);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 1);
    text-shadow: 3px 3px 20px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.8);
    margin-bottom: 35px;
    line-height: 1.4;
}

#subcaption-display {
    display: inline-block;
    position: relative;
    font-family: var(--font-japanese);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 247, 0.9);
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
    margin-bottom: 4px;
    padding-bottom: 8px; /* アンダーバーとの間隔 */
}

#subcaption-display::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
    transition: width 0.5s ease;
}

#caption-container.show #subcaption-display::after {
    width: 100%;
    transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1) 0.8s;
}
.no-data {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 0.1em;
}

/* Admin Link slightly visible */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    font-family: sans-serif;
}
.admin-link:hover {
    color: var(--accent-color);
}

/* --- Admin Page Styles --- */
.admin-body {
    background-color: #121212;
    padding: 40px 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 2rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.admin-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input[type="file"],
.form-group input[type="text"],
.form-group input[type="url"] {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: inherit;
    border-radius: 4px;
}

.form-group input[type="file"] {
    padding: 8px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-danger {
    background: #8b0000;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: normal;
}
.btn-danger:hover {
    background: #660000;
}

.message {
    margin-top: 15px;
    padding: 10px;
    display: none;
    border-radius: 4px;
}
.message.success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    display: block;
}
.message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
}

/* List of uploaded items */
.item-list {
    margin-top: 50px;
}

.item-list h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    font-weight: 300;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.list-item {
    background: #222;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.list-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.list-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ddd;
}

#insta-display {
    position: absolute;
    top: 68%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: var(--font-japanese);
    letter-spacing: 0.15em;
    opacity: 0;
    transition: all 0.4s ease, opacity 2s ease-in-out;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#insta-display svg {
    width: 22px;
    height: 22px;
}

#insta-display:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translate(-50%, calc(-50% - 3px)) scale(1.02);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

#insta-display.show {
    opacity: 1;
}

/* --- Site Logo --- */
#site-logo {
    position: absolute;
    top: 45px;
    left: 55px;
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 247, 0.9);
    z-index: 100;
    opacity: 0;
    animation: fadeInSiteLogo 3.5s ease-out forwards 1.2s;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
    cursor: default;
}

#site-logo:hover {
    transform: scale(1.02);
    color: rgba(253, 251, 247, 0.95);
    text-shadow: 0 0 15px rgba(212,175,55,0.6);
}

#site-concept {
    font-family: var(--font-japanese);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.9);
    white-space: nowrap;
}

@keyframes fadeInSiteLogo {
    to { opacity: 0.8; }
}

/* --- Global Navigation --- */
#global-nav {
    position: absolute;
    top: 55px;
    right: 55px;
    z-index: 100;
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    animation: fadeInSiteLogo 3.5s ease-out forwards 1.2s;
}

#global-nav a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 10px rgba(0,0,0,1), 0 0 15px rgba(0,0,0,0.8);
    position: relative;
    padding-bottom: 2px;
}

#global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

#global-nav a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

#global-nav a:hover::after {
    width: 100%;
}

.nav-divider {
    color: rgba(253, 251, 247, 0.3);
    font-family: 'Cinzel', serif;
}

/* --- Contact Info --- */
#contact-info {
    position: absolute;
    bottom: 80px;
    right: 50px;
    left: auto;
    text-align: right;
    z-index: 100;
    opacity: 0;
    animation: fadeInSiteLogo 3.5s ease-out forwards 1.4s;
    transition: all 0.6s ease;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

.contact-addr {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 6px;
    line-height: 1.7;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 247, 0.85);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

.contact-tel {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 500;
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9), 0 0 15px rgba(212, 175, 55, 0.6);
}

.contact-tel:hover {
    opacity: 1;
    transform: scale(1.05); /* Gentle zoom to indicate clickability */
    text-shadow: 2px 2px 20px rgba(0,0,0,1), 0 0 25px rgba(212, 175, 55, 0.9);
}

.contact-tel span {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    opacity: 0.9;
    margin-right: 8px;
    color: rgba(253, 251, 247, 0.9);
    text-shadow: 2px 2px 10px rgba(0,0,0,1);
}

/* --- Footer White Band --- */
#footer-band {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
    z-index: 200;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInLogo 2s ease-in-out forwards 1s;
}

#footer-band img {
    height: 25px;
    width: auto;
    object-fit: contain;
}

/* --- Bottom Left Info Group (Formerly Right) --- */
#bottom-right-info {
    position: absolute;
    bottom: 70px;
    left: 50px;
    right: auto;
    z-index: 100;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- English Text Logo (Removed but keep for potential use) --- */
#en-logo {
    display: none;
}

#copyright-display {
    font-size: 0.975rem;
    letter-spacing: 0.1em;
    color: rgba(253, 251, 247, 0.85);
    opacity: 0;
    animation: fadeInLogo 3s ease-in-out forwards 1.5s;
    pointer-events: none;
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
}

#business-hours-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 2px solid var(--accent-color);
    padding-left: 12px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInLogo 3s ease-in-out forwards 1.4s;
}

#chef-info {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 247, 0.9);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInLogo 3s ease-in-out forwards 1.2s;
    pointer-events: none;
    z-index: 100;
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
}

#business-hours-display, #business-hours-display-2 {
    font-size: 1.275rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 247, 1);
    text-shadow: 2px 2px 15px rgba(0,0,0,1);
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    transition: all 0.6s ease;
}

.bh-label {
    display: inline-block;
    min-width: 5.5em;
}

/* --- Date Display --- */
#date-display {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: rgba(253, 251, 247, 0.9);
    z-index: 100;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    pointer-events: none;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

#date-display.show {
    opacity: 1;
}

@keyframes fadeInLogo {
    to { opacity: 0.95; }
}
/* --- Mobile Device Optimizations --- */
@media (max-width: 768px) {
    /* Main Display */
    #site-logo {
        top: 18px;
        left: 15px;
        font-size: 0.8rem;
    }

    #site-concept {
        font-size: 0.55rem;
        letter-spacing: 0.12em;
        margin-bottom: 6px;
        white-space: nowrap;
    }

    #global-nav {
        /* ロゴ画像の高さ分（約80px）+ topオフセット（18px）の合計より下に配置 */
        top: 115px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    #global-nav a {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }

    .nav-divider {
        font-size: 0.75rem;
    }

    #chef-info {
        top: 59%;             /* サブキャッチから十分なスペースを確保 */
        right: auto;
        font-size: 0.8rem;
        line-height: 2.2;     /* 行間を広めに */
        letter-spacing: 0.12em;
    }

    .contact-addr {
        font-size: 0.975rem;
        letter-spacing: 0.1em;
        margin-bottom: 4px;
        line-height: 1.5;
    }

    .contact-tel {
        font-size: 1.7rem;
        letter-spacing: 0.1em;
        margin-top: 6px;
    }

    .contact-tel span {
        font-size: 1.05rem;
        margin-right: 5px;
    }



    #contact-info {
        top: auto;
        bottom: 65px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    #bottom-right-info {
        position: static;
    }

    #footer-band {
        padding: 8px 0;
        gap: 15px;
    }

    #footer-band img {
        height: 18px;
    }

    #en-logo {
        font-size: 0.8rem;
        letter-spacing: 0.3em;
    }

    #copyright-display {
        position: absolute;
        bottom: 40px;
        left: 20px;
        font-size: 0.825rem;
    }

    #business-hours-wrapper {
        position: absolute;
        bottom: 155px;
        left: 0;
        width: 100%;
        align-items: center;
        border-left: none;
        padding-left: 0;
        gap: 6px;
    }

    #business-hours-display, #business-hours-display-2 {
        font-size: 0.975rem;
        max-width: calc(100vw - 40px);
        line-height: 1.5;
    }

    #date-display {
        font-size: 1.1rem;
        top: 35%;
    }

    #caption-container {
        top: 47%;
        bottom: auto;
        width: 95vw;
    }

    #caption-display {
        font-size: 2.0rem;
        margin-bottom: 25px;
        line-height: 1.4;
        letter-spacing: 0.1em;
    }

    #subcaption-display {
        font-size: 0.82rem;
        margin-bottom: 10px;   /* サブキャッチとシェフ情報の間隔 */
        letter-spacing: 0.08em;
        padding-bottom: 12px;  /* アンダーラインとの余白 */
    }

    #insta-display {
        /* グローバルナビ（top:115px）の直下に配置 */
        top: 162px;
        font-size: 0.82rem;
        padding: 9px 18px;
        white-space: nowrap;
        letter-spacing: 0.06em;
        gap: 6px;
    }

    #insta-display svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Admin Panel */
    .admin-wrapper {
        padding: 20px 15px;
        margin: 10px;
    }

    .admin-header h1 {
        font-size: 1.6rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .list-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .list-item {
        padding: 10px;
    }
    
    .list-item img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    /* Smaller iPhones, etc */
    #caption-display {
        font-size: 1.8rem; /* 少し小さい画面用は1.8rem */
    }
    #subcaption-display {
        font-size: 0.82rem;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .list-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

/* --- Mobile Landscape Optimizations --- */
@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
    #site-logo {
        top: 15px;
        left: 20px;
        font-size: 0.8rem;
    }
    #site-concept {
        font-size: 0.55rem;
        margin-bottom: 4px;
        white-space: nowrap;
    }
    #global-nav {
        top: 15px;
        right: 20px;
        left: auto;
        transform: none;
        width: auto;
        gap: 15px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    #global-nav a {
        font-size: 0.82rem;
    }
    #caption-container {
        top: 50%;
        width: 80vw;
    }
    #caption-display {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }
    #subcaption-display {
        font-size: 0.8rem;
        padding-bottom: 6px;
    }
    #date-display {
        top: 25%;
        font-size: 1.1rem;
    }
    #chef-info {
        top: auto;
        bottom: 15px;
        left: 20px;
        right: auto;
        transform: none;
        text-align: left;
        font-size: 0.75rem;
        line-height: 1.5;
    }
    #insta-display {
        top: auto;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    #contact-info {
        top: auto;
        bottom: 15px;
        right: 20px;
        left: auto;
        text-align: right;
        width: auto;
    }
    .contact-addr {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    .contact-tel {
        font-size: 1.2rem;
        margin-top: 2px;
    }
    .contact-tel span {
        font-size: 0.8rem;
    }
    #bottom-right-info {
        display: none; /* Hide to save vertical space */
    }
    #footer-band {
        display: none; /* Hide to save vertical space */
    }
}

