@charset "UTF-8";
/* CSS Document */

/*
Theme Name: Baku Art Gallery Theme
Description: 作品IDベースのURL構造と、作家・ジャンル等の静的解説ページを持つカスタムテーマ
Version: 1.0
Author: Your Name
*/

/* ==========================================================================
   1. 設定 (Variables & Reset)
   ========================================================================== */
:root {
    /* カラー設定 */
    --c-main: #222;
    --c-sub: #888;
    --c-border: #eee;
    --c-bg-light: #f9f9f9;
    --c-white: #fff;
    --c-black: #000;
    --c-accent: #d32f2f;

    /* サイズ設定 */
    --inner-width: 1100px;
    --transition: 0.3s ease;
    --section-space: 80px;
}

/* シンプルなリセットCSS */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--c-main);
    line-height: 1.6;
    background-color: var(--c-white);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ==========================================================================
   2. レイアウト (Layout)
   ========================================================================== */
.l-main {
    display: block;
}

.l-container {
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--inner-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--c-main);
    letter-spacing: 1px;
}

.global-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.global-nav a {
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.global-nav a:hover {
    color: var(--c-black);
    opacity: 0.7;
}

/* --- Hamburger Button (SP) --- */
.p-hamburger {
    display: none; /* デフォルトは非表示 */
}

/* --- Footer --- */
.l-footer {
    background: #fdfdfd;
    border-top: 1px solid var(--c-border);
    padding: 60px 0 30px;
    margin-top: 0;
}

.l-footer__inner {
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 20px;
}

.l-footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.l-footer__info {
    flex: 1;
    min-width: 250px;
}

.l-footer__logo {
    margin: 0 0 15px;
    font-size: 18px;
    letter-spacing: 2px;
}

.l-footer__text {
    font-size: 12px;
    color: var(--c-sub);
    line-height: 1.8;
}
.l-footer__nav-group {
    display: flex;
    gap: 60px;
    align-items: flex-start; 
}

.l-footer__nav-title {
    font-size: 12px;
    margin-bottom: 20px;
    color: #999;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.l-footer__nav-list {
    font-size: 13px;
    line-height: 2.5;
    display: block !important; 
    column-count: 1 !important; 
}

.l-footer__nav-list li {
    display: block !important;
    width: 100% !important;
    white-space: nowrap; 
}

.l-footer__nav-list a {
    color: var(--c-main);
}

.l-footer__nav-list a:hover {
    color: var(--c-black);
    text-decoration: underline;
}

.l-footer__copyright {
    text-align: center;
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
}

.l-footer__copyright p {
    font-size: 10px;
    color: #bbb;
    margin: 0;
}

/* ==========================================================================
   3. 共通パーツ (Components)
   ========================================================================== */

/* 共通ボタン（黒） */
.c-btn-black {
    display: inline-block;
    padding: 8px 18px;
    background: var(--c-main);
    color: var(--c-white) !important;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    border: none;
    cursor: pointer;
}

.c-btn-black:hover {
    background: var(--c-black);
    opacity: 0.9;
}

/* 共通ボタン（白） */
.c-btn-white {
    display: inline-block;
    padding: 12px 45px;
    background: var(--c-white);
    color: var(--c-black);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
}

.c-btn-white:hover {
    background: var(--c-black);
    color: var(--c-white);
}

/* ナビ用特別アイテム */
.nav-item--mypage { color: var(--c-accent) !important; font-weight: bold; }
.nav-item--logout { font-size: 11px; color: #999 !important; }

/* ==========================================================================
   4. ページ固有 (Project / Pages)
   ========================================================================== */

/* --- Front Page: Hero --- */
.p-hero {
    background: var(--c-main);
    color: var(--c-white);
    padding: 120px 20px;
    text-align: center;
}

.p-hero__title {
    font-size: 32px;
    letter-spacing: 0.15em;
    margin: 0 0 15px;
}

.p-hero__subtitle {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 35px;
}

/* --- Section Structure --- */
.p-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 12px;
}

.p-section__title {
    font-size: 20px;
    margin: 0;
    letter-spacing: 0.05em;
}

.p-section__more {
    font-size: 13px;
    color: var(--c-sub);
}

.p-section__more:hover {
    color: var(--c-main);
    text-decoration: underline;
}

/* --- Search Page: Box & Form --- */
.p-search-box {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
}

.p-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.p-search-form__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 160px;
}

.p-search-form__label {
    font-size: 11px;
    font-weight: bold;
    color: var(--c-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.p-search-form__input, 
.p-search-form select {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    background: var(--c-white);
    height: 43px;
}

.p-search-form__submit {
    padding: 0 35px;
    background: var(--c-main);
    color: var(--c-white);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 14px;
    height: 43px;
}

.p-search-form__submit:hover {
    background: var(--c-black);
}

/* --- Artwork Card --- */
.p-artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 50px 40px;
}

.p-artwork-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.p-artwork-card__visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--c-bg-light);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-artwork-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-artwork-card:hover .p-artwork-card__visual img {
    transform: scale(1.1);
}

.p-artwork-card__title {
    margin: 0 0 5px;
    font-size: 15px;
    color: var(--c-main);
    line-height: 1.4;
    font-weight: bold;
    display: block;
    letter-spacing: 0.5px;
}

.p-artwork-card__artist {
    margin: 0;
    font-size: 12px;
    color: var(--c-sub);
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.p-artwork-card__no-image {
    font-size: 11px;
    color: #ccc;
}

.p-artwork-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 0;
    color: var(--c-sub);
    font-size: 14px;
    border: 1px dashed var(--c-border);
}

/* --- Front Page: Nav Banners --- */
.p-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.p-nav-card {
  position: relative;
  background: linear-gradient(145deg, #f7f7f7, #ffffff);
  border: 1px solid var(--c-border);
  padding: 60px 20px;
  text-align: center;
  transition: all .25s ease;
  overflow: hidden;
}

/* うっすらロゴ */
.p-nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://test.baku-art.co.jp/wp-content/uploads/2026/05/baku@2x-scaled.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 260px auto;
  opacity: 0.09;
  pointer-events: none;
}

