@charset "utf-8";

/* ============================================================
   合格できる問題集 - カスタムCSS
   デザインベース: tp_biz63_yellow1 (Template Party)
   カラー: Yellow (#FEEC37) + Dark (#323232)
   ============================================================ */

/* ------------------------------------------------------------
   CSS カスタムプロパティ
   ------------------------------------------------------------ */
:root {
    --primary-color: #FEEC37;
    --primary-dark:  #E5D400;
    --primary-inverse-color: #323232;
    --base-color: #ffffff;
    --base-inverse-color: #323232;
    --bg-light: #f8f8f3;
    --bg-dark:  #323232;
    --accent-color: #e53935;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
    --space-large: 80px;
    --space-medium: 60px;
    --space-small: 40px;
    --max-width: 1200px;
    --content-width: 900px;
    --radius: 6px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: 0.3s ease;
}

/* ------------------------------------------------------------
   リセット・ベース
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN",
                 "メイリオ", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    background: var(--base-color);
    -webkit-text-size-adjust: none;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }
ul { list-style: none; margin: 0; padding: 0; }

/* ============================================================
   レイアウトユーティリティ
   ============================================================ */
.gdk-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4vw;
}
.gdk-container--narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 4vw;
}

.gdk-section {
    padding: var(--space-large) 4vw;
    overflow-x: hidden;
}
.gdk-section--sm { padding: var(--space-small) 4vw; }
.gdk-section--lg { padding: calc(var(--space-large) * 1.5) 4vw; }
.gdk-section--no-pad { padding: 0; }

/* 背景パターン */
.gdk-bg-primary  { background: var(--primary-color); color: var(--primary-inverse-color); }
.gdk-bg-dark     { background: var(--bg-dark); color: #ffffff; }
.gdk-bg-light    { background: var(--bg-light); }
.gdk-bg-white    { background: #ffffff; }
.gdk-bg-pattern1 { background: var(--bg-light) url('../images/bg-dot.png'); }
.gdk-bg-pattern2 { background: #f0ede0 url('../images/bg-dot.png'); }

/* テキストユーティリティ */
.gdk-text-center { text-align: center; }
.gdk-text-right  { text-align: right; }
.gdk-color-primary { color: var(--primary-color); }
.gdk-color-accent  { color: var(--accent-color); }
.marker { background: linear-gradient(transparent 60%, var(--primary-color) 60%); }

/* ============================================================
   セクション見出し
   ============================================================ */
.gdk-section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.gdk-section-title h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 0.4rem;
    letter-spacing: 0.03em;
}
.gdk-section-title h2 .en {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.65rem, 1.5vw, 0.8rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
}
.gdk-section-title--left { text-align: left; }
.gdk-section-title--white h2 { color: #fff; }
.gdk-section-title--white h2 .en { color: rgba(255,255,255,0.7); }

.gdk-title-bar {
    display: inline-block;
    position: relative;
    padding-bottom: 0.7rem;
    margin-bottom: 2rem;
}
.gdk-title-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}
.gdk-title-bar--center::after { left: 50%; transform: translateX(-50%); }

/* ============================================================
   ヘッダー (カスタム)
   ============================================================ */
.gdk-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    transition: var(--transition);
}
.gdk-header.scrolled {
    height: 60px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

/* ロゴ */
.gdk-header__logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.gdk-header__logo img {
    height: 44px;
    width: auto;
}
.gdk-header__logo .site-name {
    font-size: 1rem;
    font-weight: 900;
    color: var(--primary-inverse-color);
    line-height: 1.3;
    letter-spacing: 0.02em;
}

/* ヘッダーナビ (PC) */
.gdk-header__nav { display: none; }
@media (min-width: 900px) {
    .gdk-header__nav {
        display: flex;
        align-items: center;
        gap: 0;
    }
    .gdk-header__nav li a {
        display: block;
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-color);
        white-space: nowrap;
    }
    .gdk-header__nav li a:hover {
        color: var(--primary-inverse-color);
        background: var(--primary-color);
        opacity: 1;
    }
    /* ドロップダウン */
    .gdk-header__nav .menu-item-has-children { position: relative; }
    .gdk-header__nav .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-top: 3px solid var(--primary-color);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow);
        z-index: 100;
    }
    .gdk-header__nav .menu-item-has-children:hover .sub-menu { display: block; }
    .gdk-header__nav .sub-menu li a {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
        border-bottom: 1px solid var(--border-color);
    }
    .gdk-header__nav .sub-menu li:last-child a { border-bottom: none; }
}

