/*
Theme Name: ATARAXIA Corporate
Theme URI: https://example.com
Author: ATARAXIA Inc.
Description: willstyle-u.jp inspired minimal corporate theme
Version: 3.3.0
*/

/* =============================================
   LENIS SMOOTH SCROLL
   ============================================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* =============================================
   SELECTION COLOR
   ============================================= */
::selection {
    background: rgba(122, 0, 223, 0.15);
    color: #232323;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #edebe6; }
::-webkit-scrollbar-thumb { background: #c8c5bf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9a9790; }

/* =============================================
   PROSE OVERRIDES (article content)
   ============================================= */

/* --- Headings --- */
.prose-ws h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding: 0.15rem 0 0.15rem 1.1rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.45;
}
.prose-ws h2::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
}
.prose-ws h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #232323;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d0cdc8;
    line-height: 1.6;
    position: relative;
}
/* グラデーション線：ブランドカラーから右端に向けて透明にフェード */
.prose-ws h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 35%, transparent 75%);
    pointer-events: none;
}
.prose-ws h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #232323;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

/* --- Body text & line breaks --- */
.prose-ws p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1.0625rem;
    color: #111111;
    overflow-wrap: break-word;
    word-break: break-all;
}
.prose-ws br {
    display: block;
    content: '';
    margin-top: 0.25rem;
}
.prose-ws h2,
.prose-ws h3,
.prose-ws h4 {
    overflow-wrap: break-word;
    word-break: normal;
}

/* --- Links --- */
.prose-ws a { color: #764ba2; text-decoration: underline; text-underline-offset: 3px; }
.prose-ws a:hover { color: #667eea; }

/* --- Images --- */
.prose-ws img { border-radius: 12px; margin-bottom: 1.5rem; }

/* --- Lists --- */
.prose-ws ul,
.prose-ws ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.9;
    font-size: 1.0625rem;
    color: #111111;
}
.prose-ws ul  { list-style-type: disc; }
.prose-ws ol  { list-style-type: decimal; }
.prose-ws li  { margin-bottom: 0.375rem; }
.prose-ws li::marker { color: #764ba2; font-weight: 600; }

/* --- Inline code --- */
.prose-ws :not(pre) > code {
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.875em;
    background: rgba(102, 126, 234, 0.09);
    color: #764ba2;
    padding: 0.15em 0.45em;
    border-radius: 5px;
    border: 1px solid rgba(118, 75, 162, 0.18);
    word-break: break-all;
}

/* --- Code blocks (pre) --- */
.prose-ws pre {
    background: #1a1626;
    border-radius: 12px;
    padding: 1.375rem 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.75rem;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.15);
}
.prose-ws pre::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}
.prose-ws pre code {
    background: none;
    color: #e2dcf5;
    padding: 0;
    border: none;
    font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.75;
}

/* --- Blockquote & Pullquote --- */
.prose-ws blockquote,
.prose-ws .wp-block-quote {
    padding: 1.5rem 1.75rem;
    background: rgba(163, 189, 237, 0.13);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(163, 189, 237, 0.28);
    border-radius: 16px;
    color: #1e3a6a;
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
}
.prose-ws blockquote::before,
.prose-ws blockquote::after,
.prose-ws .wp-block-quote::before,
.prose-ws .wp-block-quote::after { content: none; display: none; }

.prose-ws blockquote p,
.prose-ws .wp-block-quote p { color: inherit; margin-bottom: 0; }

.prose-ws blockquote cite,
.prose-ws .wp-block-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 600;
    color: #6991c7;
}

/* Pullquote（中央配置の大きめ引用） */
.prose-ws .wp-block-pullquote {
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(163, 189, 237, 0.13);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(163, 189, 237, 0.28);
    border-radius: 20px;
    margin-bottom: 2rem;
}
.prose-ws .wp-block-pullquote blockquote {
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.prose-ws .wp-block-pullquote blockquote::before,
.prose-ws .wp-block-pullquote blockquote::after { display: none; }
.prose-ws .wp-block-pullquote blockquote p {
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.7;
    color: #1e3a6a;
}

/* --- Table --- */
.prose-ws table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #d0cdc8;
}
.prose-ws thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}
.prose-ws th {
    padding: 0.75rem 1.1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}
