@charset "UTF-8";

:root {
    --ink: #12161c;
    --ink-soft: #1e2c49;
    --paper: #f7f6f3;
    --paper-dim: #eeece6;
    --gold: #b08d57;
    --gold-bright: #d3ad76;
    --sage: #57614f;
    --text-main: #1c1f24;
    --text-mute: #6b6f74;
    --text-on-dark: #f2f0ea;
    --text-on-dark-mute: #a9adb3;
    --serif: 'Noto Serif JP', serif;
    --sans: 'Zen Kaku Gothic New', sans-serif;
    --accent-serif: 'Cormorant Garamond', serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
    scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
    font-family: var(--sans);
    color: var(--text-main);
    background: var(--paper);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 32px;
}

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

/* ---------- eyebrow / heading system ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 15px;
    letter-spacing: .14em;
    color: var(--gold);
    margin-bottom: 22px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.sec-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: .03em;
    line-height: 1.5;
    color: var(--text-main);
}

.sec-title.on-dark {
    color: var(--text-on-dark);
}

.sec-lead {
    margin-top: 18px;
    color: var(--text-mute);
    font-size: 15.5px;
    max-width: 46ch;
    line-height: 2;
}

.sec-lead.on-dark {
    color: var(--text-on-dark-mute);
}

/* ---------- sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 296px;
    height: 100vh;
    background: var(--ink);
    color: var(--text-on-dark);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 44px 40px 0;
}

.sidebar-top .logo {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .06em;
    color: var(--text-on-dark);
    line-height: 1.5;
}

.sidebar-top .logo span {
    display: block;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--gold-bright);
    margin-top: 6px;
    font-weight: 400;
}

.sidebar-rule {
    width: 30px;
    height: 1px;
    background: var(--gold);
    margin: 30px 0 34px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav li+li {
    margin-top: 6px;
}

.sidebar-nav a {
    display: block;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--text-on-dark-mute);
    padding: 11px 0;
    position: relative;
    transition: color .35s var(--ease), padding-left .35s var(--ease);
}

.sidebar-nav a::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .35s var(--ease);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text-on-dark);
    padding-left: 6px;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    width: 22px;
}

.sidebar-bottom {
    margin: 0 -40px;
    border-top: 1px solid rgba(242, 240, 234, .1);
}

.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    font-size: 13.5px;
    letter-spacing: .03em;
    color: var(--text-on-dark-mute);
    border-bottom: 1px solid rgba(242, 240, 234, .1);
    transition: all .35s var(--ease);
}

.sidebar-bottom a .ic {
    width: 17px;
    height: 17px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-bottom a:hover {
    color: var(--text-on-dark);
    background: rgba(242, 240, 234, .04);
}

.sidebar-bottom a.cta {
    background: var(--gold);
    color: var(--ink);
    font-weight: 500;
    border-bottom: none;
}

.sidebar-bottom a.cta:hover {
    background: var(--gold-bright);
    color: var(--ink);
}

/* mobile top bar (hidden on desktop) */
.mobile-bar {
    display: none;
}

.burger {
    display: none;
    width: 26px;
    height: 18px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 210;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-on-dark);
    transition: all .35s var(--ease);
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 8px;
}

.burger span:nth-child(3) {
    top: 16px;
}

.nav-open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-open .burger span:nth-child(2) {
    opacity: 0;
}

.nav-open .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* content area offset by sidebar */
.main {
    margin-left: 296px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    overflow: hidden;
}

.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    color: var(--text-on-dark);
    overflow: hidden;
    min-width: 0;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlideshow 25s infinite;
    /* ← 15s から 25s に変更(5枚×5秒) */
}

.hero-slide:nth-child(1) {
    background-image: url('img/hero-01.png');
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    background-image: url('img/hero-02.png');
    animation-delay: -5s;
}

.hero-slide:nth-child(3) {
    background-image: url('img/hero-03.png');
    animation-delay: -10s;
}

.hero-slide:nth-child(4) {
    background-image: url('img/hero-04.png');
    animation-delay: -15s;
}