/* ホバー */
.p-nav-card:hover {
  background: #fff;
  border-color: #ccc;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* タイトル */
.p-nav-card__title {
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  transition: .2s;
}

/* サブ */
.p-nav-card__sub {
  font-size: 13px;
  color: var(--c-sub);
}

/* ホバーで少し強調 */
.p-nav-card:hover .p-nav-card__title {
  letter-spacing: 0.16em;
}

.p-nav-card__title {
    font-size: 24px;
    margin: 0 0 10px;
    letter-spacing: 0.1em;
}

.p-nav-card__sub {
    font-size: 13px;
    color: var(--c-sub);
    margin: 0;
}


/* --- Work Detail Layout --- */
.p-work-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 80px;
}

/* --- Left: Visual Gallery Area --- */
.p-work-detail__visual {
    flex: 1.2; /* 画像エリアを少し広めに */
    min-width: 320px;
}

/* メイン画像（大きく表示される部分） */
.p-work-gallery__main {
    width: 100%;
    background: #fff;
    border: 1px solid var(--c-border);
    overflow: hidden;
    line-height: 0;
}

.p-work-gallery__main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    aspect-ratio: 1 / 1; /* 正方形に統一（比率を維持するなら auto に変更可） */
    transition: opacity 0.3s ease;
}

/* サムネイル（下に並ぶ小さな画像） */
.p-work-gallery__thumbs {
    margin-top: 15px;
}

.p-work-gallery__thumbs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 1行に最大5枚 */
    gap: 10px;
}

.p-work-gallery__thumb-item {
    cursor: pointer;
    border: 1px solid var(--c-border);
    transition: all 0.2s ease;
    background: #fff;
    opacity: 0.5; /* 選択されていない時は薄く */
    line-height: 0;
}

.p-work-gallery__thumb-item:hover {
    opacity: 1;
    border-color: #999;
}

/* 現在選択中のサムネイル */
.p-work-gallery__thumb-item.is-active {
    opacity: 1;
    border: 2px solid var(--c-main);
}

.p-work-gallery__thumb-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* 未ログイン時の案内テキスト（画像の下） */
.p-work-detail__visual .p-work-gallery-note {
    background: var(--c-bg-light);
    padding: 15px;
    font-size: 11px;
    color: var(--c-sub);
    text-align: center;
    margin-top: 15px;
    line-height: 1.6;
}

/* --- Right: Information Area --- */
.p-work-detail__info {
    flex: 1;
    min-width: 300px;
}

.p-work-detail__title {
    font-size: 28px;
    margin: 0 0 30px;
    border-bottom: 2px solid var(--c-main);
    padding-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* スペック表 */
.p-work-spec {
    margin: 0 0 40px;
}

.p-work-spec__row {
    display: flex;
    border-bottom: 1px solid var(--c-border);
    padding: 15px 0;
    align-items: baseline;
}

.p-work-spec__label {
    width: 100px;
    font-weight: bold;
    font-size: 12px;
    color: var(--c-sub);
    flex-shrink: 0;
}

.p-work-spec__data {
    margin: 0;
    flex: 1;
    font-size: 15px;
}

/* リンク付きデータ（作家・技法・モチーフ） */
.p-work-spec__data a {
    text-decoration: underline;
    margin-right: 12px;
    color: var(--c-main);
}

.p-work-spec__data a:hover {
    color: var(--c-sub);
}

/* 価格表示 */
.p-work-spec__data--price {
    font-weight: bold;
    font-size: 22px;
    color: var(--c-main);
}

.p-work-spec__data--price span {
    font-size: 12px;
    font-weight: normal;
    margin-left: 5px;
}

/* お気に入りボタン */
.c-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 18px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: var(--c-main);
    font-size: 12px;
    transition: var(--transition);
}

.c-fav-btn:hover {
    background: var(--c-bg-light);
    border-color: #ccc;
}

.c-fav-btn.is-favorited {
    background: #fdfdfd;
    color: var(--c-sub);
}

/* 作品解説 */
.p-work-description {
    margin-top: 50px;
}

.p-work-description__title {
    font-size: 13px;
    letter-spacing: 2px;
    border-left: 3px solid var(--c-main);
    padding-left: 12px;
    margin-bottom: 18px;
    font-weight: bold;
}

.p-work-description__text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap; /* 改行を反映 */
}

/* お問い合わせエリア */
.p-work-contact-area {
    margin-top: 50px;
}

.p-work-contact-btn {
    display: block;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    transition: var(--transition);
    font-size: 15px;
}

.p-work-contact-btn--primary {
    background: var(--c-main);
    color: #fff;
}

.p-work-contact-btn--primary:hover {
    background: #000;
}

.p-work-contact-btn--secondary {
    background: #fff;
    color: var(--c-main);
    border: 1px solid var(--c-main);
}

.p-work-contact-btn--secondary:hover {
    background: var(--c-bg-light);
}

/* --- Responsive (SP) --- */
@media (max-width: 768px) {
    .p-work-detail {
        gap: 30px;
    }

    .p-work-detail__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .p-work-gallery__thumbs-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .p-work-spec__label {
        width: 80px;
    }
}
/* --- Artist List Page --- */
.p-page-title {
    font-size: 24px;
    margin-bottom: var(--section-space);
    border-bottom: 2px solid var(--c-main);
    padding-bottom: 15px;
    letter-spacing: 2px;
    font-weight: bold;
}
.p-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px 30px;
}

.p-artist-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.p-artist-card__visual {
    aspect-ratio: 1 / 1;
    background: var(--c-bg-light);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-artist-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition);
}

.p-artist-card:hover .p-artist-card__visual img {
    transform: scale(1.05);
}

.p-artist-card__name {
    font-weight: bold;
    font-size: 16px;
    color: var(--c-main);
    margin-bottom: 5px;
    transition: var(--transition);
}

.p-artist-card:hover .p-artist-card__name {
    color: var(--c-black);
}

.p-artist-card__kana {
    font-size: 11px;
    color: var(--c-sub);
    letter-spacing: 1px;
}

.p-artist-card__no-image {
    color: #ccc;
    font-size: 11px;
}

/* --- Taxonomy Term List --- */
.p-term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.p-term-card {
    display: block;
    background: var(--c-bg-light);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--c-border);
    color: var(--c-main);
    font-weight: 500;
    transition: var(--transition);
}