.prose-ws td {
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid #edebe6;
    color: #232323;
    line-height: 1.75;
}
.prose-ws tbody tr:last-child td { border-bottom: none; }
.prose-ws tbody tr:nth-child(even) { background: #f8f7f5; }
.prose-ws tbody tr:hover { background: rgba(102, 126, 234, 0.04); transition: background 0.2s; }

/* --- Callout blocks ---
   使い方: <div class="callout">…</div>
   バリエーション: callout-info / callout-warning / callout-danger / callout-success
   ============================================= */
.prose-ws .callout {
    padding: 1.1rem 1.375rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.07);
    font-size: 0.9375rem;
    line-height: 1.8;
}
.prose-ws .callout p:last-child { margin-bottom: 0; }

.prose-ws .callout-info {
    background: rgba(102, 126, 234, 0.07);
    border-left-color: #667eea;
}
.prose-ws .callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
}
.prose-ws .callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: #ef4444;
}
.prose-ws .callout-success {
    background: rgba(34, 197, 94, 0.08);
    border-left-color: #22c55e;
}

/* --- Horizontal rule --- */
.prose-ws hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d0cdc8 30%, #d0cdc8 70%, transparent);
    margin: 2.5rem 0;
}

/* --- First child spacing fix --- */
.prose-ws > *:first-child { margin-top: 0; }

/* =============================================
   HERO SECTION LARGE TEXT ANIMATION
   ============================================= */
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.hero-text-animate {
    animation: slideInFromLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* =============================================
   IMAGE BRAND COLOR OVERLAY
   ============================================= */
.img-brand-overlay {
    position: relative;
}
.img-brand-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.26) 0%,
        rgba(118, 75, 162, 0.20) 60%,
        rgba(196, 113, 237, 0.16) 100%
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.7s ease;
    border-radius: inherit;
    opacity: 1;
}
.group:hover .img-brand-overlay::after {
    opacity: 0.5;
}

/* =============================================
   CARD HOVER SHADOW
   ============================================= */
.card-ws {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.card-ws:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    transform: translateY(-4px);
    filter: drop-shadow(0 12px 28px rgba(102, 126, 234, 0.22)) drop-shadow(0 4px 10px rgba(118, 75, 162, 0.18));
}

/* =============================================
   NEWS MARQUEE
   ============================================= */
.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: marquee 80s linear infinite;
    will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   PAGINATION
   ============================================= */
ul.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
    justify-content: center;
    flex-wrap: wrap;
}
.page-numbers li { display: flex; }

/* ページ番号・dots 共通ベース */
.page-numbers a,
.page-numbers span {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid #d0cdc8;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #767676;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
    overflow: visible;
}

/* ページ番号ホバー: circle-icon と同じグラデーション塗り */
.page-numbers a:not(.prev):not(.next):hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
}

