/*
Theme Name: Kurosaki
Theme URI: https://kurosaki-shoukai.co.jp/
Author: Kurosaki Shoukai
Author URI: https://kurosaki-shoukai.co.jp/
Description: 黒﨑商会公式サイト用のスタンドアロンWordPressテーマ。広告LP、施工事例、サービスページ、コラムをSEO/AIO観点で運用するために自作されています。
Version: 1.0.0
License: Proprietary
Text Domain: kurosaki
*/


/* ==========================================================================
   1. テーマ全体のリセット & ベース
   ==========================================================================
   ※ LPテンプレート(/naisou-kaitai/)では .ks-lp スコープ内で別CSSが効くため、
      ここに書くのはサイト共通(=ヘッダー、フッター、通常の固定ページ、施工事例等)
      で使うベーススタイルのみ。
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    font-feature-settings: "palt";
    font-size: 16px;
    line-height: 1.8;
    color: #2A2F38;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: auto-phrase;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0F2540;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity .2s ease;
}

a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   2. CSS 変数（サイト全体で再利用）
   ========================================================================== */

:root {
    --ks-navy:        #0F2540;
    --ks-navy-light:  #1F3A5F;
    --ks-navy-dark:   #08182B;
    --ks-orange:      #E8772E;
    --ks-orange-dark: #C25E1F;
    --ks-charcoal:    #2A2F38;
    --ks-text:        #2A2F38;
    --ks-text-sub:    #5A6473;
    --ks-text-mute:   #8B92A0;
    --ks-border:      #E1E5EB;
    --ks-bg-grey:     #F5F7FA;
    --ks-bg-grey-2:   #EDF0F4;
    --ks-white:       #FFFFFF;
    --ks-line-cyan:   #06C755;
}


/* ==========================================================================
   3. 共通ヘッダー
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--ks-border);
}

.site-header__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ks-navy);
    line-height: 1.2;
}

.site-logo__mark {
    width: 36px;
    height: 36px;
    background: var(--ks-navy);
    color: var(--ks-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
}

.site-logo__name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-logo__sub {
    font-size: 11px;
    color: var(--ks-text-mute);
    letter-spacing: 0.05em;
}

.site-nav {
    display: none;
}

/* WordPressメニュー(wp_nav_menu)が出力する <ul class="site-nav__list"> 用。
   フォールバックの直書き <a> でも、メニュー登録時の <ul><li><a> でも
   同じ横並び表示になるよう両対応。 */
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__phone {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ks-navy);
    text-decoration: none;
    font-weight: 700;
}

.site-header__phone strong {
    font-size: 16px;
    letter-spacing: 0.02em;
}

.site-header__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--ks-orange);
    color: var(--ks-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.site-header__btn:hover {
    background: var(--ks-orange-dark);
    opacity: 1;
}

@media (min-width: 768px) {
    .site-header__inner {
        padding: 16px 32px;
    }

    .site-nav {
        display: flex;
        gap: 24px;
        flex: 1;
        justify-content: center;
    }

    /* WordPressメニューの <ul> も横並びに */
    .site-nav__list {
        display: flex;
        gap: 24px;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav__list li {
        margin: 0;
    }

    /* 直書き <a> / メニュー <li><a> どちらにも効くように両セレクタ指定 */
    .site-nav a,
    .site-nav__list a {
        font-size: 14px;
        font-weight: 600;
        color: var(--ks-charcoal);
        text-decoration: none;
        padding: 6px 0;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        transition: border-color .2s ease, color .2s ease;
    }

    .site-nav a:hover,
    .site-nav__list a:hover {
        color: var(--ks-orange);
        border-bottom-color: var(--ks-orange);
        opacity: 1;
    }

    .site-header__phone {
        display: inline-flex;
    }
}


/* ==========================================================================
   4. 共通フッター
   ========================================================================== */

.site-footer {
    background: var(--ks-navy-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 20px 24px;
    margin-top: 64px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ks-orange);
    opacity: 1;
}

.site-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand .site-logo__name {
    color: var(--ks-white);
}

.site-footer__brand p {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__nav-block h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ks-orange);
    letter-spacing: 0.1em;
    margin: 0 0 14px;
}

.site-footer__nav-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__nav-block li {
    margin-bottom: 8px;
    font-size: 13px;
}

.site-footer__bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .site-footer__top {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 48px;
    }
}