.p-term-card:hover {
    background: #eee;
    border-color: #ccc;
    transform: translateY(-2px);
}

.p-term-card__count {
    display: block;
    font-size: 11px;
    color: var(--c-sub);
    font-weight: normal;
    margin-top: 8px;
    letter-spacing: 0.05em;
}
/* --- Profile Edit Menu (会員情報編集トップのメニュー) --- */
.p-profile-edit-form-wrapper ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px; /* ボタン同士の隙間 */
}

.p-profile-edit-form-wrapper li {
    margin: 0 !important;
    padding: 0 !important;
}

/* メニューのリンクを「黒いボタン」に変える */
.p-profile-edit-form-wrapper li a {
    display: block !important;
    width: 100% !important;
    background: var(--c-main);
    color: var(--c-white) !important;
    padding: 18px !important;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    transition: var(--transition);
    border: 1px solid var(--c-main);
}

.p-profile-edit-form-wrapper li a:hover {
    background: var(--c-black);
    opacity: 0.9;
}

/* 「パスワードを変更する」など、サブメニューの方は少し色を変えたい場合の調整（任意） */
.p-profile-edit-form-wrapper li:nth-child(2) a {
    background: #fff;
    color: var(--c-main) !important;
    border: 1px solid var(--c-main);
}

.p-profile-edit-form-wrapper li:nth-child(2) a:hover {
    background: var(--c-bg-light);
}


/* --- Layout & Sections --- */
.p-mypage-profile,
.p-mypage-favorites,
.p-profile-edit-container {
    margin-bottom: 70px;
}

.p-mypage-section-title {
    font-size: 16px;
    margin-bottom: 30px;
    letter-spacing: 2px;
    border-left: 3px solid var(--c-main);
    padding-left: 15px;
    font-weight: bold;
}

/* --- Profile List (マイページ表示用) --- */
.p-mypage-profile__list {
    margin: 0;
    border-top: 1px solid var(--c-border);
}

.p-mypage-profile__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
    align-items: baseline;
}

.p-mypage-profile__row dt {
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--c-sub);
    text-transform: uppercase;
}

.p-mypage-profile__row dd {
    margin: 0;
    font-size: 14px;
    color: var(--c-main);
    line-height: 1.8;
}

/* --- Actions & Buttons --- */
.p-mypage-profile__actions {
    margin-top: 30px;
}

.p-mypage-profile__btn {
    display: inline-block;
    min-width: 220px;
    padding: 16px 24px;
    border: 1px solid var(--c-main);
    color: var(--c-main);
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.p-mypage-profile__btn:hover {
    background: var(--c-main);
    color: var(--c-white);
}

/* --- Profile Edit Form (会員情報編集・入力フォーム用) --- */
/* ラッパーと内部要素を端まで伸ばす */
.p-profile-edit-form-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.p-profile-edit-form-wrapper #wpmem_reg,
.p-profile-edit-form-wrapper .row,
.p-profile-edit-form-wrapper .left,
.p-profile-edit-form-wrapper .right {
    display: block !important;
    width: 100% !important;
    float: none !important;
    text-align: left !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

/* 編集画面の見出し（パスワード変更など） */
.p-profile-edit-form-wrapper h2 {
    font-size: 16px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
    letter-spacing: 1px;
    font-weight: bold;
}

/* ラベル（項目名） */
.p-profile-edit-form-wrapper label {
    display: block !important;
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    color: var(--c-main) !important;
    letter-spacing: 1px;
}

/* 入力ボックス（パスワード等）を右端まで伸ばす */
.p-profile-edit-form-wrapper input[type="text"],
.p-profile-edit-form-wrapper input[type="email"],
.p-profile-edit-form-wrapper input[type="password"],
.p-profile-edit-form-wrapper input[type="tel"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    box-sizing: border-box !important; /* 内側の余白を計算に含めて右端を揃える */
    background: var(--c-white);
    margin-bottom: 20px !important;
}

/* 更新ボタンをサイト共通の黒ワイドボタンにする */
.p-profile-edit-form-wrapper .button_div {
    width: 100% !important;
    margin: 30px 0 0 0 !important;
    padding: 0 !important;
}

.p-profile-edit-form-wrapper input[type="submit"] {
    width: 100% !important;
    background: var(--c-main) !important;
    color: var(--c-white) !important;
    padding: 18px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 !important;
    -webkit-appearance: none;
}

.p-profile-edit-form-wrapper input[type="submit"]:hover {
    background: var(--c-black) !important;
}

/* --- Empty State (お気に入りなし) --- */
.p-artwork-grid__empty {
    padding: 40px 20px;
    border: 1px solid var(--c-border);
    font-size: 13px;
    color: var(--c-sub);
    text-align: center;
    line-height: 1.8;
    background: var(--c-bg-light);
}

/* ==========================================================================
   Responsive (Smartphone)
   ========================================================================== */
@media screen and (max-width: 767px) {
    .p-mypage-header {
        margin-bottom: 40px;
        padding-bottom: 24px;
    }

    .p-mypage-header__flex {
        display: block;
    }

    .p-mypage-header__logout {
        display: inline-block;
        margin-top: 14px;
    }

    .p-mypage-profile__row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 15px 0;
    }

    .p-mypage-profile__row dt {
        font-size: 11px;
    }

    .p-mypage-profile__row dd {
        font-size: 13px;
    }

    .p-mypage-profile__btn {
        width: 100%;
        min-width: 0;
    }
}


/* --- Contact Page --- */
.p-contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.p-contact-header__title {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--c-main);
    display: inline-block;
    padding-bottom: 10px;
}

.p-contact-header__text {
    font-size: 13px;
    color: var(--c-sub);
    margin-top: 10px;
}

.p-contact-form-wrapper {
    background: var(--c-white);
    padding: 20px 0;
}

.wpcf7-form p {
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: bold;
    color: var(--c-main);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    margin-top: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--c-white);
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--c-main);
    outline: none;
}

.wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    background: var(--c-main);
    color: var(--c-white);
    padding: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 2px;
    transition: var(--transition);
    margin-top: 20px;
    -webkit-appearance: none;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--c-black);
}