/* 現在ページ */
.page-numbers span.current {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ========== prev / next: btn-ghost 風ピル型 ========== */
.page-numbers a.prev,
.page-numbers a.next {
    width: auto;
    height: 44px;
    padding: 0 20px 0 16px;
    gap: 10px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #767676;
    border: 1.5px solid #d0cdc8;
    transition: border-color 0.25s, color 0.25s, background 0.25s, gap 0.3s;
}
.page-numbers a.next { padding: 0 16px 0 20px; }
.page-numbers a.prev:hover,
.page-numbers a.next:hover {
    border-color: #764ba2;
    color: #764ba2;
    gap: 14px;
}
.page-numbers a.prev svg,
.page-numbers a.next svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
    transition: stroke 0.25s;
}
.page-numbers a.prev:hover svg,
.page-numbers a.next:hover svg {
    animation: arrow-through 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ========== Pulse ripple (ws-ripple-circle と同仕様) ========== */
.page-numbers a::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102,126,234,0.22), rgba(118,75,162,0.22));
    transform: translate(-50%,-50%) scale(0);
    opacity: 0;
    pointer-events: none;
}
.page-numbers a:hover::after {
    animation: ws-ripple-circle 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* =============================================
   CONTACT FORM INPUTS
   ============================================= */
.input-ws {
    width: 100%;
    background: #fff;
    border: 1px solid #d0cdc8;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #232323;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.input-ws:focus {
    border-color: #7a00df;
    box-shadow: 0 0 0 3px rgba(122, 0, 223, 0.08);
}
.input-ws::placeholder { color: #aaa8a3; }

/* =============================================
   SECTION DIVIDER LINE
   ============================================= */
.section-divider {
    width: 100%;
    height: 1px;
    background: #d0cdc8;
    margin: 0;
}

/* =============================================
   AI課題リスト
   ============================================= */
.ai-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ai-issue-list li {
    position: relative;
    padding: 16px 0 16px 28px;
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.75;
    border-bottom: 1px solid #d0cdc8;
}
.ai-issue-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

/* =============================================
   CONTACT GLASS CARDS
   ============================================= */
.contact-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.contact-glass:hover {
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
/* ホバー時グラデーションボーダー */
.contact-glass::after {
    content: "";
    display: block;
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(102,126,234,0.5), rgba(118,75,162,0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.contact-glass:hover::after {
    opacity: 1;
}

/* =============================================
   FAQ ACCORDION (giftee-style cards)
   ============================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Each FAQ item: Glass card */
.faq-item {
    display: block;
    width: 100%;
    border-radius: 22px;
    position: relative;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.22);
}
/* Hover site-color border overlay */
.faq-item::after {
    content: "";
    display: block;
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    pointer-events: none;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(102,126,234,0.55), rgba(118,75,162,0.55)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.faq-item:hover::after {
    opacity: 1;
}

/* Question (summary) */
.faq-question {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 20px 60px 20px 20px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    list-style: none;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-q-text {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.7;
    transition: color 0.35s;
}
.faq-question:hover .faq-q-text {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.faq-q-inner {
    background-image: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 0.5px;
    transition: background-size 0.4s ease;
}
.faq-question:hover .faq-q-inner {
    background-size: 100% 0.5px;
}

/* Plus/Cross icon (circular) */
.faq-icon {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.faq-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #1a1a1a;
    border-radius: 1px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.faq-icon span:first-child {
    transform: translate(-50%, -50%);
}
.faq-icon span:last-child {
    transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item.is-open .faq-icon {
    border-color: rgba(118, 75, 162, 0.5);
    background: rgba(102, 126, 234, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 10px rgba(118,75,162,0.2);
}
.faq-item.is-open .faq-icon span:first-child {
    transform: translate(-50%, -50%) rotate(180deg);
}
.faq-item.is-open .faq-icon span:last-child {
    transform: translate(-50%, -50%) rotate(180deg);
    opacity: 0;
}
/* Answer content area */
.faq-content {
    overflow: hidden;
    max-height: 0;
    padding: 0 20px;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.faq-answer-box p {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.9;
    margin: 0;
}

/* =============================================
   スマホ表示の中央寄せ（768px未満）
   PC版（768px以上）には影響しない
   ============================================= */
@media (max-width: 767px) {

    /* ---- Hero セクション ---- */
    /* キャッチコピー・説明文・ボタン列を中央寄せ */
    .hero-text-center {
        text-align: center;
    }
    /* Heroのh1/h2 を中央に */
    section.bg-ws-cream h1.fade-up,
    section.bg-ws-cream h2.fade-up {
        text-align: center;
    }
    /* Hero: 説明文 */
    section.bg-ws-cream > div > p.text-ws-muted {
        text-align: center;
    }
    /* Hero: ボタン行を中央に */
    section.bg-ws-cream > div > div.flex.flex-wrap {
        justify-content: center;
    }

    /* ---- atmo-hero セクション（front-page） ---- */
    /* モバイルでも canvas を表示（hw3_v4 仕様） */
    .atmo-hero h2 { text-align: center; }
    /* "for your business." */
    .atmo-hero .hero-subtitle { text-align: center; }
    /* 説明文 */
    .atmo-hero p.text-ws-muted { text-align: center; }
    /* ボタン行 */
    .atmo-hero .flex.flex-wrap.items-center { justify-content: center; }

    /* ---- Features セクション ---- */
    /* "Features" ラベル・見出し */
    #features .section-label,
    #features h2 {
        text-align: center;
    }
    /* Features: 説明文・ボタン */
    #features p.text-ws-muted {
        text-align: center;
    }
    #features .mt-10 {
        display: flex;
        justify-content: center;
    }
    /* Features: タイトルは中央 / 本文は左 */
    #features .card-ws h3 { text-align: center; }
    #features .card-ws p  { text-align: left; }

    /* ---- Services セクション ---- */
    /* カードグリッドをスマホで1列・全幅に */
    #services .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    #services .card-ws {
        width: 100%;
        max-width: 100%;
    }
    /* "Services" ラベル・見出し */
    #services .section-label,
    #services h2 {
        text-align: center;
    }
    /* Services: サブテキスト */
    #services > div > div.flex > p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    /* Services: タイトルは中央 / 本文は左 */
    #services .card-ws h3 { text-align: center; }
    #services .card-ws p  { text-align: left; }
    /* Services: 4枚目（フル幅）カード */
    #services .bg-ws-cream.rounded-2xl {
        flex-direction: column;
        align-items: center;
    }
    #services .bg-ws-cream.rounded-2xl > div {
        text-align: center;
    }
    #services .bg-ws-cream.rounded-2xl p,
    #services .bg-ws-cream.rounded-2xl h3 {
        text-align: center;
    }

    /* ---- FAQ セクション ---- */
    #faq h2 {
        text-align: center;
    }
    #faq > div {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }
    #faq .faq-list {
        padding: 0 0.75rem;
    }
    #faq .text-center.mb-16 {
        padding: 0 1rem;
    }
    .faq-q-text {
        font-size: 0.875rem;
    }

    /* ---- Why Ataraxia セクション ---- */
    #why-ataraxia .atmo-eyebrow { text-align: center; }
    #why-ataraxia h2 { text-align: center; }
    #why-ataraxia .font-bold.text-ws-dark { text-align: center; }
    #why-ataraxia p.text-ws-muted { text-align: center; }
    /* ボタン: flex で中央寄せ */
    #why-ataraxia .fade-up > .btn-ghost {
        display: flex;
        margin: 0 auto;
        width: fit-content;
    }

    /* ---- News セクション ---- */
    /* 見出し行 */
    #news .flex.items-end.justify-between {
        flex-direction: column;
        align-items: center;
    }
    #news h2 {
        text-align: center;
    }
    /* eyebrow・サブタイトル */
    #news .atmo-eyebrow { text-align: center; }
    #news .font-bold.text-ws-dark.mt-3 { text-align: center; }
    /* ニュースカード内 */
    #news article .p-7 h3,
    #news article .p-7 .flex {
        text-align: center;
    }
    #news article .p-7 .link-circle {
        justify-content: center;
    }

    /* ---- Company セクション ---- */
    /* テキスト・ボタン */
    section.bg-ws-light .section-label,
    section.bg-ws-light h2,
    section.bg-ws-light p {
        text-align: center;
    }
    section.bg-ws-light .link-circle {
        justify-content: center;
    }
    /* 画像+テキストのグリッド: モバイルで画像が上 */
    section.bg-ws-light .grid.md\\:grid-cols-2 > div:last-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ---- CTA セクション ---- */
    /* 見出しをvwで自動縮小し、スマホでも1行に収める */
    .bg-ws-dark h2 {
        font-size: clamp(1.25rem, 7.5vw, 2.25rem);
        white-space: nowrap;
    }

    /* ---- Footer ---- */
    /* フッターの各列を中央寄せ */
    footer .grid-cols-1 > div {
        text-align: center;
    }
    footer .grid-cols-1 > div ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    footer .border-t .flex-col {
        align-items: center;
    }

    /* ---- Back to Top ボタン: スマホでも right-4 bottom-4 で見切れないように ---- */
    #back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
    }
}

