/*
Theme Name: Delivery Health Theme
Theme URI: https://example.com/
Author: Custom Theme
Description: SEOテキスト・PRバナー10枠・相互リンク集を完備した出張デリヘル専用WordPressテーマ
Version: 1.0.0
*/

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

header {
    background: #e91e63;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

/* 上部SEOエリア */
.seo-upper-text {
    background: #fce4ec;
    border: 1px solid #f8bbd0;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 14px;
}

/* PRバナー 10枠グリッド */
.pr-banner-section {
    margin-bottom: 30px;
}

.pr-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pr-banner-card {
    border: 2px solid #ff4081;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    transition: transform 0.2s;
}

.pr-banner-card:hover {
    transform: translateY(-3px);
}

.pr-banner-card a {
    display: block;
    padding: 20px 10px;
    text-decoration: none;
    color: #d81b60;
    font-weight: bold;
    background: #fff0f5;
}

/* PRテキストリンク */
.pr-text-links {
    margin-bottom: 30px;
    padding: 15px;
    background: #fafafa;
    border: 1px dashed #ccc;
}

.pr-text-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-text-links li {
    margin-bottom: 8px;
}

.pr-text-links a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

/* 相互リンク集 */
.link-collection {
    margin-bottom: 30px;
}

.link-category {
    margin-bottom: 20px;
}

.link-category h3 {
    border-bottom: 2px solid #e91e63;
    padding-bottom: 5px;
    color: #e91e63;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.link-list li a {
    display: inline-block;
    padding: 5px 12px;
    background: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

/* 下部SEOテキスト */
.seo-lower-text {
    border-top: 2px solid #ddd;
    padding-top: 25px;
    margin-top: 40px;
}

.seo-lower-text h2 {
    font-size: 20px;
    color: #333;
    border-left: 5px solid #e91e63;
    padding-left: 10px;
    margin-top: 30px;
}

.seo-lower-text h3 {
    font-size: 16px;
    color: #555;
    margin-top: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 40px;
    font-size: 12px;
}

/* Readability and responsive layout adjustments */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    line-height: 1.85;
    color: #303744;
    background-color: #f5f6f8;
}

body > header {
    padding: 28px 20px;
    background-color: #bd1654;
}

body > header h1 {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body > header p:empty {
    display: none;
}

.container {
    width: calc(100% - 40px);
    max-width: 1140px;
    margin: 32px auto;
    padding: clamp(20px, 3vw, 40px);
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    overflow-wrap: anywhere;
}

.container > section,
.container > article {
    min-width: 0;
}

.container p {
    margin: 0.8em 0 1.2em;
}

.container h2,
.container h3 {
    line-height: 1.55;
}

.container img {
    max-width: 100%;
    height: auto;
}

.seo-upper-text {
    font-size: 1rem;
    line-height: 1.9;
    padding: 20px 24px;
    margin-bottom: 32px;
    background-color: #fff5f8;
    border-color: #e6bdcc;
}

.seo-upper-text p:first-child {
    margin-top: 0;
}

.seo-upper-text p:last-child {
    margin-bottom: 0;
}

.pr-banner-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.pr-banner-card,
.link-list > li {
    min-width: 0;
    max-width: 100%;
}

.pr-banner-section,
.pr-text-links,
.link-collection {
    margin-bottom: 36px;
}

.link-category h3 {
    color: #ad174b;
}

.link-list li a {
    font-size: 0.9375rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.seo-lower-text {
    padding-top: 32px;
}

.seo-lower-text h2 {
    font-size: 1.25rem;
    margin-top: 36px;
}

.seo-lower-text h3 {
    font-size: 1.125rem;
}

.container a:focus-visible,
body > header a:focus-visible,
body > footer a:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 4px;
}

body > header a:focus-visible {
    outline-color: #ffffff;
}

body > footer {
    padding: 24px 20px;
    margin-top: 32px;
    font-size: 0.875rem;
    line-height: 1.8;
}

@media (max-width: 600px) {
    body > header {
        padding: 22px 16px;
    }

    .container {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 20px 16px;
    }

    .seo-upper-text {
        padding: 16px;
    }

    .container h2,
    .seo-lower-text h2 {
        font-size: 1.125rem;
    }

    .pr-banner-section,
    .pr-text-links,
    .link-collection {
        margin-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pr-banner-card {
        transition: none;
    }

    .pr-banner-card:hover {
        transform: none;
    }
}

/* Accessibility fixes */
.pr-banner-card a {
    color: #ad174b;
}

.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100001;
    width: auto;
    height: auto;
    max-width: calc(100% - 24px);
    padding: 12px 18px;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    color: #17345c;
    background: #ffffff;
    border: 2px solid #17345c;
    border-radius: 4px;
    font-weight: 700;
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}