/* CTAボタン（ヘッダー右端） */
.gdk-header__cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}
.gdk-header__cta .btn-amazon {
    display: none;
    padding: 0.4rem 1rem;
    background: #FF9900;
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .gdk-header__cta .btn-amazon { display: inline-flex; align-items: center; gap: 0.3rem; }
}
.gdk-header__cta .btn-direct {
    display: none;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--primary-inverse-color);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
@media (min-width: 1100px) {
    .gdk-header__cta .btn-direct { display: inline-flex; align-items: center; gap: 0.3rem; }
}

/* ハンバーガーボタン */
.gdk-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
}
.gdk-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-color);
    border-radius: 1px;
    transition: var(--transition);
}
.gdk-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.gdk-hamburger.is-open span:nth-child(2) { opacity: 0; }
.gdk-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (min-width: 900px) { .gdk-hamburger { display: none; } }

/* スマホメニューオーバーレイ */
.gdk-mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--primary-color);
    z-index: 999;
    padding: 80px 6vw 40px;
    overflow-y: auto;
}
.gdk-mobile-menu.is-open { display: block; }
.gdk-mobile-menu nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-inverse-color);
    border-bottom: 1px solid rgba(0,0,0,0.15);
}
.gdk-mobile-menu nav ul li a:hover { padding-left: 0.8rem; }
.gdk-mobile-menu .sub-menu a {
    padding-left: 1rem !important;
    font-size: 0.9rem;
    font-weight: 500;
}
.gdk-mobile-menu__close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-inverse-color);
}

/* ============================================================
   メインビジュアル (ヒーロー)
   ============================================================ */
.gdk-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
}
.gdk-hero__bg {
    position: absolute;
    inset: 0;
    background: url('../images/mainimg.jpg') center center / cover no-repeat;
    opacity: 0.55;
}
.gdk-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 6vw 60px;
    width: 100%;
}
.gdk-hero__tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--primary-inverse-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 3px;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
}
.gdk-hero__catch {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: 0.03em;
    margin: 0 0 1rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.gdk-hero__catch .highlight {
    color: var(--primary-color);
}
.gdk-hero__sub {
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}
.gdk-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
/* スクロール誘導 */
.gdk-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.gdk-hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.5);
    margin: 0.5rem auto 0;
    animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ボタン
   ============================================================ */
.gdk-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    white-space: nowrap;
}
.gdk-btn--primary {
    background: var(--primary-color);
    color: var(--primary-inverse-color);
    border-color: var(--primary-color);
}
.gdk-btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254,236,55,0.4);
}
.gdk-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255,255,255,0.8);
}
.gdk-btn--outline:hover {
    background: #ffffff;
    color: var(--primary-inverse-color);
    opacity: 1;
    transform: translateY(-2px);
}
.gdk-btn--dark {
    background: var(--bg-dark);
    color: #ffffff;
    border-color: var(--bg-dark);
}
.gdk-btn--dark:hover {
    background: #444;
    opacity: 1;
    transform: translateY(-2px);
}
.gdk-btn--amazon {
    background: #FF9900;
    color: #ffffff;
    border-color: #FF9900;
}
.gdk-btn--amazon:hover {
    background: #e68a00;
    border-color: #e68a00;
    opacity: 1;
    transform: translateY(-2px);
}
.gdk-btn--lg {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}
.gdk-btn--sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* 購入ボタン (ショートコード) */
.gdk-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}
.gdk-buy-btn--amazon  { background: #FF9900; color: #fff; }
.gdk-buy-btn--direct  { background: var(--primary-color); color: var(--primary-inverse-color); }
.gdk-buy-btn--store   { background: var(--bg-dark); color: #fff; }
.gdk-buy-btn:hover    { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ============================================================
   カードグリッド
   ============================================================ */
.gdk-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.gdk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gdk-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gdk-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* カード */
.gdk-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.gdk-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.gdk-card__img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.gdk-card__body {
    padding: 1.4rem 1.2rem;
}
.gdk-card__badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: var(--primary-color);
    color: var(--primary-inverse-color);
    margin-bottom: 0.6rem;
}
.gdk-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.gdk-card__text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   お悩みセクション (黒背景カード)
   ============================================================ */
.gdk-trouble-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-trouble-card {
    position: relative;
    background: var(--bg-dark);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem 2.5rem;
    overflow: hidden;
}
.gdk-trouble-card__num {
    position: absolute;
    bottom: -0.3rem;
    right: 0.8rem;
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.07);
    line-height: 1;
}
.gdk-trouble-card__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-inverse-color);
}
.gdk-trouble-card h4 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 0.7rem;
}
.gdk-trouble-card h4 .color-check { color: var(--primary-color); }
.gdk-trouble-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   解決セクション (黄色背景)
   ============================================================ */
