/**
 * pages.css - 各ページ固有のスタイル
 * 各セクションはコメントで分離し、整合性を保ちながら管理
 */

/* =================================================================
   INDEX PAGE (トップページ)
   ================================================================= */

/* ヒーローセクション - index専用 */
.hero-bg {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg::after {
    display: none; /* 背景画像を使用するため非表示 */
}

/* パララックス背景共通 */
.parallax-bg {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 768px) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

.halal-bg {
    background-image: url('/assets/images/BG_halal.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.halal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* ヒーローテキスト配置 */
.hero-title-top-right {
    position: absolute;
    top: 15%;
    right: 15%;
}

.hero-subtitle-bottom-left {
    position: absolute;
    top: 15%;
    left: 15%;
    margin-top: 8rem;
}

@media (max-width: 768px) {
    .hero-bg {
        height: 100svh;
    }

    .hero-title-top-right {
        position: absolute;
        top: 18%;
        right: 50%;
        margin-right: -1.5rem;
        text-align: center;
    }

    .hero-subtitle-bottom-left {
        position: absolute;
        top: 18%;
        left: 50%;
        margin-left: -2.5rem;
        margin-top: 6rem;
        text-align: center;
    }
}

/* Concept セクション - Watermark */
.concept-watermark {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    color: rgba(212, 175, 55, 0.05);
    font-size: 14rem;
    line-height: 1;
    font-weight: 700;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* ブランドイメージコンテナー */
.brand-image-container {
    background-color: #F0EDE5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* =================================================================
   FAQ PAGE
   ================================================================= */

/* FAQリスト */
.faq-list {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: background-color 0.3s ease;
}

.faq-header {
    width: 100%;
    padding: 1.8rem 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.faq-header:hover .faq-q {
    color: #D4AF37;
}

.faq-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.faq-q {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1;
    color: #2C2C2C;
    transition: color 0.3s ease;
    font-weight: 600;
}

.faq-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2C2C2C;
    margin-top: 0.1rem;
}

.faq-icon {
    font-size: 1.5rem;
    color: #D4AF37;
    font-weight: 300;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
    padding: 0 0 2.5rem 2.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1;
    color: #D4AF37;
    font-weight: 600;
}

.faq-answer-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #666666;
    margin-top: 0.1rem;
    flex: 1;
}

.faq-item.active .faq-body {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faq-content {
        padding-left: 0;
    }

    .faq-header {
        padding: 1.5rem 0;
    }

    .faq-text {
        font-size: 1rem;
    }
}

/* =================================================================
   CONTACT PAGE
   ================================================================= */

/* Contact専用ヒーロー */
.hero-bg-contact {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero-bg-contact {
        background-attachment: fixed;
    }
}

/* フォームスタイル */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-label .required {
    color: #D4AF37;
    margin-left: 0.3rem;
    font-size: 0.85rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    color: #2C2C2C;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

.form-textarea {
    min-height: 180px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 1rem;
    padding-right: 2.5rem;
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    color: #2C2C2C;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C2C2C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-select:focus {
    outline: none;
    border-color: #D4AF37;
}

.form-note {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.5rem;
}

/* チェックボックス */
.form-checkbox-group {
    margin: 2rem 0 3rem;
    text-align: center;
}

.form-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-checkbox-input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.form-link {
    color: #D4AF37;
    text-decoration: underline;
    transition: color 0.3s;
}

.form-link:hover {
    color: #B59230;
}

/* =================================================================
   TERMS & PRIVACY PAGES
   ================================================================= */

/* 共通ヒーローセクション */
.hero-bg-common {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero-bg-common {
        background-attachment: fixed;
    }
}

/* コンテンツ専用スタイル */
.content-body h3 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2C2C2C;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 0.05em;
}

.content-body h3:first-child {
    margin-top: 0;
}

.content-body p {
    margin-bottom: 1.5rem;
    color: #555555;
    line-height: 2;
    text-align: justify;
}

.content-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    list-style-type: none;
}

.content-body li {
    margin-bottom: 0.8rem;
    color: #555555;
    position: relative;
    padding-left: 1rem;
}

.content-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    background-color: #D4AF37;
    border-radius: 50%;
}

/* =================================================================
   WAGYU PAGE (和牛割烹)
   ================================================================= */

.hero-bg-kappo {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-bg-kappo {
        background-attachment: fixed;
        height: 90vh;
    }
}

.hero-bg-kappo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-kappo::after {
    content: 'Hero Image: 炭火で焼かれる和牛や割烹の調理風景';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 1;
}

/* =================================================================
   SUSHI PAGE (鮨 千)
   ================================================================= */

.hero-bg-sushi {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-bg-sushi {
        background-attachment: fixed;
        height: 90vh;
    }
}

.hero-bg-sushi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-sushi::after {
    content: 'Hero Image: 鮨カウンターやネタの接写';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 1;
}

/* =================================================================
   SHOP PAGE (プレミアムおみやげ)
   ================================================================= */

.hero-bg-shop {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-bg-shop {
        background-attachment: fixed;
        height: 90vh;
    }
}

.hero-bg-shop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-shop::after {
    content: 'Hero Image: 江戸切子などの工芸品やショップの内観';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 1;
}

/* Shop ページ専用のヒーロー配置 */
.shop .hero-title-top-right {
    position: absolute;
    top: 20%;
    right: 15%;
}

.shop .hero-subtitle-bottom-left {
    position: absolute;
    top: 20%;
    left: 15%;
    margin-top: 8rem;
}

@media (max-width: 768px) {
    .shop .hero-title-top-right {
        position: absolute;
        top: 25%;
        right: 50%;
        margin-right: -1.5rem;
        text-align: center;
    }

    .shop .hero-subtitle-bottom-left {
        position: absolute;
        top: 25%;
        left: 50%;
        margin-left: -2.5rem;
        margin-top: 6rem;
        text-align: center;
    }
}

/* =================================================================
   PARTY PAGE (宴会場・オークション)
   ================================================================= */

.hero-bg-party {
    background-color: #F8F6F0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.03) 10px, rgba(212, 175, 55, 0.03) 20px);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-bg-party {
        background-attachment: fixed;
        height: 90vh;
    }
}

.hero-bg-party::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-bg-party::after {
    content: 'Hero Image: 数寄屋造りの座敷やカラオケルームの豪華な内装';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #999;
    z-index: 1;
}

/* Party ページ専用のヒーロー配置 */
.party .hero-title-top-right {
    position: absolute;
    top: 20%;
    right: 15%;
}

.party .hero-subtitle-bottom-left {
    position: absolute;
    top: 20%;
    left: 15%;
    margin-top: 8rem;
}

@media (max-width: 768px) {
    .party .hero-title-top-right {
        position: absolute;
        top: 25%;
        right: 50%;
        margin-right: -1.5rem;
        text-align: center;
    }

    .party .hero-subtitle-bottom-left {
        position: absolute;
        top: 25%;
        left: 50%;
        margin-left: -2.5rem;
        margin-top: 6rem;
        text-align: center;
    }
}

/* =================================================================
   GATE PAGE
   ================================================================= */

/* ゲート用背景 */
.gate-bg {
    background-color: #F8F6F0;
    background-image:
        linear-gradient(135deg, rgba(248, 246, 240, 0.92) 0%, rgba(255, 255, 255, 0.85) 100%),
        url('https://placehold.co/1920x1080/1a202c/d4af37?text=SANGA+TOKYO');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ゲート用ボタン */
.gate-btn {
    background: transparent;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 1rem 0;
    font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    transition: all 0.5s ease;
    font-size: 1rem;
    text-align: center;
    width: 240px;
    text-decoration: none;
    cursor: pointer;
}

.gate-btn:hover {
    background: #D4AF37;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
}

/* モーダル入力フォーム */
.modal-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #CCCCCC;
    background-color: #FDFDFD;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    outline: none;
    transition: border-color 0.3s;
    letter-spacing: 0.1em;
}

.modal-input:focus {
    border-color: #D4AF37;
}

.modal-input::placeholder {
    color: #AAAAAA;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ゲストモーダル内のスクロール領域 */
.guest-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #F0F0F0;
}

.guest-content::-webkit-scrollbar {
    width: 6px;
}

.guest-content::-webkit-scrollbar-track {
    background: #F0F0F0;
}

.guest-content::-webkit-scrollbar-thumb {
    background-color: #D4AF37;
    border-radius: 3px;
}

@media (max-width: 640px) {
    .gate-btn {
        width: 100%;
        max-width: 280px;
    }

    .guest-content {
        max-height: 55vh;
    }
}

/* =================================================================
   SHARED GALLERY STYLES (Shop & Party)
   ================================================================= */

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #F8F6F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    display: none;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.photo-placeholder {
    font-size: 0.75rem;
    color: #999999;
    text-align: center;
    padding: 2rem;
}

.aspect-4-3 {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
}

.aspect-square {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

/* Responsive text adjustments for mobile */
@media (max-width: 768px) {
    /* Index page mobile adjustments */
    .index-page h2 {
        font-size: 1.75rem !important;
        line-height: 1.4 !important;
    }

    .index-page p {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }

    /* Shop & Party page mobile adjustments */
    .shop h1,
    .party h1 {
        font-size: 3rem !important;
    }

    .shop h2,
    .party h2 {
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
    }
}