/* =============================================
   大画面レスポンシブ（1440px以上）
   ============================================= */
@media (min-width: 1440px) {
    /* セクション説明文 */
    .text-\[0\.9375rem\] {
        font-size: 1.0625rem !important;
    }
    /* カード本文 (text-sm = 0.875rem → 1rem) */
    .card-ws .text-sm,
    #services .text-sm,
    #features .text-sm {
        font-size: 1rem !important;
    }
    /* カードタイトル (text-lg = 1.125rem → 1.25rem) */
    .card-ws .text-lg {
        font-size: 1.25rem !important;
    }
    /* FAQ質問テキスト */
    .faq-q-text {
        font-size: 1.0625rem;
    }
    /* FAQ回答テキスト */
    .faq-answer-box p {
        font-size: 1.0625rem;
    }
    /* Company/Why セクション本文 */
    section .text-sm.leading-\[2\] {
        font-size: 1rem !important;
    }
}

@media (min-width: 1920px) {
    .text-\[0\.9375rem\] {
        font-size: 1.125rem !important;
    }
    .card-ws .text-sm,
    #services .text-sm,
    #features .text-sm {
        font-size: 1.0625rem !important;
    }
    .card-ws .text-lg {
        font-size: 1.375rem !important;
    }
    .faq-q-text {
        font-size: 1.125rem;
    }
    .faq-answer-box p {
        font-size: 1.125rem;
    }
}

