/*
Theme Name:   Sayoko Izumi
Theme URI:    https://www.sayokoizumi.com
Author:       Masafumi Umetsu
Description:  小泉さよ オフィシャルサイト用のオリジナルテーマ。著書・作品をカスタム投稿で管理。多言語対応(Polylang)。
Version:      1.0.0
Text Domain:  sayoko
*/

/* ===== Base ===== */
:root {
    --text: #333;
    --muted: #888;
    --line: #e2e2e2;
    --bg: #fff;
    --accent: #b07a5a;
    --maxw: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, "Helvetica Neue", "ヒラギノ角ゴ ProN",
        "Hiragino Kaku Gothic ProN", "游ゴシック", "Yu Gothic",
        Meiryo, sans-serif;
    line-height: 1.9;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s;
}

a:hover {
    opacity: .6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 読み上げ専用（視覚的に非表示） */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Site header / nav ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.site-title {
    font-size: 15px;
    letter-spacing: .08em;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    font-size: 13px;
    letter-spacing: .05em;
}

/* language switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.lang-switcher .current-lang {
    color: var(--text);
    font-weight: bold;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.hero h1 {
    font-weight: 400;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: .12em;
    margin: 0;
}

.hero .hero-en {
    display: block;
    font-size: .5em;
    letter-spacing: .25em;
    margin-top: .6em;
    color: var(--muted);
}

/* ===== Sections ===== */
.section {
    padding: 90px 0;
    border-top: 1px solid var(--line);
}

.section-title {
    font-size: 14px;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 36px;
    text-align: center;
}

/* ===== Works grid ===== */
.works-group {
    margin-bottom: 56px;
}

.works-group h3 {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .1em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px 18px;
}

.work-card-link {
    display: block;
}

.work-card-link:hover {
    opacity: 1;
}

.work-card-link:hover .work-cover-img {
    opacity: .75;
}

.work-cover-wrap {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f5;
    overflow: hidden;
}

.work-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .2s;
}

.work-cover-placeholder {
    font-size: 12px;
    color: var(--muted);
}

.work-title {
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 2px;
}

.work-sub {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== Works text list（サムネイルなしの区分） ===== */
.works-text {
    margin-top: 16px;
}

.works-list-group {
    margin-bottom: 44px;
}

.works-list-group h3 {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: .1em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.works-list-group h4 {
    font-size: 13px;
    font-weight: bold;
    color: var(--text);
    margin: 18px 0 8px;
}

.works-list-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.works-list-group li {
    font-size: 14px;
    line-height: 1.8;
    padding: 4px 0 4px 1em;
    text-indent: -1em;
    color: var(--text);
}

.works-list-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* グッズ：画像付きグリッド */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 24px 18px;
    margin-bottom: 8px;
}

.goods-item {
    margin: 0;
}

.goods-item-link {
    display: block;
}

.goods-item-link:hover {
    opacity: 1;
}

.goods-item-link:hover img {
    opacity: .75;
}

.goods-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #faf8f5;
    border: 1px solid var(--line);
    transition: opacity .2s;
}

.goods-item figcaption {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    margin-top: 8px;
}

.goods-item--noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1 / 1;
    background: #faf8f5;
    border: 1px dashed var(--line);
}

.goods-item--noimg figcaption {
    margin: 0;
    padding: 0 8px;
    color: var(--muted);
}

/* ===== Single work ===== */
.work-buy {
    font-size: 13px;
    color: var(--accent);
    display: inline-block;
}

.single-work .work-cover {
    max-width: 280px;
    margin: 0 auto 32px;
}

.single-work .work-cover--contain {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf8f5;
    overflow: hidden;
}

.single-work .work-cover--contain img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-work .entry-title {
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: .08em;
}

.single-work .work-detail {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 24px;
}

.single-work .work-detail span {
    margin: 0 8px;
}

/* ===== Bio / prose ===== */
.prose p {
    margin: 0 0 1.4em;
}

.prose a {
    color: var(--accent);
}

/* プロフィール写真（タイトル下・中央） */
.profile-photo {
    margin: 0 auto 32px;
    width: 128px;
}

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

/* ===== Contact form ===== */
.contact {
    text-align: center;
}

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    display: block;
}

.contact-form label>span {
    display: block;
    font-size: 13px;
    letter-spacing: .05em;
    margin-bottom: 6px;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    align-self: center;
    margin-top: 8px;
    padding: 12px 48px;
    font-family: inherit;
    font-size: 14px;
    letter-spacing: .1em;
    color: #fff;
    background: var(--text);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity .2s;
}

.contact-form button:hover {
    opacity: .7;
}

/* ハニーポット（画面外へ） */
.sayoko-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 送信結果メッセージ */
.form-message {
    max-width: 480px;
    margin: 0 auto 28px;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 2px;
}

.form-message.is-success {
    background: #eef6ee;
    color: #2e6b34;
}

.form-message.is-error {
    background: #fbeeee;
    color: #a33;
}

/* ブログバナー */
.blog-banner {
    display: block;
    width: 40% !important;
    height: auto;
    margin: 0;
    max-width: 600px;
}

.social {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 20px;
    color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* ===== Responsive ===== */
@media (min-width: 601px) {
    .container {
        max-width: 836px;
    }
}

@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .main-nav ul {
        gap: 14px;
    }

    .section {
        padding: 60px 0;
    }

    .blog-banner {
        width: 100% !important;
    }
}