.gdk-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-solution-card {
    position: relative;
    background: rgba(255,255,255,0.9);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 2.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gdk-solution-card__num {
    position: absolute;
    bottom: -0.3rem;
    right: 0.8rem;
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0,0,0,0.06);
    line-height: 1;
}
.gdk-solution-card__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-inverse-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.gdk-solution-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.7rem;
    line-height: 1.5;
}
.gdk-solution-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ============================================================
   問題集ラインアップ
   ============================================================ */
.gdk-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-book-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.gdk-book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.gdk-book-card__cover {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-light);
}
.gdk-book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gdk-book-card:hover .gdk-book-card__cover img { transform: scale(1.04); }
.gdk-book-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gdk-book-card__series {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-inverse-color);
    background: var(--primary-color);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.gdk-book-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 0.5rem;
    flex: 1;
}
.gdk-book-card__price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.7rem;
}
.gdk-book-card__price .yen { font-size: 0.72rem; }
.gdk-book-card__btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ============================================================
   お客様の声
   ============================================================ */
.gdk-voice-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-voice-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
@media (min-width: 700px) {
    .gdk-voice-item { grid-template-columns: 200px 1fr; }
    .gdk-voice-item.reverse { direction: rtl; }
    .gdk-voice-item.reverse > * { direction: ltr; }
}
.gdk-voice-item__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
@media (min-width: 700px) {
    .gdk-voice-item__img img { height: 100%; min-height: 200px; }
}
.gdk-voice-item__body { padding: 1.8rem; }
.gdk-voice-item__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
}
.gdk-voice-item__text {
    font-size: 0.88rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin: 0 0 1rem;
}
.gdk-voice-item__name {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
    color: var(--text-color);
}

/* ============================================================
   購入方法
   ============================================================ */
.gdk-purchase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-purchase-item {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 3rem 2rem;
}
.gdk-purchase-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    transition: var(--transition);
}
.gdk-purchase-item:hover::before { background: rgba(0,0,0,0.3); }
.gdk-purchase-item__bg {
    position: absolute;
    inset: 0;
    background: center center / cover no-repeat;
    transition: transform 0.4s ease;
}
.gdk-purchase-item:hover .gdk-purchase-item__bg { transform: scale(1.05); }
.gdk-purchase-item--amazon .gdk-purchase-item__bg  { background-image: url('../images/bg_contact.jpg'); }
.gdk-purchase-item--direct .gdk-purchase-item__bg  { background-image: url('../images/bg_works.jpg'); }
.gdk-purchase-item--store  .gdk-purchase-item__bg  { background-image: url('../images/bg_company.jpg'); }
.gdk-purchase-item__body {
    position: relative;
    z-index: 1;
    color: #fff;
}
.gdk-purchase-item__sub  { font-size: 0.8rem; letter-spacing: 0.1em; opacity: 0.9; margin-bottom: 0.3rem; }
.gdk-purchase-item__main { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 600; margin: 0 0 1.2rem; letter-spacing: 0.05em; }

/* ============================================================
   FAQ
   ============================================================ */
