:root {
    /* ロゴ（Ca_logo_gc.png）のグレージュ／モカトーンに合わせた配色 */
    --primary: #b4a696;
    /* Warm Taupe */
    --primary-light: #f8f6f3;
    --primary-dark: #8c7c68;
    /* Deep Mocha */
    --accent: #e9e2d8;
    /* Soft Champagne */
    --text: #3c3a37;
    --text-light: #93897d;
    --text-muted: #b7ad9f;
    --bg: #ffffff;
    --bg-alt: #f8f6f3;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --border: #ece7e0;
    --shadow-soft: 0 10px 30px rgba(140, 124, 104, 0.15);
    --shadow-medium: 0 20px 50px rgba(140, 124, 104, 0.18);
    --brand-gold: #c9aa72;
}

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

html {
    scroll-behavior: initial;
}

body {
    font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: normal;
}

p,
li,
dd,
td {
    text-wrap: pretty;
}

.word-keep {
    white-space: nowrap;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-alt);
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
}

#header.scrolled {
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 24px rgba(140, 124, 104, 0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.logo-img:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(140, 124, 104, 0.32));
}

.email-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

#contact-email {
    font-size: 1.1rem;
    color: var(--text-light);
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    color: var(--text);
}

.nav a:hover {
    color: var(--primary-dark);
}

.nav a:not(.btn-small):not(.web-assist-brand)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-gold);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover::after {
    width: 100%;
}

.web-assist-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #1e2432;
    vertical-align: middle;
}

.web-assist-brand-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.web-assist-gradient-bar {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        #22d3ee 25%,
        #6366f1 50%,
        #ec4899 75%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: webAssistShimmer 3.5s ease-in-out infinite;
}

.web-assist-brand-nav {
    font-size: 0.9rem !important;
    padding: 2px 0;
}

.web-assist-brand-nav .web-assist-gradient-bar {
    height: 2px;
}

.web-assist-brand-card {
    margin-top: 8px;
    font-size: clamp(1.45rem, 2.1vw, 1.75rem);
}

.web-assist-brand:hover {
    color: #1e2432;
}

.web-assist-brand:hover .web-assist-gradient-bar {
    filter: saturate(1.25) brightness(1.08);
}

@keyframes webAssistShimmer {
    0%, 100% {
        background-position: 100% 0;
    }
    50% {
        background-position: 0 0;
    }
}

.btn-small {
    background: var(--primary);
    padding: 8px 25px !important;
    border-radius: 30px;
    color: white !important;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px var(--shadow-soft);
    transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--shadow-medium);
}

/* --- Hero --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.18);
    transition: transform 4s cubic-bezier(0.12, 0.82, 0.22, 1);
    background-image: url('hero.png');
    opacity: 0.85;
    animation: heroZoomOut 4s cubic-bezier(0.12, 0.82, 0.22, 1) forwards;
}

#hero:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 246, 243, 0.94) 100%);
}

/* 静かに呼吸するアンビエントレイヤー */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, rgba(201, 170, 114, 0.17) 0%, rgba(201, 170, 114, 0) 62%);
    opacity: 0;
    animation: ambientBreathe 7s ease-in-out 1.8s infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(760px, 82vw);
    aspect-ratio: 1;
    border: 1px solid rgba(201, 170, 114, 0.24);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.22);
    animation: heroHaloOpen 2.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
}

.hero-content::after {
    content: '';
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 50%;
    width: min(620px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72) 0%, rgba(201, 170, 114, 0.08) 43%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    animation: heroBloomIn 2.2s 0.1s ease-out forwards,
        heroBloomBreathe 6.5s 2.4s ease-in-out infinite;
    pointer-events: none;
}

h1 {
    font-size: clamp(3rem, 7.4vw, 6.5rem);
    font-weight: 500;
    line-height: 1.17;
    letter-spacing: 0.045em;
    margin: 0 auto 20px;
    width: fit-content;
    max-width: 100%;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.82);
    text-align: center;
}

.hero-title-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    white-space: nowrap;
}

.hero-title-line-top {
    transform: translateX(-0.22em);
}

.hero-word {
    display: inline-block;
}

