/* 基本フォント設定とスムーズスクロール */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    scroll-behavior: smooth;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: #374151; /* text-gray-800 */
}

/* ▼▼▼ 追加 ▼▼▼ */
/* ローディング画面 */
#loading-overlay {
    transition: opacity 0.5s ease-out;
}
/* ▲▲▲ 追加 ▲▲▲ */

/* セクション区切り線のスタイル */
.section-title-line {
    display: block;
    width: 80%;
    height: 1px;
    background-color: #D1D5DB; /* Tailwind gray-300 */
    margin-left: auto;
    margin-right: auto;
}

/* Unified Section Title Styling */
.section-main-title .first-letter {
    font-family: 'Times New Roman', Times, serif;
    font-size: 4rem;
    line-height: 1;
    color: inherit;
    font-weight: inherit;
}
.section-main-title .rest-of-title {
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
    color: inherit;
    font-weight: inherit;
}

/* Gallery Tab Styling */
.gallery-tab-button {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    color: #6B7280;
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-tab-button:hover {
    color: #1F2937;
}
.gallery-tab-button.active-tab {
    color: #10B981;
    font-weight: 600;
    border-bottom: 2px solid #10B981;
    border-radius: 0;
}
.tabs-container-bottom-line::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #E5E7EB;
    margin-top: 0.5rem;
}

/* Gallery Content Area Styling */
.gallery-content-area {
    padding: 1.5rem;
    margin-top: 1rem;
    background-image: url('../resources/images/wall_water.png'); /* 既存の背景画像設定 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;

    max-width: 90%; /* または親要素に対する割合で指定も可能です */
    margin-left: auto;
    margin-right: auto;
}

/* Gallery Item Styling */
.gallery-item {
    border: 1px solid #E5E7EB;
    display: block;
    font-size: 0.75rem;
    text-align: center;
    overflow: hidden;
    background-color: #FFFFFF;
    border-radius: 0.375rem;
    transition: transform 0.2s ease-in-out;
    position: relative;
}
.gallery-item a, .gallery-item img, .gallery-item video {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-item:hover {
    transform: scale(1.03);
}
.gallery-item img, .gallery-item video {
    object-fit: cover;
}

/* Gallery Navigation Arrows Styling */
.gallery-nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    position: relative; /* Added for title positioning */
}
.gallery-arrow-button {
    background-color: #E5E7EB;
    color: #374151;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-arrow-button:hover {
    background-color: #D1D5DB;
    color: #1F2937;
}
.gallery-arrow-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ▼▼▼ 変更 ▼▼▼ */
.gallery-item-title-display {
    background-color: #FFFFFF; /* white */
    color: #1F2937; /* gray-800 */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Hidden by default */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out; /* Add transition */
    min-width: 240px;
    pointer-events: none; /* ホバー時にタイトルが表示されても下のボタンが押せるように */
}
/* ▲▲▲ 変更 ▲▲▲ */

/* タブコンテンツの表示・非表示 */
.tab-content {
    display: none;
    margin-bottom: 10%;
}
.tab-content.active {
    display: block;
}

/* ヘッダーの高さ分のオフセット */
section[id] {
    scroll-margin-top: 6rem;
}

/* Custom style for gallery tab content titles on sm screens and up */
@media (min-width: 640px) {
    .gallery-content-area .tab-content h3 {
        font-family: 'Californian FB', serif;
        font-size: 3.5rem;
        line-height: 6rem;
        color: white;
        -webkit-text-stroke-width: 0.1px;
        -webkit-text-stroke-color: black;
    }
    .sm\:px-14 { /* Custom class for 3.5rem padding */
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}
/* History list styling */
.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E7EB;
}
.history-item:last-child {
    border-bottom: none;
}
.history-item .title {
    font-weight: 500;
    color: #374151;
}
.history-item .artist {
    color: #6B7280;
    font-size: 0.875rem;
}
.history-item .date, .history-item .type {
    font-size: 0.875rem;
    color: #4B5563;
    white-space: nowrap;
}
.history-item > div {
    margin-right: 1rem;
}
.history-item > div:last-child {
    margin-right: 0;
}