.wpcf7-spinner { 
    display: block; 
    margin: 20px auto; 
}
.wpcf7-not-valid-tip { 
    color: var(--c-accent); 
    font-weight: normal; 
    font-size: 12px; 
    margin-top: 5px; 
}
.wpcf7-response-output { 
    border: none !important; 
    background: var(--c-bg-light); 
    padding: 20px !important; 
    text-align: center; 
    margin-top: 30px !important; 
}

/* --- Login Page --- */
.p-login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border: 1px solid var(--c-border);
    background: var(--c-white);
}

.p-login-header__title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.p-login-error {
    color: var(--c-accent);
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

#loginform-custom label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    color: var(--c-main);
}

#loginform-custom input[type="text"], 
#loginform-custom input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
}

#loginform-custom .login-remember {
    margin-bottom: 20px;
    font-size: 12px;
}

#loginform-custom .button-primary {
    width: 100%;
    padding: 15px;
    background: var(--c-main);
    color: var(--c-white);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    letter-spacing: 1px;
}

#loginform-custom .button-primary:hover {
    background: var(--c-black);
}

.p-login-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
}

.p-login-footer__text {
    font-size: 12px;
    color: var(--c-sub);
    margin-bottom: 10px;
}

.p-login-footer__link {
    color: var(--c-main);
    font-weight: bold;
    text-decoration: underline;
    font-size: 14px;
}

/* --- Signup Page --- */
.p-signup-container {
    max-width: 560px;
    margin: 80px auto;
    padding: 40px;
    border: 1px solid var(--c-border);
    background: var(--c-white);
    box-sizing: border-box;
}

.p-signup-form-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* フォーム全体 */
#wpmem_reg {
    width: 100% !important;
}

/* WP-Membersの各行・各カラムを全部フル幅化 */
#wpmem_reg .row,
#wpmem_reg .div_text,
#wpmem_reg .div_textarea,
#wpmem_reg .div_select,
#wpmem_reg .button_div,
#wpmem_reg .req-text,
#wpmem_reg .left,
#wpmem_reg .right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* ラベル */
#wpmem_reg label,
.p-signup-form__label {
    display: block !important;
    width: 100% !important;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0 !important;
    color: var(--c-main);
    letter-spacing: 1px;
    box-sizing: border-box;
}

/* 入力系 */
#wpmem_reg input[type="text"],
#wpmem_reg input[type="email"],
#wpmem_reg input[type="password"],
#wpmem_reg input[type="tel"],
#wpmem_reg select,
#wpmem_reg textarea {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    line-height: 1.4;
    box-sizing: border-box !important;
    background: var(--c-white);
    -webkit-appearance: none;
    appearance: none;
}

/* ボタン行 */
#wpmem_reg .button_div {
    margin-top: 30px !important;
}

/* ボタン本体 */
#wpmem_reg input[type="submit"],
#wpmem_reg .buttons {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: var(--c-main) !important;
    color: var(--c-white) !important;
    padding: 18px !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}

#wpmem_reg input[type="submit"]:hover {
    background: var(--c-black) !important;
    opacity: 0.8;
}

/* 必須マーク */
#wpmem_reg .req,
.req {
    color: var(--c-accent);
    margin-left: 4px;
}

/* Required field の文言 */
#wpmem_reg .req-text {
    font-size: 14px;
    margin-top: 12px !important;
}



/* --- Taxonomy Archive Page --- */
.p-archive-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 40px;
}

.p-archive-header__tax-name {
    font-size: 12px;
    color: var(--c-sub);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.p-archive-header__title {
    font-size: 32px;
    margin: 10px 0 20px;
    color: var(--c-main);
}

.p-archive-header__description {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    max-width: 700px;
}

.p-archive-header__no-description {
    color: #ccc;
    font-size: 13px;
}

.p-archive-section-title {
    font-size: 14px;
    color: var(--c-sub);
    margin-bottom: 30px;
    letter-spacing: 1px;
}
/* --- Terms & Policy Common --- */
.p-terms-content {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
}

.p-terms-content__title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-weight: bold;
}

.p-terms-content__intro {
    margin-bottom: 40px;
    font-size: 15px;
    color: #333;
    background: var(--c-bg-light);
    padding: 25px;
    border-left: 4px solid var(--c-main);
}

.p-terms-section {
    margin-bottom: 45px;
}

.p-terms-section__title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid var(--c-main);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.p-terms-section__item {
    margin-bottom: 15px;
}

.p-terms-section__number {
    font-weight: bold;
    margin-right: 0.5em;
}

.p-terms-section__text {
    font-size: 14px;
    color: #444;
    margin: 0 0 10px;
    padding-left: 1.2em;
    text-indent: -1.2em;
}

.p-terms-section__sub-list {
    padding-left: 2em;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}
/* --- About Page --- */
.p-about {
    max-width: 900px;
    margin: 0 auto;
}

.p-about__section {
    margin-bottom: 100px;
}

.p-about__visual {
    margin-bottom: 40px;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border);
}

.p-about__visual img {
    width: 100%;
    height: auto;
    display: block;
}

.p-about__content {
    padding: 0 20px;
}

.p-about__title {
    font-size: 24px;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: bold;
    border-left: 4px solid var(--c-main);
    padding-left: 20px;
}

.p-about__text {
    font-size: 16px;
    line-height: 2.2;
    color: #333;
    margin-bottom: 20px;
}

.p-about__lead {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.8;
}

/* ギャラリー情報（住所・アクセス等）のテーブル */
.p-about-info {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    border-top: 1px solid var(--c-main);
}

.p-about-info th,
.p-about-info td {
    padding: 20px;
    border-bottom: 1px solid var(--c-border);
    font-size: 14px;
    text-align: left;
}

.p-about-info th {
    width: 150px;
    color: var(--c-sub);
    font-weight: bold;
}
/* --- LINE Page --- */
.p-line-page {
    max-width: 800px;
    margin: 0 auto;
}

.p-line-page__visual {
    background: #06C755; /* LINEグリーン */
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.p-line-page__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.p-line-page__feature-item {
    background: var(--c-bg-light);
    padding: 25px;
    border: 1px solid var(--c-border);
}

.p-line-page__feature-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #06C755;
    font-weight: bold;
}

