* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fafafa;
    color: #222;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}


/* header */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1400px;
    height: 64px;
    margin: auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 25px;
}


/* hero */

.hero {
    padding: 70px 20px;
    text-align: center;
    background: #fff;
}

.hero h1 {
    margin: 0 0 25px;
    font-size: 32px;
}


/* search */

.search-form {
    max-width: 650px;
    margin: auto;

    display: flex;

    border: 2px solid #222;
    border-radius: 8px;

    overflow: hidden;
}

.search-form input {
    flex: 1;
    min-width: 0;

    padding: 16px;

    font-size: 16px;

    border: 0;
    outline: none;
}

.search-form button {
    width: 100px;

    border: 0;

    background: #222;
    color: #fff;

    cursor: pointer;
}


/* tags */

.popular-tags {
    margin-top: 20px;
    font-size: 14px;
}

.popular-tags a {
    margin-right: 12px;
}


/* content */

.content {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

.section-title {
    margin-bottom: 20px;
}


/* image grid */

.image-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 8px;
}

.image-card {
    position: relative;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #eee;
}

.image-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .2s ease;
}

.image-card:hover img {
    transform: scale(1.04);
}


/* detail */

.image-detail {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.detail-image {
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    max-height: 85vh;
}

.image-info {
    margin-top: 20px;
}


/* footer */

.site-footer {
    margin-top: 50px;
    padding: 30px;

    text-align: center;

    color: #888;

    border-top: 1px solid #eee;
}


/* tablet */

@media(max-width:1000px) {

    .image-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

}


/* smartphone */

@media(max-width:600px) {

    .header-inner {
        height: 55px;
    }

    nav {
        gap: 12px;
        font-size: 13px;
    }

    .hero {
        padding: 45px 15px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .content {
        padding:
            25px 8px;
    }

    .image-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 3px;
    }

}
/* ========================================
   Detail information
======================================== */

.image-info {
    max-width: 850px;
    margin: 25px auto 0;
}

.image-info h1 {
    font-size: 22px;
    margin-bottom: 25px;
}

.detail-category,
.detail-tags {
    margin-bottom: 18px;
}

.meta-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

.category-link {
    display: inline-block;
    padding: 7px 13px;
    background: #222;
    color: #fff;
    border-radius: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-link {
    display: inline-block;
    padding: 7px 11px;
    background: #eee;
    border-radius: 5px;
    font-size: 14px;
}

.tag-link:hover {
    background: #ddd;
}

.image-meta {
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}


/* ========================================
   Related
======================================== */

.related-section {
    margin-top: 60px;
}

.related-section h2 {
    margin-bottom: 20px;
}


/* ========================================
   Archive
======================================== */

.archive-header {
    margin-bottom: 30px;
}

.archive-header h1 {
    margin-bottom: 5px;
}

.archive-header p {
    margin: 0;
    color: #888;
}


/* ========================================
   Pagination
======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin-top: 40px;
}

.pagination a {
    padding: 10px 18px;
    background: #222;
    color: #fff;
    border-radius: 5px;
}
/* =========================================================
   Pagination
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 35px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;
    color: #222;

    text-decoration: none;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .pagination-current {
    background: #111;
    border-color: #111;
    color: #fff;
    font-weight: 700;
}
/* =========================================================
   Group
========================================================= */

.group-description {
    margin: 0 0 15px;
    padding: 18px 20px;

    background: #f7f7f7;
    border-radius: 8px;

    line-height: 1.8;
}

.group-meta {
    margin-bottom: 20px;

    color: #777;
    font-size: 14px;
}
/* =========================================================
   Image Detail Groups
========================================================= */

.detail-groups {
    margin-bottom: 18px;
}

.group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.group-link {
    display: inline-block;

    padding: 7px 12px;

    background: #eef4ff;
    border: 1px solid #dbe7ff;
    border-radius: 6px;

    color: #315b9d;
    font-size: 14px;
    text-decoration: none;

    transition:
        background 0.2s,
        border-color 0.2s;
}

.group-link:hover {
    background: #dfeaff;
    border-color: #c4d8ff;
}
/* =========================================================
   Groups List
========================================================= */

.groups-list {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.group-card {
    display: block;

    padding: 18px;

    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;

    color: #222;
    text-decoration: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}

.group-card:hover {
    border-color: #ccc;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.06);

    transform: translateY(-2px);
}

.group-card-name {
    margin-bottom: 6px;

    font-size: 17px;
    font-weight: 700;
}

.group-card-count {
    color: #777;
    font-size: 13px;
}

.group-card-description {
    margin-top: 12px;

    color: #666;
    font-size: 13px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


@media(max-width:800px) {

    .groups-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media(max-width:500px) {

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

}
/* =========================================================
   画像削除依頼
========================================================= */

.image-delete-request {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.delete-request-link {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 460px;

    padding: 14px 16px;

    background: #fff7f7;
    border: 1px solid #f1cccc;
    border-radius: 10px;

    color: #555;
    text-decoration: none;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.delete-request-link:hover {
    background: #fff0f0;
    border-color: #df9999;
    transform: translateY(-1px);
}


/* アイコン */

.delete-request-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #d95c5c;
    color: #ffffff;

    font-size: 17px;
    font-weight: bold;
}


/* テキスト */

.delete-request-text {
    display: flex;
    flex-direction: column;
    gap: 3px;

    flex: 1;
}

.delete-request-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.delete-request-description {
    font-size: 12px;
    line-height: 1.5;
    color: #888;
}


/* 矢印 */

.delete-request-arrow {
    flex-shrink: 0;

    font-size: 24px;
    line-height: 1;

    color: #c88888;
}


/* スマートフォン */

@media (max-width: 600px) {

    .delete-request-link {
        box-sizing: border-box;
        max-width: none;

        padding: 12px 14px;
    }

.delete-request-title {
    font-size: 13px;
}

.delete-request-description {
    font-size: 11px;
}

}
/* =========================================================
   削除依頼ページ
========================================================= */

.delete-request-target,
.delete-request-form,
.delete-request-complete {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------------------------
   対象画像
--------------------------------------------------------- */

.delete-request-target {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 20px;

    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 12px;

    text-align: center;
}

.delete-request-target p {
    margin: 0 0 14px;

    font-size: 13px;
    font-weight: 600;
    color: #777;
}

.delete-request-target a {
    display: inline-block;
}

.delete-request-target img {
    display: block;

    max-width: 240px !important;
    width: auto;
    height: auto;

    margin: 0 auto;

    border-radius: 10px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


/* ---------------------------------------------------------
   フォーム本体
--------------------------------------------------------- */

.delete-request-form {
    padding: 28px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.05);
}


/* ---------------------------------------------------------
   入力項目
--------------------------------------------------------- */

.delete-request-form .form-group {
    margin-bottom: 24px;
}

.delete-request-form label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #444;
}


/* セレクト */

.delete-request-form select {
    width: 100%;
    height: 46px;

    padding: 0 12px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    color: #444;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}


/* メール */

.delete-request-form input[type="email"] {
    width: 100%;
    height: 46px;

    padding: 0 12px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    color: #444;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}


/* テキストエリア */

.delete-request-form textarea {
    width: 100%;
    min-height: 160px;

    padding: 12px;

    box-sizing: border-box;

    resize: vertical;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    color: #444;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}


/* フォーカス */

.delete-request-form select:focus,
.delete-request-form input[type="email"]:focus,
.delete-request-form textarea:focus {
    border-color: #dc7890;

    box-shadow:
        0 0 0 3px rgba(220, 120, 144, 0.12);
}


/* ---------------------------------------------------------
   注意事項
--------------------------------------------------------- */

.delete-request-notice {
    margin-top: 5px;
    margin-bottom: 24px;

    padding: 15px 17px;

    background: #fff8f8;

    border: 1px solid #f0d6d6;
    border-radius: 8px;

    color: #777;

    font-size: 12px;
    line-height: 1.7;
}

.delete-request-notice p {
    margin: 0;
}

.delete-request-notice p + p {
    margin-top: 4px;
}


/* ---------------------------------------------------------
   送信ボタン
--------------------------------------------------------- */

.delete-request-submit {
    display: block;

    width: 100%;

    padding: 14px 20px;

    border: 0;
    border-radius: 9px;

    background: #d95c76;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.delete-request-submit:hover {
    background: #c94d68;

    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(201, 77, 104, 0.20);
}


/* ---------------------------------------------------------
   エラー
--------------------------------------------------------- */

.form-errors {
    max-width: 680px;

    margin: 0 auto 20px;
    padding: 15px 18px;

    box-sizing: border-box;

    background: #fff3f3;

    border: 1px solid #efc5c5;
    border-radius: 8px;

    color: #b84c4c;

    font-size: 13px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}


/* ---------------------------------------------------------
   送信完了
--------------------------------------------------------- */

.delete-request-complete {
    margin-top: 30px;

    padding: 35px 30px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

    text-align: center;

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.05);
}

.delete-request-complete h2 {
    margin: 0 0 18px;

    color: #444;

    font-size: 20px;
}

.delete-request-complete p {
    color: #777;

    font-size: 13px;
    line-height: 1.8;
}

.delete-request-complete a {
    display: inline-block;

    margin-top: 10px;
    padding: 10px 22px;

    background: #f5f5f5;

    border-radius: 7px;

    color: #555;

    text-decoration: none;
}


/* ---------------------------------------------------------
   スマートフォン
--------------------------------------------------------- */

@media (max-width: 600px) {

    .delete-request-form {
        padding: 20px 16px;

        border-radius: 10px;
    }

    .delete-request-target {
        padding: 16px;
    }

    .delete-request-target img {
        max-width: 200px !important;
    }

    .delete-request-submit {
        font-size: 14px;
    }

    .delete-request-complete {
        padding: 28px 18px;
    }

}
/* 削除依頼ページ見出し */

.delete-request-header {
    display: flex;
    align-items: center;
    gap: 14px;

    max-width: 680px;

    margin: 10px auto 25px;
}

.delete-request-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background: #d95c76;
    border-radius: 50%;

    color: #ffffff;

    font-size: 22px;
    font-weight: bold;
}

.delete-request-header h1 {
    margin: 0 0 4px;

    color: #333;

    font-size: 22px;
}

.delete-request-header p {
    margin: 0;

    color: #888;

    font-size: 12px;
    line-height: 1.5;
}