/* ===================================
   株式会社クラリス — Design System
   Refactored: Editorial Luxury × Japanese Minimalism
   =================================== */

:root {
    /* Colors — Navy Blue Palette */
    --bg:            #f0f3f7;
    --bg-alt:        #e3e9f0;
    --bg-paper:      #f5f7fa;
    --dark:          #1a283a;
    --dark-mid:      #243347;
    --dark-soft:     #2e3f54;
    --text:          #1a283a;
    --muted:         #6b7c8f;
    --border:        #c5d0dc;
    --border-dark:   rgba(255, 255, 255, 0.1);
    --accent:        #f2a020;
    --accent-light:  rgba(184, 146, 74, 0.1);
    --accent-mid:    rgba(184, 146, 74, 0.25);
    --white:         #f0f3f7;

    /* Typography */
    --font-serif:    'Noto Serif JP', 'Cormorant Garamond', Georgia, serif;
    --font-sans:     'Noto Sans JP', 'DM Sans', sans-serif;
    --font-latin:    'Cormorant Garamond', Georgia, serif;

    /* Easings — Luxury Motion */
    --ease-luxury:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-heavy:    cubic-bezier(0.76, 0, 0.24, 1);
    --ease-natural:  cubic-bezier(0.4, 0, 0.2, 1);

    --t-base:  0.5s var(--ease-luxury);
    --t-slow:  0.8s var(--ease-luxury);
    --t-fast:  0.3s var(--ease-natural);

    /* Layout */
    --section-padding: 120px;
    --container-width: 1320px;
    --nav-height: 80px;
}

/* ===================================
   Reset & Base
   =================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Windowsのスクロールバー幅による横ズレを防止 */
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* Grain texture — applied as pseudo-element */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.028;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 10;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(244, 242, 236, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--t-base);
}

.header.scrolled {
    box-shadow: 0 2px 32px rgba(26, 40, 58, 0.07);
}

.nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.nav__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav__logo .logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--dark);
    position: relative;
}

.nav__logo .logo-text::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 16px;
    height: 1px;
    background: var(--accent);
}

.nav__list {
    display: flex;
    gap: 48px;
    list-style: none;
    align-items: center;
}

.nav__link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--muted);
    position: relative;
    transition: color var(--t-fast);
}

.nav__link:hover {
    color: var(--dark);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--t-base);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: var(--dark);
}

.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    background: var(--dark);
    color: var(--bg) !important;
    padding: 10px 24px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--t-base) !important;
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--accent) !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--dark);
    transition: var(--t-base);
    transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ===================================
   Hero Section — Editorial Layout
   =================================== */

.hero {
    position: relative;
    /* max()で「100vh か 820px の大きい方」を保証 */
    /* Windowsの125%スケーリングで100vhが700px台になっても最低820px確保 */
    min-height: max(100vh, 820px);
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    overflow: hidden;
    background: var(--dark);
}

/* Grain texture on hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 5;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform-origin: center;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(26, 40, 58, 0.62) 35%, rgba(26, 40, 58, 0.03) 70%),
        linear-gradient(to top, rgba(26, 40, 58, 0.28) 0%, transparent 40%);
}

/* Ghost decorative number */
.hero__ghost-num {
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-latin);
    font-size: clamp(180px, 20vw, 300px);
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    letter-spacing: -10px;
    user-select: none;
}

.hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
    padding-top: var(--nav-height);
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-luxury) 0.2s forwards;
}

.hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.hero__year {
    font-family: var(--font-latin);
    font-size: 13px;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 1px;
}

.hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero__title {
    font-family: var(--font-sans);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 48px;
    max-width: 820px;
}

.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(32px);
    animation: fadeUp 0.9s var(--ease-luxury) forwards;
}