.hero-word-you {
    font-size: 0.61em;
    font-weight: 300;
    opacity: 0;
    animation: heroWordIn 1.45s 0.12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-word-omoi {
    position: relative;
    color: var(--primary-dark);
    font-size: 1.06em;
    font-weight: 600;
    opacity: 0;
    animation: heroOmoiIn 1.7s 0.38s cubic-bezier(0.16, 1.18, 0.3, 1) forwards,
        heroFloatWord 5.2s 2.2s ease-in-out infinite;
}

.hero-word-omoi::after {
    content: '•';
    position: absolute;
    color: var(--brand-gold);
    font-size: 0.13em;
    margin: 0.45em 0 0 0.08em;
    animation: heroDotBlink 2.8s 1.4s ease-in-out infinite;
}

.hero-word-particle {
    font-size: 0.58em;
    font-weight: 300;
    opacity: 0;
    animation: heroParticleIn 1.3s 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line-bottom {
    margin-top: -0.02em;
    animation: heroLineBreathe 6.4s 2.8s ease-in-out infinite;
}

.hero-kanaeru {
    position: relative;
    display: inline-flex;
    color: var(--primary-dark);
    font-weight: 600;
}

.hero-kanaeru > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(1em) rotate(10deg) scale(0.58);
    filter: blur(10px);
    animation: heroLetterPop 1.15s cubic-bezier(0.16, 1.28, 0.3, 1) forwards;
    animation-delay: calc(0.78s + var(--i) * 120ms);
}

.hero-kanaeru::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.03em;
    right: 0.03em;
    bottom: 0.12em;
    height: 0.14em;
    border-radius: 100%;
    background: rgba(201, 170, 114, 0.38);
    opacity: 0;
    transform: scaleX(0) scaleY(0.35) rotate(-1deg);
    transform-origin: left;
    animation: heroDrawLine 1.25s 1.42s cubic-bezier(0.16, 1.18, 0.3, 1) forwards;
}

.hero-word-company {
    margin-left: 0.08em;
    font-size: 0.75em;
    font-weight: 300;
    opacity: 0;
    animation: heroCompanyIn 1.35s 1.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--text-light);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 60px;
    background: var(--brand-gold);
    animation: scrollLine 2s infinite;
}

@keyframes heroZoomOut {
    0% {
        transform: scale(1.18);
    }

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

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

@keyframes ambientBreathe {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.95;
    }
}