.p-line-page__feature-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* LINEボタン共通 */
.c-btn-line {
    display: inline-block;
    background: #06C755;
    color: #fff !important;
    padding: 18px 50px;
    font-weight: bold;
    border-radius: 50px;
    font-size: 18px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.c-btn-line:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

/* ヘッダー用LINEボタン（会員登録ボタンと同じサイズ感に調整） */
.c-btn-line--header {
    display: inline-block;
    padding: 8px 18px; 
    background: #06C755;
    color: #fff !important;
    font-size: 14px; 
    font-weight: bold;
    text-align: center;
    border-radius: 2px; 
    transition: var(--transition);
    border: none;
}

.c-btn-line--header:hover {
    opacity: 0.8;
    background: #05b64e;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .c-btn-line--header {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 10px;
        font-size: 16px; 
    }
}

/* --- General Contact Page --- */
.p-contact-content {
    max-width: 700px;
    margin: 0 auto;
}

/* フォーム入力枠の統一 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100% !important;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    -webkit-appearance: none;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 25px;
    font-weight: bold;
    font-size: 14px;
}

.p-contact-form-wrapper {
    background: var(--c-bg-light);
    padding: 40px;
    border: 1px solid var(--c-border);
}
/* --- 電話・LINEエリア（PCで横並び） --- */
.p-contact-footer__flex {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.p-contact-footer__item {
    flex: 1;
    background: var(--c-bg-light);
    padding: 30px;
    border: 1px solid var(--c-border);
    text-align: center;
}

.p-contact-footer__label {
    display: block;
    font-size: 12px;
    color: var(--c-sub);
    margin-bottom: 10px;
    font-weight: bold;
}

.p-contact-footer__tel {
    font-size: 24px;
    font-weight: bold;
    color: var(--c-main);
    text-decoration: none;
}

/* --- Column Archive --- */
.p-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.p-column-card {
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 20px;
    transition: var(--transition);
}

.p-column-card:hover {
    opacity: 0.8;
}

.p-column-card__visual {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    margin-bottom: 15px;
}

.p-column-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-column-card__date {
    font-size: 11px;
    color: var(--c-sub);
    display: block;
    margin-bottom: 5px;
}

.p-column-card__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.p-column-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
/* --- Column Single (記事詳細) --- */
.p-column-single {
    max-width: 800px; /* 読みやすい幅に制限 */
    margin: 0 auto;
}

.p-column-single__date {
    font-size: 12px;
    color: var(--c-sub);
    margin-right: 15px;
}

.p-column-single__category {
    font-size: 10px;
    background: var(--c-bg-light);
    padding: 2px 8px;
    border: 1px solid var(--c-border);
    color: var(--c-sub);
    letter-spacing: 1px;
}

.p-column-single__title {
    font-size: 32px;
    line-height: 1.4;
    margin-top: 15px;
    font-weight: bold;
}

.p-column-single__visual img {
    width: 100%;
    height: auto;
    border: 1px solid var(--c-border);
}

/* 目次デザイン */
.p-toc {
    background: var(--c-bg-light);
    border: 1px solid var(--c-border);
    padding: 25px;
}

.p-toc__title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
}

.p-toc__list {
    font-size: 14px;
    counter-reset: toc-counter;
    padding-left: 0;
}

.p-toc__list li {
    list-style: none;
    margin-bottom: 10px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
}

.p-toc__list li a {
    display: block;
    color: var(--c-main);
    transition: opacity 0.3s;
}

.p-toc__list li a:hover {
    opacity: 0.6;
}

/* 本文内のスタイル調整（SEO業者が好む装飾） */
.entry-content h2 {
    font-size: 22px;
    border-left: 4px solid var(--c-main);
    padding: 10px 0 10px 20px;
    margin: 60px 0 30px;
    background: var(--c-bg-light);
}

.entry-content p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 30px;
    color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .p-column-single__title {
        font-size: 24px;
    }
}
/* --- 旧エディタ本文内の画像装飾・回り込み --- */
.entry-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

/* 左に配置 */
.entry-content .alignleft {
    float: left;
    margin: 5px 30px 20px 0;
    max-width: 45%;
}

/* 右に配置 */
.entry-content .alignright {
    float: right;
    margin: 5px 0 20px 30px;
    max-width: 45%;
}

/* 中央に配置 */
.entry-content .aligncenter {
    display: block;
    margin: 0 auto 30px;
}

/* キャプション付き画像のデザイン */
.wp-caption {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
    text-align: center;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 11px;
    color: var(--c-sub);
    margin: 10px 0 0;
    line-height: 1.4;
}

/* 回り込みの解除 */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}
/* --- 記事内の表（テーブル）デザイン --- */
.entry-content table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed; /* 列の幅を固定してはみ出し防止 */
}

.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border: 1px solid var(--c-border);
    text-align: left;
}

.entry-content th {
    background-color: var(--c-bg-light);
    font-weight: bold;
    color: var(--c-main);
    width: 30%; /* 見出し列を少し狭く設定 */
}

/* スマホ対応：横に長い表をスクロールさせる */
@media (max-width: 768px) {
    .entry-content {
        overflow-x: auto; /* 記事全体で横スクロールを許可 */
    }
    .entry-content table {
        min-width: 500px; /* スマホでも潰れない最小幅 */
    }
}
/* --- 記事内のリスト装飾（微調整版） --- */
.entry-content ul, 
.entry-content ol {
    margin: 0 0 30px 1.5em; /* 左側に適切な余白を作る */
    padding: 0;
}

.entry-content li {
    margin-bottom: 0.5em;
    padding-left: 0.3em;
    line-height: 1.7;
}

/* 箇条書きの黒丸を少し上品に */
.entry-content ul li {
    list-style-type: disc;
}

/* 番号付きリスト */
.entry-content ol li {
    list-style-type: decimal;
}
/* --- コラムカテゴリーナビゲーション --- */
.p-column-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 10px;
}

.p-column-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
}

.p-column-nav li a {
    display: inline-block;
    font-size: 13px;
    color: var(--c-sub);
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

/* ホバー時と現在地の装飾（下線を表示） */
.p-column-nav li a:hover,
.p-column-nav li a.is-active {
    color: var(--c-main);
    font-weight: bold;
}

.p-column-nav li a::after {
    content: "";
    position: absolute;
    bottom: -11px; /* 親のpadding-bottomと調整 */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-main);
    transition: width 0.3s ease;
}

