@charset "UTF-8";

/*
Theme Name: cwd_set-child
Template : cwd_set
Author: monjya
Author URI: https://circles-jp.com/
Description: サークルズワールドディストリビューション - Bootstrap 5.3 Optimized
Version: 2.0.0
*/

/* ===========================================
   CSS CUSTOM PROPERTIES (Bootstrap Override)
   =========================================== */

:root {
    --cwd-primary: #172677;
    --cwd-text: #2f2927;
    --cwd-green: #1D3700;
    --cwd-brown: #cabfb5;
    --cwd-bg: #F2EFEC;
}

/* ===========================================
   BASE STYLES
   =========================================== */

html,
body,
body.page-body {
    font-family: 'Noto Serif JP', serif;
    color: var(--cwd-text);
}

a {
    color: var(--cwd-primary);
}

a:hover {
    color: var(--cwd-primary);
    text-decoration: none;
}

/* ===========================================
   CUSTOM BACKGROUND COLORS
   =========================================== */

.bg-green {
    background-color: var(--cwd-green) !important;
}

.bg-brown {
    background-color: var(--cwd-brown) !important;
}

/* ===========================================
   BUTTONS (Bootstrap Override)
   =========================================== */

.btn-primary {
    --bs-btn-bg: #106ab1;
    --bs-btn-border-color: #106fbb;
    --bs-btn-hover-bg: #0d5a96;
    --bs-btn-hover-border-color: #0d5a96;
    --bs-btn-active-bg: #0a4a7d;
}

.btn-facebook {
    --bs-btn-bg: #1877f2;
    --bs-btn-border-color: #1877f2;
    --bs-btn-hover-bg: #0d65d9;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

.btn-line {
    --bs-btn-bg: #00b900;
    --bs-btn-border-color: #00b900;
    --bs-btn-hover-bg: #009900;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

/* ===========================================
   HORIZONTAL RULE
   =========================================== */

hr {
    margin: 3rem auto;
    border: 0;
    border-top: 6px solid rgba(88, 88, 88, 0.55);
    width: 20%;
    opacity: 1;
}

hr.short {
    width: 20%;
}

hr.white {
    border-top-color: #fff;
}

.single .content-box hr {
    border-top-width: 1px;
    border-top-color: var(--bs-border-color);
    width: 50%;
}

/* ===========================================
   NAVIGATION
   =========================================== */

.content-box {
    margin-top: 56px;
}

.nav-logo {
    width: 80px;
    height: auto;
}

.nav-order-link {
    width: 60px;
    height: auto;
}

/* ===========================================
   TOP PAGE
   =========================================== */

.top-box p {
    font-size: 1.2rem;
    line-height: 1.9;
    letter-spacing: 0.08rem;
}

/* ===========================================
   BRAND LIST
   =========================================== */

.brand-box h3 > .sub {
    font-size: 0.8rem;
}

.brand-box a {
    color: var(--cwd-primary);
    font-size: 0.9rem;
    font-weight: bold;
}

.brand-box a:hover {
    text-decoration: none;
}

/* ===========================================
   BRAND PAGE
   =========================================== */

.brand-logo {
    max-width: 170px;
    width: 100%;
}

.bland-text-jp {
    font-size: 1.3rem;
    line-height: 1.5em;
    letter-spacing: 0.1em;
}

.bland-text-jp p {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

/* ===========================================
   FOOTER
   =========================================== */

.circles-basic-logomarks a {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.circles-basic-logomarks a:hover {
    opacity: 0.9;
}

/* ===========================================
   VIDEO CONTAINER
   =========================================== */

.video-container,
.wp-block-embed-vimeo,
.wp-block-embed-youtube {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%;
    margin: 0 auto 1em;
}

.video-container iframe,
.wp-block-embed-vimeo iframe,
.wp-block-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-embed__wrapper {
    position: static !important;
}

/* ===========================================
   NEWS / SINGLE POST STYLES
   =========================================== */

/* カテゴリバッジ */
.category-badge {
    font-size: 0.85rem;
    color: var(--cwd-primary);
    background-color: transparent;
    border: 1px solid var(--cwd-primary);
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background-color: var(--cwd-primary);
    color: #fff;
}

.category-badge-sm {
    font-size: 0.75rem;
    color: var(--cwd-primary);
    background-color: transparent;
    border: 1px solid var(--cwd-primary);
    padding: 0.2rem 0.5rem;
}

/* タイトル */
.post-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: var(--cwd-text);
}

/* 本文コンテンツ */
.post-content,
.page-content {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--cwd-text);
}

.post-content p,
.page-content p {
    margin-bottom: 1.8rem;
}

.post-content h2,
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cwd-text);
}