/* =============================================
   HERO GRADIENT TEXT
   ============================================= */
.hero-word {
    display: inline-block;
    white-space: nowrap;
}
.hero-char {
    display: inline-block;
}


/* =============================================
   OPENING ANIMATION OVERLAY v3
   [削除可: このブロックを style.css から削除するだけで無効化]
   ============================================= */
#intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 3.2s cubic-bezier(0.4, 0, 0.2, 1);
}
#intro.fade-out {
    opacity: 0;
    pointer-events: none;
}
#intro-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── ataraxia: 1文字ずつスプリット ── */
#intro-text {
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-style: italic;
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.35em;
    color: #fff;
    user-select: none;
    text-transform: lowercase;
    display: flex;
    white-space: nowrap;
}
#intro-text .ch {
    display: inline-block;
    color: #fff;
    opacity: 0;
    transform: translateY(0.55em) scale(1.4);
    filter: blur(18px);
    text-shadow: 0 0 0 rgba(201, 184, 255, 0);
    transition:
        opacity   0.9s cubic-bezier(.2, .7, .2, 1),
        transform 1.1s cubic-bezier(.2, .7, .2, 1),
        filter    0.9s cubic-bezier(.2, .7, .2, 1),
        text-shadow 1.6s ease 0.4s;
    transition-delay: var(--d, 0ms);
}
#intro-text.in .ch {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    text-shadow: 0 0 22px rgba(118, 75, 162, 0.45);
}
#intro-text.out .ch {
    opacity: 0;
    transform: translateY(-0.25em) scale(0.96);
    filter: blur(8px);
    transition:
        opacity   0.6s ease,
        transform 0.8s ease,
        filter    0.6s ease;
    transition-delay: var(--dout, 0ms);
}

/* ── タグライン: 線展開 + 文字リビール ── */
#intro-tagline {
    position: absolute;
    bottom: calc(50% - 5.2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.4vw, 0.78rem);
    letter-spacing: 0.55em;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}
