/*
Theme Name: TCD097 Child
Description: Child theme of TCD097
Template: common_tcd097
Version: 1.0.0
*/

@import url("../tcd097/style.css");

/* ここから独自のCSSを記述 */

/* ==========================================================================
   汎用見出しスタイル（中央揃え・下線）
========================================================================== */

.post_content h2.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  padding-bottom: 25px;
  margin: 60px 0 40px;
  border-bottom: 1px solid #ccc;
}

.post_content h2.section-title:first-child {
  margin-top: 0;
}

/* レスポンシブ対応（スマートフォン） */
@media screen and (max-width: 767px) {
  .post_content h2.section-title {
    font-size: 20px;
    padding-bottom: 20px;
    margin: 40px 0 30px;
  }
}

/* =============================================
           WooCommerce商品ページ用カスタムCSS
    ============================================= */

.atn-book-content {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    line-height: 1.8;
    color: #333;
}

.atn-section {
    margin-bottom: 40px;
}

.atn-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
}

.atn-text-content p {
    margin: 0 0 20px 0;
    line-height: 1.9;
    color: #333;
}

.atn-percentage-box {
    margin: 25px 0;
}

.atn-percentage-highlight {
    font-weight: 700;
    font-size: 16px;
}

.atn-quote {
    margin: 25px 0;
}

.atn-website-link {
    color: #0066cc;
    text-decoration: underline;
}

.atn-website-link:hover {
    color: #0052a3;
}

.atn-signature {
    text-align: right;
    font-size: 16px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .atn-book-content {
        margin: 20px 10px;
    }

    .atn-section-title {
        font-size: 16px;
    }
}

/* ==========================================================================
   ATNとは ページスタイル
   TCD097テーマ準拠 - WordPressカスタムページ用CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   リセット・基本設定
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   共通コンテナ
   -------------------------------------------------------------------------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   ページヘッダー（ヒーローセクション）
   -------------------------------------------------------------------------- */
.page-header {
    background-color: #8B0000;
    background-image: linear-gradient(135deg, #8B0000 0%, #6B0000 100%);
    color: #fff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* 背景に薄くATNロゴを配置するための疑似要素 */
.page-header::after {
    content: "ATN";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 200px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: -10px;
    pointer-events: none;
}

.page-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-header__content {
    flex: 1;
}

.page-header__catch {
    font-size: 14px;
    margin: 0 0 10px;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.page-header__title {
    font-size: 42px;
    font-weight: bold;
    margin: 0 0 20px;
    letter-spacing: 0.05em;
}

.page-header__lead {
    font-size: 14px;
    line-height: 2;
    margin: 0;
    opacity: 0.95;
}

.page-header__logo {
    flex-shrink: 0;
}

.page-header__logo-img {
    width: 150px;
    height: auto;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   メインコンテンツ
   -------------------------------------------------------------------------- */
.main-content {
    padding: 0px 0;
}

/* --------------------------------------------------------------------------
   コンテンツセクション
   -------------------------------------------------------------------------- */
.content-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e5e5e5;
}

.content-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* セクションタイトル */
.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 30px;
    padding-left: 0;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* セクション本文 */
.section-body p {
    margin: 0 0 1.5em;
    text-align: justify;
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   レスポンシブ対応
   -------------------------------------------------------------------------- */

/* タブレット */
@media screen and (max-width: 768px) {
    .page-header {
        padding: 50px 20px;
    }

    .page-header__inner {
        flex-direction: column;
        text-align: center;
    }

    .page-header__title {
        font-size: 32px;
    }

    .page-header__lead {
        font-size: 13px;
    }

    .page-header__lead br {
        display: none;
    }

    .page-header__logo {
        margin-top: 20px;
    }

    .page-header__logo-img {
        width: 120px;
    }

    .page-header::after {
        font-size: 120px;
        right: -10px;
    }

    .main-content {
        padding: 50px 0;
    }

    .content-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .section-body p {
        font-size: 14px;
    }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
    .page-header {
        padding: 40px 15px;
    }

    .page-header__catch {
        font-size: 12px;
    }

    .page-header__title {
        font-size: 26px;
    }

    .page-header__lead {
        font-size: 12px;
        line-height: 1.9;
    }

    .page-header__logo-img {
        width: 100px;
    }

    .page-header::after {
        font-size: 80px;
        right: -5px;
    }

    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 40px 0;
    }

    .content-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .section-body p {
        font-size: 14px;
        line-height: 1.9;
    }
}


/* ----------------------------------------
    パンくず
---------------------------------------- */
.c-breadcrumb__item:last-of-type {
    overflow: visible !important;
}

/* --------------------------------------------------------------------------
   WordPressテーマ統合用クラス
   TCD097のスタイルに合わせて調整が必要な場合は以下を使用
   -------------------------------------------------------------------------- */

/* TCD097テーマでページテンプレートとして使用する場合 */
.page-template-page-about .page-header {
    /* テーマのヘッダー高さに合わせて調整 */
}

/* WooCommerce統合時の余白調整 */
.woocommerce .content-section {
    /* 必要に応じて調整 */
}

/* --------------------------------------------------------------------------
   会社概要テーブル
   -------------------------------------------------------------------------- */
.atn-info-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ddd;
}

.atn-info-table tr {
    border-bottom: 1px solid #ddd;
}

.atn-info-table tr:nth-child(odd) {
    background-color: #fafafa;
}

.atn-info-table tr:nth-child(even) {
    background-color: #fff;
}

.atn-info-table th,
.atn-info-table td {
    padding: 20px 25px;
    text-align: left;
    vertical-align: middle;
    font-size: 15px;
    line-height: 1.7;
}

.atn-info-table th {
    width: 180px;
    font-weight: normal;
    color: #333;
    background-color: transparent;
}

.atn-info-table td {
    color: #444;
}

/* リンクスタイル */
.atn-info-table td a {
    color: #333;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.atn-info-table td a:hover {
    color: #8B0000;
}

/* --------------------------------------------------------------------------
   レスポンシブ対応
   -------------------------------------------------------------------------- */

/* タブレット */
@media screen and (max-width: 768px) {

    .atn-info-table th,
    .atn-info-table td {
        padding: 15px 20px;
        font-size: 14px;
    }

    .atn-info-table th {
        width: 140px;
    }
}

/* スマートフォン */
@media screen and (max-width: 480px) {

    .atn-info-table th,
    .atn-info-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }

    .atn-info-table th {
        padding-bottom: 5px;
        font-weight: bold;
        background-color: #f5f5f5;
    }

    .atn-info-table td {
        padding-top: 8px;
        padding-bottom: 15px;
    }

    .atn-info-table tr:nth-child(odd),
    .atn-info-table tr:nth-child(even) {
        background-color: #fff;
    }
}

/* --------------------------------------------------------------------------
   ご来社のお客さまへ セクション
   -------------------------------------------------------------------------- */
.atn-visit-info .section-body p {
    margin-bottom: 1.8em;
}

/* --------------------------------------------------------------------------
   お問い合わせボタン
   -------------------------------------------------------------------------- */
.atn-contact-btn-wrap {
    margin: 40px 0;
}

.atn-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    border: 1px solid #999;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.atn-contact-btn:hover {
    background-color: #f5f5f5;
    border-color: #666;
}

.atn-contact-btn__icon {
    color: #c00;
    margin-right: 8px;
    font-size: 12px;
}

.atn-contact-btn__text {
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   オフィス情報ボックス
   -------------------------------------------------------------------------- */
.atn-office-box {
    margin-top: 40px;
    border: 1px solid #ddd;
    border-top: 3px solid #999;
    background-color: #fff;
}

.atn-office-box__inner {
    padding: 30px 35px;
}

/* 会社情報 */
.atn-office-box__info {
    margin-bottom: 25px;
}

.atn-office-box__company {
    font-size: 16px;
    font-weight: normal;
    margin: 0 0 10px;
    color: #333;
}

.atn-office-box__address {
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 10px;
    color: #333;
}

.atn-office-box__contact {
    font-size: 15px;
    margin: 0 0 8px;
    color: #333;
}

.atn-office-box__contact a {
    color: #333;
    text-decoration: none;
}

.atn-office-box__contact a:hover {
    text-decoration: underline;
}

.atn-office-box__hours {
    font-size: 15px;
    margin: 0;
    color: #333;
}

/* アクセス情報 */
.atn-office-box__access {
    margin-bottom: 25px;
    padding-left: 15px;
}

.atn-office-box__access-item {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 5px;
    color: #444;
}

.atn-office-box__access-item:last-child {
    margin-bottom: 0;
}

/* 目印情報 */
.atn-office-box__landmark {
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.atn-office-box__landmark p {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 5px;
    color: #444;
}

.atn-office-box__landmark p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   レスポンシブ対応
   -------------------------------------------------------------------------- */

/* タブレット */
@media screen and (max-width: 768px) {
    .atn-contact-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .atn-office-box__inner {
        padding: 25px 20px;
    }

    .atn-office-box__company {
        font-size: 15px;
    }

    .atn-office-box__address,
    .atn-office-box__contact,
    .atn-office-box__hours {
        font-size: 14px;
    }

    .atn-office-box__access-item,
    .atn-office-box__landmark p {
        font-size: 13px;
    }
}

/* スマートフォン */
@media screen and (max-width: 480px) {
    .atn-visit-info .section-body p br {
        display: none;
    }

    .atn-contact-btn-wrap {
        margin: 30px 0;
    }

    .atn-contact-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 15px 20px;
    }

    .atn-office-box__inner {
        padding: 20px 15px;
    }

    .atn-office-box__contact {
        font-size: 13px;
    }

    /* TELとFAXを改行 */
    .atn-office-box__contact br {
        display: block;
    }

    .atn-office-box__hours {
        font-size: 13px;
    }

    .atn-office-box__access {
        padding-left: 10px;
    }
}

/* ============================================
   ATN「ご担当者様へ」ページ専用CSS
   TCD097テーマ子テーマ用
   ============================================ */

/* ----------------------------------------
   共通設定
---------------------------------------- */
.pc-only {
    display: inline;
}

@media screen and (max-width: 767px) {
    .pc-only {
        display: none;
    }
}

/* ----------------------------------------
   ヒーローセクション
---------------------------------------- */
.school-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 50%, #3d7ab5 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.school-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('/wp-content/uploads/school/hero-books.png') no-repeat center right;
    background-size: contain;
    opacity: 0.3;
    pointer-events: none;
}