.hero-slide:nth-child(5) {
    background-image: url('img/hero-05.png');
    animation-delay: -20s;
}

@media (max-width: 980px) {
    .hero-vertical {
        display: none;
    }

    /* ここから追加：スマホ専用のヒーロー画像 */
    .hero-slide:nth-child(1) {
        background-image: url('img/hero-sp01.png');
        background-position: 65% center;
    }

    .hero-slide:nth-child(2) {
        background-image: url('http://rd-rd.jp/wp-content/uploads/2026/09/ファーストビュー分析者.png');
    }

    .hero-slide:nth-child(3) {
        background-image: url('img/hero-sp03.png');
    }

    .hero-slide:nth-child(4) {
        background-image: url('img/hero-sp04.png');
    }

    .hero-slide:nth-child(5) {
        background-image: url('img/hero-sp05.png');
    }
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    1.2% {
        opacity: 1;
    }

    18% {
        opacity: 1;
        transform: scale(1.09);
    }

    20% {
        opacity: 0;
        transform: scale(1.09);
    }

    20.4% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, .55) 0%, rgba(10, 13, 17, .35) 40%, rgba(10, 13, 17, .85) 100%);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 56px 100px;
}

.hero-vertical {
    flex: none;
    width: 140px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 56px 0 38px;
}

.hero-vertical .v-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: .22em;
    line-height: 2.2;
    color: var(--text-main);
}

.hero-vertical .v-mark {
    writing-mode: vertical-rl;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 16px;
    letter-spacing: .2em;
    color: var(--gold);
}

.hero .eyebrow {
    color: var(--gold-bright);
    opacity: 0;
    animation: fadeUp .9s var(--ease) .3s forwards;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(28px, 4.6vw, 56px);
    line-height: 1.4;
    letter-spacing: .02em;
    max-width: none;
    opacity: 0;
    animation: fadeUp 1s var(--ease) .5s forwards;
}

.hero-lead {
    display: inline-block;
    font-size: clamp(48px, 9vw, 96px);
	white-space: nowrap;
}

.hero h1 em {
    font-style: italic;
    font-family: var(--accent-serif);
    color: var(--gold-bright);
}

.hero-sub {
    margin-top: 26px;
    max-width: 44ch;
    color: var(--text-on-dark-mute);
    font-size: 15.5px;
    letter-spacing: .02em;
    opacity: 0;
    animation: fadeUp 1s var(--ease) .7s forwards;
}

.hero-row {
    margin-top: 46px;
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1s var(--ease) .9s forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--ink);
    padding: 16px 34px;
    font-size: 13.5px;
    letter-spacing: .1em;
    border-radius: 2px;
    transition: all .4s var(--ease);
}

.btn-primary:hover {
    background: var(--gold-bright);
    letter-spacing: .16em;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    letter-spacing: .08em;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(242, 240, 234, .4);
    padding-bottom: 6px;
    transition: border-color .3s var(--ease);
}

.btn-line:hover {
    border-color: var(--gold);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-cue {
    position: absolute;
    right: 40px;
    bottom: 36px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark-mute);
    font-size: 11px;
    letter-spacing: .2em;
}

.scroll-cue .line {
    width: 1px;
    height: 52px;
    background: linear-gradient(var(--gold-bright), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-cue .line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-bright);
    animation: cueDrop 2.2s ease-in-out infinite;
}

@keyframes cueDrop {
    to {
        top: 100%;
    }
}

/* ---------- reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* ---------- アスベスト、本当に大丈夫ですか？ ---------- */
.mega {
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 140px 0 150px;
}

/* ---------- opener ---------- */
.mega-lead-line {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gold-bright);
    letter-spacing: .04em;
    margin-bottom: 36px;
}

.mega-lead-line::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--gold-bright);
}

.mega-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(38px, 7vw, 80px);
    line-height: 1.4;
    letter-spacing: .02em;
    color: var(--text-on-dark);
    margin-bottom: 56px;
}

.mega-title em {
    font-style: normal;
    color: var(--gold-bright);
}