.p-column-nav li a:hover::after,
.p-column-nav li a.is-active::after {
    width: 100%;
}

/* スマホ対応：横に並びきらない場合はスクロールさせる */
@media (max-width: 768px) {
    .p-column-nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .p-column-nav ul {
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
}
/* --- Column Footer Artist Link --- */
.p-column-footer-artist {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed #eee;
}

.p-column-footer-artist__label {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    text-align: center;
}

.p-column-footer-artist__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* 作家ページへのボタン */
.c-btn-artist-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
    min-width: 320px;
}

.c-btn-artist-link:hover {
    background: #000;
    transform: translateY(-2px);
}

.c-btn-artist-link .u-icon-arrow {
    margin-left: 10px;
    font-size: 12px;
}

/* スマホでは幅を調整 */
@media (max-width: 480px) {
    .c-btn-artist-link {
        width: 100%;
        min-width: auto;
    }
}
/* --- News List --- */
.p-news-list {
    border-top: 1px solid var(--c-border);
    margin-bottom: 60px;
}

.p-news-item {
    border-bottom: 1px solid var(--c-border);
}

.p-news-item__link {
    display: flex;
    padding: 25px 10px;
    align-items: baseline;
    gap: 30px;
    transition: background 0.3s;
}

.p-news-item__link:hover {
    background: var(--c-bg-light);
}

.p-news-item__date {
    font-size: 13px;
    color: var(--c-sub);
    flex-shrink: 0;
    min-width: 100px;
}

.p-news-item__content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p-news-item__title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.p-news-item__external-icon {
    font-size: 12px;
    color: var(--c-sub);
    margin-left: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .p-news-item__link {
        flex-direction: column;
        gap: 8px;
        padding: 20px 5px;
    }
}
/* --- News Single --- */
.p-news-single {
    max-width: 800px;
    margin: 0 auto 100px;
}

.p-news-single__header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 30px;
}

.p-news-single__date {
    font-size: 14px;
    color: var(--c-sub);
    display: block;
    margin-bottom: 10px;
}

.p-news-single__title {
    font-size: 26px;
    line-height: 1.5;
    font-weight: bold;
    margin: 0;
}

.p-news-single__visual img {
    width: 100%;
    height: auto;
    border: 1px solid var(--c-border);
}

.p-news-single__footer {
    margin-top: 60px;
    border-top: 1px solid var(--c-border);
}
/* --- Artist Detail Layout --- */
.l-artist-detail {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.p-artist-profile {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.p-artist-visual {
    flex: 1;
    min-width: 300px;
}

.p-artist-visual img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}
/* アーティスト画像の引用元スタイル */
.p-artist-visual__credit {
    font-size: 10px;      /* 小さく */
    color: #999;         /* 薄く */
    text-align: right;   /* 右寄せ */
    margin-top: 8px;     /* 画像との間隔 */
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* スマホ等で左寄せにしたい場合（任意） */
@media (max-width: 768px) {
    .p-artist-visual__credit {
        text-align: left;
    }
}
/* 画像がない時のプレースホルダー */
.p-artist-no-image {
    aspect-ratio: 3/4;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
}

.p-artist-info {
    flex: 1.5;
    min-width: 300px;
}

.p-artist-info__label {
    font-size: 11px;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}

.p-artist-info__name {
    font-size: 32px;
    margin: 5px 0;
}

.p-artist-info__kana {
    font-size: 14px;
    color: #888;
    margin: 0 0 25px;
}

.p-artist-info__description {
    line-height: 1.8;
    color: #444;
    font-size: 15px;
    margin-bottom: 40px;
}

/* 略歴セクション */
.p-artist-history {
    border-top: 1px solid #eee;
    padding: 20px;
    background: #fafafa;
}

.p-artist-history__title {
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    display: inline-block;
}

.p-artist-history__text {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
}

/* 作品・関連投稿共通のセクション見出し */
.p-artist-section-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 3px;
    border-top: 2px solid #333;
    padding-top: 60px;
}

/* 作品グリッド */
.p-artist-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.p-work-card__visual {
    aspect-ratio: 1/1;
    background: #f5f5f5;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}

.p-work-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-work-card__title {
    font-size: 14px;
    margin: 0 0 5px;
}

.p-work-card__price {
    font-size: 13px;
    font-weight: bold;
    color: #d32f2f;
    margin: 0;
}

.p-work-card__price-tax {
    font-size: 10px;
    color: #999;
    font-weight: normal;
}

.p-work-card__guest-price {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* 関連投稿セクション */
.p-artist-related {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .p-artist-profile {
        flex-direction: column;
        gap: 30px;
    }
    .p-artist-visual, .p-artist-info {
        width: 100%;
        min-width: auto;
    }
}
/* --- Artist Related Posts (Small List) --- */
.p-artist-related__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列でコンパクトに */
    gap: 20px;
    margin-bottom: 60px;
}

.p-related-card a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #eee;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.p-related-card a:hover {
    background: #f9f9f9;
}

.p-related-card__visual {
    flex: 0 0 80px; /* 画像を80px固定で小さく */
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
}

.p-related-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-related-card__info {
    flex: 1;
}

.p-related-card__date {
    display: block;
    font-size: 10px;
    color: #999;
    margin-bottom: 2px;
}

.p-related-card__title {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
    /* 2行以上は三点リーダーで省略 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スマホでは1列にする */
@media (max-width: 768px) {
    .p-artist-related__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* SOLD OUT バッジの共通スタイル */
.p-work-card__visual {
    position: relative; /* 親要素を基準にする */
}

.c-sold-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* ふんわり暗くする */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    z-index: 2;
    pointer-events: none; /* 下のリンクをクリック可能にする */
}

.c-sold-badge span {
    border: 1px solid #fff;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.6);
}

/* 詳細ページ用の大きなSOLD OUT表示（任意） */
.p-work-detail__sold-label {
    display: inline-block;
    background: #eee;
    color: #666;
    padding: 5px 15px;
    font-size: 12px;
    margin-bottom: 15px;
    border-radius: 2px;
}
/* 売却済バッジ */
.p-work-gallery__main, 
.p-work-card__visual {
    position: relative;
}

.c-sold-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 画像を少し暗く */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.c-sold-badge span {
    background: #000;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    border: 1px solid #fff;
}
/* リスト全体の構造：PCで2列にする */
.p-museum-list {
    max-width: 1100px; /* テーマの --inner-width に合わせる */
    display: grid;
    grid-template-columns: 1fr 1fr; /* 等幅の2列 */
    gap: 0 80px; /* 縦の隙間は0、左右の列の間隔を広く取る */
    align-items: start;
}

/* 各美術館アイテム */
.p-museum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f5f5f5;
}

/* テキスト部分 */
.p-museum-item__name {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
}

.p-museum-item__address {
    font-size: 12px;
    color: #888;
}

/* 修正後の美術館リンクボタン */
.p-museum-item__link {
    display: inline-block;
    padding: 10px 20px;       /* 少し大きく押しやすく */
    background: #222;         /* 最初から黒（またはテーマのメインカラー） */
    color: #fff !important;   /* 文字は白 */
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid #222;
}

/* ホバー時は少し色を薄くするか、反転させる */
.p-museum-item__link:hover {
    background: #444;         /* わずかに明るくして反応を示す */
    border-color: #444;
    opacity: 0.8;
    color: #fff !important;
}

/* もし「詳細を見る」に変更したければここを調整 */
@media (max-width: 768px) {
    .p-museum-item__link {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 13px;
    }
}

/* --- レスポンシブ：スマホ (768px以下) --- */
@media (max-width: 768px) {
    .p-museum-list {
        grid-template-columns: 1fr; /* 1列に戻す */
        gap: 0;
    }

    .p-museum-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 0;
    }

    .p-museum-item__action {
        width: 100%;
    }

    .p-museum-item__link {
        display: block;
        text-align: center;
        padding: 10px;
    }
}

