@charset "UTF-8";

/* Theme Name: yoakemae */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');

/* 全体に適用する */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* root */
:root {
    --color: #7d93be;
    --gray: #efefef;
    --white: #fff;
    --black: #222;
    --font: "Noto Serif JP", serif;
}

/* 基本設定 */
body {
    background-color: var(--white);
    text-align: left;
    line-height: 1.7;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    word-break: break-all;
    color: var(--black);
}

@media screen and (min-width:768px) {
    body {
        font-size: 14px;
    }
}

@media screen and (min-width:1024px) {
    body {
        font-weight: 15px;
    }
}

@media screen and (min-width:1440px) {
    body {
        font-size: 16px;
    }
}

a {
    color: var(--black);
    transition: all .5s;
}

a:hover {
    color: var(--color);
}

a>img:hover {
    opacity: 0.8;
}

.topPage {
    width: 90%;
    max-width: 1000px;
    margin: 10vh auto;
    color: var(--white);
}

.topPage::before {
    position: fixed;
    display: block;
    content: '';
    z-index: -999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #24274c, #213a58);
}

.topPageLogo {
    display: block;
    width: 70%;
    height: auto;
}

.topPage p {
    margin: 3em auto 1em;
    padding: 1.5em 0;
}

.c1header {
    background: linear-gradient(to left bottom, #916fbe, #7d93be);
}

.c2header {
    background: linear-gradient(to left bottom, #9eb6bd, #be7679);
}

.c3header {
    background: linear-gradient(to left bottom, #a794bd, #bcb370);
}

.c1header,
.c2header,
.c3header {
    color: var(--white);
}

@media screen and (max-width:1023px) {

    .c1header,
    .c2header,
    .c3header {
        padding: 1.5em;
        width: 100%;
    }
}

@media screen and (min-width:1024px) {

    .c1header,
    .c2header,
    .c3header {
        position: fixed;
        top: 0;
        left: 0;
        overflow-y: auto;
        padding: 3em;
        width: 30%;
        height: 100vh;
    }

    .c1header::-webkit-scrollbar,
    .c2header::-webkit-scrollbar,
    .c3header::-webkit-scrollbar {
        width: 8px;
    }

    .c1header::-webkit-scrollbar-thumb,
    .c2header::-webkit-scrollbar-thumb,
    .c3header::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 4px;
    }

    .c1header::-webkit-scrollbar-track,
    .c2header::-webkit-scrollbar-track,
    .c3header::-webkit-scrollbar-track {
        background: transparent;
    }

    main,
    footer {
        width: 70%;
        margin-left: 30%;
    }
}

.c1header img,
.c2header img,
.c3header img {
    display: block;
    margin-bottom: 1em;
    width: 60%;
    height: auto;
}

nav {
    margin: 1.5em auto;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    list-style-type: none;
}

nav ul.menu1 li {
    flex-basis: 49%;
    margin: 0.5em 0;
}

nav ul.menu1 li a {
    display: inline-block;
    padding: 0.5em;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    text-decoration: none;
}

.menu2 {
    margin: 1.5em auto 0;
}

nav ul.menu2 li {
    flex-basis: 49%;
    margin-bottom: 0.5em;
}

nav ul.menu2 li a {
    display: inline-block;
    padding: 0.2em 0.5em;
    width: 100%;
    border: thin solid var(--white);
    border-radius: 99px;
    text-align: center;
    text-decoration: none;
    color: var(--white);
}

.menu2 li:first-of-type {
    flex-basis: 100%;
}

.menu2 li:first-of-type a {
    background-color: var(--black);
    border: var(--black);
    font-size: 1.2em;
    color: var(--white);
}

.join {
    background-color: var(--white);
    color: var(--black) !important;
}

main,
footer {
    padding: 3em 1.5em;
}

footer {
    background-color: var(--gray);
    text-align: center;
}

@media screen and (min-width:768px) {
    nav ul.menu1 li {
        flex-basis: 24%;
    }
}

@media screen and (min-width:1024px) {
    nav ul.menu1 li {
        flex-basis: 100%;
    }
}

/* =========================
   New Sites List (Rich Cards)
   ========================= */

/* 全体 */
.new-sites-list {
    margin: 0 auto 3em;
    max-width: 1000px;
    display: grid;
    gap: 16px;
}

/* カード */
.ns-card {
    border: 1px solid var(--gray);
    border-radius: 16px;
    margin-bottom: 1.5em;
    padding: 24px;
    display: grid;
    gap: 12px;
}

/* ヘッダー（画像＋情報） */
.ns-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    align-items: center;
}

.ns-left {
    flex-basis: 30%;
    text-align: center;
}

/* バナー */
.ns-thumb {
    flex: 0 0 220px;
    display: block;
}

.ns-thumb img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 本文 */
.ns-main {
    width: 100%;
    flex: 1;
}

/* タイトル */
.ns-title {
    margin: 0 0 8px;
    font-size: 1.5em;
    line-height: 1.35;
}

.ns-title a {
    text-decoration: none;
}

/* URL */
.ns-url {
    font-size: 13px;
}

.ns-url a {
    text-decoration: none;
    transition: .5s all;
}

/* 説明 */
.ns-desc {
    font-size: 13px;
    margin: 8px 0 16px;
    word-break: break-all;
}

.ns-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

/* =========================
   ピル（ジャンル/作品傾向/支援タイプ）
   ========================= */
.ns-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.ns-pills a,
.ns-pill {
    font-size: 12px;
    padding: 2px 8px;
    border: 1px solid var(--gray);
    border-radius: 99px;
    text-decoration: none;
    display: inline-block;
}

.ns-pills a:hover {
    background-color: var(--gray);
    color: var(--white);
}

/* =========================
   ハッシュタグ（#付き・枠なし）
   ========================= */
.ns-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.ns-hashtags a {
    font-size: 13px;
    color: #6b5cff;
    text-decoration: none;
}

.ns-hashtags a::before {
    content: "#";
}

.ns-hashtags a:hover {
    color: var(--white);
}

/* =========================
   サンプル画像（サムネ）
   ========================= */
.ns-samples {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ns-sample-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gray);
    cursor: pointer;
}