/* 1行目 */
.hero__title-line:nth-child(1) {
    font-size: clamp(28px, 5.2vw, 68px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: rgba(240, 243, 247, 0.95);
    margin-bottom: 4px;
    animation-delay: 0.25s;
}

/* 2行目 */
.hero__title-line:nth-child(2) {
    font-size: clamp(28px, 5.2vw, 68px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: rgba(240, 243, 247, 0.95);
    margin-bottom: 4px;
    animation-delay: 0.4s;
}

/* 3行目 — アクセントカラーで締める */
.hero__title-line:nth-child(3) {
    font-size: clamp(28px, 5.2vw, 68px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--accent);
    animation-delay: 0.55s;
}

.hero__title-accent {
    color: var(--accent) !important;
}

.hero__bottom {
    display: flex;
    align-items: flex-end;
    gap: 80px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.9s var(--ease-luxury) 0.85s forwards;
}

.hero__subtitle {
    font-size: 15px;
    line-height: 2;
    color: rgba(244, 242, 236, 0.65);
    max-width: 320px;
    padding-left: 24px;
    border-left: 1px solid rgba(184, 146, 74, 0.5);
}

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

.hero__scroll {
    position: absolute;
    right: 48px;
    bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 4;
    opacity: 0;
    animation: fadeIn 1s var(--ease-luxury) 1.2s forwards;
}

.hero__scroll span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 64px;
    background: linear-gradient(to bottom, rgba(184, 146, 74, 0.8), transparent);
    animation: scrollPulse 2.5s var(--ease-luxury) infinite 1.4s;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(0.5) translateY(-10px); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--t-base);
    position: relative;
}

.btn--primary {
    background: var(--accent);
    color: var(--dark);
    padding: 15px 32px;
    border-radius: 2px;
}

.btn--primary:hover {
    background: #c9a45a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 146, 74, 0.3);
}

.btn--dark {
    background: var(--dark);
    color: var(--bg);
    padding: 15px 32px;
    border-radius: 2px;
}

.btn--dark:hover {
    background: var(--dark-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 40, 58, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border: 1px solid rgba(244, 242, 236, 0.3);
    border-radius: 2px;
}

.btn--ghost:hover {
    background: rgba(244, 242, 236, 0.1);
    border-color: rgba(184, 146, 74, 0.6);
    color: var(--accent);
}

.btn--text {
    background: transparent;
    color: rgba(244, 242, 236, 0.6);
    padding: 14px 0;
    letter-spacing: 1px;
}

.btn--text:hover {
    color: var(--accent);
    gap: 16px;
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    padding: 14px 32px;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.btn--outline:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--bg);
}

.btn--outline-white {
    background: transparent;
    color: var(--bg);
    padding: 14px 32px;
    border: 1px solid rgba(244, 242, 236, 0.3);
    border-radius: 2px;
}

.btn--outline-white:hover {
    background: rgba(244, 242, 236, 0.1);
    border-color: var(--bg);
}

.btn--large {
    padding: 18px 40px;
    font-size: 14px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Ticker Strip
   =================================== */

.ticker {
    background: var(--dark);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    position: relative;
}

/* subtle grain */
.ticker::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.ticker__track {
    display: flex;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
    position: relative;
    z-index: 1;
}

.ticker:hover .ticker__track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker__list {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    padding: 0 32px;
}

.ticker__item {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    color: rgba(244, 242, 236, 0.55);
    letter-spacing: 1px;
    padding: 0 28px;
    transition: color 0.3s ease;
}

.ticker__item--en {
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.ticker__track:hover .ticker__item {
    color: rgba(244, 242, 236, 0.55);
}

.ticker__item:hover {
    color: var(--accent) !important;
}

.ticker__sep {
    font-family: var(--font-latin);
    font-size: 12px;
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
    user-select: none;
}

/* ===================================
   Section Headers
   =================================== */

.section-header {
    margin-bottom: 80px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-description {
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-title--light {
    color: var(--bg);
}

.section-description {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 560px;
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.service-category {
    margin-bottom: 100px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-intro {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.category-number {
    font-family: var(--font-latin);
    font-size: 80px;
    font-weight: 600;
    font-style: italic;
    color: var(--border);
    line-height: 0.85;
    letter-spacing: -4px;
    padding-top: 4px;
}

.category-title {
    font-family: var(--font-latin);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 600;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -1px;
    line-height: 1;
}

.category-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.category-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 640px;
}

/* ===================================
   Service Cards
   =================================== */

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--t-slow);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--t-base);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(26, 40, 58, 0.1);
    border-color: var(--border);
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}

.service-card--featured .service-card__image {
    aspect-ratio: auto;
    min-height: 320px;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-luxury);
    filter: saturate(0.9);
}

.service-card:hover .service-card__image img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.service-card__content {
    padding: 40px;
}

.service-card__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-mid);
    background: var(--accent-light);
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.service-card__text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 24px;
}