/* ==========================================================================
   5. 通常の固定ページ・投稿の標準スタイル
   ========================================================================== */

.site-main {
    min-height: 50vh;
}

.site-main__container {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 20px;
}

.site-main__container h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--ks-navy);
    line-height: 1.4;
    margin: 0 0 24px;
}

.site-main__container h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ks-navy);
    line-height: 1.5;
    margin: 40px 0 16px;
    padding-left: 12px;
    border-left: 3px solid var(--ks-orange);
}

.site-main__container h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ks-navy);
    margin: 28px 0 12px;
}

.site-main__container p {
    margin: 0 0 16px;
    line-height: 1.95;
}

.site-main__container ul,
.site-main__container ol {
    padding-left: 1.4em;
    margin: 0 0 16px;
}

.site-main__container li {
    margin-bottom: 6px;
    line-height: 1.8;
}


/* ==========================================================================
   6. パンくずリスト
   ========================================================================== */

.ks-breadcrumb {
    background: var(--ks-bg-grey);
    border-bottom: 1px solid var(--ks-border);
    padding: 12px 20px;
    font-size: 12px;
    color: var(--ks-text-mute);
}

.ks-breadcrumb__list {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.ks-breadcrumb__list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ks-breadcrumb__list li:not(:last-child)::after {
    content: "›";
    color: var(--ks-text-mute);
}

.ks-breadcrumb__list a {
    color: var(--ks-text-sub);
    text-decoration: none;
}

.ks-breadcrumb__list a:hover {
    color: var(--ks-orange);
    opacity: 1;
}

.ks-breadcrumb__list li:last-child {
    color: var(--ks-navy);
    font-weight: 600;
}


/* ==========================================================================
   7. 施工事例アーカイブ・詳細の最低限スタイル
   （STEP 5以降で本格デザインする想定。今は無装飾でも崩れないように）
   ========================================================================== */

.ks-case-archive {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 20px;
}

.ks-case-archive__head {
    text-align: center;
    margin-bottom: 40px;
}

.ks-case-archive__head h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--ks-navy);
    margin: 0 0 12px;
}

.ks-case-archive__head p {
    font-size: 14px;
    color: var(--ks-text-sub);
}

.ks-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .ks-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ks-case-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ks-case-card {
    background: var(--ks-white);
    border: 1px solid var(--ks-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ks-case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 37, 64, 0.08);
}

.ks-case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ks-case-card__thumb {
    aspect-ratio: 10 / 7;
    background: var(--ks-bg-grey-2);
    overflow: hidden;
}

.ks-case-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-case-card__body {
    padding: 20px;
}

.ks-case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ks-case-card__meta span {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--ks-orange);
    background: rgba(232, 119, 46, 0.08);
    padding: 4px 10px;
    border-radius: 100px;
}

.ks-case-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ks-navy);
    margin: 0;
}


/* ==========================================================================
   8. アクセシビリティ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}


/* ==========================================================================
   9. 共通CTAパーツ（template-parts/cta.php 用）
   ==========================================================================
   ※ 4つのバリエーション:
      - .ks-cta-block          標準CTA（白背景、ボタン2つまで）
      - .ks-cta-section--dark  ネイビー背景の強調CTA
      - .ks-cta-inline         インラインCTA（ボタン1個）
      - .ks-cta-bar            電話・LINE・フォーム3点並び
   ※ ボタン本体（.ks-btn）の基本スタイルはLP用CSS（kurosaki-lp.css）にも
      含まれているが、サービスページや施工事例でもCTAを使うため
      ここ（共通CSS）にも基本スタイルを置く。LP用CSSが先に効く場合でも
      同じ値で互換が取れるように同一の見た目に揃えている。
   ========================================================================== */


/* ----------------------------------------
   ボタン共通（サイト全体で使用）
   ---------------------------------------- */
.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    min-height: 60px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.ks-btn:hover {
    opacity: 1; /* a:hover の opacity:0.7 を打ち消す */
}

.ks-btn__label {
    font-feature-settings: "palt";
}

.ks-btn__icon {
    font-size: 14px;
    transition: transform .25s ease;
}

.ks-btn:hover .ks-btn__icon {
    transform: translateX(4px);
}