.mega-divider {
    height: 2px;
    margin-bottom: 56px;
    background: repeating-linear-gradient(-45deg,
            var(--gold) 0 16px,
            transparent 16px 30px);
    opacity: .6;
}

.mega-body {
    font-size: 15px;
    color: var(--text-on-dark-mute);
    line-height: 2.1;
    max-width: 62ch;
    margin-bottom: 110px;
}

.mega-body .accent {
    color: var(--text-on-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--gold-bright);
    white-space: nowrap;
}

/* ---------- sub sections ---------- */
.mega-sub {
    margin-bottom: 96px;
}

.mega-sub h3 {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(22px, 2.8vw, 28px);
    line-height: 1.6;
    margin-bottom: 26px;
    color: var(--text-on-dark);
}

.mega-sub p {
    font-size: 14px;
    color: var(--text-on-dark-mute);
    line-height: 2.05;
    max-width: 66ch;
    margin-bottom: 20px;
}

.mega-sub p:last-child {
    margin-bottom: 0;
}

/* ---------- large rectangular image for "調べる会社と、壊す会社が同じだから。" ---------- */
.query-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 36px;
}

.query-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(.15) contrast(1.05) brightness(.85);
}

.query-media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .3);
    border-radius: 6px;
}

/* ---------- wide breakout container for the panel gallery ---------- */
.wrap-wide {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- compact 4-step row, right under the work heading ---------- */
.mini-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 30px 0 46px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(242, 240, 234, .1);
}

.mini-step {
    padding-right: 28px;
    border-right: 1px solid rgba(242, 240, 234, .1);
}

.mini-step:last-child {
    border-right: none;
    padding-right: 0;
}

.mini-step .no {
    display: block;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 13.5px;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.mini-step h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-on-dark);
    margin-bottom: 10px;
}

.mini-step p {
    font-size: 11.5px;
    color: var(--text-on-dark-mute);
    line-height: 1.75;
}

/* ---------- work: hover-expand photo panel gallery ---------- */
.panels {
    display: flex;
    height: 540px;
    gap: 6px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 36px;
}

.panel {
    position: relative;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: flex-grow .65s var(--ease);
}

.panel:hover {
    flex-grow: 3.6;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, .25) 0%, rgba(10, 13, 17, .55) 55%, rgba(10, 13, 17, .92) 100%);
    transition: background .5s var(--ease);
}

.panel:hover::before {
    background: linear-gradient(90deg, rgba(10, 13, 17, .92) 0%, rgba(10, 13, 17, .75) 45%, rgba(10, 13, 17, .35) 100%);
}

.panel-inner {
    position: absolute;
    inset: 0;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.panel-no {
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--gold-bright);
    margin-bottom: 14px;
    flex: none;
    opacity: 0;
    transition: opacity .35s var(--ease) .05s;
}

.panel:hover .panel-no {
    opacity: 1;
}

.panel-vertical {
    position: absolute;
    left: 28px;
    bottom: 30px;
    writing-mode: vertical-rl;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .1em;
    color: var(--text-on-dark);
    opacity: 1;
    transition: opacity .35s var(--ease);
    white-space: nowrap;
}

.panel:hover .panel-vertical {
    opacity: 0;
}

.panel-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s var(--ease) .05s, transform .4s var(--ease) .05s;
    min-width: 210px;
}

.panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.panel-content h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-on-dark);
    margin-bottom: 10px;
    white-space: nowrap;
}

.panel-content p {
    font-size: 12px;
    color: var(--text-on-dark-mute);
    line-height: 1.85;
    max-width: 28ch;
}

/* ---------- tags ---------- */
.mega-tags {
    margin-top: 70px;
}