.ns-sample-btn {
    font-size: 12px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 6px 10px;
    background: var(--white);
    cursor: pointer;
}

/* =========================
   ページネーション
   ========================= */
.new-sites-pagination ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.new-sites-pagination a,
.new-sites-pagination span {
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 6px 10px;
    text-decoration: none;
}

.new-sites-pagination .current {
    background: #f6f6f6;
}

/* =========================
   モーダル：中央寄せ修正版
   ========================= */
/* ===== 完全中央固定モーダル ===== */
.ns-modal {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
}

/* 中央配置の本体 */
.ns-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 背景 */
.ns-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* モーダル中身 */
.ns-modal-inner {
    background: var(--white);
    color: var(--black);
    border-radius: 16px;
    padding: 16px;
    width: min(92vw, 1000px);
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}

/* 画像も中央 */
.ns-modal-image {
    display: block;
    margin: 0 auto;
    max-width: min(80vw, 800px);
    max-height: 70vh;
}

.ns-modal-head {
    margin-bottom: 12px;
}

.ns-modal-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.ns-modal-nav {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: .6;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.ns-modal-nav:hover {
    opacity: 1;
}

.ns-modal-nav:disabled {
    opacity: .2;
    cursor: default;
}

.ns-modal-counter {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    opacity: .7;
}

.ns-modal-close {
    border: 1px solid var(--black);
    border-radius: 16px;
    background-color: transparent;
    padding: 4px 8px;
    color: var(--black);
}

/* 念のため */
body:has(.ns-modal[open]) {
    overflow: hidden;
}

/* =========================
   モバイル
   ========================= */
@media (max-width: 640px) {
    .ns-head {
        flex-direction: column;
    }

    .ns-left {
        width: 100%;
        border-bottom: thin solid var(--gray);
        padding-bottom: 16px;
        margin-bottom: 8px;
    }

    .ns-thumb {
        flex: 1 1 auto;
    }

    .ns-thumb img {
        width: 100%;
        height: auto;
    }

    .ns-modal-grid {
        grid-template-columns: 1fr;
    }

    .ns-modal-inner {
        width: 94vw;
        padding: 12px;
    }

    .ns-modal-viewer {
        gap: 6px;
    }

    .ns-modal-nav {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 24px;
    }

    .ns-modal-image {
        max-width: calc(94vw - 92px);
        max-height: 65vh;
    }
}

.right {
    text-align: right;
}

.favorite-sites-wrap {
    display: grid;
    gap: 18px;
}

.sf-fav-btn {
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: .2s all;
    color: #f0b400;
    padding: 0;
    white-space: nowrap;
}

.sf-fav-btn:hover {
    opacity: .8;
}

.sf-fav-btn.is-fav {
    font-weight: 700;
}

.sf-updated-badge {
    font-size: 12px;
    color: orangered;
}

.ns-breadcrumb {
    margin: 0 auto 1.5em;
    max-width: 1000px;
    font-size: 12px;
}

.ns-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.ns-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.ns-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 6px;
    color: #999;
}

