/**
 * Shrine & Goshuin Template Styles
 * 配置場所: /wp-content/themes/swell-child/assets/css/shrine.css
 *
 * 著者: SEOvatorsLab
 * 更新日: 2026-05-05 (v1.2: 御朱印テンプレ・神社御朱印一覧CSS統合)
 */

/* ========================================
   ヒーロー画像
   ======================================== */
.shrine-hero {
    margin: 0 0 2em;
}
.shrine-hero__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 480px;
}
.shrine-hero__credit {













    margin: 0.5em 0 0;
    font-size: 0.8em;
    color: #888;
    text-align: right;
}

/* ========================================
   ヘッダー(タイトル)
   ======================================== */
.shrine-header {
    margin: 0 0 1.5em;
    padding: 0 0 1em;
    border-bottom: 2px solid #d4a574;
}
.shrine-header__title {
    margin: 0 0 0.3em;
    font-size: 2em;
    line-height: 1.4;
}
.shrine-header__sub {
    margin: 0;
    font-size: 1em;
    color: #666;
}
.shrine-header__jp {
    margin-right: 0.5em;
}
.shrine-header__romaji {
    color: #999;
    font-style: italic;
}

/* ========================================
   クイック情報
   ======================================== */
.shrine-quickinfo {
    margin: 0 0 2.5em;
    padding: 1.5em;
    background: #f8f5f0;
    border-radius: 8px;
}
.shrine-quickinfo__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin: 0;
}
.shrine-quickinfo__item {
    display: flex;
    flex-direction: column;
}
.shrine-quickinfo__item dt {
    font-size: 0.8em;
    color: #888;
    margin: 0 0 0.2em;
    font-weight: 500;
}
.shrine-quickinfo__item dd {
    margin: 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #333;
}
.shrine-quickinfo__item dd small {
    font-weight: 400;
    color: #888;
    margin-left: 0.3em;
}

/* ========================================
   セクション共通
   ======================================== */
.shrine-section {
    margin: 0 0 2.5em;
}
.shrine-section__title {
    margin: 0 0 1em;
    padding: 0 0 0.4em;
    font-size: 1.4em;
    border-bottom: 1px solid #e5e0d6;
}
.shrine-section--taiwan {
    padding: 1.5em;
    background: #fff8ee;
    border-left: 4px solid #d4a574;
    border-radius: 4px;
}
.shrine-section--taiwan .shrine-section__title {
    border-bottom: none;
    margin-bottom: 0.5em;
}

/* ========================================
   テーブル
   ======================================== */
.shrine-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.shrine-table th,
.shrine-table td {
    padding: 0.8em 1em;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.shrine-table th {
    width: 30%;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    white-space: nowrap;
}
.shrine-table td a {
    color: #b8843e;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .shrine-table th {
        width: 35%;
        padding: 0.6em;
        font-size: 0.85em;
    }
    .shrine-table td {
        padding: 0.6em;
        font-size: 0.9em;
    }
}

/* ========================================
   バッジ(駐車場の有無等)
   ======================================== */