.ks-btn--primary {
    background: var(--ks-orange);
    color: var(--ks-white);
    box-shadow: 0 6px 18px rgba(232, 119, 46, 0.28);
}

.ks-btn--primary:hover {
    background: var(--ks-orange-dark);
    transform: translateY(-1px);
    color: var(--ks-white);
}

.ks-btn--secondary {
    background: var(--ks-white);
    color: var(--ks-navy);
    border-color: var(--ks-navy);
}

.ks-btn--secondary:hover {
    background: var(--ks-navy);
    color: var(--ks-white);
}

.ks-btn--ghost-light {
    background: transparent;
    color: var(--ks-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.ks-btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ks-white);
    color: var(--ks-white);
}

.ks-btn--large {
    padding: 22px 36px;
    font-size: 17px;
    min-height: 72px;
}


/* ----------------------------------------
   variant: default (.ks-cta-block)
   ---------------------------------------- */
.ks-cta-block {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 32px auto;
    max-width: 720px;
    text-align: center;
}

.ks-cta-block .ks-btn {
    width: 100%;
    max-width: 380px;
}

.ks-cta-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--ks-text-mute);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .ks-cta-block {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .ks-cta-block .ks-btn {
        width: auto;
    }

    .ks-cta-note {
        flex-basis: 100%;
        margin-top: 4px;
    }
}


/* ----------------------------------------
   variant: dark (.ks-cta-section--dark)
   ---------------------------------------- */
.ks-cta-section--dark {
    background: var(--ks-navy);
    color: var(--ks-white);
    padding: 64px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ks-cta-section--dark::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ks-orange);
}

.ks-cta-section--dark::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 119, 46, 0.08), transparent 70%);
    pointer-events: none;
}

.ks-cta-section__inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ks-cta-section__eyebrow {
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--ks-orange);
    margin: 0 0 16px;
}

.ks-cta-section__title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 32px;
    color: var(--ks-white);
}

.ks-cta-section__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
}

.ks-cta-section__buttons .ks-btn {
    width: 100%;
    max-width: 420px;
}

.ks-cta-section__channels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
}

.ks-cta-section__channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--ks-white);
    text-align: left;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.ks-cta-section__channel:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ks-orange);
    color: var(--ks-white);
    opacity: 1;
}

.ks-cta-section__channel i {
    font-size: 24px;
    color: var(--ks-orange);
    flex-shrink: 0;
}

.ks-cta-section__channel--line i {
    color: var(--ks-line-cyan);
}

.ks-cta-section__channel div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ks-cta-section__channel small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ks-cta-section__channel strong {
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ks-cta-section__channel--line strong {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
}

.ks-cta-section__note {
    margin: 28px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .ks-cta-section--dark {
        padding: 80px 32px;
    }

    .ks-cta-section__title {
        font-size: 32px;
    }

    .ks-cta-section__buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .ks-cta-section__buttons .ks-btn {
        width: auto;
    }

    .ks-cta-section__channels {
        grid-template-columns: 1fr 1fr;
        max-width: 720px;
        gap: 16px;
    }
}


/* ----------------------------------------
   variant: inline (.ks-cta-inline)
   ---------------------------------------- */
.ks-cta-inline {
    margin: 24px 0;
    text-align: center;
}

.ks-cta-inline .ks-btn {
    width: 100%;
    max-width: 380px;
}


/* ----------------------------------------
   variant: bar (.ks-cta-bar)
   ---------------------------------------- */
.ks-cta-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
}

.ks-cta-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--ks-bg-grey);
    border: 1px solid var(--ks-border);
    border-radius: 6px;
    color: var(--ks-navy);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.ks-cta-bar__item:hover {
    background: var(--ks-white);
    border-color: var(--ks-navy);
    opacity: 1;
}

.ks-cta-bar__item i {
    font-size: 22px;
    color: var(--ks-orange);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.ks-cta-bar__item--line i {
    color: var(--ks-line-cyan);
}

.ks-cta-bar__item--form i {
    color: var(--ks-navy);
}

.ks-cta-bar__item div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.ks-cta-bar__item small {
    font-size: 11px;
    color: var(--ks-text-mute);
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.ks-cta-bar__item strong {
    font-family: "Manrope", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ks-navy);
}

.ks-cta-bar__item--line strong,
.ks-cta-bar__item--form strong {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
}

@media (min-width: 768px) {
    .ks-cta-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}