/* ============================================================
   SalesBreaker Corporate — "Luminous" Design System (v3)
   ------------------------------------------------------------
   温白 × ローズ × ラベンダー × シャンパン × スカイ
   Glassmorphism / Aurora / Living Agent
   Serif: Shippori Mincho / Display: Cormorant Garamond
   Sans : Zen Kaku Gothic New
   ============================================================ */

:root {
    --bg:             #fbf9f6;
    --pearl:          #f4f0e8;
    --ink:            #2c2628;
    --muted:          #7e7378;
    --rose:           #c86b85;
    --rose-soft:      #f0c2cf;
    --lavender:       #9d8ec4;
    --lavender-soft:  #dfd8f0;
    --champagne:      #cbb06d;
    --champagne-soft: #f5ead2;
    --sky:            #8ebad9;
    --sky-soft:       #d6e8f5;

    --serif-jp: "Shippori Mincho", "Hiragino Mincho ProN", serif;
    --serif-en: "Cormorant Garamond", "Times New Roman", serif;
    --sans-jp:  "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
    --mono:     ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

    --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 88px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans-jp);
    font-weight: 400;
    font-size: 15px;
    line-height: 2.05;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    font-feature-settings: "palt";
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--rose-soft); color: var(--ink); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #e2dadf; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rose); }

/* FXレイヤー（fx.jsが生成） */
#webgl-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
#agent-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* コンテンツは常にFXの上 */
main, .site-footer { position: relative; z-index: 10; }

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
.kicker {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rose);
    display: block;
    margin-bottom: 1.4rem;
}
.kicker--lavender  { color: var(--lavender); }
.kicker--champagne { color: var(--champagne); }
.kicker--sky       { color: var(--sky); }

.display-1 {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--ink);
}
.display-2 {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: var(--ink);
}
.display-3 {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--ink);
}

.lead {
    color: var(--muted);
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 2.3;
    letter-spacing: 0.05em;
}