/* ==========================================================================
   Breadcrumb (パンくずリスト)
   ========================================================================== */
.p-breadcrumb-wrapper {
    background-color: var(--c-bg-light); /* #f9f9f9 */
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    margin-top: 80px; /* コンテンツとの間隔 */
}

/* フッターのマージンが重複しないようリセット */
.p-breadcrumb-wrapper + .l-footer {
    margin-top: 0;
}

.c-breadcrumb {
    padding: 15px 0;
}

.c-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-breadcrumb li {
    font-size: 12px;
    color: var(--c-sub);
    display: flex;
    align-items: center;
}

.c-breadcrumb li a {
    color: var(--c-sub);
    transition: color var(--transition);
}

.c-breadcrumb li a:hover {
    color: var(--c-main);
    text-decoration: underline;
}

/* 区切り文字 (>) のスタイル */
.c-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 12px;
    color: #ccc;
    font-family: serif;
    font-size: 10px;
}

/* 現在のページ */
.c-breadcrumb li:last-child {
    color: var(--c-main);
    font-weight: bold;
}

/* スマホ対応：横幅が狭い時に折り返しを許可 */
@media screen and (max-width: 767px) {
    .p-breadcrumb-wrapper {
        margin-top: 40px; /* スマホでは余白を少し詰める */
    }
    .c-breadcrumb {
        padding: 12px 0;
    }
}
/* ==========================================================================
   Page Navigation (ページネーション)
   ========================================================================== */
.p-pagination {
    margin-top: 60px;
    padding: 20px 0;
}

/* リスト全体の並び */
.p-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 各ボタンの基本スタイル */
.p-pagination li a,
.p-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px; /* タップしやすいサイズ */
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--c-border); /* #eee */
    background: var(--c-white);
    color: var(--c-main); /* #222 */
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

/* ホバー時 */
.p-pagination li a:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* 現在のページ番号 */
.p-pagination li span.current {
    background: var(--c-main); /* #222 */
    color: var(--c-white); /* #fff */
    border-color: var(--c-main);
    cursor: default;
}

/* 省略記号 (...) */
.p-pagination li span.dots {
    border: none;
    background: transparent;
    color: #ccc;
    min-width: 30px;
}

/* 前へ・次へ ボタン（少し幅を広くしたい場合） */
.p-pagination li .prev,
.p-pagination li .next {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
    .p-pagination {
        margin-top: 40px;
    }
    .p-pagination li a,
    .p-pagination li span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* ==========================================================================
   美術館詳細ページ (Museum Detail)
   ========================================================================== */

.p-museum-detail {
    max-width: 700px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* ヘッダー：タイトルのみ */
.p-museum-header {
    margin-bottom: 30px;
    text-align: left;
}

.p-museum-header__title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0;
    line-height: 1.3;
}

/* アイキャッチ・画像引用元 */
.p-museum-visual {
    margin-bottom: 30px;
}

.p-museum-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.p-museum-visual__credit {
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 5px;
    letter-spacing: 0.02em;
}

/* 各セクション共通見出し (ACCESS / おすすめポイント / 収蔵作品 / リンク) */
.p-museum-section {
    margin-bottom: 60px;
}

.p-museum-section__title {
    font-size: 22px; 
    font-weight: bold;
    border-left: 5px solid #000;
    padding-left: 15px;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-align: left;
}

/* ACCESSセクション内部の調整 */
.p-museum-address {
    font-size: 18px; 
    font-weight: bold;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.p-museum-access-note {
    /*padding: 20px;*/
     /*background-color: #f9f9f9;*/
    border-radius: 4px;
}

.p-museum-sub-title {
    font-size: 20px; 
    font-weight: bold; 
    margin-bottom: 15px;
    color: #000;
    display: block;
}

.p-museum-access-note p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* おすすめポイント：数字付き縦並び */
.p-museum-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.p-museum-points__item {
    display: flex;
    gap: 15px;
}

.p-museum-points__num {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    min-width: 25px;
    line-height: 1.2;
}

.p-museum-points__text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    color: #333;
}

/* 収蔵作品リスト：左揃え */
.p-museum-works {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-museum-works__item {
    font-size: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-align: left;
}

.p-museum-works__item:last-child {
    border-bottom: none;
}

/* リンク：URLテキスト直置き */
.p-museum-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.p-museum-links__item {
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.p-museum-links__label {
    font-weight: bold;
    min-width: 90px;
    color: #000;
}

.p-museum-links__item a {
    color: #666;
    text-decoration: underline;
    word-break: break-all;
    transition: 0.3s;
}

.p-museum-links__item a:hover {
    color: #000;
}

/* フッター：戻るリンク */
.p-museum-footer {
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.p-museum-footer__back {
    color: #888;
    font-size: 14px;
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .p-museum-header__title {
        font-size: 24px;
    }
    
    .p-museum-section__title {
        font-size: 20px;
    }

    .p-museum-address {
        font-size: 16px;
    }

    .p-museum-sub-title {
        font-size: 18px;
    }

    .p-museum-links__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
/* 美術館アーカイブ */
.p-museum-archive-header {
    margin-bottom: 60px;
    text-align: center;
}

.p-museum-archive-header__tax-name {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--c-sub);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.p-museum-archive-header__title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 15px;
    color: var(--c-main);
}

.p-museum-archive-header__description {
    font-size: 14px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ナビゲーション（すべて、等の絞り込み用） */
.p-museum-archive-nav {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
}

.p-museum-archive-nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.p-museum-archive-nav a {
    display: inline-block;
    padding: 10px 0;
    font-size: 13px;
    color: var(--c-sub);
    position: relative;
}

.p-museum-archive-nav a.is-active {
    color: var(--c-main);
    font-weight: bold;
}

.p-museum-archive-nav a.is-active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-main);
}

/* グリッドレイアウト */
.p-museum-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
}

/* カード単体 */
.p-museum-archive-card {
    transition: var(--transition);
}

.p-museum-archive-card:hover {
    opacity: 0.8;
}

.p-museum-archive-card__link {
    display: block;
}

.p-museum-archive-card__visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--c-bg-light);
    border: 1px solid var(--c-border);
}

