/* 
   Elegant Photo Gallery Stylesheet
   大人っぽく、落ち着いた女性向けデザイン
*/

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif JP', 'Times New Roman', serif;
    background-color: #f8f6f4;
    color: #4a4a4a;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 18px 25px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0e6e0;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #85665c;
    font-family: 'Noto Sans JP', serif;
    letter-spacing: 1px;
}

.back-button {
    background-color: transparent;
    color: #85665c;
    border: 1px solid #e0d3cc;
    padding: 8px 14px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.back-button:hover {
    background-color: #f0e6e0;
    color: #6e5147;
}

/* メインコンテンツ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ディレクトリリスト */
.directory-list {
    background-color: #fff;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    border: 1px solid #f0e6e0;
}

.directory-list h2 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #85665c;
    text-align: center;
    font-family:  'Noto Sans JP', serif;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.directory-list h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 1px;
    background-color: #d9c9c2;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.directory-item {
    padding: 15px 20px;
    background-color: #faf6f3;
    border-radius: 2px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #e8dcd5;
}

.directory-item:hover {
    background-color: #f0e6e0;
    border-left-color: #c9b5ab;
}

.directory-item span {
    font-weight: 400;
    color: #6e5147;
}

.directory-item .arrow {
    font-size: 1.1rem;
    color: #c9b5ab;
}

/* アクセスフォーム */
.access-form {
    background-color: #fff;
    border-radius: 4px;
    padding: 35px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #f0e6e0;
}

.access-form h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #85665c;
    font-family:  'Noto Sans JP', serif;
}

.access-form p {
    margin-bottom: 25px;
    color: #9e8a82;
    font-size: 0.95rem;
}

.access-form input {
    padding: 12px 15px;
    border: 1px solid #e0d3cc;
    border-radius: 2px;
    margin-right: 10px;
    width: 220px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #4a4a4a;
    transition: border 0.3s ease;
}

.access-form input:focus {
    outline: none;
    border-color: #c9b5ab;
}

.access-form button {
    padding: 12px 20px;
    background-color: #a38f85;
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.access-form button:hover {
    background-color: #85665c;
}

/* 写真ギャラリーグリッド */
.gallery {
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-gap: 10px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        grid-gap: 15px;
    }
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 30, 28, 0.95);
    z-index: 100;
    padding: 20px;
    text-align: center;
}

.lightbox-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 101;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

.nav-buttons {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* デバッグパネル */
.debug-panel {
    background-color: #f8f5f2;
    border-radius: 3px;
    padding: 15px;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #e8dcd5;
}

.debug-panel h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #85665c;
    font-family: 'Noto Sans JP', sans-serif;
}

.debug-panel pre {
    background-color: #fff;
    padding: 8px;
    border-radius: 2px;
    overflow-x: auto;
    border: 1px solid #e8dcd5;
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }
    
    .directory-list, .access-form {
        padding: 20px 15px;
    }
    
    .access-form input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .access-form button {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-gap: 8px;
    }
}



/* タイトルにロゴを追加 */
.header-title {
    position: relative;
    padding-left: 40px; /* ロゴ用のスペース */
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: #85665c;
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 1px;
}

.header-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('logo.png'); /* ロゴ画像のパス */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ロゴ画像がない場合のフォールバック（シンプルなアイコン） */
@supports not (background-image: url('logo.png')) {
    .header-title::before {
        content: "♦"; /* ダイヤモンド記号またはお好みの記号 */
        font-size: 24px;
        color: #a38f85;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