.tags-label {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-row span {
    font-size: 12px;
    letter-spacing: .02em;
    color: var(--text-on-dark-mute);
    border: 1px solid rgba(176, 141, 87, .4);
    padding: 9px 18px;
    border-radius: 999px;
    transition: all .3s var(--ease);
}

.tags-row span:hover {
    color: var(--text-on-dark);
    border-color: var(--gold-bright);
    background: rgba(176, 141, 87, .08);
}

@media (max-width:900px) {
    .mini-steps {
        grid-template-columns: 1fr 1fr;
        gap: 24px 28px;
    }

    .mini-step {
        border-right: none;
        padding-right: 0;
    }

    .mini-step:nth-child(odd) {
        border-right: 1px solid rgba(242, 240, 234, .1);
        padding-right: 24px;
    }

    .panels {
        flex-direction: column;
        height: auto;
    }

    .panel {
        flex: none !important;
        height: 170px;
    }

    .panel::before {
        background: linear-gradient(90deg, rgba(10, 13, 17, .85) 0%, rgba(10, 13, 17, .4) 100%) !important;
    }

    .panel-vertical {
        opacity: 0;
    }

    .panel-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 22px 26px;
    }

    .panel-no {
        margin-bottom: 0;
        opacity: 1 !important;
    }

    .panel-content {
        opacity: 1 !important;
        transform: none !important;
        min-width: 0;
        flex: 1;
        padding-left: 20px;
    }

    .panel-content p {
        display: none;
    }
}

@media (max-width:640px) {
    .mega {
        padding: 100px 0 110px;
    }

    .mega-body {
        margin-bottom: 80px;
    }

    .mega-sub {
        margin-bottom: 70px;
    }
}


/* ---------- お客様・施工パートナーの声 ---------- */
.v-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: .03em;
    line-height: 1.5;
    margin-bottom: 22px;
}

.v-lead {
    color: var(--text-mute);
    font-size: 15px;
    max-width: 64ch;
    line-height: 2;
    margin-bottom: 40px;
}

/* 自動でゆっくり流れるカードトラック */
.v-track-outer {
    overflow: hidden;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.v-track-outer.dragging {
    cursor: grabbing;
}

.v-track {
    display: flex;
    gap: 26px;
    width: max-content;
    will-change: transform;
    user-select: none;
}

.v-card {
    flex: none;
    width: 340px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    padding: 26px;
}

.v-photo {
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
}

.v-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v-quote-mark {
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 32px;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

.v-tag {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: .03em;
    margin-bottom: 12px;
    display: block;
}

.v-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.95;
    margin-bottom: 24px;
    min-height: 76px;
}

.v-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.v-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--paper-dim);
    color: var(--text-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 14px;
    flex: none;
}

.v-person .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.v-person .meta {
    font-size: 11.5px;
    color: var(--text-mute);
}

@media (max-width:640px) {
    .wrap {
        padding: 70px 24px;
    }

    .v-card {
        width: 280px;
    }

    .v-track {
        gap: 18px;
    }
}

/* ---------- 壊す前に知っておきたい、アスベストのこと。 ---------- */
.guide {
    padding: 130px 0 140px;
}

.guide-top {
    max-width: 820px;
    margin-bottom: 60px;
}

.guide-top .sec-lead {
    margin-top: 22px;
}

.index-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.index-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: padding-left .35s var(--ease), background .35s var(--ease);
}

.index-list>.index-item:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, .12);
}

.index-item:hover {
    background: var(--paper-dim);
    padding-left: 30px;
}

.index-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
}

.idx-no {
    flex: none;
    font-family: var(--accent-serif);
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    color: var(--gold);
    letter-spacing: .02em;
    width: 46px;
}

.idx-title {
    flex: 1;
    font-size: 14.5px;
    letter-spacing: .01em;
    color: var(--text-main);
    line-height: 1.7;
}

.idx-more {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .05em;
    color: var(--text-mute);
    white-space: nowrap;
    transition: color .35s var(--ease);
}

.idx-more .arrow {
    transition: transform .35s var(--ease);
    display: inline-block;
}

.index-item:hover .idx-more {
    color: var(--gold);
}

.index-item:hover .idx-more .arrow {
    transform: translateX(4px);
}

.guide-note {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 70ch;
}

.guide-note .dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 9px;
}

.guide-note p {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.95;
}