.service-card__features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card__features li {
    font-size: 13px;
    color: var(--text);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.service-card__features li::before {
    content: '─';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 10px;
    top: 3px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--t-base);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.service-card__link:hover {
    gap: 14px;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===================================
   About / Company Section
   =================================== */

.about {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: 'CLARIS';
    position: absolute;
    right: -40px;
    bottom: -20px;
    font-family: var(--font-latin);
    font-size: clamp(100px, 12vw, 180px);
    font-weight: 600;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(26, 40, 58, 0.06);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -8px;
    user-select: none;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about__text .section-label {
    margin-bottom: 16px;
}

.about__title {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 32px;
    line-height: 1.4;
}

.about__description {
    font-size: 15px;
    line-height: 2;
    color: var(--muted);
    margin-bottom: 20px;
}

.company-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

.company-info__item {
    padding: 20px 0;
    padding-right: 20px;
    border-bottom: 1px solid var(--border);
}

.company-info__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.company-info__value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

.about__image-wrap {
    position: relative;
}

.about__image-wrap::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--accent-mid);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
}

.about__image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(26, 40, 58, 0.14);
    position: relative;
    z-index: 1;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: saturate(0.85);
    transition: filter 0.8s var(--ease-luxury);
}

.about__image:hover img {
    filter: saturate(1);
}

/* ===================================
   Message Section
   =================================== */

.message {
    padding: var(--section-padding) 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.message .section-header {
    margin-bottom: 64px;
}

.message .section-label {
    color: var(--accent);
}

.message .section-title {
    color: var(--bg);
}

.message__content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.message__profile {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    height: fit-content;
}

.message__image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    position: relative;
}

.message__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 40, 58, 0.3) 0%, transparent 50%);
}

.message__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(15%);
    transition: filter 0.8s var(--ease-luxury);
}

.message__image:hover img {
    filter: grayscale(0%);
}