.post-content h3,
.page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.post-content h4,
.page-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--bs-border-radius);
}

.post-content a,
.page-content a {
    color: var(--cwd-primary);
    text-decoration: underline;
}

.post-content a:hover,
.page-content a:hover {
    text-decoration: none;
}

.post-content blockquote,
.page-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bs-tertiary-bg);
    border-left: 4px solid var(--cwd-primary);
    font-style: italic;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5rem;
}

/* WordPress埋め込み */
.post-content .wp-block-embed,
.page-content .wp-block-embed {
    margin: 2rem 0;
}

.post-content iframe,
.page-content iframe {
    max-width: 100%;
}

/* タグバッジ */
.tag-badge {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--cwd-text);
    background-color: var(--bs-tertiary-bg);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.tag-badge:hover {
    background-color: var(--cwd-primary);
    color: #fff;
}

/* 関連記事・アーカイブカード */
.related-card,
.archive-card,
.featured-card {
    transition: opacity 0.3s ease;
}

.related-card:hover,
.archive-card:hover,
.featured-card:hover {
    opacity: 0.75;
}

/* 行数制限 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ナビゲーションリンク */
.post-navigation a {
    color: var(--cwd-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.post-navigation a:hover {
    color: #0d1a4d;
}

/* ===========================================
   DEALERS PAGE
   =========================================== */

.scroll-mt {
    scroll-margin-top: 80px;
}

/* ===========================================
   PAGINATION (Bootstrap Override)
   =========================================== */

.pagination .page-numbers {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    color: var(--cwd-primary);
    text-decoration: none;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

.pagination .page-numbers:hover {
    background-color: var(--bs-tertiary-bg);
}

.pagination .page-numbers.current {
    background-color: var(--cwd-primary);
    border-color: var(--cwd-primary);
    color: #fff;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.font70 { font-size: 70%; }
.font80 { font-size: 80%; }
.font120 { font-size: 120%; }
.font150 { font-size: 150%; }
.font200 { font-size: 200%; }
.font300 { font-size: 300%; }
.font330 { font-size: 330%; }

/* ===========================================
   AVATAR
   =========================================== */

.avatar {
    border-radius: 50% !important;
}

/* ===========================================
   NEWS TOP PAGE (page-news.php)
   =========================================== */

/* ページタイトル */
.news-page-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: 0.1em;
}

/* イントロテキスト */
.news-intro-text {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--cwd-text);
}

/* セクションタイトル（下線付き） */
.section-title-wrap {
    position: relative;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    display: inline-block;
    padding-bottom: 0.75rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--cwd-green);
}

/* メインビジュアル */
.featured-main {
    transition: opacity 0.3s ease;
}

.featured-main:hover {
    opacity: 0.8;
}

/* NEWSカード */
.news-card {
    display: block;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    opacity: 0.75;
}

.news-card-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--bs-tertiary-bg);
}

.news-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.news-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cwd-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* FEATUREカード */
.feature-card {
    display: block;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    opacity: 0.75;
}

.feature-card-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--bs-tertiary-bg);
}

.feature-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* サムネイルなしの場合 */
.no-thumb {
    width: 100%;
    height: 100%;
    background-color: var(--bs-tertiary-bg);
}

.no-thumb.square {
    aspect-ratio: 1 / 1;
}