@media (max-width:640px) {
    .guide {
        padding: 90px 0 100px;
    }

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

    .index-list>.index-item:nth-child(odd) {
        border-right: none;
    }

    .index-item {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
        padding: 20px 4px;
    }

    .index-item:hover {
        padding-left: 10px;
    }

    .idx-no {
        order: 0;
        width: 32px;
        font-size: 20px;
    }

    .idx-title {
        order: 1;
        flex: 1;
        width: auto;
        font-size: 13.5px;
        line-height: 1.85;
    }

    .idx-more {
        order: 2;
        width: 100%;
        margin-left: 48px;
        margin-top: 2px;
    }
}


/* ---------- お客様に合った「正しい壊し方」 ---------- */
.cases {
    padding: 130px 0 140px;
}

.cases-top {
    max-width: 760px;
    margin-bottom: 64px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 76px;
}

.case-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: var(--paper);
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 54px -26px rgba(18, 22, 28, .2);
    border-color: rgba(176, 141, 87, .4);
}

.case-body {
    flex: 1;
    min-width: 0;
    padding: 36px 32px 32px;
}

.case-media {
    flex: none;
    width: 38%;
    position: relative;
    overflow: hidden;
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(.25) contrast(1.05);
    transition: transform .7s var(--ease), filter .5s var(--ease);
}

.case-card:hover .case-media img {
    transform: scale(1.06);
    filter: grayscale(0) contrast(1.05);
}

.case-no {
    display: block;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 36px;
    color: var(--gold);
    letter-spacing: .02em;
    line-height: 1;
    margin-bottom: 20px;
}

.case-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 22px;
    transition: background .35s var(--ease), color .35s var(--ease);
}

.case-card:hover .case-icon {
    background: var(--gold);
    color: var(--paper);
}

.case-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.case-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: .02em;
    margin-bottom: 13px;
    max-width: 22ch;
}

.case-card p {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.9;
    max-width: 40ch;
    margin-bottom: 20px;
}

.case-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    letter-spacing: .05em;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    padding-bottom: 5px;
    transition: border-color .3s var(--ease), color .3s var(--ease);
}

.case-card:hover .case-more {
    color: var(--gold);
    border-color: var(--gold);
}

/* shared case-page structure strip */
.case-steps {
    border-top: 1px solid rgba(0, 0, 0, .1);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding: 30px 0;
    margin-bottom: 64px;
}

.case-steps-label {
    font-size: 12.5px;
    color: var(--text-mute);
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.case-steps-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.case-steps-row span {
    font-size: 13px;
    letter-spacing: .02em;
    color: var(--text-main);
    padding: 6px 22px 6px 0;
    position: relative;
}

.case-steps-row span:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-family: var(--accent-serif);
    font-style: italic;
}

/* principle statement */
.principle {
    display: flex;
    gap: 36px;
    background: var(--paper-dim);
    border-left: 3px solid var(--gold);
    padding: 40px 44px;
    align-items: flex-start;
}

.principle .p-label {
    flex: none;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: .1em;
    width: 150px;
    padding-top: 4px;
}

.principle p {
    font-family: var(--serif);
    font-size: 16.5px;
    line-height: 2;
    color: var(--text-main);
    max-width: 62ch;
}

@media (max-width:900px) {
    .case-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        flex-direction: column;
    }

    .case-media {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .principle {
        flex-direction: column;
        gap: 16px;
        padding: 32px 30px;
    }

    .principle .p-label {
        width: auto;
    }
}

@media (max-width:640px) {
    .cases {
        padding: 90px 0 100px;
    }

    .case-steps-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .case-steps-row span {
        padding: 0 0 0 0;
    }

    .case-steps-row span:not(:last-child)::after {
        content: "↓";
        position: static;
        display: block;
        transform: none;
        margin-top: 8px;
    }
}

/* ---------- よくあるご質問 ---------- */
.faq4 {
    padding: 130px 0 140px;
}

.faq4-top {
    margin-bottom: 56px;
    text-align: center;
}

.faq4-top .eyebrow {
    justify-content: center;
}

.faq4-top .sec-lead {
    margin-left: auto;
    margin-right: auto;
}

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-row {
    display: flex;
    width: 100%;
}

.chat-row.q {
    justify-content: flex-end;
}

.chat-row.a {
    justify-content: flex-start;
}

