/* style/about.css */

/* --- General Page Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Matches shared.css body background */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Gold accent for titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #1A2B42; /* Main color as underline */
    border-radius: 2px;
}

.page-about__dark-section .page-about__section-title::after {
    background-color: #FFD700;
}

/* --- Buttons --- */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #FFD700; /* Gold accent */
    color: #1A2B42; /* Dark blue text for contrast */
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A2B42;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    padding-bottom: 80px; /* Adjusted from 0 for content below */
    padding-left: 0;
    padding-right: 0;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    margin-top: 0;
    background: linear-gradient(135deg, #1A2B42 0%, #0c182a 100%); /* Dark gradient background */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure sufficient height */
}

.page-about__hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__main-title {
    font-size: 48px;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.page-about__intro-text {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Content Sections --- */
.page-about__content-section {
    padding: 80px 0;
}

/* Mission & Vision / Responsible Gaming Layout */
.page-about__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__grid-layout--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__grid-layout--reverse .page-about__text-block {
    order: 2; /* Text on right */
}

.page-about__grid-layout--reverse .page-about__image-block {
    order: 1; /* Image on left */
}

.page-about__text-block {
    padding: 20px;
}

.page-about__image-block {
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.page-about__image-block img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px; /* Consistent border radius */
    transition: transform 0.5s ease;
}

.page-about__image-block img:hover {
    transform: scale(1.03);
}

.page-about__image-block--center {
    margin-top: 40px;
    max-width: 800px; /* Constrain width for centered images */
    margin-left: auto;
    margin-right: auto;
}


/* Values Grid */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-about__value-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__value-title {
    font-size: 22px;
    color: #FFD700; /* Gold for value titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-card p {
    color: #e0e0e0;
}

/* Why Choose Us Feature List */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for features */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-left: 5px solid #FFD700; /* Gold accent border */
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.page-about__feature-heading {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-about__feature-item p {
    color: #e0e0e0;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming .page-about__btn-primary {
    margin-top: 30px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #121212; /* Ensure dark background */
}

.page-about__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #202020; /* Slightly lighter dark for FAQ items */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0;
    background-color: #2a2a2a; /* Even lighter dark for answer background */
}

/* FAQ展開状態 - 🚨 使用!importantと十分なmax-heightを確保して展開できるようにする */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* 🚨 !importantで優先度を確保し、あらゆるコンテンツを収容できる十分な値を設定 */
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #202020; /* Dark background for question */
    border: 1px solid #333333; /* Darker border */
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background-color: #2a2a2a;
    border-color: #FFD700; /* Gold border on hover */
}

.page-about__faq-question:active {
    background-color: #333333;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold for FAQ question titles */
    pointer-events: none; /* 防止h3标签阻止点击事件 */
}

.page-about__faq-toggle {
    font-size: 28px; /* Larger toggle icon */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* 防止图标阻止点击事件 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* --- Contact Section --- */
.page-about__contact-section {
    padding: 80px 0;
    background-color: #0c182a; /* Slightly different dark background */
}

.page-about__contact-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
    color: #e0e0e0;
}

.page-about__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__contact-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-about__contact-item:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}