.ns-breadcrumb a {
    text-decoration: none;
}

.ns-breadcrumb a:hover {
    text-decoration: underline;
}

.um-account-meta {
    display: none !important;
}

.sf-my-sites {
    max-width: 1000px;
    margin: 0 auto 3em;
}

.sf-my-sites-summary {
    margin-bottom: 1.5em;
}

.sf-my-sites-summary p {
    margin: 0 0 10px;
}

.sf-my-sites-summary p:last-child {
    margin-bottom: 0;
}

.sf-my-sites-add-btn {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--black);
    border-radius: 99px;
    text-decoration: none;
    font-weight: bold;
    color: var(--white);
}

.sf-my-sites-grid {
    display: grid;
    gap: 20px;
}

.sf-my-site-card {
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 20px;
    background: var(--white);
}

.sf-my-site-head {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sf-my-site-thumb {
    flex: 0 0 220px;
    text-align: center;
}

.sf-my-site-thumb img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sf-my-site-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 16px;
    border: 1px solid #efefef;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
}

.sf-my-site-main {
    width: 100%;
}

.sf-my-site-title {
    margin: 0 0 10px;
    font-size: 1.3em;
    line-height: 1.4;
    margin-bottom: 0;
}

.sf-my-site-title a {
    text-decoration: none;
}

.sf-my-site-url {
    margin-bottom: 10px;
    font-size: 13px;
    word-break: break-all;
}

.sf-my-site-url a {
    text-decoration: none;
}

.sf-my-site-status {
    display: inline-block;
    margin-bottom: 12px;
    padding: 2px 10px;
    border: 1px solid var(--gray);
    border-radius: 99px;
    font-size: 12px;
}

.sf-my-site-status.is-public {
    border-color: #9fd3a8;
    color: #2c7a3f;
    background: #f4fff6;
}

.sf-my-site-status.is-draft {
    border-color: #e0c78d;
    color: #8a6500;
    background: #fffaf0;
}

.sf-my-site-actions a,
.sf-my-site-actions button {
    display: inline-block;
    padding: 4px 8px;
    border: thin solid var(--color);
    background-color: var(--color);
    border-radius: 99px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--white);
}

.sf-my-site-actions form {
    margin: 0;
}

.sf-my-sites-note {
    margin-top: 10px;
    font-size: 13px;
}

.sf-my-sites-alert {
    margin-bottom: 1.5em;
    padding: 14px 16px;
    border: 1px solid #f0c;
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 640px) {
    .sf-my-sites {
        width: 90%;
    }

    .sf-my-site-head {
        flex-direction: column;
    }

    .sf-my-site-thumb {
        flex: none;
        width: 100%;
    }

    .sf-my-site-thumb img {
        max-width: 100%;
    }
}

.delateBtn {
    padding: 0.2em 1em;
    border-radius: 20px;
    border: 0 solid red !important;
    background: red !important;
    color: var(--white);
}

input[type=text],
input[type=url] {
    padding: 0.2em 0.5em;
    border: thin solid var(--black);
    border-radius: 0;
    background-color: var(--white);
}

textarea {
    max-width: 500px;
    height: 200px;
}

.submitBtn {
    padding: 0.2em 1em;
    border-radius: 99px;
    background-color: var(--black);
    font-size: 1.2em;
    color: var(--white);
    cursor: pointer;
}

.upBtn {
    border: thin solid var(--black) !important;
    background-color: var(--white) !important;
    color: var(--black) !important;
}

.top-taxonomy-block {
    margin-top: 40px;
}

.top-taxonomy-block h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.term-list-item {
    margin: 0;
}

.term-list-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 5px;
    color: var(--black);
}

.term-name {
    text-decoration: underline;
}