.text-aurora {
    background: linear-gradient(135deg, #2c2628 15%, #c86b85 55%, #9d8ec4 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.accent-rose { color: var(--rose); }
.serif-it { font-family: var(--serif-en); font-style: italic; }

/* ------------------------------------------------------------
   Glass
   ------------------------------------------------------------ */
.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px -15px rgba(200, 107, 133, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: all 0.6s var(--ease-luxe);
}
.glass:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(200, 107, 133, 0.35);
    box-shadow: 0 30px 60px -20px rgba(157, 142, 196, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.iridescent {
    position: relative;
}
.iridescent::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(200, 107, 133, 0.45), rgba(157, 142, 196, 0.45), rgba(203, 176, 109, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.container { width: min(1120px, 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }
.container--wide { width: min(1240px, 94%); }

.section { position: relative; padding: clamp(5.5rem, 11vw, 9rem) 0; }
.section--flush-top { padding-top: 0; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 1.4rem 0;
    transition: padding 0.5s var(--ease-luxe);
}
/* ブラー背景は疑似要素に持たせる:
   header自体にbackdrop-filterを付けると、中のfixedモバイルメニューが
   ヘッダー基準で配置されてしまうため（containing blockの仕様） */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(251, 249, 246, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -18px rgba(44, 38, 40, 0.18);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.site-header.scrolled { padding: 0.7rem 0; }
.site-header.scrolled::before { opacity: 1; }
.header-inner { position: relative; }
.header-inner {
    width: min(1240px, 94%);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 107, 133, 0.3);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif-en);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--rose);
    flex-shrink: 0;
    transition: border-color 0.5s, transform 0.6s var(--ease-luxe);
}
.brand:hover .brand-mark { border-color: var(--rose); transform: rotate(10deg); }
.brand-mark--img {
    border: none;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 10px;
    object-fit: contain;
    filter: saturate(0.92);
    transition: transform 0.6s var(--ease-luxe), filter 0.5s;
}
.brand:hover .brand-mark--img { filter: saturate(1.05); transform: rotate(8deg); }
.brand-name {
    font-family: var(--serif-en);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.14em;
    color: var(--ink);
}

.nav-desktop { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop a:not(.btn-contact) {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.4s;
}
.nav-desktop a:not(.btn-contact):hover { color: var(--rose); }
.nav-desktop a.is-active { color: var(--rose); }

.btn-contact {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    border: 1px solid rgba(200, 107, 133, 0.3);
    background: rgba(255, 255, 255, 0.5);
    padding: 0.8em 2.2em;
    border-radius: 999px;
    transition: all 0.5s var(--ease-luxe);
}
.btn-contact:hover { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ハンバーガー */
.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px; height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 60;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn span {
    display: block;
    height: 1.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.5s var(--ease-luxe), width 0.4s;
}
.menu-btn span:nth-child(1) { width: 24px; }
.menu-btn span:nth-child(2) { width: 15px; }
.menu-btn.open span:nth-child(1) { transform: translateY(4.5px) rotate(22deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-22deg); width: 24px; }

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(251, 249, 246, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s var(--ease-luxe), visibility 0.55s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease-luxe), transform 0.6s var(--ease-luxe), color 0.4s;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--rose); }
.mobile-menu a.btn-contact {
    font-family: var(--sans-jp);
    font-size: 0.8rem;
    margin-top: 0.8rem;
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9em;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1.25em 3.2em;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.55s var(--ease-luxe);
}
.btn--primary {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 30px -12px rgba(200, 107, 133, 0.35);
}
.btn--primary:hover {
    background: var(--rose);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -14px rgba(200, 107, 133, 0.5);
}
.btn--glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: rgba(255, 255, 255, 0.88);
    color: var(--ink);
}
.btn--glass:hover {
    border-color: rgba(200, 107, 133, 0.5);
    color: var(--rose);
    transform: translateY(-3px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rose);
    transition: color 0.4s, gap 0.4s var(--ease-luxe);
}
.link-arrow:hover { color: var(--ink); gap: 1.2em; }
.link-arrow .arr { font-size: 1rem; line-height: 1; }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.gcard {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px -15px rgba(200, 107, 133, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    transition: transform 0.6s var(--ease-luxe), box-shadow 0.6s var(--ease-luxe), background 0.6s, border-color 0.5s;
}
.gcard:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(200, 107, 133, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 34px 64px -24px rgba(157, 142, 196, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.num-dot {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
}
.num-dot--rose      { background: rgba(240, 194, 207, 0.3); color: var(--rose); }
.num-dot--lavender  { background: rgba(223, 216, 240, 0.4); color: var(--lavender); }
.num-dot--champagne { background: rgba(245, 234, 210, 0.45); color: var(--champagne); }
.num-dot--sky       { background: rgba(214, 232, 245, 0.45); color: var(--sky); }

/* ------------------------------------------------------------
   News cards
   ------------------------------------------------------------ */
.news-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px -15px rgba(200, 107, 133, 0.08);
    border-radius: 1.3rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.6s var(--ease-luxe), box-shadow 0.6s var(--ease-luxe), border-color 0.5s;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 107, 133, 0.4);
    box-shadow: 0 34px 64px -24px rgba(157, 142, 196, 0.28);
}
.news-card .thumb {
    height: 190px;
    overflow: hidden;
    background: var(--pearl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
}
.news-card .thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-luxe);
}
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body {
    padding: 1.8rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.9rem;
}
.news-card .meta { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.news-card .cat {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose);
    border: 1px solid rgba(200, 107, 133, 0.35);
    border-radius: 999px;
    padding: 0.25em 1em;
}
.news-card .date {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}
.news-card .title {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.04em;
    color: var(--ink);
    transition: color 0.4s;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .title { color: var(--rose); }

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
    font-family: var(--serif-jp);
    letter-spacing: 0.1em;
}

.loader-dot {
    width: 42px; height: 42px;
    border: 1.5px solid rgba(200, 107, 133, 0.2);
    border-top-color: var(--rose);
    border-radius: 50%;
    animation: lum-spin 1s linear infinite;
}
@keyframes lum-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-label {
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 0.8rem;
}
.required-badge {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose);
    border: 1px solid rgba(200, 107, 133, 0.4);
    border-radius: 999px;
    padding: 0.2em 0.9em;
}
.form-input {
    width: 100%;
    padding: 1.05em 1.4em;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 3px rgba(44, 38, 40, 0.04);
    border-radius: 1rem;
    font-family: var(--sans-jp);
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.45s, box-shadow 0.45s, background 0.45s;
}
.form-input::placeholder { color: #c8bfc3; }
.form-input:focus {
    background: #fff;
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(200, 107, 133, 0.12);
}
textarea.form-input { resize: none; line-height: 1.9; }

.custom-checkbox {
    width: 1.3rem; height: 1.3rem;
    border: 1.5px solid rgba(200, 107, 133, 0.4);
    border-radius: 0.4rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    transition: all 0.3s;
}
.custom-checkbox:checked { background: var(--rose); border-color: var(--rose); }
.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------
   Journey（TOPのピン留めステージ）
   ------------------------------------------------------------ */
.story-pinned-stage {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.story-text-step {
    position: absolute;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    text-align: center;
    width: 90%;
    max-width: 920px;
}
.story-text-step.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.story-title {
    font-family: var(--serif-jp);
    font-weight: 500;
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 1.3;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 1.4rem;
}
.story-note {
    max-width: 30rem;
    margin-inline: auto;
    color: var(--muted);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 2.2;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
    background: rgba(244, 240, 232, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200, 107, 133, 0.1);
    padding: 4.5rem 0 2.2rem;
    color: var(--muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    margin-bottom: 3.6rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.footer-brand p {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 2.2;
    max-width: 24rem;
    margin-top: 1.4rem;
}
.footer-col h3 {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1.5rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    transition: color 0.4s;
}
.footer-col a:hover, .footer-col a.is-active { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid rgba(200, 107, 133, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { transition: color 0.4s; margin-left: 1.4rem; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--ink); }

/* ------------------------------------------------------------
   Reveal
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease-luxe), transform 1.1s var(--ease-luxe);
    transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.tc { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.sp-only { display: inline; }
.pc-only { display: none; }
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: inline; }
}

/* ------------------------------------------------------------
   Mobile type scale（明朝見出しの折り返し事故防止）
   ------------------------------------------------------------ */
@media (max-width: 640px) {
    .display-1 { font-size: 1.82rem; letter-spacing: 0.01em; line-height: 1.55; }
    .display-2 { font-size: 1.48rem; line-height: 1.7; }
    .display-3 { font-size: 1.15rem; }
    .kicker { font-size: 0.58rem; letter-spacing: 0.22em; }
    .lead { font-size: 0.9rem; line-height: 2.2; }
    .story-title { font-size: 2.6rem; }
    .story-note { font-size: 0.88rem; }
    .brand-name { font-size: 1.15rem; }
    .btn { padding: 1.2em 2.6em; }
}
