/* 
   style.css: ウェブページの見た目を整えるためのファイルです。
   色、サイズ、レイアウト、余白などを設定します。
*/

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #3b82f6;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
    color: #1e40af;
}

/* ギャラリーのレイアウト（フレックスボックス） */
.photo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.photo-container img {
    width: calc(33.333% - 1rem);
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.photo-container img:hover {
    transform: scale(1.05); /* マウスが乗った時に少し大きくする */
}

/* カードのデザイン */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background-color: #2563eb;
}

/* ダウンロードボタンエリアのスタイル */
.download-list {
    /* 通常のリストの点を消す */
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;              /* 横並びにする */
    flex-wrap: wrap;            /* 画面が小さいときは折り返す */
    gap: 0.75rem;               /* ボタン間の余白 */
}

.download-list li {
    margin: 0;
}

.download-btn {
    display: inline-flex;       /* アイコンと文字を横並びにする */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;                /* アイコンとテキストの間の余白 */
    text-align: center;
    background-color: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
}

.download-btn:active {
    transform: translateY(0);
}

/* ダウンロードアイコンのサイズ調整 */
.download-icon {
    font-size: 1.2rem;
    line-height: 1;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1rem;
    box-sizing: border-box; /* パディングを含めたサイズ計算 */
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* スマホ用の設定（レスポンシブ） */
@media (max-width: 600px) {
    .photo-container img {
        width: 100%;
    }
}
