/* ベーススタイル */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', sans-serif;
    background-color: #0f0f0f;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow: auto;
}

.container {
    max-width: 860px;
    width: 100%;
    padding: 50px 40px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

h1 span.waku {
    display: inline-block;
    padding: 0.5rem 0.6rem;
    margin-left: 0.3rem;
    line-height: 1;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    transition: background-color 0.3s;
}

h1 span.waku:hover {
    background-color: #1a1a1a;
    color: #fff;
}

h1 span.aaa {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.1em;
}

h1 span.bbb {
    font-size: 1.1rem;
    display: block;
    line-height: 3;
    color: #888;
    font-weight: 400;
}

.note {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.file-upload {
    margin-bottom: 30px;
}

.upload-label {
    display: inline-block;
    padding: 14px 36px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
    letter-spacing: 0.05em;
}

.upload-label:hover {
    background-color: #fff;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.frame {
    width: 101%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.frame:hover {
    transform: scale(1.03);
}

.frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* ボタンスタイル */
.btn, .resize-btn {
    margin-top: 30px;
    padding: 12px 28px;
    margin-bottom: 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn:hover, .resize-btn:hover {
    background-color: #fff;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resize-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.resize-btn {
    margin-top: 0;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.content-select {
    padding: 30px 0;
}

.slider-container {
    margin-bottom: 30px;
}

input[type="range"] {
    width: 60%;
    accent-color: #1a1a1a;
}

#sliderValue {
    margin-left: 10px;
    font-weight: 700;
    color: #1a1a1a;
}

/* カラー選択 */
.color-selection {
    margin-bottom: 10px;
}

.color-selection label {
    font-size: 0.9rem;
    color: #555;
    margin-right: 10px;
}

.color-btn {
    padding: 8px 20px;
    border: 2px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.85rem;
    background-color: #fff;
    color: #333;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.color-btn:hover {
    border-color: #1a1a1a;
}

/* EXIF情報のスタイル */
.exif-data {
    font-family: 'Noto Sans JP', sans-serif;
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    color: #090909;
    text-shadow: 1px 1px 2px #000;
    font-size: 14px;
    text-align: center;
    padding: 5px 0;
    box-sizing: border-box;
}

/* コンテンツセクション */
.info-section {
    margin-top: 48px;
    padding: 40px 0;
    text-align: left;
    border-top: 1px solid #eee;
}

.info-section > p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.9;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.info-section h2 {
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 0.05em;
}

.info-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 特徴リスト */
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feature-item h3 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.feature-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #1a1a1a;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.feature-item p {
    font-size: 0.88rem;
    margin: 0;
    color: #666;
    line-height: 1.7;
}

/* 使い方 */
.howto-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #fafafa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.howto-step:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.howto-step h3 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.howto-step p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.faq-item {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 18px 24px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #ddd;
}

.faq-item[open] {
    background-color: #f5f5f5;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.93rem;
    line-height: 1.6;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: 'Q';
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item p {
    margin: 12px 0 0 38px;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.8;
}

/* フッター */
.site-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.82rem;
    color: #999;
}

.site-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

.site-footer p {
    margin: 6px 0;
}

/* プライバシーポリシー */
.privacy-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.privacy-content {
    text-align: left;
    padding: 20px 0;
    max-width: 640px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.privacy-content p {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.9;
}

.privacy-content a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-content a:hover {
    color: #555;
}

.privacy-date {
    margin-top: 36px;
    font-size: 0.82rem;
    color: #999;
}

/* メディアクエリ */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .upload-label {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn, .resize-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    input[type="range"] {
        width: 80%;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 30px 0;
    }

    .howto-step {
        padding: 18px;
    }

    .faq-item {
        padding: 14px 18px;
    }
}