/* Data section individual area styling */
.data-area-block {
    background-color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}
.data-area-block:last-child {
    margin-bottom: 0;
}
/* Footer SNS icons */
.footer-sns-icons img {
    width: 40px;
    height: 24px;
    transition: opacity 0.3s ease;
    object-fit: contain;
}
.footer-sns-icons a:hover img {
    opacity: 0.7;
}
/* Hamburger Menu Styling */
.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 6rem; /* Below header */
    left: 0;
    right: 0;
    background-color: black; /* Match header */
    padding: 1rem 0;
    z-index: 40; /* Below header's z-index */
}
.mobile-menu.active {
    display: block;
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    text-align: center;
    color: white;
    border-bottom: 1px solid #374151; /* gray-700 for separator */
}
.mobile-menu a:last-child {
    border-bottom: none;
}
.mobile-menu a:hover {
    background-color: #1F2937; /* gray-800 for hover */
}
.text-gray-500 {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    margin: 40px;
}

/* Radio button styling */
.radio-button-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.radio-button-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-button-text {
    padding: 0.5rem 1rem;
    border: 2px solid #D1D5DB; /* gray-300 */
    border-radius: 0.375rem;
    background-color: white;
    color: #374151; /* gray-700 */
    font-size: 0.875rem;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-button-input:checked + .radio-button-text {
    background-color: #10B981; /* emerald-500 */
    border-color: #10B981;
    color: white;
    font-weight: 600;
}

.radio-button-label:hover .radio-button-text {
    border-color: #10B981;
}

.radio-button-input:focus + .radio-button-text {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* History list styling */
.history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0; /* py-3 */
    border-bottom: 1px solid #E5E7EB;
    align-items: center; /* 垂直方向中央揃え */
}
.history-item:last-child {
    border-bottom: none;
}
.history-item .title {
    font-weight: 500;
    color: #1F2937; /* text-gray-900 */
    font-size: 1.125rem; /* text-lg */
}
/* Add hover effect for links */
.history-item a.title:hover {
    text-decoration: underline;
    color: #1D4ED8; /* blue-700 */
}
.history-item .artist {
    color: #6B7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
}
.history-item .date, .history-item .type {
    font-size: 0.875rem; /* text-sm */
    color: #4B5563; /* text-gray-600 */
    white-space: nowrap;
    text-align: right;
}
.history-item > div {
    margin-right: 1rem;
}
.history-item > div:last-child {
    margin-right: 0;
}

/* Data section individual area styling (for the block containing the history list) */
.data-area-block {
    background-color: #F9FAFB;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

/* Back button styling */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #10B981; /* emerald-500 */
    color: white;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #059669; /* emerald-600 */
}
.back-button svg {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Email copy button styling */
.email-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: transparent;
    color: #10B981; /* emerald-500 */
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.email-copy-button:hover {
    background-color: #D1FAE5; /* emerald-100 */
    color: #059669; /* emerald-600 */
}

.email-copy-button:active {
    transform: scale(0.98);
}

.copy-icon {
    width: 1rem;
    height: 1rem;
    margin-left: 0.125rem;
}

.copy-feedback {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.copy-feedback.show {
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}

/* Filter tags styling */
.filter-tag {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #6B7280;
    background-color: #F3F4F6;
    border: 2px solid #E5E7EB;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-tag:hover {
    background-color: #E5E7EB;
    border-color: #D1D5DB;
}

.filter-tag.active {
    color: #FFFFFF;
    background-color: #10B981;
    border-color: #10B981;
    font-weight: 600;
}

/* Filter all button styling - 異なるスタイル */
.filter-all-button {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #4B5563;
    background-color: #FFFFFF;
    border: 2px solid #D1D5DB;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.filter-all-button:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
}

.filter-all-button.active {
    color: #FFFFFF;
    background-color: #6B7280;
    border-color: #6B7280;
    font-weight: 600;
}
