/*
 * Service Page Styles
 * トーン＆マナー（高級感、ダークテーマ、明朝体）を継承
 */
:root {
    --service-text-vertical: vertical-rl;
}

.service-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding-bottom: var(--f-space-huge-xxl);
    text-shadow: var(--f-text-shadow-medium);
}

::selection {
    background: var(--food-color-price);
    color: var(--f-color-btn-hover-text);
}

.service-vertical-text {
    writing-mode: var(--service-text-vertical);
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: var(--f-letter-spacing-wider);
    line-height: 2.0;
}

.service-horizontal-text {
    writing-mode: horizontal-tb;
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: var(--f-letter-spacing-normal);
    line-height: 1.5;
}

.service-product-name.service-horizontal-text {
    height: auto;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
}

.service-title-en {
    font-family: var(--food-font-accent);
    font-size: var(--f-font-size-l);
    color: var(--food-color-accent);
    display: block;
    margin-bottom: 1.5rem;
    letter-spacing: var(--f-letter-spacing-widest);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.service-title-en::after {
    content: '';
    display: block;
    width: var(--f-space-xxl);
    height: 1px;
    background: var(--food-color-accent);
    margin-top: var(--f-space-xs);
    opacity: 0.7;
}

.service-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--f-space-huge-xl);
    padding-top: var(--f-space-huge-xxxl);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-hero-copy {
    font-size: var(--f-font-size-huge-xxxl);
    color: var(--f-color-text);
    height: auto;
    margin-bottom: 2rem;
    text-shadow: var(--f-text-shadow-dramatic);
    line-height: 2.2;
}

.food-hero-template-msg {
    display: block;
    font-size: var(--f-font-size-base);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--f-space-l);
    font-family: "Yu Mincho", "YuMincho", serif;
    letter-spacing: var(--f-letter-spacing-tight);
    text-shadow: var(--f-text-shadow-medium);
}

.service-intro {
    max-width: 800px;
    margin: 0 auto var(--f-space-huge-xxxl);
    text-align: center;
    padding: 0 var(--f-space-l);
    position: relative;
}

.service-intro-text p {
    font-size: var(--f-font-size-xxl);
    line-height: 2.6;
    color: var(--f-color-text);
    font-family: "Yu Mincho", "YuMincho", serif;
}

.service-product-section {
    margin-bottom: var(--f-space-huge-xxxxl);
}

.service-product-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.service-product-container.service-reverse {
    flex-direction: row-reverse;
}

.service-product-image-wrapper {
    position: relative;
    width: 50%;
}

.service-product-image {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    filter: brightness(0.9) contrast(1.1);
    position: relative;
    z-index: 1;
}

.service-deco-item {
    position: absolute;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-radius: 50%;
    opacity: 0.0;
}

.service-deco-1 { top: -30px; right: -20px; width: 80px; }
.service-deco-2 { bottom: -30px; left: -30px; width: 100px; }
.service-deco-3 { top: -30px; right: -20px; width: 80px; }

.service-product-info {
    width: 45%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-product-name {
    font-size: var(--f-font-size-huge-xl);
    color: var(--f-color-text);
    margin-bottom: 2rem;
    min-height: 200px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.service-product-name-h2 {
    font-size: var(--f-font-size-huge-xl);
    color: var(--f-color-text);
    margin-bottom: 2rem;
    min-height: 200px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.service-product-desc {
    font-size: var(--food-desc-size);
    line-height: var(--food-desc-line-height);
    color: var(--f-color-sub-light);
    margin-bottom: 2rem;
    font-weight: 300;
    word-break: break-all;
    overflow-wrap: break-word;
}

.service-product-desc--center {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--f-space-xxxl);
}

.service-product-price {
    font-size: 1.6rem;
    color: var(--food-color-price);
    font-family: var(--food-font-accent);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    display: inline-block;
    width: 100%;
    text-align: right;
}

.service-price-label {
    font-size: 1.0rem;
    margin-right: 15px;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.service-detail {
    text-align: center;
    padding: var(--food-section-padding);
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

.service-btn {
    display: inline-block;
    margin-top: 40px;
    padding: var(--food-btn-padding);
    border: 1px solid var(--food-color-accent);
    color: var(--food-color-accent);
    font-family: var(--food-font-accent);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: var(--food-color-accent);
    color: #000;
}

.service-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-fade-up--delay {
    transition-delay: 0.2s;
}

.service-fade-up--delay-2 {
    transition-delay: 0.3s;
}

.service-fade-up--delay-3 {
    transition-delay: 0.4s;
}

@media (max-width: 768px) {
    .service-intro .food-sample-message {
        margin-top: 50px; /* 「FOODPHOTOは、〜」直下の罫線ブロックの上余白（テンプレでは削除予定） */
    }
    /* スマホのみ：ヒーローメイン文字を上方向へ50px */
    .service-hero-content {
        margin-top: -50px;
    }
    .service-hero-copy { font-size: 1.8rem; height: auto; line-height: 1.8; writing-mode: vertical-rl; }
    .service-product-container { flex-direction: column; gap: 40px; }
    .service-product-container.service-reverse { flex-direction: column; }
    .service-product-image-wrapper, .service-product-info { width: 100%; }
    .service-product-info { padding: 30px 20px; }
    .service-title-en { font-size: 1.2rem; }
    .service-product-name { font-size: 1.95rem; }
    .service-product-name-h2 { font-size: 1.85rem; margin-left: -20px; }
    .service-product-name.service-horizontal-text { height: auto; writing-mode: horizontal-tb; margin-bottom: 1rem; font-size: 1.73rem; letter-spacing: 0.2rem; }
    .service-product-name-h2.service-horizontal-text { height: auto; writing-mode: horizontal-tb; margin-bottom: 1rem; font-size: 1.73rem; letter-spacing: 0.2rem; }
    .service-vertical-text { writing-mode: vertical-rl; }
}

body.service-custom-bg {
    background-image: radial-gradient(circle, rgba(40, 25, 15, 0.3) 0%, rgba(40, 25, 15, 0.8) 100%), url('../../pict/service-hero-pc.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #1a0505;
}

@media (max-width: 768px) {
    body.service-custom-bg {
        background-image: radial-gradient(circle, rgba(40, 25, 15, 0.3) 0%, rgba(40, 25, 15, 0.8) 100%), url('../../pict/service-hero-sp.webp');
        background-size: auto 100dvh;
        background-position: center top;
        background-attachment: scroll;
        background-repeat: no-repeat;
        min-height: 100dvh;
    }
}