.message__position {
    font-size: 11px;
    font-weight: 600;
    color: rgba(244, 242, 236, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.message__name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.message__name-en {
    font-family: var(--font-latin);
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 1px;
}

.message__text {
    background: rgba(244, 242, 236, 0.04);
    padding: 52px 56px;
    border-radius: 4px;
    border: 1px solid rgba(244, 242, 236, 0.08);
    position: relative;
}

.message__text::before {
    content: '\201C';
    font-family: var(--font-latin);
    font-size: 120px;
    font-style: italic;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: 16px;
    left: 32px;
    line-height: 1;
    pointer-events: none;
}

.message__paragraph {
    font-size: 15px;
    line-height: 2.1;
    color: rgba(244, 242, 236, 0.9);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.message__paragraph:first-child {
    color: rgba(244, 242, 236, 0.9);
    font-size: 16px;
}

.message__paragraph:last-of-type {
    margin-bottom: 40px;
}

.message__signature {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: rgba(244, 242, 236, 0.7);
    line-height: 2;
    text-align: right;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.cta__content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 80px;
    padding: 72px 72px;
    background: var(--dark-mid);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta__content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cta__ghost {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-latin);
    font-size: clamp(80px, 10vw, 160px);
    font-weight: 600;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    line-height: 1;
    letter-spacing: -8px;
    pointer-events: none;
    user-select: none;
}

.cta__text-block {
    position: relative;
    z-index: 1;
}

.cta__label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.cta__label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--bg);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta__sub {
    font-size: 15px;
    color: rgba(244, 242, 236, 0.55);
    line-height: 1.8;
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta__note {
    font-size: 12px;
    color: rgba(244, 242, 236, 0.35);
    text-align: center;
    letter-spacing: 0.5px;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-top: 64px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact__method {
    display: flex;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.contact__method:first-child {
    border-top: 1px solid var(--border);
}

.contact__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
    border-radius: 2px;
    flex-shrink: 0;
}

.contact__icon i {
    font-size: 16px;
    color: var(--accent);
}

.contact__details h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact__value {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    font-style: normal;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: 0;
}

.contact__note {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.5px;
}

/* Contact Form */
.contact__form {
    background: var(--bg-paper);
    padding: 52px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.required {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    transition: var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

/* セレクトボックスのカスタム矢印 */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c8f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
    opacity: 0.5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */

.footer {
    padding: 80px 0 40px;
    background: var(--dark);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 1;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--bg);
    position: relative;
    display: inline-block;
}

.footer__logo::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
    margin-top: 12px;
}

.footer__tagline {
    font-size: 13px;
    line-height: 2;
    color: rgba(244, 242, 236, 0.45);
    max-width: 280px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer__column h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: rgba(244, 242, 236, 0.35);
}

.footer__column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__column ul li {
    font-size: 13px;
    color: rgba(244, 242, 236, 0.6);
    line-height: 1.5;
}

.footer__column ul li a {
    font-size: 13px;
    color: rgba(244, 242, 236, 0.6);
    transition: var(--t-fast);
}

.footer__column ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(244, 242, 236, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* ===================================
   Scroll Animations
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===================================
   Custom Cursor
   =================================== */

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s var(--ease-luxury), opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(184, 146, 74, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.5s var(--ease-luxury), width 0.4s var(--ease-luxury), height 0.4s var(--ease-luxury), opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring.hovered {
    width: 56px;
    height: 56px;
    border-color: rgba(184, 146, 74, 0.25);
}

/* ===================================
   Back to Top
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--dark);
    color: var(--bg);
    border: 1px solid rgba(244, 242, 236, 0.15);
    border-radius: 2px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--t-base);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===================================
   Reduced Motion
   =================================== */

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

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container, .nav {
        padding: 0 32px;
    }

    .hero__container { padding: 0 32px; padding-top: var(--nav-height); }
    .hero__scroll { right: 32px; }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .stats__item:nth-child(2)::after { display: none; }

    .service-cards { grid-template-columns: 1fr; }
    .service-card--featured { grid-template-columns: 1fr; }
    .service-card--featured .service-card__image { min-height: 280px; }

    .about__content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .company-info { grid-template-columns: 1fr; }

    .message__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .message__profile { position: static; }

    .cta__content {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px;
    }

    .cta__actions { flex-direction: row; }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100dvh - var(--nav-height));
        background: var(--bg);
        padding: 48px 32px;
        transition: left var(--t-base);
        border-top: 1px solid var(--border);
        overflow-y: auto;
    }

    .nav__menu.active { left: 0; }

    .nav__list {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .nav__link { font-size: 16px; }
    .nav__toggle { display: flex; }

    .hero__title { letter-spacing: -0.5px; }
    .hero__title-line:nth-child(1),
    .hero__title-line:nth-child(2),
    .hero__title-line:nth-child(3) { letter-spacing: -1px; }
    .hero__bottom { flex-direction: column; gap: 32px; align-items: flex-start; }
    .hero__actions { flex-direction: column; width: 100%; }
    .btn--ghost, .btn--text { width: 100%; justify-content: center; }
    .hero__scroll { display: none; }
    .hero__ghost-num { display: none; }

    .stats__grid { grid-template-columns: repeat(2, 1fr); }

    .category-intro { grid-template-columns: 1fr; gap: 20px; }
    .category-number { font-size: 48px; }

    .about::after { display: none; }

    .message__text { padding: 36px 32px; }
    .message__text::before { font-size: 80px; }

    .cta__content { padding: 40px 32px; }
    .cta__actions { flex-direction: column; }
    .cta__ghost { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .contact__form { padding: 36px 28px; }

    .footer__links { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    :root { --section-padding: 64px; }

    .container, .nav, .hero__container { padding: 0 20px; }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stats__item::after { display: none; }
    .stats__item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding: 32px 20px; }

    .service-card__content { padding: 28px; }
    .footer__links { grid-template-columns: 1fr; }

    .back-to-top { bottom: 24px; right: 24px; }
}

/* ===================================
   Navigation — Dropdown
   =================================== */

.nav__item--dropdown {
    position: relative;
}

.nav__link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav__link--dropdown i {
    font-size: 10px;
    transition: transform var(--t-fast);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(26, 40, 58, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
    z-index: 200;
}

.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__item--dropdown:hover .nav__link--dropdown i {
    transform: rotate(180deg);
}

.nav__dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 2px;
    transition: var(--t-fast);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav__dropdown-link:hover {
    background: var(--bg-alt);
    color: var(--dark);
    padding-left: 20px;
}

.nav__dropdown-link.active {
    color: var(--accent);
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .nav__dropdown {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-mid);
        border-radius: 0;
        padding: 8px 0 8px 16px;
        background: transparent;
        opacity: 1;
        visibility: visible;
        display: none;
        min-width: unset;
    }

    .nav__dropdown::before { display: none; }

    .nav__item--dropdown.open .nav__dropdown {
        display: block;
    }

    .nav__dropdown-link {
        font-size: 15px;
        padding: 8px 0;
        color: var(--muted);
    }
}

/* ===================================
   Page Hero — Sub-page header
   =================================== */

.page-hero {
    background: var(--dark);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.page-hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 12px;
    color: rgba(244, 242, 236, 0.4);
    letter-spacing: 1px;
}

.page-hero__breadcrumb a {
    color: rgba(244, 242, 236, 0.4);
    transition: color var(--t-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--accent);
}

.page-hero__breadcrumb span {
    color: rgba(244, 242, 236, 0.25);
}

.page-hero__title {
    font-family: var(--font-sans);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    color: var(--bg);
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 28px;
}

.page-hero__title span {
    color: var(--accent);
}

.page-hero__subtitle {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(244, 242, 236, 0.55);
    max-width: 520px;
    padding-left: 24px;
    border-left: 1px solid rgba(184, 146, 74, 0.4);
}

/* ===================================
   Services Overview (services.html)
   =================================== */

.services-overview {
    padding: 80px 0;
    background: var(--bg);
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 72px;
    text-align: center;
}

.services-intro__text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    color: var(--text);
    font-weight: 400;
}

.services-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.service-category-block {
    padding: 48px;
    background: var(--bg-paper);
    transition: background var(--t-fast);
}

.service-category-block:hover {
    background: var(--bg-alt);
}

.service-category-block__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.service-category-block__number {
    font-family: var(--font-latin);
    font-size: 40px;
    font-weight: 600;
    font-style: italic;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
}

.service-category-block__title {
    font-family: var(--font-latin);
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.service-category-block__subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.service-category-block__description {
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
}

@media (max-width: 768px) {
    .services-categories { grid-template-columns: 1fr; }
}

/* ===================================
   Service Details — Alternating Layout
   =================================== */

.service-details {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2px;
    background: var(--bg-paper);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-detail--reverse {
    direction: rtl;
}

.service-detail--reverse > * {
    direction: ltr;
}

.service-detail__visual {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.service-detail__image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.service-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85);
    transition: transform 0.9s var(--ease-luxury), filter 0.6s ease;
}

.service-detail:hover .service-detail__image img {
    transform: scale(1.04);
    filter: saturate(1);
}

.service-detail__content {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-detail__label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.service-detail__title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.service-detail__lead {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 700;
}

.service-detail__description p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 16px;
}

.service-detail__features {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.service-detail__features h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.service-detail__features ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-detail__features li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 14px;
    color: var(--accent);
}

.feature-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.feature-content p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.service-detail__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    margin-top: 32px;
    transition: var(--t-base);
    align-self: flex-start;
}

.service-detail__link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    gap: 16px;
}

@media (max-width: 1024px) {
    .service-detail {
        grid-template-columns: 1fr;
    }

    .service-detail--reverse {
        direction: ltr;
    }

    .service-detail__visual { min-height: 300px; }

    .service-detail__content { padding: 48px 40px; }

    .service-detail__features ul {
        grid-template-columns: 1fr;
    }

    .container-wide { padding: 0 32px; }
}

@media (max-width: 768px) {
    .service-detail__content { padding: 36px 28px; }
    .container-wide { padding: 0 20px; }
}

/* ===================================
   Company Info Section (company.html)
   =================================== */

.company-intro {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.company-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.company-intro__text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 2;
    color: var(--text);
}

.company-intro__image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 40, 58, 0.12);
}

.company-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

.company-info-section {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
}

.section-title-center {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 56px;
}

.company-info-table {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.company-info-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.company-info-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}

.company-info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .company-intro .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .company-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ===================================
   Message Page (message.html)
   =================================== */

.message-page {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.message-page__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
}

.message-page__profile {
    position: sticky;
    top: calc(var(--nav-height) + 40px);
    height: fit-content;
}

.message-page__image {
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 16px 48px rgba(26, 40, 58, 0.1);
}

.message-page__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: saturate(0.9);
}