.banner-item img {
    max-width: 100%;
    margin-bottom: 12px;
    vertical-align: middle;
    height: auto;
}

.banner-item textarea {
    width: 100%;
    height: auto;
    padding: 10px;
    font-size: 12px;
    box-sizing: border-box;
}

.copy-banner-code-btn,
.copy-url-btn {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.copy-banner-code-btn:hover,
.copy-url-btn:hover {
    background: #f7f7f7;
}

.banner-url-area {
    margin-bottom: 0.5em;
}

.banner-item textarea {
    width: 100%;
    min-height: 90px;
    box-sizing: border-box;
}

.copy-success {
    color: #16a34a;
    font-weight: bold;
    margin: 8px 0;
}

.copy-result textarea {
    width: 100%;
    min-height: 90px;
    margin-top: 8px;
}

.top-site-section {
    margin: 3em auto;
    max-width: 1000px;

}

.top-site-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.top-site-section-head h2 {
    margin: 0;
}

.top-site-slider-nav {
    display: flex;
    gap: 8px;
}

.top-site-slider-prev,
.top-site-slider-next {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 9999px;
    cursor: pointer;
}

.top-site-slider-wrap {
    overflow: hidden;
}

.top-site-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.top-site-slider::-webkit-scrollbar {
    display: none;
}

.top-site-card {
    flex: 0 0 320px;
    padding: 14px 16px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.top-site-card-title {
    margin: 0 0 8px;
    font-size: 16px;
}

.top-site-card-title a {
    text-decoration: none;
    color: inherit;
}

.top-site-card-excerpt {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .top-site-card {
        flex: 0 0 82vw;
    }
}

.top-site-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.top-site-slider-nav {
    display: flex;
    gap: 8px;
}

.top-site-section-footer {
    display: flex;
    justify-content: flex-end;
    /* ←右下に寄せる */
    margin-top: 12px;
}

.top-site-more {
    font-size: 14px;
    text-decoration: none;
    color: var(--color);
}

.top-site-more:hover {
    text-decoration: underline;
}

.banner-guide {
    margin-bottom: 24px;
}

.banner-guide h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.banner-guide p {
    margin: 0 0 8px;
}

.banner-guide ul {
    margin: 0;
    padding-left: 1.2em;
}

.strong {
    font-weight: bold;
    color: red;
}

/* ===== details / summary 共通 ===== */
#genre_c1_wrap details,
#genre_wrap details,
#tendency_wrap details {
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

#genre_c1_wrap summary,
#genre_wrap summary,
#tendency_wrap summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

#genre_c1_wrap summary::-webkit-details-marker,
#genre_wrap summary::-webkit-details-marker,
#tendency_wrap summary::-webkit-details-marker {
    display: none;
}

#genre_c1_wrap summary::marker,
#genre_wrap summary::marker,
#tendency_wrap summary::marker {
    content: "";
}

#genre_c1_wrap summary::before,
#genre_wrap summary::before,
#tendency_wrap summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 6px;
}

#genre_c1_wrap details[open] summary::before,
#genre_wrap details[open] summary::before,
#tendency_wrap details[open] summary::before {
    content: "▼";
}

/* ===== グリッド共通 ===== */
#genre_c1_wrap .genre-children-grid,
#genre_wrap .genre-grid,
#tendency_wrap .tendency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    margin-top: 10px;
    padding-left: 12px;
}

/* ===== カード共通 ===== */
#genre_c1_wrap .genre-child-card,
#genre_wrap .genre-card,
#tendency_wrap .tendency-card {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    margin: 0;
    line-height: 1.4;
}

#genre_c1_wrap .genre-child-card input,
#genre_wrap .genre-card input,
#tendency_wrap .tendency-card input {
    margin-top: 3px;
    flex: 0 0 auto;
}

/* ===== テキスト ===== */
#genre_c1_wrap .genre-child-text {
    display: block;
    word-break: break-word;
}

#genre_c1_wrap .count,
#genre_wrap .count,
#tendency_wrap .count {
    color: #777;
    font-size: 12px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    #genre_c1_wrap .genre-children-grid,
    #genre_wrap .genre-grid,
    #tendency_wrap .tendency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #genre_c1_wrap .genre-children-grid,
    #genre_wrap .genre-grid,
    #tendency_wrap .tendency-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
    }
}

ul{
	list-style-position:inside;
}