.school-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.school-hero__content {
    flex: 1;
    padding-right: 40px;
}

.school-hero__subtitle {
    color: #ff69b4;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.school-hero__title {
    font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 25px;
    line-height: 1.3;
}

.school-hero__description {
    color: #fff;
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}

.school-hero__description strong {
    text-decoration: underline;
    text-decoration-color: #ffd700;
    text-underline-offset: 4px;
}

.school-hero__cta {
    flex-shrink: 0;
}

.school-hero__btn {
    display: inline-block;
    background-color: #ff69b4;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.school-hero__btn:hover {
    background-color: #ff85c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.5);
    color: #fff;
}

/* レスポンシブ - ヒーロー */
@media screen and (max-width: 767px) {
    .school-hero {
        padding: 40px 15px;
    }

    .school-hero::before {
        width: 100%;
        opacity: 0.15;
    }

    .school-hero__inner {
        flex-direction: column;
    }

    .school-hero__content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .school-hero__subtitle {
        font-size: 14px;
    }

    .school-hero__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .school-hero__description {
        font-size: 14px;
    }

    .school-hero__cta {
        width: 100%;
        text-align: center;
    }

    .school-hero__btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ----------------------------------------
   本物の教育を、最高の状態で セクション
---------------------------------------- */
.school-philosophy {
    background-color: #fff;
}

.school-philosophy__inner {
    max-width: 900px;
    margin: 0 auto;
}

.school-philosophy__title {
    font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.school-philosophy__content p {
    font-size: 15px;
    line-height: 2;
    color: #444;
    margin: 0 0 1.5em;
    text-align: justify;
}

.school-philosophy__content p:last-child {
    margin-bottom: 0;
}

/* レスポンシブ - 本物の教育を */
@media screen and (max-width: 767px) {
    .school-philosophy {
        padding: 50px 15px;
    }

    .school-philosophy__title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .school-philosophy__content p {
        font-size: 14px;
        line-height: 1.9;
    }
}

/* ----------------------------------------
   採用校例セクション
---------------------------------------- */
.school-adoption {
    padding: 80px 20px;
    background-color: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

.school-adoption__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.school-adoption__title {
    font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.school-adoption__content {
    display: flex;
    flex-direction: row;
    /* 横並び（左→右）を明示 */
    gap: 40px;
    align-items: flex-start;
}

/* 左側：テキストエリア */
.school-adoption__list-wrap {
    flex: 1;
    min-width: 0;
    /* flexboxでのテキスト溢れ防止 */
    order: 1;
    /* 左側に配置 */
}

.school-adoption__subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
	text-align: center;
}

.school-adoption__list {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    margin: 0;
    text-align: justify;
}

/* 右側：画像エリア */
.school-adoption__image {
    flex-shrink: 0;
    width: 280px;
    order: 2;
    /* 右側に配置 */
}

.school-adoption__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ - スマホでは画像を上に */
@media screen and (max-width: 767px) {
    .school-adoption {
        padding: 50px 15px;
    }

    .school-adoption__title {
        font-size: 18px;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    .school-adoption__content {
        flex-direction: column;
        gap: 30px;
    }

    /* スマホでは画像を上に表示 */
    .school-adoption__image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        order: 1;
    }

    .school-adoption__list-wrap {
        order: 2;
    }

    .school-adoption__list {
        font-size: 13px;
    }
}

/* ----------------------------------------
   TCD097テーマとの整合性調整
---------------------------------------- */
/* 固定ページのコンテンツ幅をフルワイドに */
.page-template-default .l-contents,
.page-template-default .l-main {
    max-width: 100%;
    padding: 0;
}

.page-template-default .l-main__inner {
    max-width: 100%;
    padding: 0;
}

/* 固定ページタイトルを非表示（ヒーローで代用）*/
.page-template-default .p-headline {
    display: none;
}

/* サイドバーがある場合の調整 */
@media screen and (min-width: 1024px) {

    .page-template-default.has-sidebar .school-hero__inner,
    .page-template-default.has-sidebar .school-philosophy__inner,
    .page-template-default.has-sidebar .school-adoption__inner,
    .page-template-default.has-sidebar .school-cta__inner {
        max-width: 100%;
    }
}

/* ============================================
 * 
   プライバシーポリシー用

   ============================================ */
.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    line-height: 1.9;
    color: #333;
}

/* リード文 */
.privacy-policy-content .lead-text {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

/* 各セクション */
.privacy-policy-content .policy-section {
    margin-bottom: 40px;
}

/* 見出し h2 */
.privacy-policy-content h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

/* 段落 */
.privacy-policy-content p {
    margin-bottom: 15px;
    font-size: 14px;
    text-align: justify;
}

/* リスト - テーマのスタイルをリセット */
.privacy-policy-content ul {
    margin: 15px 0 20px 0;
    padding-left: 25px;
    list-style: circle;
}

.privacy-policy-content ul li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 5px;
}

/* テーマの::before疑似要素を無効化 */
.privacy-policy-content ul li::before {
    content: none !important;
    display: none !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .privacy-policy-content {
        padding: 15px;
    }

    .privacy-policy-content h2 {
        font-size: 16px;
    }

    .privacy-policy-content p,
    .privacy-policy-content ul li {
        font-size: 13px;
    }
}

/* ============================================
 * 
   FAQページ用

   ============================================ */
/* FAQ全体のコンテナ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ページタイトル */
.faq-page-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

/* カテゴリ見出し */
.faq-category {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
}

.faq-category:first-of-type {
    margin-top: 0;
}

/* Q&Aリンク一覧（目次） */
.faq-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 2rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .faq-index {
        grid-template-columns: 1fr;
    }
}

.faq-index a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    display: block;
    padding: 0.2rem 0;
}

.faq-index a:hover {
    color: #c00;
    text-decoration: underline;
}

.faq-index a::before {
    content: "Q. ";
    color: #c00;
    font-weight: bold;
}

/* Q&A本文セクション */
.faq-section {
    margin-top: 3rem;
}

.faq-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
}

/* 個別のQ&A */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1.25rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.faq-question::before {
    content: "Q.";
    position: absolute;
    left: 0;
    top: 0;
    color: #c00;
    font-weight: bold;
}

.faq-answer {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
    padding-left: 1.75rem;
    position: relative;
}

.faq-answer::before {
    content: "A.";
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: bold;
}

.faq-answer p {
    margin: 0 0 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 表組み（送料など） */
.faq-table {
    width: auto;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.faq-table th,
.faq-table td {
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    text-align: left;
}

.faq-table th {
    background: #f5f5f5;
    font-weight: normal;
}

.faq-table td {
    text-align: right;
}

/* 注意書き */
.faq-note {
    font-size: 0.9rem;
    color: #333;
    margin-top: 0.75rem;
}

/* 強調テキスト（赤字） */
.faq-highlight {
    color: #c00;
    font-weight: bold;
}

/* リンク */
.faq-answer a {
    color: #06c;
    text-decoration: underline;
}

.faq-answer a:hover {
    text-decoration: none;
}

/* ===========================================
   特定商取引法に基づく表記ページ用
   =========================================== */

/* ページコンテナ */
.tokutei-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 40px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* テーブル上部の余白を削除 */
.tokutei-page>.tokutei-table:first-child {
    margin-top: 0;
}

/* 基本情報テーブル */
.tokutei-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    margin-bottom: 30px;
    background: #fff;
}

.tokutei-table th,
.tokutei-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.tokutei-table th {
    width: 120px;
    background: #f9f9f9;
    font-weight: normal;
    white-space: nowrap;
}

.tokutei-table td a {
    color: #0066cc;
    text-decoration: underline;
}

.tokutei-table td a:hover {
    text-decoration: none;
}

/* 消費税・送料セクション */
.tokutei-notice {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #333;
}

.tokutei-notice p {
    margin: 0 0 10px;
}

.tokutei-notice p:last-child {
    margin-bottom: 0;
}

/* 商品以外の必要代金セクション */
.tokutei-extra-section {
    margin-bottom: 40px;
}

.tokutei-extra-section__title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* 3カラムレイアウト */
.tokutei-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* 2カラムレイアウト */
.tokutei-columns--two {
    display: block;
    margin-bottom: 20px;
}

.tokutei-columns--two .tokutei-column {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.tokutei-column {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-sizing: border-box;
}

/* 全幅カラム */
.tokutei-column--full {
    flex: none;
    width: 100%;
    min-width: 100%;
    margin-top: 0;
}

.tokutei-column__title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* 送料テーブル */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}

.shipping-table th,
.shipping-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.shipping-table th {
    background: #f9f9f9;
    font-weight: normal;
}

.shipping-table td {
    text-align: right;
}

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

    /* 送料テーブルのスマホ対応 */
    .shipping-table {
        table-layout: auto;
    }

    .shipping-table th,
    .shipping-table td {
        padding: 8px;
        font-size: 12px;
        word-break: break-all;
    }

    .shipping-table th {
        white-space: normal;
    }
}

/* 強調テキスト */
.tokutei-highlight {
    color: #c00;
    font-weight: bold;
}

/* 支払い方法アイコン */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.payment-icons img {
    height: 24px;
    width: auto;
}