@keyframes highlightSweep {
    to {
        transform: scaleX(1);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes heroWordIn {
    from { opacity: 0; transform: translate(-0.7em, 0.5em) scale(0.86); filter: blur(16px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes heroOmoiIn {
    0% { opacity: 0; transform: translateY(0.65em) rotate(-8deg) scale(0.58); filter: blur(20px); }
    68% { opacity: 1; transform: translateY(-0.05em) rotate(1deg) scale(1.035); filter: blur(0); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes heroParticleIn {
    from { opacity: 0; transform: translate(0.65em, 0.4em) scale(0.75); filter: blur(12px); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes heroFloatWord {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.055em); }
}

@keyframes heroDotBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.25); }
}

@keyframes heroLetterPop {
    0% { opacity: 0; transform: translateY(1em) rotate(10deg) scale(0.58); filter: blur(10px); }
    72% { opacity: 1; transform: translateY(-0.08em) rotate(-1deg) scale(1.035); filter: blur(0); }
    to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes heroDrawLine {
    0% { opacity: 0; transform: scaleX(0) scaleY(0.35) rotate(-1deg); }
    65% { opacity: 0.48; transform: scaleX(1.04) scaleY(1.1) rotate(-1deg); }
    to { opacity: 0.38; transform: scaleX(1) scaleY(1) rotate(-1deg); }
}

@keyframes heroCompanyIn {
    from { opacity: 0; transform: translateX(0.85em) scale(0.88); filter: blur(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroHaloOpen {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.22); }
    55% { opacity: 0.48; }
    to { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes heroBloomIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
}

@keyframes heroBloomBreathe {
    0%, 100% { opacity: 0.62; transform: translate(-50%, -50%) scale(0.98); }
    50% { opacity: 0.88; transform: translate(-50%, -50%) scale(1.07); }
}

@keyframes heroLineBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.035em); }
}

/* --- Section Titles --- */
.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title .en {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: var(--brand-gold);
    margin: 20px auto 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.section-title.active h2::after {
    transform: scaleX(1);
}

/* --- About --- */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text .concept {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text p {
    color: var(--text);
    margin-bottom: 25px;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(60, 58, 55, 0.04);
    border: 1px solid var(--border);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px var(--shadow-soft);
    border-color: var(--primary);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-dark);
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .icon {
    color: var(--brand-gold);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text);
    font-size: 0.95rem;
}

/* --- Company --- */
.company-table {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: box-shadow 0.5s ease;
}

.company-table:hover {
    box-shadow: var(--shadow-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
}

tr {
    border-bottom: 1px solid var(--border);
}

th,
td {
    padding: 20px;
    text-align: left;
    vertical-align: top;
}

th {
    width: 250px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

td {
    color: var(--text);
    font-size: 1rem;
}

.text-link {
    color: var(--primary-dark);
    border-bottom: 1px solid rgba(201, 170, 114, 0.45);
    overflow-wrap: anywhere;
}

.text-link:hover {
    color: var(--brand-gold);
    border-bottom-color: currentColor;
}

/* --- News --- */
.news-list {
    max-width: 760px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.news-item time {
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.news-item p {
    color: var(--text-light);
}

/* --- News detail --- */
.news-detail-page {
    padding: 150px 0 90px;
    background: var(--bg);
}

.news-detail {
    max-width: 760px;
    margin: 0 auto;
}

.news-detail-date {
    display: block;
    margin-bottom: 18px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
}

.news-detail h1 {
    margin-bottom: 48px;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.news-detail p {
    margin-bottom: 24px;
}

.news-address-block {
    margin: 32px 0;
    padding: 4px 0 4px 24px;
    border-left: 2px solid var(--brand-gold);
}

.news-address-block h2 {
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 500;
}

.news-address-block address {
    font-style: normal;
    line-height: 1.9;
}

.news-back {
    margin-top: 56px;
}

/* --- Strategy Diagram --- */
.strategy-diagram {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.strategy-node {
    width: 100%;
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px;
}

.strategy-node:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.strategy-node .label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.strategy-node .content {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.05em;
}

.strategy-arrow {
    font-family: serif;
    font-size: 1.5rem;
    color: var(--brand-gold);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: arrowPulse 2.6s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}

/* --- Statement --- */
.statement-section {
    background-color: var(--text);
    color: white;
    padding: 150px 0;
    text-align: center;
}

.statement-content p {
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.8;
    transition: letter-spacing 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.statement-content.active p {
    letter-spacing: 0.12em;
}

/* --- Contact --- */
.contact-section {
    background: var(--bg-alt);
}

.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 40px;
    background: white;
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-box:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.contact-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.contact-box p {
    color: var(--text);
    margin-bottom: 40px;
}

.btn {
    background: var(--primary);
    color: white;
    padding: 15px 50px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 700;
    transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 14px 30px var(--shadow-medium);
}

.email-link {
    display: block;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-direct {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.9;
}

.contact-direct p {
    margin-bottom: 4px;
}

/* --- Footer --- */
#footer {
    padding: 50px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 18px;
}

.footer-legal a {
    color: var(--text-light);
    border-bottom: 1px solid transparent;
}

.footer-legal a:hover {
    color: var(--primary-dark);
    border-bottom-color: currentColor;
}

/* --- Corporate Legal --- */
.legal-page {
    padding: 150px 0 90px;
    background: var(--bg);
}

.legal-document {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px clamp(24px, 5vw, 64px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.legal-document h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0.02em;
}

.legal-document .legal-lead,
.legal-document .legal-updated {
    color: var(--text-light);
}

.legal-document h2 {
    margin: 42px 0 14px;
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.legal-document p,
.legal-document li {
    line-height: 2;
}

.legal-document ul {
    padding-left: 1.4em;
    list-style: disc;
}

.legal-document .legal-updated {
    margin-top: 48px;
    text-align: right;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 140px 0 60px;
    }

    .legal-document {
        padding: 36px 22px;
        border-radius: 20px;
    }
}

/* Company kana / furigana display */
.company-kana {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* Accessibility / SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

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

    .fade-up,
    .hero-bg,
    .hero-overlay::after,
    .hero-content::before,
    .hero-content::after,
    .strategy-arrow,
    .hero-title-line-bottom,
    .hero-word,
    .hero-kanaeru > span,
    .hero-kanaeru::after,
    .scroll-down::after {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 5%;
    }

    .section {
        padding: 60px 0;
    }

    #header {
        height: auto;
        min-height: 86px;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-img {
        height: 44px;
    }

    .nav {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding: 4px 0 8px;
        -webkit-overflow-scrolling: touch;
    }

    .nav ul {
        gap: 12px;
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
    }

    .nav a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 2px;
        white-space: nowrap;
        font-size: 0.78rem;
    }

    .web-assist-brand-nav {
        font-size: 0.78rem !important;
        padding-top: 0;
        padding-bottom: 0;
        justify-content: center;
        align-self: center;
    }

    .btn-small {
        padding: 6px 16px !important;
    }

    h1 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
        letter-spacing: 0.02em;
    }

    .hero-title-line-top {
        transform: translateX(-0.12em);
    }

    th {
        width: 100%;
        display: block;
        padding-bottom: 5px;
    }

    td {
        padding-top: 0;
        display: block;
        width: 100%;
    }

    .strategy-node {
        padding: 20px;
    }

    .strategy-node .content {
        font-size: 1rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .news-detail-page {
        padding: 120px 0 72px;
    }

    .news-detail h1 {
        margin-bottom: 36px;
        font-size: 1.6rem;
    }

    .contact-box {
        padding: 56px 24px;
        border-radius: 24px;
    }
}

/* ALIGENT service card: outbound link + pre-launch status badge (minimal addition) */
.service-card h3 a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

.service-card h3 a:hover,
.service-card h3 a:focus-visible {
    text-decoration-color: var(--primary-dark);
}

.service-card h3,
.service-card .aligent-coming-soon-badge,
.service-card .merupro-launch-badge,
.merupro-cta {
    word-break: keep-all;
}

.aligent-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px auto 0;
    text-align: center;
}

.rim-btn {
    position: relative;
    display: block;
    width: 220px;
    height: 82px;
    max-width: 100%;
    border: 0;
    background: none;
    border-radius: 999px;
    filter: drop-shadow(0 7px 16px rgba(47, 134, 201, 0.16));
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.rim-btn__svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.rim-btn__logo {
    position: absolute;
    inset: 16px 28px;
    display: grid;
    place-items: center;
    padding: 8px 16px;
    background: transparent;
    pointer-events: none;
}

.rim-btn:hover,
.rim-btn:focus-visible {
    filter: brightness(1.04) drop-shadow(0 0 12px rgba(49, 158, 255, 0.48));
    transform: translateY(-2px);
}

.aligent-card-logo {
    display: block;
    width: min(100%, 132px);
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

@media (max-width: 600px) {
    .rim-btn { width: 210px; height: 79px; }
    .aligent-card-logo { width: min(100%, 126px); }
}

.service-card .aligent-coming-soon-badge,
.service-card .merupro-launch-badge {
    display: block;
    margin: 18px 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #2F86C9;
    background: none;
}

.service-card .merupro-launch-badge {
    color: #d98fa3;
}

.service-cta-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.merupro-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    min-height: 46px;
    padding: 11px 20px;
    color: #fff;
    background: linear-gradient(135deg, #e9a6b9 0%, #d97f9a 52%, #c86684 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    box-shadow: 0 9px 22px rgba(200, 102, 132, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    white-space: nowrap;
    transform: translateY(0);
}

.merupro-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -45%;
    width: 28%;
    height: 160%;
    background: rgba(255, 255, 255, 0.72);
    filter: blur(5px);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.merupro-cta:hover,
.merupro-cta:focus-visible {
    color: #fff;
    box-shadow: 0 13px 28px rgba(200, 102, 132, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
}

.merupro-cta:hover::before,
.merupro-cta:focus-visible::before {
    left: 120%;
}

.merupro-cta__arrow {
    font-size: 1.05em;
    transition: transform 0.3s ease;
}

.merupro-cta:hover .merupro-cta__arrow,
.merupro-cta:focus-visible .merupro-cta__arrow {
    transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
    .merupro-cta::before { display: none; }
}