.p-museum-archive-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-museum-archive-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 11px;
}

.p-museum-archive-card__content {
    padding: 5px 0;
}

.p-museum-archive-card__info {
    font-size: 11px;
    color: var(--c-sub);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.p-museum-archive-card__info i {
    font-size: 14px;
    width: 14px;
}

.p-museum-archive-card__title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.5;
    color: var(--c-main);
}

.p-museum-archive-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- レスポンシブ (SP) --- */
@media screen and (max-width: 900px) {
    .p-museum-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .p-museum-archive-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .p-museum-archive-header__title {
        font-size: 24px;
    }

    .p-museum-archive-nav {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .p-museum-archive-nav ul {
        justify-content: flex-start;
        padding: 0 5px;
    }
}
/* ==========================================================================
   5. 便利ツール (Utilities)
   ========================================================================== */
.u-mb-80 { margin-bottom: var(--section-space) !important; }
.u-pt-60 { padding-top: 60px !important; }
.u-text-center { text-align: center !important; }
.u-sp-only { display: none; } /* 初期状態は隠す */

/* ==========================================================================
   6. レスポンシブ (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    .u-sp-only { display: block; } /* スマホでのみ表示 */

    .p-hero { padding: 80px 20px; }
    .p-hero__title { font-size: 24px; }
    .p-nav-grid { grid-template-columns: 1fr; }
    .p-search-box { padding: 20px; }
    .p-artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 30px 15px;
    }

    /* ロゴのサイズ調整（1行に収める） */
    .site-logo a {
        font-size: 18px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    /* ハンバーガーボタンのスタイル */
    .p-hamburger {
        display: block; /* SPで表示 */
        position: relative;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2000;
        padding: 0;
    }

    .p-hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--c-main);
        transition: all 0.4s;
    }

    .p-hamburger span:nth-child(1) { top: 0; }
    .p-hamburger span:nth-child(2) { top: 10px; }
    .p-hamburger span:nth-child(3) { bottom: 0; }

    .p-hamburger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .p-hamburger.is-active span:nth-child(2) { opacity: 0; }
    .p-hamburger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    /* スマホナビゲーション */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--c-white);
        padding: 100px 40px;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1500;
    }

    .global-nav.is-active {
        right: 0;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .global-nav a {
        font-size: 16px;
        font-weight: bold;
    }

    .c-btn-black {
        padding: 10px 20px;
        width: 100%;
    }
    
    /* --- Artist Grid (SP 2列表示) --- */
    .p-artist-grid {
        /* 横並びを2列にする設定 */
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 15px; /* 上下30px、左右15pxの間隔 */
    }

    .p-artist-card__visual {
        margin-bottom: 10px; /* 画像と名前の間隔を少し詰める */
    }

    .p-artist-card__name {
        font-size: 14px; /* スマホ用に少し小さく */
    }

    .p-artist-card__kana {
        font-size: 10px;
    }
/* セクション全体の余白調整 */
.p-artist-museums {
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.p-artist-section-subtitle {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.05em;
    margin-top: -30px; /* タイトルとの距離を詰める */
    margin-bottom: 50px;
}
/* --- Artist Museums Section --- */
.p-artist-museums {
    padding-top: 80px;
    border-top: 1px solid #eee;
}

.p-artist-section-subtitle {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.05em;
    margin-top: -30px;
    margin-bottom: 50px;
}


    
    
    
    /* フッターのナビを整理（1列にして空白を解消） */
    .l-footer__nav-group {
        display: flex;
        flex-direction: column; /* 2列から縦1列に変更 */
        gap: 40px;
    }

    /* 文字の折り返しを防ぎ、1列に並べる */
    .l-footer__nav-list li {
        white-space: nowrap;
        display: block;
        width: 100%;
    }

    /* 3つ目の「ACCOUNT」の特別な横幅指定を解除 */
    .l-footer__nav-group > div:last-child {
        grid-column: auto;
    }

    /* 文字の折り返しを防ぐ */
    .l-footer__nav-list li {
        white-space: nowrap;
    }
    
/* --- Contact Page (SP) --- */
    .p-contact-form-wrapper {
        padding: 20px;
    }

    .p-contact-footer__flex {
        flex-direction: column; /* 縦に並べる */
        gap: 20px;
    }

    .p-contact-footer__item {
        padding: 20px;
    }

    .p-contact-footer__tel {
        font-size: 20px;
    }
}