.bubble {
    max-width: 80%;
    padding: 17px 22px;
    border-radius: 20px;
    font-size: 13.5px;
    line-height: 1.85;
}

.q-bubble {
    background: var(--ink);
    color: var(--text-on-dark);
    border-bottom-right-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .3s var(--ease);
}

.q-bubble:hover {
    background: #1c232c;
}

.q-bubble .qno {
    flex: none;
    font-family: var(--accent-serif);
    font-style: italic;
    color: var(--gold-bright);
    font-size: 14px;
}

.q-bubble .chevron {
    flex: none;
    font-size: 11px;
    color: var(--gold-bright);
    transition: transform .35s var(--ease);
}

.chat-row.q.open .chevron {
    transform: rotate(180deg);
}

.a-bubble {
    background: var(--paper);
    border: 1px solid rgba(176, 141, 87, .35);
    border-bottom-left-radius: 5px;
    color: var(--text-main);
}

.a-bubble .a-label {
    display: block;
    font-family: var(--accent-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .1em;
    margin-bottom: 8px;
}

.typing-bubble {
    background: var(--paper);
    border: 1px solid rgba(176, 141, 87, .35);
    border-bottom-left-radius: 5px;
    padding: 17px 22px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: bounce 1.1s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) {
    animation-delay: .15s;
}

.typing-bubble span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: .5;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chat-answer-wrap {
    animation: slideIn .4s var(--ease);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq4-note {
    margin-top: 50px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.faq4-note p {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.95;
}

@media (max-width:640px) {
    .faq4 {
        padding: 90px 0 100px;
    }

    .bubble {
        max-width: 88%;
        font-size: 13px;
    }
}

/* お問い合わせCTAバンド */

.cta-band {
    position: relative;
    padding: 150px 0;
    color: var(--text-on-dark);
    text-align: center;
    overflow: hidden;
}

.cta-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 13, 17, .82), rgba(10, 13, 17, .6)),
        url('img/問い合わせCTA\　背景.png') center/cover no-repeat;
}

.content {
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.5;
    margin-bottom: 44px;
}

.cta-band h2 em {
    font-style: italic;
    font-family: var(--accent-serif);
    color: var(--gold-bright);
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--ink);
    padding: 16px 34px;
    font-size: 13.5px;
    letter-spacing: .1em;
    border-radius: 2px;
    text-decoration: none;
    transition: all .4s var(--ease);
}

.btn-primary:hover {
    background: var(--gold-bright);
    letter-spacing: .16em;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    letter-spacing: .08em;
    color: var(--text-on-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 240, 234, .4);
    padding-bottom: 6px;
    transition: border-color .3s var(--ease);
}

.btn-line:hover {
    border-color: var(--gold-bright);
}

/* ---------- minimal on-demand note trigger + popover ---------- */
.note-trigger-wrap {
    position: relative;
    display: inline-block;
}

.note-trigger {
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 12.5px;
    letter-spacing: .03em;
    color: var(--text-on-dark-mute);
    padding: 8px 4px;
    transition: color .3s var(--ease);
}

.note-trigger:hover {
    color: var(--text-on-dark);
}

.note-trigger .n-ic {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    color: var(--gold-bright);
    font-family: var(--accent-serif);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform .35s var(--ease);
}

.note-trigger.open .n-ic {
    transform: rotate(180deg);
}

.note-popover {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 380px;
    max-width: 80vw;
    background: var(--paper);
    color: var(--ink);
    border-radius: 6px;
    padding: 24px 26px;
    text-align: left;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    z-index: 10;
}

.note-popover::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--paper);
}

.note-popover.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.note-popover b {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--gold);
    margin-bottom: 10px;
}

.note-popover p {
    font-size: 13px;
    line-height: 1.9;
    color: #4a4e53;
}

@media (max-width:640px) {
    .cta-band {
        padding: 100px 0;
    }

    .hero-row {
        gap: 20px;
    }

    .note-popover {
        width: 82vw;
    }
}

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    color: var(--text-on-dark-mute);
    padding: 90px 0 34px;

    /* 固定サイドバー分 */
    margin-left: 296px;
}

