/* ======= ベースリセット / Normalize Lite ======= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 20px;
    font-family: sans-serif;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
    color: #333;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

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

a:hover {
    text-decoration: underline;
}

ul,
ol {
    padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure,
blockquote, dl, dd {
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ======= レスポンシブ対応 ======= */
@media screen and (min-width: 429px) and (max-width: 767px) {
    body {
        padding: 24px;
    }
    .card {
        font-size: 1rem;
        padding: 18px;
    }
    header img {
        max-width: 180px;
    }
}

@media screen and (min-width: 768px) and (max-width: 960px) {
    body {
        max-width: 90%;
        font-size: 1.05rem;
    }
    .card {
        padding: 20px;
    }
    header {
        margin-bottom: 48px;
    }
    header img {
        max-width: 220px;
    }
}

@media screen and (min-width: 961px) and (max-width: 1280px) {
    body {
        max-width: 800px;
        font-size: 1.1rem;
    }
    .card {
        padding: 24px;
    }
    nav {
        font-size: 1rem;
    }
}

/* ======= poetme 固有のスタイル ======= */
.card {
    border: 1px solid #ccc;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
}

.card h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.card img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    margin: 0 auto 12px auto;
    object-fit: contain;
    border-radius: 4px;
}

.card p {
    text-align: left;
    margin-top: 12px;
    line-height: 1.6;
    font-size: 1rem;
}

nav a {
    margin: 0 8px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header img {
    max-width: 200px;
}

.site-header {
    margin-bottom: 40px;
    padding: 0 16px;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 100px;
    position: relative;
}

.logo {
    max-width: 160px;
    height: auto;
}

.catch-copy {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    text-align: center;
    white-space: nowrap;
}

@media screen and (max-width: 960px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .catch-copy {
        position: static;
        transform: none;
        white-space: normal;
        margin-top: 8px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 428px) {
    .catch-copy {
        display: block;
        font-size: 1.1rem;
        text-align: center;
    }
    .catch-line1,
    .catch-line2 {
        display: block;
    }
}

.contact-link {
    background: #fff;
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 1s ease;
    font-size: 0.9rem;
    border-radius: 4px;
}

.contact-link:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

.contact-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #444;
}

.form-label {
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 16px;
}

.form-error {
    color: red;
    font-size: 0.9rem;
    margin-top: 8px;
}

.policy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    margin-top: 16px;
}

.policy-content section {
    margin-bottom: 16px;
}

.policy-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.policy-content p,
.policy-content ul {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.policy-content ul {
    padding-left: 1.2em;
}

.policy-content li {
    margin-bottom: 4px;
}

.header-links {
    position: absolute;
    right: 0;
    bottom: -24px;
    display: flex;
    gap: 8px;
}

.top-link,
.privacy-link {
    background: #fff;
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 1s ease;
    font-size: 0.9rem;
    border-radius: 4px;
}

.top-link:hover,
.privacy-link:hover {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

@media screen and (max-width: 960px) {
    .menu-toggle {
        display: flex !important;
    }

    .header-links {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .header-links.open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .header-links a {
        padding: 12px 16px;
        font-size: 1rem;
        width: fit-content;
        text-align: right;
        border-bottom: 1px solid #eee;
        margin-right: 8px;
    }

    .header-links a:last-child {
        border-bottom: none;
    }
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