.message-page__position {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.message-page__name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.message-page__name-en {
    font-family: var(--font-latin);
    font-size: 13px;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 1px;
}

.message-page__content {
    background: var(--bg-paper);
    padding: 52px 56px;
    border-radius: 4px;
    border: 1px solid var(--border);
    position: relative;
}

.message-page__content::before {
    content: '\201C';
    font-family: var(--font-latin);
    font-size: 120px;
    font-style: italic;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    left: 32px;
    line-height: 1;
    pointer-events: none;
}

.message-page__text p {
    font-size: 15px;
    line-height: 2.1;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.message-page__signature {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 2;
    text-align: right;
    padding-top: 28px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .message-page__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .message-page__profile { position: static; }
    .message-page__image { max-width: 240px; }

    .message-page__content { padding: 40px 36px; }
}

@media (max-width: 768px) {
    .message-page__content { padding: 32px 24px; }
    .message-page__content::before { font-size: 80px; }
}

/* ===================================
   CTA — Simple variant (sub-pages)
   Legacy class support + centered layout
   =================================== */

.cta--simple .cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 72px;
    background: var(--dark-mid);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta--simple .cta__content::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cta__text {
    font-size: 15px;
    color: rgba(244, 242, 236, 0.6);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.cta__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===================================
   Service Detail Pages — Rich Layout
   =================================== */

/* Page intro section */
.service-page-intro {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.service-page-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-page-intro__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-page-intro__label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.service-page-intro__title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -1px;
    line-height: 1.3;
    margin-bottom: 24px;
}

.service-page-intro__body {
    font-size: 15px;
    line-height: 2;
    color: var(--muted);
}

.service-page-intro__body p { margin-bottom: 16px; }

.service-page-intro__image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(26, 40, 58, 0.12);
    aspect-ratio: 4/3;
}

.service-page-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

/* Pain points / Why section */
.why-section {
    padding: var(--section-padding) 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.why-section .section-label { color: var(--accent); }
.why-section .section-title { color: var(--bg); }

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 56px;
}

.pain-item {
    background: rgba(244, 242, 236, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 32px;
    position: relative;
    transition: background var(--t-fast);
}

.pain-item:hover {
    background: rgba(244, 242, 236, 0.05);
}

.pain-item__num {
    font-family: var(--font-latin);
    font-size: 48px;
    font-weight: 600;
    font-style: italic;
    color: var(--accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.pain-item__title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 12px;
    line-height: 1.4;
}

.pain-item__text {
    font-size: 13px;
    line-height: 1.9;
    color: rgba(244, 242, 236, 0.55);
}

/* Service Flow */
.flow-section {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 56px;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.flow-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.flow-step:last-child { border-bottom: none; }

.flow-step__num {
    width: 80px;
    height: 80px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-latin);
    font-size: 24px;
    font-weight: 600;
    font-style: italic;
    color: var(--accent);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-alt);
}

.flow-step__body {
    padding-top: 20px;
}

.flow-step__title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.flow-step__text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
    max-width: 640px;
}

/* Benefits / Strengths grid */
.strengths-section {
    padding: var(--section-padding) 0;
    background: var(--bg);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.strength-card {
    background: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    transition: var(--t-base);
}

.strength-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 40, 58, 0.08);
}

.strength-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
}