/* ゆうパックロゴ */
.yupack-logo {
    display: inline-block;
    margin: 10px 0;
}

.yupack-logo img {
    height: 40px;
    width: auto;
}

/* リンク */
.tokutei-link {
    color: #0066cc;
    text-decoration: underline;
}

.tokutei-link:hover {
    text-decoration: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .tokutei-page {
        padding: 0 15px 20px;
    }

    .tokutei-table th {
        width: 80px;
        font-size: 13px;
    }

    .tokutei-table th,
    .tokutei-table td {
        padding: 10px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .tokutei-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .tokutei-table th {
        border-bottom: none;
    }

    .tokutei-columns--two .tokutei-column,
    .tokutei-column {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .shipping-table th,
    .shipping-table td {
        padding: 8px;
        font-size: 13px;
    }
}

/* 決済方法テーブル */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 25px;
}

.payment-table th,
.payment-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.6;
}

.payment-table th {
    width: 32%;
    background: #f9f9f9;
    font-weight: 600;
}

.payment-table .payment-type-sub {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #777;
    font-weight: normal;
}

.payment-table .payment-note {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

@media screen and (max-width: 768px) {
    .payment-table th,
    .payment-table td {
        padding: 8px;
        font-size: 12px;
    }

    .payment-table th {
        width: 38%;
    }

    .payment-table .payment-type-sub {
        font-size: 10px;
    }
}

/* ========================================
   カート
======================================== */
.woocommerce-cart .wc-block-cart-items__header-total span {
    display: none;
}

.get_point_message-wrapper {
    color: #fff;
    background: #55b3a5;
    font-size: 14px;
    padding: 5px 15px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* ========================================
   Contact Form 7 カスタムスタイル
======================================== */
.contact-form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.contact-form-table tr {
    border-top: 1px solid #ddd;
}

.contact-form-table tr:last-child {
    border-bottom: 1px solid #ddd;
}

.contact-form-table th {
    width: 200px;
    padding: 20px 15px;
    background-color: #f5f5f5;
    text-align: left;
    vertical-align: top;
    font-weight: normal;
    color: #333;
}

.contact-form-table td {
    padding: 20px 15px;
    vertical-align: top;
}

.contact-form-table .required {
    color: #c00;
    margin-right: 3px;
}

.contact-form-table th .note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 入力フィールド共通 */
.contact-form-table input[type="text"],
.contact-form-table input[type="email"],
.contact-form-table select,
.contact-form-table textarea {
    border: 1px solid #ccc;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 0;
    background-color: #fff;
}

.contact-form-table input[type="text"]:focus,
.contact-form-table input[type="email"]:focus,
.contact-form-table select:focus,
.contact-form-table textarea:focus {
    border-color: #666;
    outline: none;
}

/* 名前フィールド */
.name-field input[type="text"] {
    width: 150px;
}

/* 郵便番号フィールド */
.zip-field input[type="text"] {
    width: 100px;
    text-align: center;
}

.zip-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #666;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin: 20px;
    vertical-align: middle;
}

.zip-button:hover {
    background-color: #444;
}

/* 住所フィールド */
.contact-form-table td select {
    width: auto;
    min-width: 150px;
    margin-bottom: 10px;
}

.contact-form-table td input[name="your-addr1"],
.contact-form-table td input[name="your-addr2"] {
    width: 100%;
    max-width: 500px;
    display: block;
    margin-bottom: 5px;
}

/* 電話番号フィールド */
.tel-field input[type="text"] {
    width: 90px;
    text-align: center;
}

/* メールアドレスフィールド */
.contact-form-table td input[type="email"] {
    width: 100%;
    max-width: 500px;
    display: block;
    margin-bottom: 10px;
}

/* テキストエリア */
.contact-form-table textarea {
    width: 100%;
    max-width: 600px;
    min-height: 250px;
    resize: vertical;
}

/* 注釈テキスト */
.form-note {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    line-height: 1.6;
}

.form-note a {
    color: #0066cc;
    text-decoration: underline;
}

.form-note-red {
    font-size: 13px;
    color: #c00;
    font-weight: bold;
    margin-top: 5px;
}

/* 名前・フリガナフィールド 縦並び */
.contact-form-table td .name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-table td .name-wrapper>span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form-table td .name-wrapper>span label {
    min-width: 30px;
}

.contact-form-table td .name-wrapper>span input {
    width: 200px;
}

/* ========================================
   ボタン共通スタイル
======================================== */
.submit-btn {
    text-align: center;
    margin: 30px;
}

.submit-btn input[type="button"],
.submit-btn input[type="submit"] {
    display: inline-block;
    padding: 15px 60px;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn input[type="button"]:hover,
.submit-btn input[type="submit"]:hover {
    background-color: #555;
}

.submit-btn input[type="button"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ========================================
   確認画面
======================================== */
.confirm-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 15px;
}

.confirm-lead {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.confirm-table td {
    background-color: #fff;
}

.confirm_your-message {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ボタングループ */
.submit-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.submit-btn-group input[type="button"],
.submit-btn-group input[type="submit"] {
    display: inline-block;
    padding: 15px 60px;
    width: 100%;
    max-width: 600px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn-group .back_button {
    background-color: #999;
    color: #fff;
}

.submit-btn-group .back_button:hover {
    background-color: #777;
}

.submit-btn-group input[type="submit"] {
    background-color: #c41a1a;
    color: #fff;
}

.submit-btn-group input[type="submit"]:hover {
    background-color: #a01515;
}

/* ========================================
   完了画面
======================================== */
.thanks_area {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: center;
}

.thanks-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.thanks-message {
    text-align: left;
    line-height: 2;
    color: #333;
}

.thanks-message p {
    margin-bottom: 20px;
}

.thanks-tel {
    font-size: 18px;
    font-weight: bold;
}

.thanks-time {
    font-size: 14px;
    font-weight: normal;
}

.thanks-btn {
    margin-top: 50px;
}

.thanks-btn a {
    display: inline-block;
    padding: 15px 40px;
    background-color: #333;
    color: #fff !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.thanks-btn a:hover {
    background-color: #555;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media screen and (max-width: 768px) {

    .contact-form-table,
    .contact-form-table tbody,
    .contact-form-table tr,
    .contact-form-table th,
    .contact-form-table td {
        display: block;
        width: 100%;
    }

    .contact-form-table th {
        padding: 15px;
        border-bottom: none;
    }

    .contact-form-table td {
        padding: 15px;
        padding-top: 0;
    }

    .name-field input[type="text"] {
        width: 120px;
    }

    .contact-form-table td input[name="your-addr1"],
    .contact-form-table td input[name="your-addr2"],
    .contact-form-table td input[type="email"],
    .contact-form-table textarea {
        max-width: 100%;
    }

    /* 確認画面ボタン レスポンシブ */
    .submit-btn-group .back_button,
    .submit-btn-group input[type="submit"] {
        width: 100%;
        max-width: 100%;
    }

    /* 完了画面 レスポンシブ */
    .thanks_area {
        margin: 40px auto;
        padding: 30px 15px;
    }

    .thanks-title {
        font-size: 20px;
    }

    .thanks-message {
        font-size: 14px;
    }

    .thanks-message br {
        display: none;
    }
}

/* ============================================
   
サイトマップページ専用スタイル

   ============================================ */

/* サイトマップ全体のコンテナ */
.wsp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
}

/* セクション見出し共通スタイル */
.wsp-pages-title,
.wsp-posts-title,
.wsp-products-title,
.wsp-product_cats-title,
.wsp-product_tags-title,
.wsp-recommend_bookss-title,  /* プラグイン側の出力で s が2個になっている */
.wsp-container h2 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 50px 0 20px 0 !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-left: 4px solid #2c5282 !important;
    border-radius: 0 4px 4px 0 !important;
    letter-spacing: 0.05em !important;
    text-align: left !important;
}

/* 最初のセクションだけ上余白を消す */
.wsp-container h2:first-of-type,
.wsp-pages-title:first-child {
    margin-top: 0 !important;
}

/* リスト共通スタイル */
.wsp-pages-list,
.wsp-posts-list,
.wsp-products-list,
.wsp-product_cats-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

/* デフォルトのリストマーカーを完全に非表示 */
.wsp-pages-list li,
.wsp-posts-list li,
.wsp-products-list li,
.wsp-product_cats-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.wsp-pages-list li::marker,
.wsp-posts-list li::marker,
.wsp-products-list li::marker,
.wsp-product_cats-list li::marker {
    content: none !important;
    display: none !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* ページ一覧 - グリッドレイアウト */
.wsp-pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 24px;
}

.wsp-pages-list>.page_item {
    position: relative;
    padding: 10px 12px 10px 28px;
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease, transform 0.2s ease;
	    display: flex; 
    align-items: center;
}

.wsp-pages-list>.page_item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #2c5282;
    border-radius: 50%;
}

.wsp-pages-list>.page_item:hover {
    background-color: #f7fafc;
}

.wsp-pages-list>.page_item a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: color 0.2s ease;
}

.wsp-pages-list>.page_item a:hover {
    color: #2c5282;
}

/* 現在ページも他のページと同じスタイルにする */
.wsp-pages-list>.page_item.current_page_item {
    background-color: #fff;
}

/* カテゴリーごとの投稿 */
.wsp-posts-list>li {
    margin-bottom: 24px;
}

.wsp-posts-list .wsp-category-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    padding: 8px 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 12px;
}

.wsp-posts-list .wsp-category-title a {
    color: #2c5282;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsp-posts-list .wsp-category-title a:hover {
    color: #1a365d;
    text-decoration: underline;
}

/* 投稿リスト（カテゴリー内） */
.wsp-posts-list .wsp-posts-list {
    padding-left: 20px;
}