.shrine-badge {
    display: inline-block;
    padding: 0.15em 0.7em;
    margin-right: 0.5em;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 3px;
    color: #fff;
}
.shrine-badge--ok { background: #6b9e5c; }
.shrine-badge--ng { background: #c97474; }
.shrine-badge--limited { background: #d4574a; }

/* ========================================
   ブロック(IG打卡・周辺・Tips)
   ======================================== */
.shrine-block {
    margin: 0 0 1.5em;
}
.shrine-block:last-child {
    margin-bottom: 0;
}
.shrine-block__title {
    margin: 0 0 0.5em;
    font-size: 1.05em;
    font-weight: 600;
}
.shrine-block p {
    margin: 0;
    line-height: 1.8;
}
.shrine-block--tips {
    padding: 1em 1.2em;
    background: #fff;
    border-radius: 4px;
}

/* ========================================
   タグ(推薦季節)
   ======================================== */
.shrine-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.shrine-tag {
    padding: 0.3em 0.9em;
    background: #d4a574;
    color: #fff;
    border-radius: 999px;
    font-size: 0.85em;
}

/* ========================================
   地図
   ======================================== */
.shrine-map {
    margin: 1em 0 0;
    border-radius: 8px;
    overflow: hidden;
}

/* ========================================
   Instagram埋め込み
   ======================================== */
.shrine-instagram {
    margin: 1.5em 0 0;
    text-align: center;
}
.shrine-instagram iframe,
.shrine-instagram blockquote {
    margin: 0 auto !important;
}

/* ========================================
   プレースホルダー
   ======================================== */
.shrine-placeholder {
    padding: 1em;
    background: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #888;
    text-align: center;
}

/* ========================================
   御朱印:限定バナー(最上部)
   ======================================== */
.goshuin-limited-banner {
    margin: 0 0 1.5em;
    padding: 0.8em 1.2em;
    background: linear-gradient(135deg, #d4574a 0%, #c97474 100%);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}
.goshuin-limited-banner__label {
    font-weight: 700;
    font-size: 1.05em;
    white-space: nowrap;
}
.goshuin-limited-banner__period {
    font-size: 0.95em;
    opacity: 0.95;
}

/* ========================================
   御朱印:ヘッダー内の頒布神社リンク
   ======================================== */
.goshuin-shrine-link {
    margin: 0.8em 0 0;
    font-size: 0.95em;
}
.goshuin-shrine-link__label {
    display: inline-block;
    padding: 0.15em 0.7em;
    margin-right: 0.6em;
    background: #f0e8d8;
    color: #8b6f3a;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}
.goshuin-shrine-link a {
    color: #b8843e;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   御朱印:限定セクション
   ======================================== */
.shrine-section--limited {
    padding: 1.5em;
    background: #fff5f3;
    border-left: 4px solid #d4574a;
    border-radius: 4px;
}
.shrine-section--limited .shrine-section__title {
    border-bottom: none;
    margin-bottom: 0.5em;
}

/* ========================================
   御朱印:頒布神社カード
   ======================================== */
.goshuin-shrine-card {
    padding: 1.5em;
    background: #f8f5f0;
    border-radius: 8px;
}
.goshuin-shrine-card__title {
    margin: 0 0 1em;
    font-size: 1.2em;
}
.goshuin-shrine-card__title a {
    color: #333;
    text-decoration: none;
}
.goshuin-shrine-card__title a:hover {
    color: #b8843e;
    text-decoration: underline;
}
.goshuin-shrine-card__cta {
    margin: 1em 0 0;
    text-align: right;
}
.goshuin-shrine-card__button {
    display: inline-block;
    padding: 0.6em 1.4em;
    background: #d4a574;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.2s;
}
.goshuin-shrine-card__button:hover {
    background: #b8843e;
}

/* ========================================
   神社ページ:御朱印一覧
   ======================================== */
.shrine-goshuin-count {
    margin: 0 0 1em;
    font-size: 0.95em;
    color: #666;
}
.shrine-goshuin-count strong {
    color: #b8843e;
    font-size: 1.1em;
}

.shrine-goshuin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2em;
}

.shrine-goshuin-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e0d6;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.shrine-goshuin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #d4a574;
}
.shrine-goshuin-card--limited {
    border-color: #d4574a;
    background: #fffaf8;
}
.shrine-goshuin-card--limited:hover {
    border-color: #d4574a;
    box-shadow: 0 4px 16px rgba(212, 87, 74, 0.2);
}

.shrine-goshuin-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f5f0;
}
.shrine-goshuin-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shrine-goshuin-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8dcc4 100%);
    color: #b8843e;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.shrine-goshuin-card__body {
    padding: 1em 1.2em 1.2em;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.shrine-goshuin-card__limited-mark {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 0.5em;
    padding: 0.2em 0.7em;
    background: #d4574a;
    color: #fff;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
}
.shrine-goshuin-card__limited-mark small {
    margin-left: 0.4em;
    opacity: 0.95;
    font-weight: 400;
}

.shrine-goshuin-card__title {
    margin: 0 0 0.6em;
    font-size: 1.05em;
    line-height: 1.4;
    color: #333;
}

.shrine-goshuin-card__meta {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    font-size: 0.85em;
}
.shrine-goshuin-card__meta li {
    padding: 0.15em 0.7em;
    background: #f8f5f0;
    border-radius: 3px;
    color: #666;
}
.shrine-goshuin-card__price {
    font-weight: 600;
    color: #b8843e !important;
}

.shrine-goshuin-card__link {
    margin-top: auto;
    color: #b8843e;
    font-size: 0.9em;
    font-weight: 600;
}

/* ========================================
   アーカイブ:ヘッダー
   ======================================== */
.shrine-archive-header {
    margin: 0 0 2em;
    padding: 0 0 1.2em;
    border-bottom: 2px solid #d4a574;
}
.shrine-archive-header__title {
    margin: 0 0 0.3em;
    font-size: 2em;
    line-height: 1.4;
}
.shrine-archive-header__lead {
    margin: 0;
    color: #666;
    font-size: 1em;
    line-height: 1.7;
}

/* ========================================
   アーカイブ:カードグリッド
   ======================================== */
.shrine-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin: 0 0 2.5em;
}

/* ========================================
   神社カード/御朱印カード共通
   ======================================== */
.shrine-card {
    background: #fff;
    border: 1px solid #e8e2d5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.shrine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.shrine-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}
.shrine-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f5f0;
}
.shrine-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shrine-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8dcc4 100%);
    color: #b8843e;
    font-size: 3em;
    font-weight: 700;
}
.shrine-card__thumb-placeholder--goshuin {
    font-size: 1.4em;
    line-height: 1.3;
    letter-spacing: 0.15em;
}
.shrine-card__body {
    padding: 1em 1.2em 1.2em;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shrine-card__title {
    margin: 0 0 0.3em;
    font-size: 1.1em;
    line-height: 1.4;
    color: #333;
}
.shrine-card__subtitle {
    margin: 0 0 0.7em;
    font-size: 0.85em;
    color: #888;
}
.shrine-card__meta {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    font-size: 0.85em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 0.8em;
}
.shrine-card__meta-label {
    display: inline-block;
    margin-right: 0.4em;
    padding: 0.1em 0.5em;
    background: #f8f5f0;
    color: #888;
    border-radius: 3px;
    font-size: 0.85em;
}
.shrine-card__price {
    color: #b8843e !important;
    font-weight: 700;
}

/* ========================================
   御朱印カード:期間限定マーク
   ======================================== */
.shrine-card--limited {
    border-color: #d4574a;
}
.shrine-card__limited-mark {
    position: absolute;
    top: 0.6em;
    left: 0.6em;
    padding: 0.2em 0.6em;
    background: #d4574a;
    color: #fff;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.shrine-card__limited-mark small {
    margin-left: 0.3em;
    opacity: 0.95;
    font-weight: 400;
}

/* ========================================
   ページネーション
   ======================================== */
.shrine-archive-pagination {
    margin: 2em 0;
    text-align: center;
}
.shrine-archive-pagination .page-numbers {
    display: inline-block;
    margin: 0 0.2em;
    padding: 0.5em 0.9em;
    border: 1px solid #e8e2d5;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}
.shrine-archive-pagination .page-numbers.current {
    background: #d4a574;
    color: #fff;
    border-color: #d4a574;
}
.shrine-archive-pagination .page-numbers:hover:not(.current) {
    background: #f8f5f0;
}

/* ========================================
   モバイル調整
   ======================================== */
@media (max-width: 600px) {
    .shrine-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1em;
    }
    .shrine-card__title {
        font-size: 1em;
    }
    .shrine-card__body {
        padding: 0.8em 1em 1em;
    }
}

/* AI生成本文のスタイル調整 */
.shrine-content-body {
    margin: 0 0 2.5em;
}
.shrine-content-body h2 {
    margin: 1.5em 0 0.8em;
    padding: 0 0 0.4em;
    font-size: 1.4em;
    border-bottom: 1px solid #e5e0d6;
}
.shrine-content-body h2:first-child {
    margin-top: 0;
}
.shrine-content-body h3 {
    margin: 1.2em 0 0.5em;
    font-size: 1.1em;
}
.shrine-content-body p {
    margin: 0 0 1em;
    line-height: 1.8;
}