.gdk-faq { max-width: var(--content-width); margin: 0 auto; }
.gdk-faq dt {
    cursor: pointer;
    padding: 1.1rem 1.4rem;
    padding-right: 3rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    margin-bottom: 0.5rem;
    transition: background var(--transition);
}
.gdk-faq dt.is-open { background: var(--primary-color); }
.gdk-faq dt::before {
    content: 'Q';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.gdk-faq dt.is-open::before { color: var(--primary-inverse-color); }
.gdk-faq dt {
    padding-left: 2.8rem;
}
.gdk-faq dt::after {
    content: '';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 10px; height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform-origin: center 75%;
    transition: transform var(--transition);
    transform: translateY(-75%) rotate(45deg);
}
.gdk-faq dt.is-open::after { transform: translateY(-25%) rotate(225deg); }
.gdk-faq dd {
    display: none;
    padding: 1.1rem 1.4rem 1.4rem 2.8rem;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 1rem;
    background: #fafafa;
    position: relative;
}
.gdk-faq dd::before {
    content: 'A';
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* ============================================================
   お知らせ (ニュース)
   ============================================================ */
.gdk-news-list { max-width: var(--content-width); margin: 0 auto; }
.gdk-news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}
.gdk-news-item__date {
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 6em;
    font-size: 0.83rem;
}
.gdk-news-item__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    min-width: 4em;
    text-align: center;
    background: var(--bg-light);
    color: var(--text-muted);
}
.gdk-news-item__badge--important { background: var(--accent-color); color: #fff; }
.gdk-news-item__badge--service   { background: var(--primary-color); color: var(--primary-inverse-color); }
.gdk-news-item__text { flex: 1; }
.gdk-news-item__text a:hover { color: var(--primary-inverse-color); }

/* ============================================================
   テキストスクロール
   ============================================================ */
.gdk-text-scroll {
    overflow: hidden;
    background: var(--primary-color);
    padding: 0.8rem 0;
    white-space: nowrap;
}
.gdk-text-scroll__inner {
    display: inline-flex;
    animation: textScroll 20s linear infinite;
    gap: 4rem;
}
.gdk-text-scroll__inner span {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-inverse-color);
    letter-spacing: 0.1em;
}
@keyframes textScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   CTA バナー
   ============================================================ */
.gdk-cta-banner {
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: var(--space-large) 4vw;
}
.gdk-cta-banner h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin: 0 0 0.5rem;
}
.gdk-cta-banner p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1.8rem;
}
.gdk-cta-banner .gdk-btn--primary { box-shadow: 0 4px 20px rgba(254,236,55,0.5); }

/* ============================================================
   フッター
   ============================================================ */
.gdk-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 4vw 0;
}
.gdk-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 700px) {
    .gdk-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .gdk-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}
.gdk-footer__brand .logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.gdk-footer__brand .logo .site-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.4rem;
}
.gdk-footer__brand p {
    font-size: 0.83rem;
    margin: 1rem 0 0.5rem;
    line-height: 1.7;
}
.gdk-footer__social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}
.gdk-footer__social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.gdk-footer__social a:hover { background: var(--primary-color); color: var(--primary-inverse-color); opacity: 1; }
.gdk-footer__nav h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 0.6rem;
    margin: 0 0 0.8rem;
}
.gdk-footer__nav ul li a {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.3rem 0;
}
.gdk-footer__nav ul li a:hover { color: var(--primary-color); opacity: 1; }
.gdk-footer__bottom {
    max-width: var(--max-width);
    margin: 3rem auto 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
.gdk-footer__bottom a { color: inherit; }
.gdk-footer__bottom a:hover { color: var(--primary-color); opacity: 1; }

/* ============================================================
   ページ共通: コンテンツページレイアウト
   ============================================================ */
.gdk-page-hero {
    padding: 120px 4vw 60px;
    background: var(--primary-color);
    text-align: center;
}
.gdk-page-hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    margin: 0 0 0.3rem;
    color: var(--primary-inverse-color);
}
.gdk-page-hero .en {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: rgba(0,0,0,0.5);
    text-transform: uppercase;
}
.gdk-page-breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 4vw;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.gdk-page-breadcrumb a { color: var(--text-muted); }
.gdk-page-breadcrumb a:hover { color: var(--primary-inverse-color); }
.gdk-page-breadcrumb span { margin: 0 0.4rem; }