.f-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 70px;
    border-bottom: 1px solid rgba(242, 240, 234, .1);
}

.f-logo {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-on-dark);
    letter-spacing: .06em;
}

.f-logo span {
    display: block;
    font-family: var(--accent-serif);
    font-style: italic;
    font-size: 11px;
    color: var(--gold-bright);
    letter-spacing: .2em;
    margin-top: 6px;
}

.f-desc {
    margin-top: 22px;
    font-size: 13px;
    line-height: 2;
    max-width: 32ch;
}

.f-col h4 {
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--text-on-dark);
    margin-bottom: 22px;
}

.f-col li {
    margin-bottom: 13px;
    font-size: 13.5px;
}

.f-col a {
    transition: color .3s var(--ease);
}

.f-col a:hover {
    color: var(--gold-bright);
}

.f-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.f-sns {
    display: flex;
    gap: 18px;
}

.f-sns a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(242, 240, 234, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all .3s var(--ease);
}

.f-sns a img {
    width: 15px;
    height: 15px;
}

.f-sns a:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
}

@media (max-width: 900px) {
    .f-top {
        grid-template-columns: 1fr 1fr;
        row-gap: 44px;
    }
}

@media (max-width: 640px) {
    .f-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 50px;
    }

    .f-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* レスポンシブ */
/* ---------- mobile ---------- */
/* ---- sidebar collapses into a top bar + slide-out panel below 980px ---- */
@media (max-width: 980px) {
    footer {
        margin-left: 0;
    }

    .sidebar {
        top: 0;
        left: 0;
        width: 82%;
        max-width: 380px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .5s var(--ease);
        padding: 100px 40px 0;
        z-index: 180;
    }

    .nav-open .sidebar {
        transform: translateX(0);
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 13, 17, .55);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s var(--ease), visibility .4s var(--ease);
        z-index: 170;
    }

    .nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .main {
        margin-left: 0;
        padding-top: 64px;
    }

    .mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        padding: 0 22px;
        background: var(--ink);
        z-index: 190;
    }

    .mobile-bar .logo {
        font-family: var(--serif);
        font-weight: 700;
        font-size: 16px;
        color: var(--text-on-dark);
        letter-spacing: .05em;
    }

    .burger {
        display: block;
    }

    .hero-vertical {
        display: none;
    }
}

@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .intro-num {
        font-size: 80px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .split-row {
        grid-template-columns: 1fr;
    }

    .split-row .split-media {
        order: 0 !important;
        min-height: 280px;
    }

    .split-body {
        padding: 50px 34px;
    }

    .f-top {
        grid-template-columns: 1fr 1fr;
        row-gap: 44px;
    }
}

@media (max-width: 720px) {
    .wrap {
        padding: 0 22px;
    }

    .hero-inner {
        padding: 0 22px 70px;
    }

    .hero-row {
        gap: 22px;
    }

    .scroll-cue {
        display: none;
    }

    .intro {
        padding: 90px 0 70px;
    }

    .intro-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .strengths {
        padding: 90px 0;
    }

    .business {
        padding: 90px 0;
    }

    .split-body {
        padding: 40px 24px;
    }

    .news {
        padding: 80px 0 90px;
    }

    .news-list a {
        grid-template-columns: 1fr 24px;
        grid-template-areas: "date tag" "title title";
        row-gap: 8px;
        padding: 20px 4px;
    }

    .news-date {
        grid-area: date;
    }

    .news-tag {
        grid-area: tag;
        justify-self: end;
    }

    .news-title {
        grid-area: title;
    }

    .news-arrow {
        display: none;
    }

    .cta-band {
        padding: 100px 0;
    }

    .f-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 50px;
    }

    .f-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    /* SEなど画面が小さい端末では、メニュー内の大きいロゴを非表示にして高さを節約する */
    @media (max-width: 380px),
    (max-height: 700px) {
        .sidebar .sidebar-top {
            display: none;
        }

        .sidebar {
            padding-top: 70px;
        }

        .sidebar-rule {
            display: none;
        }
    }
}