#intro-tagline .line {
    display: block;
    width: 0;
    height: 1px;
    opacity: 0;
    transition: width 0.9s cubic-bezier(.2, .7, .2, 1), opacity 0.4s ease;
}
#intro-tagline .line-l {
    background: linear-gradient(90deg, transparent 0%, #a78bfa 60%, #c4b5fd 100%);
}
#intro-tagline .line-r {
    background: linear-gradient(90deg, #c4b5fd 0%, #a78bfa 40%, transparent 100%);
}
#intro-tagline.visible .line {
    width: clamp(76px, 12vw, 140px);
    opacity: 0.55;
}
#intro-tagline .tg-text {
    display: flex;
    overflow: hidden;
}
#intro-tagline .tg-text .ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    transition:
        opacity   0.5s ease,
        transform 0.8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms);
}
#intro-tagline.visible .tg-text .ch {
    opacity: 1;
    transform: translateY(0);
}
#intro-tagline.out {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* =============================================
   ATMOSPHERE (グリッド + グラデーショングロー)
   Philosophyページと全体の世界観を統一する共通ユーティリティ
   ============================================= */

/* グラデ文字（アクセント用） */
.grad-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #c471ed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 共通eyebrow（短い横線付きの上段ラベル） */
.atmo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b7280;
}
.atmo-eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, transparent, #6b7280);
}

/* Atmosphere ベース: グリッド + 放射グラデ */
.atmo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.atmo > * { position: relative; z-index: 1; }

.atmo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(26,26,26,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26,26,26,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.atmo::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 560px; height: 560px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(196,113,237,0.08), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

/* HERO / Cream / Light: body の統一背景を貫通させるため透明化
   （旧: 各セクションごとに独立した放射グラデを敷いていた） */
.atmo-hero,
.atmo-cream,
.atmo-light {
    background: transparent;
}

/* Darkセクション用: 深い夜空 + パープルグロー */
.atmo-dark {
    background:
        radial-gradient(60% 50% at 85% 10%, rgba(118,75,162,0.28) 0%, transparent 60%),
        radial-gradient(55% 45% at 10% 90%, rgba(102,126,234,0.22) 0%, transparent 60%),
        radial-gradient(50% 40% at 50% 50%, rgba(91,134,229,0.10) 0%, transparent 60%),
        var(--ws-dark);
}
.atmo-dark::before {
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.atmo-dark::after {
    background: radial-gradient(closest-side, rgba(196,113,237,0.14), transparent 70%);
}

/* グリッド密度/マスクのバリエーション */
.atmo--tight::before { background-size: 48px 48px; }
.atmo--wide::before  { background-size: 88px 88px; }
.atmo--soft::before  {
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}
.atmo--no-glow::after { display: none; }

/* ------------------------------------------------------------------
   CTA → Footer シームレス結合
   CTA セクション (#cta-section) と footer (#site-footer) が
   「同一のダーク背景デザインで覆われた一枚」に見えるようにする。
   - 両者は atmo atmo-dark atmo--wide で同じ装飾を持つが、
     各セクション基点で描画されると境界にズレ／グロー二重表示が出るため、
     装飾レイヤーを viewport 基準（fixed）で共有してシームを解消する。
   - CTA 側は独自のグローを無効化し、グリッドは footer と連続させる。
   - 1px のサブピクセル隙間対策として CTA の margin-bottom を詰める。
   ------------------------------------------------------------------ */
#cta-section.atmo-dark,
#site-footer.atmo-dark {
    /* フラットなダーク基底色のみ。グロー／グリッドは疑似要素側に集約し、
       viewport 基準座標で描画することで CTA と footer の継ぎ目を消す */
    background: var(--ws-dark);
}
#cta-section.atmo-dark::before,
#site-footer.atmo-dark::before {
    /* グリッド線を viewport 固定 → CTA と footer で完全に連続 */
    background-attachment: fixed;
    mask-image: none;
    -webkit-mask-image: none;
}
#cta-section.atmo-dark::after,
#site-footer.atmo-dark::after {
    /* パープル／ブルーグローを各セクション全面に敷き、
       viewport 固定で座標系を共有 → 境界で途切れない */
    left: 0; top: 0;
    width: 100%; height: 100%;
    transform: none;
    filter: none;
    background-attachment: fixed;
    background-image:
        radial-gradient(60% 50% at 85% 10%, rgba(118,75,162,0.28) 0%, transparent 60%),
        radial-gradient(55% 45% at 10% 90%, rgba(102,126,234,0.22) 0%, transparent 60%),
        radial-gradient(50% 40% at 50% 50%, rgba(91,134,229,0.10) 0%, transparent 60%);
}
/* サブピクセル境界の隙間対策 */
#cta-section { margin-bottom: -1px; }