/* ============================================================
   商品コンセプトページ
   ============================================================ */
.gdk-concept-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
@media (min-width: 700px) {
    .gdk-concept-feature { grid-template-columns: 1fr 1fr; align-items: center; }
    .gdk-concept-feature.reverse .gdk-concept-feature__img { order: 2; }
    .gdk-concept-feature.reverse .gdk-concept-feature__text { order: 1; }
}
.gdk-concept-feature__img img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.gdk-concept-feature__text .num {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.3rem;
}
.gdk-concept-feature__text h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 0 1rem;
    line-height: 1.4;
}
.gdk-concept-feature__text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 0;
}

/* ============================================================
   書店様向けページ
   ============================================================ */
.gdk-bookstore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.gdk-bookstore-table th,
.gdk-bookstore-table td {
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    line-height: 1.7;
}
.gdk-bookstore-table th {
    background: var(--primary-color);
    font-weight: 700;
    width: 30%;
    white-space: nowrap;
}
.gdk-bookstore-table tr:nth-child(even) td { background: var(--bg-light); }

/* 注文書ダウンロードボックス */
.gdk-download-box {
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.gdk-download-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.gdk-download-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1.2rem;
}

/* ============================================================
   PDFダウンロードリスト
   ============================================================ */
.gdk-pdf-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: var(--content-width);
    margin: 0 auto;
}
.gdk-pdf-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.gdk-pdf-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}
.gdk-pdf-item__icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}
.gdk-pdf-item__body { flex: 1; }
.gdk-pdf-item__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.2rem; }
.gdk-pdf-item__desc  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.gdk-pdf-item__btn   { flex-shrink: 0; }

/* ============================================================
   時事問題ページ
   ============================================================ */
.gdk-jiji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.gdk-jiji-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.gdk-jiji-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gdk-jiji-card__header {
    background: var(--primary-color);
    padding: 1rem 1.2rem;
}
.gdk-jiji-card__header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-inverse-color);
}
.gdk-jiji-card__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.gdk-jiji-card p { font-size: 0.83rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ============================================================
   三者面談ページ
   ============================================================ */
.gdk-qa-list { max-width: var(--content-width); margin: 0 auto; }
.gdk-qa-item {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gdk-qa-item__question {
    background: var(--bg-dark);
    color: #fff;
    padding: 1.1rem 1.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.gdk-qa-item__question::before {
    content: 'Q';
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.gdk-qa-item__answer {
    padding: 1.2rem 1.4rem;
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.gdk-qa-item__answer::before {
    content: 'A';
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ============================================================
   アニメーション (inview)
   ============================================================ */
.gdk-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.gdk-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.gdk-up:nth-child(2) { transition-delay: 0.1s; }
.gdk-up:nth-child(3) { transition-delay: 0.2s; }
.gdk-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   Cocoon 既存スタイルの上書き
   ============================================================ */

/* Cocoon のデフォルトヘッダーを非表示 (カスタムヘッダー使用時) */
body.page-template-gdk-fullpage #header,
body.page-template-gdk-fullpage #footer,
body.front-page #header,
body.front-page #footer,
body.home #header,
body.home #footer {
    display: none !important;
}

/* Cocoon のメインコンテンツ幅をリセット */
body.gdk-custom-layout #main,
body.gdk-custom-layout .entry-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
body.gdk-custom-layout #wrapper {
    padding-top: 0;
}

/* Cocoon サイドバーをLPでは非表示 */
body.front-page #sidebar,
body.home #sidebar,
body.page-template-gdk-lp #sidebar {
    display: none !important;
}

/* ============================================================
   レスポンシブ補足
   ============================================================ */
@media (max-width: 600px) {
    :root {
        --space-large: 50px;
        --space-medium: 40px;
        --space-small: 30px;
    }
    .gdk-hero__btns { flex-direction: column; align-items: flex-start; }
    .gdk-btn { width: 100%; justify-content: center; }
}