.strength-card__icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border: 1px solid var(--accent-mid);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.strength-card__icon i {
    font-size: 20px;
    color: var(--accent);
}

.strength-card__title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.strength-card__text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 56px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.3px;
    transition: color var(--t-fast);
}

.faq-question:hover { color: var(--accent); }

.faq-question i {
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform var(--t-base);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 0 24px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
}

.faq-item.open .faq-answer { display: block; }

/* Responsive for service detail pages */
@media (max-width: 1024px) {
    .service-page-intro__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .pain-grid { grid-template-columns: 1fr 1fr; }
    .strengths-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pain-grid { grid-template-columns: 1fr; }
    .flow-steps::before { display: none; }
    .flow-step { grid-template-columns: 60px 1fr; gap: 20px; }
    .flow-step__num { width: 60px; height: 60px; font-size: 20px; }
}

/* ===================================
   Page Loader Overlay
   =================================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg, #f0f3f7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.page-loader__logo {
    font-family: var(--font-latin, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--dark, #1a283a);
    opacity: 0.85;
}

.page-loader__bar {
    width: 120px;
    height: 2px;
    background: var(--border, #c5d0dc);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader__fill {
    height: 100%;
    width: 0%;
    background: var(--accent, #f2a020);
    border-radius: 2px;
    animation: loader-fill 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loader-fill {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader { transition: none; }
    .page-loader__fill { animation: none; width: 100%; }
}