/* ── Hero Particle Canvas (front-page / hw3_v4) ─────────────────
   親コンテナの max-width を突き破り、画面幅いっぱいに展開する。
─────────────────────────────────────────────────────────────── */
/* ============================================================
   CUSTOM INLINE FORMAT TYPES（ブロックエディター カスタム装飾）
   js/editor-formats.js で registerFormatType により追加
   ============================================================ */

/* hl-slant — 斜めマーカーハイライト */
.hl-slant {
    background: linear-gradient(105deg, transparent 0%, rgba(118,75,162,.25) 8%, rgba(102,126,234,.25) 92%, transparent 100%);
    background-repeat: no-repeat;
    background-size: 100% 55%;
    background-position: 0 80%;
    font-weight: 700;
    padding: 0 4px;
}

/* hl-spotlight — スポットライト（Apple keynote風） */
.hl-spotlight {
    position: relative;
    font-weight: 700;
    padding: 0 6px;
    z-index: 0;
}
.hl-spotlight::before {
    content: "";
    position: absolute;
    inset: -50% -10%;
    background: radial-gradient(ellipse at center, rgba(118,75,162,.18), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

/* hl-grad-text — グラデーション文字 */
.hl-grad-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* hl-shimmer — 流れるシャイン（Apple Vision風） */
@keyframes hl-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.hl-shimmer {
    background: linear-gradient(110deg, #764ba2 20%, #b8a4ff 45%, #667eea 50%, #b8a4ff 55%, #764ba2 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    animation: hl-shimmer 4s linear infinite;
}

/* hl-dotted — ドット下線 */
.hl-dotted {
    border-bottom: 2px dotted #764ba2;
    font-weight: 700;
    padding-bottom: 1px;
}

/* ============================================================
   SINGLE POST — Title & Post Navigation
   ============================================================ */

/* タイトル：1行で収まる可変サイズ。23字以上のときは PHP 側で2行へ分割 */
.single-title {
    max-width: 56rem;            /* タイトル列の上限 */
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    /* 720px コンテナで22文字程度が無理なく収まるサイズ感 */
    font-size: clamp(1.5rem, 4.2vw, 2.25rem);
}
.single-title__line {
    display: block;
}
.single-title.is-two-line .single-title__line + .single-title__line {
    margin-top: 0.1em;
}

/* Post Nav — 左右同幅・タイトル下にグラデで隣接記事名 */
.post-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
/* Previous は左寄せ、Next は右寄せ */
.post-nav__item:first-child { align-items: flex-start; }
.post-nav__item:last-child  { align-items: flex-end; }

.post-nav__item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 11rem;
}
.post-nav__item--empty { visibility: hidden; }

.post-nav__btn {
    min-width: 11rem;
    justify-content: center;
}

.post-nav__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.005em;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.25s;
}
.post-nav__title:hover { opacity: 0.7; }

@media (max-width: 480px) {
    .post-nav__list { gap: 1rem; }
    .post-nav__item { width: 9rem; }
    .post-nav__btn { min-width: 9rem; }
    .post-nav__title { font-size: 0.75rem; }
}

/* ─────────────────────────────────────────────── */

.particle-hero-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    height: clamp(240px, 33vw, 420px);
    margin-top: -1rem;
    margin-bottom: 0.5rem;
    overflow: visible;
}
#cas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