.wsp-posts-list .wsp-post {
    position: relative;
    padding: 8px 0 8px 20px;
}

.wsp-posts-list .wsp-post::before {
    content: "└";
    position: absolute;
    left: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.wsp-posts-list .wsp-post a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.wsp-posts-list .wsp-post a:hover {
    color: #2c5282;
    text-decoration: underline;
}

/* 商品一覧 */
.wsp-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.wsp-products-list>li {
    position: relative;
    padding: 14px 16px 14px 36px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wsp-products-list>li::before {
    content: "♪";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2c5282;
    font-size: 1rem;
}

.wsp-products-list>li:hover {
    border-color: #2c5282;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.1);
}

.wsp-products-list>li a {
    color: #2d3748;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease;
}

.wsp-products-list>li a:hover {
    color: #2c5282;
}

/* 商品カテゴリー一覧 */
.wsp-product_cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wsp-product_cats-list>li {
    display: inline-block;
}

.wsp-product_cats-list>li a {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.wsp-product_cats-list>li a:hover {
    background-color: #2c5282;
    border-color: #2c5282;
    color: #fff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .wsp-container {
        padding: 24px 16px;
    }

    .wsp-pages-title,
    .wsp-posts-title,
    .wsp-products-title,
    .wsp-product_cats-title,
    .wsp-product_tags-title,
    .wsp-recommend_bookss-title,
    .wsp-container h2 {
        font-size: 1.1rem !important;
        padding: 10px 16px !important;
        margin-top: 36px !important;
    }

    .wsp-pages-list {
        grid-template-columns: 1fr;
    }

    .wsp-products-list {
        grid-template-columns: 1fr;
    }
}

    .wsp-posts-title,
    .wsp-products-title,
    .wsp-product_cats-title {
        margin-top: 36px;
    }

@media screen and (max-width: 480px) {
    .wsp-pages-list>.page_item {
        padding: 12px 12px 12px 24px;
    }

    .wsp-products-list>li {
        padding: 12px 12px 12px 32px;
    }

    .wsp-products-list>li::before {
        left: 10px;
    }
}

/* ========================================
   TOPページ
======================================== */
 .p-header-slider {
    height: 400px !important;
    max-height: 400px !important;
}
 @media not all and (max-width: 599px) {
    .p-header-slider {
        height: 280px !important;
        max-height: 280px !important;
    }
}

/* バナースライダー ベーススタイル
   広告ブロッカー対策のためクラス名を p-banner-slider → p-top-slider に改名。
   親テーマ style.css「Project - front page banner slider」ブロックのコピー
   （改名後は親テーマのルールが当たらなくなるため、ここで再定義する） */
.p-top-slider { padding: 40px 0; border-bottom: 1px solid #ddd; }
.p-top-slider__inner { position: relative; }
.p-top-slider__list { margin-right:-30px; }

/* 子style.cssはswiper-bundle.min.cssより前に読み込まれるため、
   .swiper-slide { width/height:100% } に順序負けしないよう詳細度を上げる
   （インラインstyleで制御されるwidth/marginに !important は不可） */
.p-top-slider .p-top-slider__item { width: calc( (100% - 30px) / 3 ); height: 120px; background:#333; margin-right:30px; align-items: unset; }
.p-top-slider__link { display: block; height: 100%; position: relative; color: #fff; }

.p-top-slider__content {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 3; width: 100%; padding: 0 30px;
}

.p-top-slider__title { font-size: 26px; font-weight: 600; line-height: 1.2; margin: -0.1em 0; }
.p-top-slider__desc { font-size: 14px; line-height: 2; margin: -0.5em 0; }
* + .p-top-slider__desc { margin-top: calc(15px - 0.5em); }

.p-top-slider .swiper-button-next,
.p-top-slider .swiper-button-prev { color:#000; transition:color 0.2s ease; }

.p-top-slider .swiper-button-next { right:-60px; }
.p-top-slider .swiper-button-prev { left:-60px; }

.p-top-slider .swiper-button-next:after,
.p-top-slider .swiper-button-prev:after { color:inherit; }

@media (hover: hover) and (pointer: fine) {
  .p-top-slider .swiper-button-next:hover,
  .p-top-slider .swiper-button-prev:hover { color:rgba(0, 0, 0, 0.5); }
}
@media not all and (max-width: 1240px) {
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__list { overflow: initial; }
}
@media (max-width: 1240px) {

  .p-top-slider__inner { width:100%; }
  .p-top-slider .swiper-button-next, .p-top-slider .swiper-button-prev { display:none; }

  /* バナーが3つ以下の場合 */
  .p-top-slider__swiper:not(.swiper-initialized) { overflow: initial; }
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__list { padding-left:40px; box-sizing: border-box; }
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__item { min-width: calc( (1180px - 60px) / 3 ); }
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__item:last-of-type { margin-right:0px; }

}
@media (max-width: 767px) {

  .p-top-slider { padding:20px 0; }
  .p-top-slider__list { margin-right:-15px; }
  .p-top-slider .p-top-slider__item { width: 280px; height: 90px; margin-right:15px; }
  .p-top-slider__content { padding: 0 25px; }
  .p-top-slider__title { font-size:24px; }
  * + .p-top-slider__desc { margin-top: calc(10px - 0.5em); }

  /* バナーが3つ以下の場合 */
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__list { padding-left:20px; }
  .p-top-slider__swiper:not(.swiper-initialized) .p-top-slider__item { min-width: 280px; }

}

/* バナー画像 全デバイス共通 */
.p-top-slider__item .p-top-slider__image {
    background-size: contain !important;
}

.p-top-slider__item .p-top-slider__link {
    background-color: transparent !important;
}

.p-top-slider__item {
    background-color: transparent !important;
}

/* バナースライダー - PC表示のみ */
@media screen and (min-width: 768px) {
    /* バナースライダーエリアの幅を広げる */
    .p-top-slider .p-top-slider__inner.l-inner {
        max-width: 1400px !important;
        width: calc(100% - 40px) !important;
    }

    .p-top-slider__swiper {
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* バナーアイテムのサイズ調整 */
    .p-top-slider {
        padding: 20px 0 !important;
        border-bottom: 1px solid #ddd;
    }

    /* 幅はSwiperが「(コンテナ幅 - 隙間8px×4) ÷ 5」で自動計算するため固定しない */
    .p-top-slider__item {
        height: 90px !important;
    }
}

/* ============================================
   
マイページ専用スタイル

   ============================================ */
.woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

/* 親テーマ v1.13.x の wc/css/account.css 対策（Codexレビュー F-03）
   account.css は body.woocommerce-account 付きセレクタ(0,2,2)を優先度11で
   子テーマより後に読み込み、991px以下で3列・767px以下で2列に上書きしてくる。
   html を足した(0,2,3)で全ブレークポイントの1列表示を維持する。 */
html body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--dashboard {
    order: 1;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--orders {
    order: 2;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--downloads {
    order: 6;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--edit-address {
    order: 3;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--edit-account {
    order: 4;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--points {
    order: 5;
}

.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--customer-logout {
    order: 7;
}

.woocommerce-edit-account .woocommerce-form-row label[for="password_current"]:after,
.woocommerce-edit-account .woocommerce-form-row label[for="password_1"]:after {
    content: "（変更しない場合は空欄）";
    display: inline-block;
    font-weight: bold;
    color: var(--wc-red);
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
    float: right !important;
}

.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    float: left !important;
}

@media (max-width: 1024px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        border-color: #ddd;
        border-style: solid;
        border-width: 1px 0 0 1px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        border-width: 0 1px 1px 0 !important;
    }

}


/* ============================================
   
チェックアウト専用スタイル

   ============================================ */
.wp-block-woocommerce-checkout-order-summary-totals-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
}

.wp-block-woocommerce-checkout-order-summary-totals-block .wc-block-components-totals-wrapper {
    padding-top: 0;
}

.wc-block-components-totals-item__description {
    font-size: 16px;
}

.wc-block-components-totals-item__description .wc-block-components-totals-footer-item-tax {
    justify-content: flex-end;
}

.wp-block-woocommerce-checkout-order-summary-shipping-block {
    padding-top: 0;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

.wp-block-woocommerce-checkout-order-summary-coupon-form-block .wc-block-components-totals-coupon {
    padding: 0;
}

.wc-block-components-panel__button[aria-expanded="true"] {
    margin-bottom: 5px !important;
}

.wc-block-components-totals-coupon__input input[for="wc-block-components-totals-coupon__input-coupon"] {
    font-size: 14px;
}

.wc-block-checkout__shipping-option .wc-block-components-shipping-rates-control__no-shipping-address-message {
    font-size: 16px;
}

.wc-block-checkout__use-address-for-billing .wc-block-components-checkbox__label {
    font-weight: bold;
}

.wc-block-components-validation-error p {
    margin-bottom: 1em !important;
}

/* 注文サマリー：商品画像の列幅を統一し、縦横比を維持して全体表示 */
.wc-block-components-order-summary-item__image {
    width: 48px !important;
    flex: 0 0 48px !important;
}

.wc-block-components-order-summary-item__image > img {
    width: 48px !important;
    max-width: 48px !important;
    height: auto !important;
}

/* 注文サマリー：タイトル下の単価表示を非表示（右側の価格と重複するため） */
.wc-block-components-order-summary-item__individual-prices {
    display: none !important;
}

/* 新刊案内PDF画像の横並びレイアウト */
.distribution-pdf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.distribution-pdf-item {
  flex: 1 1 calc(50% - 15px);
  max-width: calc(50% - 15px);
}

.distribution-pdf-item img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.distribution-pdf-item a:hover img {
  opacity: 0.8;
}

/* レスポンシブ対応（スマートフォン） */
@media screen and (max-width: 767px) {
  .distribution-pdf-list {
    flex-direction: column;
    gap: 20px;
  }
  
  .distribution-pdf-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   曲目索引ページ用CSS
   ========================================================================== */
/* --------------------------------------------------------------------------
   メインボックス
   -------------------------------------------------------------------------- */
#main-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* --------------------------------------------------------------------------
   ページタイトル（h2）
   -------------------------------------------------------------------------- */
.h3bg_01 {
  background-color: #999;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 15px;
  margin: 0;
}

.mb20 {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   コンテンツボックス
   -------------------------------------------------------------------------- */
.box {
  padding: 0;
}

/* --------------------------------------------------------------------------
   セクションタイトル（h3）
   -------------------------------------------------------------------------- */
.box .title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding: 0 0 5px 0;
  border-bottom: 1px solid #ccc;
}

/* --------------------------------------------------------------------------
   アルファベットナビゲーション
   -------------------------------------------------------------------------- */
.ul01 {
  list-style: none;
  margin: 0 0 15px 0;
  margin-left: 0 !important; /* 親テーマ(.post_content ul)の margin-left: 1.3em を打ち消し */
  padding: 10px 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ul01 li {
  display: inline-flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  border-right: 1px solid #ccc;
}

/* 最後の要素は右ボーダーなし */
.ul01 li:last-child {
  border-right: none;
}

.ul01 li a {
  display: inline-block;
  padding: 8px 0;
  color: #2a7b9b;
  text-decoration: underline;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  transition: color 0.2s ease;
}

.ul01 li a:hover {
  color: #1a5a75;
}

/* --------------------------------------------------------------------------
   データテーブル
   -------------------------------------------------------------------------- */
.tbl01 {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 12px;
}

/* テーブルヘッダー */
.tbl01 > tr:first-child th,
.tbl01 > tbody > tr:first-child th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: bold;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #ccc;
  font-size: 12px;
}

/* 列幅の指定 */
.tbl01 > tr:first-child th:nth-child(1),
.tbl01 > tbody > tr:first-child th:nth-child(1) {
  width: 20% !important;
}

.tbl01 > tr:first-child th:nth-child(2),
.tbl01 > tbody > tr:first-child th:nth-child(2) {
  width: 25% !important;
}

.tbl01 > tr:first-child th:nth-child(3),
.tbl01 > tbody > tr:first-child th:nth-child(3) {
  width: 55% !important;
}

/* アルファベットセクションヘッダー */
.tbl01_th01 {
  background-color: #2c4769 !important;
  color: #fff !important;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid #243a54 !important;
  font-size: 14px;
}

/* トップへ戻るリンク行 */
.tbl01_th02 {
  background-color: #fff;
  text-align: right;
  padding: 5px 10px;
  border: 1px solid #ccc;
  font-weight: normal;
  font-size: 11px;
}

.tbl01_th02 a {
  color: #666;
  text-decoration: none;
}

.tbl01_th02 a:hover {
  text-decoration: underline;
}

/* テーブルセル */
.tbl01 td {
  padding: 6px 10px;
  border: 1px solid #ccc;
  vertical-align: top;
  background-color: #fff;
}



/* リンクセル */
.tbl01 td a {
  color: #0066cc;
  text-decoration: none;
}

.tbl01 td a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   レスポンシブ対応
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  #main-box {
    padding: 10px;
  }

  .h3bg_01 {
    font-size: 13px;
    padding: 6px 10px;
  }

  .tbl01 {
    font-size: 11px;
  }

  .tbl01 td,
  .tbl01 th {
    padding: 5px 8px;
  }

  .ul01 li a {
    padding: 6px 0;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .tbl01 {
    font-size: 10px;
  }

  .tbl01 td,
  .tbl01 th {
    padding: 4px 6px;
  }

  /* モバイルではテーブルを横スクロール可能に */
  .box {
    overflow-x: auto;
  }

  .tbl01 {
    min-width: 600px;
  }
}

/* ヘッダー検索欄を常時表示 */
@media (min-width: 992px) {
  .l-header__search-form input {
    width: 200px !important;  /* 表示時の幅（調整可） */
    opacity: 1 !important;
  }
}

/* ミニカート - 価格の回り込み防止 */
#js-header-view-cart li.woocommerce-mini-cart-item {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto auto !important;
    column-gap: 8px !important;
}

#js-header-view-cart li.woocommerce-mini-cart-item > a.remove {
    grid-column: 1 / -1 !important;
    justify-self: end !important;
}

#js-header-view-cart li.woocommerce-mini-cart-item > a:not(.remove) {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 60px 1fr !important;
    gap: 8px !important;
    align-items: start !important;
}

#js-header-view-cart li.woocommerce-mini-cart-item > a:not(.remove) img {
    width: 60px !important;
    height: auto !important;
    float: none !important;
}

#js-header-view-cart li.woocommerce-mini-cart-item > .quantity {
    grid-column: 1 / -1 !important;
    padding-left: 68px !important;
}

/* ==========================================================================
   TOPページ カテゴリナビゲーション
========================================================================== */
.top-category-nav {
/*    background-color: #1a2a4a; */
    padding: 5px 0;
    width: 100%;
    z-index: 10;
    position: relative;
}

.top-category-nav__list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
}

.top-category-nav__item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.top-category-nav__item:last-child {
    border-right: none;
}

.top-category-nav__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
    height: 100%;
}

.top-category-nav__item a:hover {
    background-color: #2c5282;
}

/* レスポンシブ対応 */
@media screen and (max-width: 991px) {
    .top-category-nav__item a {
        font-size: 13px;
        padding: 12px 6px;
    }
}

@media screen and (max-width: 767px) {
    .top-category-nav__list {
        flex-wrap: wrap;
    }

    .top-category-nav__item {
        flex: 0 0 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .top-category-nav__item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    .top-category-nav__item:nth-child(even) {
        border-right: none;
    }

    .top-category-nav__item:last-child {
        flex: 0 0 100%;
        border-right: none;
    }

    .top-category-nav__item a {
        font-size: 14px;
        padding: 12px 8px;
    }
}

/* ==========================================================================
   メインビジュアル テキストオーバーレイ調整（280px対応）
========================================================================== */

.p-header-slider__contents-main {
    max-width: 65% !important;
}

.p-header-slider__title {
    font-size: 22px !important;
    margin-bottom: 8px !important;
}

.p-header-slider__desc {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.p-header-slider__label {
    font-size: 12px !important;
    padding: 6px 16px !important;
    margin-top: 8px !important;
}

/* ==========================================================================
   スマホ・タブレット 検索窓常時表示
========================================================================== */
@media screen and (max-width: 991px) {
.l-header__icons-search {
        display: block !important;
        margin: 0 10px;
        margin-left: auto;
        max-width: 180px;
    }

    .l-header__search {
        display: flex !important;
    }

    .l-header__search-form {
        flex: 1;
    }

.l-header__search-form input {
        width: 150px !important;
        opacity: 1 !important;
        border: 1px solid #ccc;
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 3px;
        box-sizing: border-box;
    }

    .l-header__search-button button {
        padding: 6px 10px;
    }
}

/* ==========================================================================
   商品ページ カテゴリー非表示（スマホ・タブレット）
========================================================================== */
@media screen and (max-width: 991px) {
    .p-single-product__header-category {
        display: none !important;
    }
}

/* 下層ページ メインビジュアル高さ縮小 */
.p-page-header {
    height: auto !important;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-page-header__inner {
    position: relative;
    height: auto !important;
    padding: 40px 0;
	    z-index: 3;
}

.p-page-header__content {
    position: static !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .p-page-header {
        min-height: 182px;
    }

    .p-page-header__inner {
        padding: 25px 0;
    }
}

/* 曲目索引 相互リンクナビ */
.ul01.crosslink-nav {
    justify-content: flex-start;
    margin-top: -5px;
    margin-bottom: 15px;
}

.ul01.crosslink-nav li {
    flex: none;
    border-right: none;
}

.ul01.crosslink-nav li a {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .ul01.crosslink-nav li a {
        font-size: 16px;
    }
}

/* カテゴリナビ 個別背景色 */
.top-category-nav__item:nth-child(1) a {
    background-color: #2c3e6b;
}
.top-category-nav__item:nth-child(2) a {
    background-color: #7b2d3b;
}
.top-category-nav__item:nth-child(3) a {
    background-color: #2e7d5b;
}
.top-category-nav__item:nth-child(4) a {
    background-color: #6b4c8a;
}
.top-category-nav__item:nth-child(5) a {
    background-color: #b8860b;
}

/* ホバー時は少し明るく */
.top-category-nav__item:nth-child(1) a:hover {
    background-color: #3a5291;
}
.top-category-nav__item:nth-child(2) a:hover {
    background-color: #9b3d4f;
}
.top-category-nav__item:nth-child(3) a:hover {
    background-color: #3a9e73;
}
.top-category-nav__item:nth-child(4) a:hover {
    background-color: #8562a8;
}
.top-category-nav__item:nth-child(5) a:hover {
    background-color: #d4a017;
}

/* --------------------------------------------------------------------------
   曲目索引テーブル共通 - 横スクロール無効化＆1画面表示
   -------------------------------------------------------------------------- */
.post_content .c-h-scroll {
    overflow: visible !important;
}

.tbl01 {
    table-layout: fixed !important;
    width: 100% !important;
}

.tbl01 td,
.tbl01 th {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 幼児こどもの歌テーブル - 列幅調整（PC） */
@media (min-width: 481px) {
    .tbl01--infant > tr:first-child > th:nth-child(1),
    .tbl01--infant > tbody > tr:first-child > th:nth-child(1) {
        width: 30% !important;
    }
    .tbl01--infant > tr:first-child > th:nth-child(2),
    .tbl01--infant > tbody > tr:first-child > th:nth-child(2) {
        width: 60% !important;
    }
    .tbl01--infant > tr:first-child > th:nth-child(3),
    .tbl01--infant > tbody > tr:first-child > th:nth-child(3) {
        width: 10% !important;
    }
}

/* ========================================
   ヘッダー検索欄 - 枠で囲むデザイン
======================================== */

/* 検索エリア全体を枠で囲む */
.l-header__search {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  background: #fff;
  overflow: hidden;
}

/* 入力欄を常時表示 */
.l-header__search-form input {
  width: 180px !important;
  opacity: 1 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  height: 36px;
  padding: 0 15px;
}

/* ホバー時に幅を広げる（任意） */
@media (hover: hover) and (pointer: fine) {
  .l-header__search:hover .l-header__search-form input {
    width: 220px !important;
  }
}

/* 虫眼鏡ボタン */
.l-header__search-button button {
  background: transparent;
  border: none;
  padding-right: 10px;
}

/* ========================================
   スマホ対応（1240px以下）
======================================== */
@media (max-width: 1240px) {
  /* スマホでも検索欄を表示 */
  .l-header__icons-search {
    display: flex !important;
  }
  
  .l-header__search {
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
  }
  
  .l-header__search-form input {
    width: 120px !important;
    opacity: 1 !important;
    height: 32px;
    font-size: 14px;
  }
}

/* さらに小さい画面 */
@media (max-width: 576px) {
  .l-header__search-form input {
    width: 100px !important;
  }
}

/* 商品サブタイトル */
h2.product-subtitle {
    margin: 0.7em 0 0.3em 0;
	font-size: 1.3rem;
    color: #787878;
    font-weight: normal;
}

/* 原タイトル */
h2.product-original-title {
    margin: 0.9em 0 0.8em 0;
    font-size: 1.2rem;
    color: #888;
    font-weight: normal;
    font-style: italic;  /* 英語原題っぽく斜体 */
}

/* ----------------------------------------
    パンくずリスト 折り返し対応（PC）
---------------------------------------- */
@media (min-width: 768px) {
  .c-breadcrumb__list {
    height: auto !important;
    min-height: 70px;
    flex-wrap: wrap !important;
    padding: 10px 0;
  }
  .c-breadcrumb__item {
    white-space: normal !important;
  }
  .c-breadcrumb__item:last-of-type > span {
    white-space: normal !important;
  }
}

/* メガメニュー タイトル左寄せ */
.p-megamenu01__title {
    text-align: left !important;
	    font-size: 11px !important;
}

.p-entry-product__mainimage {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #ffffff !important;
}

.post_content {
    font-family: var(--tcd-font-type1);
    font-size: 18px !important;
}

/* 商品ページ：section-title-wrapper の h2 を明朝体に */
.atn-book-content .section-title-wrapper h2 {
    font-family: "Noto Serif JP", "Yu Mincho", "游明朝", YuMincho, "Hiragino Mincho ProN", "HG明朝E", serif;
    font-weight: 700;
	    font-size: 28px;
}

/* 商品サムネイル 画像全体を表示 */
@media screen and (min-width: 768px) {
    .p-product-loop .p-product-item__image-bg {
        padding-top: 133% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}

/* ========================================
   レコメンドブックス ページヘッダー
======================================== */
.post-type-archive-recommend_books .p-page-header__title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #fff !important;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-align: center;
}

.post-type-archive-recommend_books .p-page-header__desc {
    font-size: 14px !important;
    color: #fff !important;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.8;
}

.post-type-archive-recommend_books .p-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.post-type-archive-recommend_books .p-page-header {
    position: relative;
}

.post-type-archive-recommend_books .p-page-header__inner {
    position: relative;
    z-index: 1;
}

/* ========================================
   レコメンドブックス カテゴリーページヘッダー
======================================== */
.tax-recommend_books_category .p-page-header {
    position: relative;
}

.tax-recommend_books_category .p-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.tax-recommend_books_category .p-page-header__inner {
    position: relative;
    z-index: 1;
}

.tax-recommend_books_category .p-page-header__title {
    font-size: 32px !important;
    font-weight: bold !important;
    color: #fff !important;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    text-align: center;
}

.tax-recommend_books_category .p-page-header__desc {
    font-size: 14px !important;
    color: #fff !important;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.8;
}

/* カテゴリーページ 小見出し */
.tax-recommend_books_category .p-page-header__subtitle {
    font-size: 14px !important;
    font-weight: normal !important;
    letter-spacing: 0.1em;
    color: #fff !important;
    text-align: center;
    margin-bottom: 10px;
}

.tax-recommend_books_category .p-page-header__title {
    margin-bottom: 20px !important;
}

/* カテゴリーページ タイトルと説明文の余白 */
.tax-recommend_books_category .p-page-header__title {
    margin-bottom: 20px !important;
}

/* ========================================
   レコメンドブックス カテゴリーナビ
======================================== */
.rb-category-nav {
    max-width: 960px;
    margin: 0 auto 30px;
}

.rb-category-nav__header {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.rb-category-nav__header span {
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    margin-left: 8px;
}

.rb-category-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fafafa;
}

.rb-category-nav__item {
    margin-right: 30px;
}

.rb-category-nav__item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
    color: #333;
    transition: color 0.3s;
}

.rb-category-nav__item a::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #c00;
}

.rb-category-nav__item:nth-child(2) a::before { background: #6a0; }
.rb-category-nav__item:nth-child(3) a::before { background: #069; }
.rb-category-nav__item:last-child a::before { background: #333; }

.rb-category-nav__item a:hover {
    color: #1a9cb0;
}

.rb-category-nav__item.is-active a {
    color: #1a9cb0;
    text-decoration: none;
}

/* ========================================
   レコメンドブックス 個別記事ページ
======================================== */

/* --- BOOKS DATA セクション --- */
.rb-single-data {
    margin-bottom: 50px;
}

.rb-single-data__heading {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    border-radius: 4px 4px 0 0;
}

.rb-single-data__heading span {
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    margin-left: 8px;
}

.rb-single-data__body {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    background: #fafafa;
}

.rb-single-data__title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.rb-single-data__price {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px 0;
}

.rb-single-data__price span {
    font-size: 18px;
    font-weight: bold;
    color: #c00;
    margin: 0 2px;
}

.rb-single-data__meta {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.rb-single-data__btn {
    display: inline-block;
    background: #1a9cb0;
    color: #fff !important;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.3s;
}

.rb-single-data__btn:hover {
    background: #148a9c;
}

/* --- レビュー本文 --- */
.rb-single-review {
    margin-bottom: 50px;
}

.rb-single-review__heading {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
    margin: 0 0 30px 0;
    border-top: 3px solid #1a9cb0;
    border-bottom: 1px solid #ddd;
}

.rb-single-review__body {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.rb-single-review__body p {
    margin-bottom: 1.5em;
}

.rb-single-review__body a {
    color: #1a6fb0;
    text-decoration: underline;
}

.rb-single-review__body a:hover {
    color: #1a9cb0;
}

strong.rb-accent {
    color: #c00;
}

.rb-single-review__highlight {
    background: #f5f5f5;
    border-left: 4px solid #1a9cb0;
    padding: 15px 20px;
    margin: 30px 0;
    font-size: 16px;
    font-weight: bold;
}

.rb-single-review__highlight p {
    margin: 0 !important;
}

/* --- 執筆者プロフィール --- */
.rb-single-author {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.rb-single-author__name {
    font-size: 15px;
    margin-bottom: 15px;
}

.rb-single-author__name a {
    color: #1a6fb0;
    text-decoration: underline;
}

.rb-single-author__profile {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.rb-single-author__label {
    font-weight: bold;
    margin-bottom: 8px;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    .rb-single-data__body {
        padding: 20px;
    }

    .rb-single-data__title {
        font-size: 18px;
    }

    .rb-single-review__heading {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .rb-single-data__body {
        padding: 15px;
    }

    .rb-single-review__heading {
        font-size: 16px;
    }

    .rb-single-review__body {
        font-size: 14px;
    }
}

/* レコメンドブックス記事内の h3 のみ padding 追加 */
.post_content .rb-single-data__heading,
.post_content .rb-single-review__heading {
    padding-left: 30px;
    padding-right: 15px;
}

/* --- BOOKS DATA サブタイトル --- */
.rb-single-data__subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
}

/* --- 執筆者プロフィール 画像回り込み --- */
.rb-single-author__profile-body {
    overflow: hidden;
}

.rb-single-author__photo {
    float: right;
    width: 180px;
    height: auto;
    margin: 0 0 15px 20px;
    border-radius: 4px;
}

@media screen and (max-width: 480px) {
    .rb-single-author__photo {
        float: none;
        display: block;
        width: 150px;
        margin: 0 auto 15px;
    }
}

.p-single__header-image img {
    border: 1px solid #ddd;
}

/* アイキャッチ画像をPCのみ縮小して中央寄せ */
@media screen and (min-width: 768px) {
    .p-single__header-image {
        text-align: center;
        padding: 30px 0;
    }
    .p-single__header-image img {
        width: auto !important;
        max-width: 300px !important;   /* ← ここの数値で大きさを調整 */
        height: auto !important;
    }
}

/* --- レビュー内 おすすめ商品ブロック --- */
.rb-single-review__recommend {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    margin: 30px 0;
    overflow: hidden;
}

.rb-single-review__recommend img {
    float: left;
    width: 120px;
    height: auto;
    margin: 0 20px 10px 0;
    border: 1px solid #eee;
}

@media screen and (max-width: 480px) {
    .rb-single-review__recommend img {
        float: none;
        display: block;
        width: 100px;
        margin: 0 auto 15px;
    }
}

/* --- レビュー内 譜例画像ブロック --- */
.rb-single-review__notation {
    margin: 15px 0 25px;
    text-align: center;
}

.rb-single-review__notation img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
    border: 1px solid #eee;
}

.p-single-product__header-price {
    font-size: 22px;
    margin-top: 16px !important;
}

/* ポイント表示 */
.get_points {
    margin: 12px 0 !important;
    color: #993a30 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* スマホ：価格とポイントのサイズ調整 */
@media screen and (max-width: 767px) {
    .p-single-product__header-price {
        font-size: 18px !important;
    }
    .get_points {
        font-size: 16px !important;
    }
}

/* 関連商品サムネイル */
@media screen and (min-width: 768px) {
    .single-product .p-product-item__image-bg {
        padding-top: 133% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}

/* カート・お気に入りボタン 画像右下に配置 */
@media screen and (min-width: 768px) {
    .p-product-item__image {
        position: relative;
    }
    .p-product-item__labels {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        z-index: 10;
        transform: none !important;
    }
    /* ボタンのみホバー表示（在庫切れラベルは常時表示） */
    .p-product-item__buttons {
        justify-content: flex-end;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .p-product-item:hover .p-product-item__buttons {
        opacity: 1;
        visibility: visible;
    }
}

/* カートページ：商品名下の単価表示を非表示 */
.wc-block-cart-items .wc-block-cart-item__prices {
    display: none !important;
}

/* 商品詳細ページ：タイトルの行間を調整 */
.p-single-product__header-title {
    line-height: 1.5 !important;
}

/* ========================================
   Contact Form 7 - 必須事項の説明文
======================================== */
.form-required-note {
    margin: 0 0 20px;
    padding: 12px 16px;
    background-color: #fff7f7;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.form-required-note .required {
    color: #c00;
    font-weight: bold;
    margin-right: 2px;
}

/* ========================================
   Contact Form 7 - thの英語表記
======================================== */
.contact-form-table th .th-jp {
    line-height: 1.5;
}
.contact-form-table th .th-en {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #999;
    font-weight: normal;
    letter-spacing: 0.05em;
    font-family: var(--tcd-font-type1);
    text-transform: none;
}
@media screen and (max-width: 768px) {
    .contact-form-table th .th-en {
        font-size: 12px;
        margin-top: 1px;
    }
}

/* ========================================
   Contact Form 7 - フィールドラベルの英語表記
======================================== */
.contact-form-table td label .label-en {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    color: #999;
    font-weight: normal;
    letter-spacing: 0.05em;
    font-family: var(--tcd-font-type1);
    text-transform: none;
    line-height: 1.4;
}

/* ========================================
   Contact Form 7 - 画面切り替え・メッセージ表示制御
   （フォーム内 <style> ブロックから移設）
======================================== */
/* 確認画面と完了画面を非表示（JSで切り替え表示） */
.confirm_area,
.thanks_area {
    display: none;
}

/* デフォルトのサンクスメッセージを非表示 */
.wpcf7-response-output {
    display: none;
}

/* エラーメッセージのスタイル */
.error-message {
    color: #c00;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

/* ========================================
   Contact Form 7 - 注釈・ボタンの英語表記
======================================== */
.form-note .note-en,
.form-required-note .note-en {
    display: block;
    margin-top: 2px;
    color: #999;
    letter-spacing: 0.02em;
    font-family: var(--tcd-font-type1);
}

.zip-button .btn-en {
    display: block;
    font-size: 10px;
    letter-spacing: 0.05em;
    font-family: var(--tcd-font-type1);
}

/* 商品ページ メイン画像・サブ画像 全体表示 */
@media screen and (min-width: 768px) {
    .p-entry-product__subimage-inner {
        background-size: contain !important;
        background-color: #ffffff;
        padding-top: 133% !important;
    }
    .p-entry-product__mainimage .p-entry-product__mainimage-inner {
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}

/* 商品サムネイル スマホ表示 */
@media screen and (max-width: 767px) {
    .p-product-item__image-bg {
        padding-top: 133% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}

/* 商品ページ：掲載曲・アルバムリスト */
.song-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1em 0 2em !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.song-list li {
    list-style: none !important;
    position: relative;
    padding-left: 1em;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.song-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: #555;
}

.song-list li strong {
    font-weight: 700;
    color: #222;
}

.section-label {
    margin: 2em 0 0.3em;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

@media (max-width: 767px) {
    .song-list {
        grid-template-columns: 1fr;
    }
}

/* 商品ページ サブ画像 スマホ表示 */
@media screen and (max-width: 767px) {
    .p-entry-product__subimage-inner {
        background-size: contain !important;
        background-color: #ffffff;
        padding-top: 133% !important;
    }
}

/* ============================================================
   商品サムネイル画像の最適化
   ============================================================ */

/* 商品ループ：PC表示 */
@media screen and (min-width: 768px) {
    .p-product-loop .p-product-item__image-bg {
        padding-top: 134% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
    /* 関連商品・最近チェックした商品 */
    .single-product .p-product-item__image-bg {
        padding-top: 134% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
    /* カート・お気に入りボタン 画像右下に配置 */
    .p-product-item__image {
        position: relative;
    }
    .p-product-item__labels {
        position: absolute !important;
        bottom: 8px !important;
        right: 8px !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        z-index: 10;
        transform: none !important;
    }
    /* ボタンのみホバー表示（在庫切れラベルは常時表示） */
    .p-product-item__buttons {
        justify-content: flex-end;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .p-product-item:hover .p-product-item__buttons {
        opacity: 1;
        visibility: visible;
    }
}

/* 商品ループ：スマホ表示 */
@media screen and (max-width: 767px) {
    .p-product-item__image-bg {
        padding-top: 134% !important;
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}

/* 商品ページ：メイン画像・サブ画像 */
/* サムネイル枠：親テーマの background:#eee を打ち消す */
.p-entry-product__subimage {
    background-color: #ffffff !important;
}
@media screen and (min-width: 768px) {
    .p-entry-product__subimage-inner {
        background-size: contain !important;
        background-color: #ffffff;
        padding-top: 134% !important;
    }
    .p-entry-product__mainimage .p-entry-product__mainimage-inner {
        background-size: contain !important;
        background-color: #f5f5f5;
    }
}
@media screen and (max-width: 767px) {
    .p-entry-product__subimage-inner {
        background-size: contain !important;
        background-color: #ffffff;
        padding-top: 134% !important;
    }
}

/* カートページ 商品画像 */
.wc-block-grid__product-image {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    box-sizing: border-box;
    line-height: 0;
}
.wc-block-grid__product-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* ==========================================================================
   商品グリッド「買い物かごに追加」ボタン（カート内クロスセル・新登場 等）
   ── 商品詳細ページの .c-button と同じアウトライン型デザインに統一
   対象: .wp-block-button__link.add_to_cart_button（wc-blocks グリッド）
========================================================================== */

/* ラッパーを中央寄せ（保険） */
.wp-block-button.wc-block-grid__product-add-to-cart {
    text-align: center;
}

.wp-block-button__link.add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 30px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(var(--tcd-accent-color, 0, 0, 0), 1) !important;
    background-color: transparent !important;
    color: rgba(var(--tcd-accent-color, 0, 0, 0), 1) !important;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* ホバー：アクセントカラーで塗りつぶし（タッチ端末では無効化） */
@media (hover: hover) and (pointer: fine) {
    .wp-block-button__link.add_to_cart_button:hover,
    .wp-block-button__link.add_to_cart_button:focus-visible {
        color: #fff !important;
        background-color: rgba(var(--tcd-accent-color, 0, 0, 0), 1) !important;
        border-color: rgba(var(--tcd-accent-color, 0, 0, 0), 1) !important;
    }
}

/* タップ時のフィードバック（スマホ用） */
.wp-block-button__link.add_to_cart_button:active {
    color: #fff !important;
    background-color: rgba(var(--tcd-accent-color, 0, 0, 0), 1) !important;
}

/* 追加完了後に出る「買い物かごを見る」リンク：塗りつぶし型で次アクションを明示 */
.wc-block-grid__product-add-to-cart .added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 8px;
    padding: 8px 24px;
    border-radius: 50px;
    background-color: rgba(var(--tcd-accent-color, 0, 0, 0), 1);
    color: #fff !important;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.wc-block-grid__product-add-to-cart .added_to_cart:hover {
    opacity: 0.85;
    color: #fff !important;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .wp-block-button__link.add_to_cart_button {
        padding: 9px 24px !important;
        font-size: 13px;
    }
}

/* figure直後のh4の上余白を除去 */
.atn-text-content figure + h4 {
    margin-top: 0 !important;
}

/* ============================================
   器楽アンサンブル 楽器編成 2カラム
   （ドレミ音名付/器楽合奏/器楽アンサンブル 共通）
   ============================================ */
.atn-ensemble-cols {
    margin: 0 0 1.2em;
}
.atn-ensemble-cols > ul {
    margin: 0 0 0.6em;
    padding-left: 1.2em;
}
@media screen and (min-width: 768px) {
    .atn-ensemble-cols {
        display: flex;
        gap: 2em;
        flex-wrap: wrap;
    }
    .atn-ensemble-cols > ul {
        flex: 1 1 240px;
        margin-bottom: 0;
    }
}

/* ============================================
   ヘッダー予測検索（オートコンプリート）
   位置(top/left/width)はJSで設定。ここは見た目のみ。
   ============================================ */
.atn-predictive-search {
    position: fixed;
    z-index: 100000;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    max-height: 60vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.atn-predictive-search__item {
    margin: 0;
    padding: 0;
}
.atn-predictive-search__item a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
}
.atn-predictive-search__item.is-active a,
.atn-predictive-search__item a:hover {
    background: #f2f2f2;
}

/* ============================================
   商品詳細ページ（スマホ）フッター固定バーを常時表示
   親テーマは is-active クラス（スクロール連動）で
   opacity を切り替えているため、常に表示状態に固定する
   ============================================ */
@media screen and (max-width: 599px) {
    .p-product-footer-bar {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* お気に入り追加メッセージがバーに隠れないよう常にバーの上に出す */
    .p-product-footer-bar ~ .p-product-like-message-wrapper {
        bottom: 90px !important;
    }
}

/* ============================================
   サイドメニュー商品カテゴリー：子階層をホバーで
   フライアウト表示（PCのみ）
   ウィジェット側で「最大の深さ」を3にして子階層を
   HTML出力させたうえで、このCSSが表示を制御する
   ============================================ */

/* 子階層はデフォルト非表示（スマホは常に非表示＝これまでの見た目を維持） */
.widget_product_categories ul.children {
    display: none;
}

@media screen and (min-width: 768px) {
    /* フライアウトの位置基準 */
    .widget_product_categories li.cat-item {
        position: relative;
    }

    /* 子階層パネル：親項目の右横に重ねて表示 */
    .widget_product_categories li.cat-item > ul.children {
        position: absolute;
        top: 0;
        left: 100%;
        z-index: 100;
        min-width: 260px;
        margin: 0;
        padding: 0 15px;
        background: #f9f9f9;
        border: 1px solid #ddd;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* ホバー中の項目の直下階層だけ開く（2階層目・3階層目共通） */
    .widget_product_categories li.cat-item:hover > ul.children {
        display: block;
    }

    /* パネル内リンク：親テーマのインデント指定を打ち消してフラットに */
    .widget_product_categories ul.children a {
        padding-left: 5px !important;
        border-top: 1px solid #ddd;
        white-space: nowrap;
    }
    .widget_product_categories ul.children li:first-of-type > a {
        border-top: none;
    }
}

* + .p-megamenu01__content .p-megamenu01__title {
    width: calc(100% + 60px);
    margin-left: -20px !important;
}

/* 商品一覧：タイトル・価格ブロックの枠線を削除（親テーマの border を打ち消し） */
.p-product-item__content {
    border: none !important;
}

/* ============================================
   トップページ（スマホ）：商品カテゴリー一覧を
   アコーディオン（details/summary）で表示
   出力元は子テーマ template-parts/front-page-contents.php
   ============================================ */
.sp-category-nav {
    display: none;
}

@media screen and (max-width: 1240px) {
    .sp-category-nav {
        display: block;
        margin-bottom: 40px;
    }
    .category-accordion {
        border: 1px solid #ddd;
        background: #fff;
    }
    .category-accordion__title {
        position: relative;
        padding: 14px 40px 14px 15px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        list-style: none;
    }
    /* Safari のデフォルト三角マーカーを消す */
    .category-accordion__title::-webkit-details-marker {
        display: none;
    }
    /* 開閉矢印 */
    .category-accordion__title::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 18px;
        width: 8px;
        height: 8px;
        border-right: 2px solid #888;
        border-bottom: 2px solid #888;
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.2s;
    }
    .category-accordion[open] .category-accordion__title::after {
        transform: translateY(-30%) rotate(-135deg);
    }
    .category-accordion__list {
        margin: 0 !important;
        padding: 0 !important;
        border-top: 1px solid #ddd;
    }
    .category-accordion__list li {
        margin: 0 !important;
        list-style: none !important;
    }
    .category-accordion__list li + li {
        border-top: 1px solid #eee;
    }
    .category-accordion__list li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        font-size: 14px;
        color: #333;
    }
    /* 件数バッジ（PCサイドバーと同じ見た目。親テーマの wp_list_categories
       フィルタが件数を <span class="count"> としてリンク内に移動する） */
    .category-accordion__list a .count {
        display: block;
        min-width: 50px;
        height: 30px;
        line-height: 29px;
        border-radius: 30px;
        font-size: 14px;
        text-align: center;
        color: #000;
        background: #fff;
        border: 1px solid #ddd;
        margin-left: 5px;
    }
}

/* 数量セレクターの縦幅調整（PCのみ） */
@media screen and (min-width: 768px) {
    .woocommerce-cart .wc-block-components-quantity-selector {
        height: 30px; /* ← この値で縦幅を調整 */
    }

    .woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input {
        height: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    .woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.post_content .link-list * + h3 {
	margin-top: 1em;
}

/* ------------------------------------------------------------------
   商品詳細タブのJSフォールバック
   親テーマは .wc-tab { display: none; } で初期非表示にし、
   WooCommerce本体の single-product.js が最初のタブを開く仕組み。
   コンテンツブロッカー等でこのJSが動かない環境（例：iOS Safari＋
   広告ブロック）では「商品の詳細」の中身が永久に非表示のままになる。
   → CSSの初期値を「表示」に反転してJS非依存にする。
   JSが正常に動く環境では single-product.js が初期化時に inline style
   で hide()→show() するため、タブの切替挙動は従来と完全に同じ
   （inline style は !important なしのCSSより優先されるため干渉しない）。
   ------------------------------------------------------------------ */
.woocommerce-tabs .wc-tab {
    display: block;
}

/* 監視フォールバックJS（functions.php）の段階2が生成する代替表示。
   元のパネルのクラス・idはブロッカーの標的になりうるため除去され、
   素のHTMLになる。ここで最低限のテーブル装飾を与える。 */
.product-detail-static {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 0;
}
.product-detail-static table {
    width: 100%;
    border-collapse: collapse;
}
.product-detail-static th,
.product-detail-static td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}
.product-detail-static th {
    white-space: nowrap;
    font-weight: 600;
}

/* ========================================
   商品詳細ページ SP固定フッターバー：在庫切れ表示
   本文の在庫切れボタン（background:#bbb; color:#fff）と配色を揃える
   ======================================== */
.p-product-footer-bar--soldout .p-product-footer-bar__button--cart {
    background: #bbb;
    border-color: #bbb;
    color: #fff;
    cursor: default;
    pointer-events: none;
    opacity: 1;
}

/* ========================================
   グローバルナビ ドロップダウンの横幅
   親テーマは min-width:240px + 折り返し可のため、
   「学校教育機関でのご採用について」等の長い項目が2行になる。
   nowrap で1行固定にし、最長項目に合わせて自動で伸びるようにする。
   （min-width は短い項目用の下限）
   ======================================== */
@media screen and (min-width: 768px) {
    .p-global__nav .sub-menu a {
        min-width: 300px;
        white-space: nowrap;
    }
}

/* ========================================
   サイドメニュー見出しの文字色
   親テーマは c-widget-headline__label をアクセントカラー
   （青）で塗るため、この見出しだけ黒に戻す。
   左のアクセントバー（:before）はそのまま残す。
   ======================================== */
.l-sidebar .c-widget-headline__label {
    color: #2c2c2c;
}

/* ========================================
   サイドメニューの非表示（タブレット幅以下）

   親テーマは 1240px 以下になるとサイドバーを本文の下へ
   回り込ませ、ウィジェットを横2カラムで並べる仕様
   （common_tcd097/style.css の .l-sidebar、
     common_tcd097/css/default-widget.css の .p-widget）。
   タブレット幅ではこの回り込みレイアウトが中途半端に
   見えるため、回り込みが始まる 1240px 以下ではサイド
   バーごと非表示にし、スマホと同じ「本文のみ」の表示に
   揃える。本文は親テーマ側で中央寄せ（.l-container__inner
   の justify-content:center）になるため追加調整は不要。

   ▼ 非表示にする幅を変えたいときは下の 1240px を書き換える
     例）1024px  … 1025〜1240px は従来どおり回り込み表示に戻る
     例）767px   … タブレット縦も回り込み表示に戻る

   ※ ランキングページ（page__ranking.php）のサイドバーは
     商品カテゴリー切替UIそのもので、消すと機能が失われる
     ため body クラスで除外している。
   ======================================== */
@media screen and (max-width: 1240px) {
    body:not(.page-template-page__ranking) .l-sidebar {
        display: none !important;
    }
}

/* ========================================
   サイドメニューの非表示（タブレット幅以下）
   1240px以下は親テーマがサイドバーを本文下に回り込ませ
   2カラム表示にするため、まとめて非表示にする。
   ランキングページはサイドバーがカテゴリー切替UIなので除外。
   ======================================== */
@media screen and (max-width: 1240px) {
    body:not(.page-template-page__ranking) .l-sidebar {
        display: none !important;
    }
}

/* ========================================
   商品説明内グリッドのスマホ表示（2026-08-23）
   ========================================
   商品13033・13034 の「関連商品」ブロックは、商品本文（DB）内のインラインstyleで
   CSS Grid を組んでいる:
     外側 repeat(auto-fit, minmax(160px, 1fr))  … 2つの紹介ブロックを横並び
     内側 repeat(auto-fit, minmax(120px, 1fr))  … 写真3枚を横並び

   本文カラム幅が 344px を超えると外側が2カラムになるため、
   **ビューポート412px〜767px（Android 412px・iPhone Pro Max 430px 等）で
   2カラムのまま潰れ、左右の内容が交互に混ざって読み順が壊れる**。
   （390px以下では元から1カラムのため発生しない）

   スマホでは以下の縦並びにする:
     紹介文 → 写真3枚（横並び）→ 紹介文 → 写真1枚

   インラインstyleを上書きするため !important が必須。
   PCは現状のままにするので max-width で囲む（絶対ルール3の裏返し）。
   属性セレクタで minmax の値を見分け、外側と内側を撃ち分けている。 */
@media screen and (max-width: 767px) {

  /* 外側: 紹介ブロックを縦積みにする */
  .atn-text-content div[style*="minmax(160px"] {
    grid-template-columns: 1fr !important;
  }

  /* 内側: 写真3枚は横並びを維持する（縦積みにすると間延びするため） */
  .atn-text-content div[style*="minmax(120px"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

