:root {
    --primary: #f8d7da;
    /* Soft Pink */
    --primary-light: #fff9fa;
    --primary-dark: #e8aeb4;
    /* Muted Pink */
    --accent: #d1ecf1;
    /* Soft Blue */
    --text: #4a4a4a;
    --text-light: #888;
    --text-muted: #9a9a9a;
    --bg: #ffffff;
    --bg-alt: #fff9fa;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --border: #f5f5f5;
    --shadow-soft: 0 10px 30px rgba(248, 215, 218, 0.2);
    --shadow-medium: 0 20px 50px rgba(232, 174, 180, 0.15);
}

* {
    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;
}

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

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: 0.4s;
    display: flex;
    align-items: center;
}

#header.scrolled {
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

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

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.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)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-dark);
    transition: 0.3s;
}

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

.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);
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- 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.1);
    transition: 8s linear;
    background-image: url('assets/hero.png');
    opacity: 0.8;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text);
}

h1 .highlight {
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    font-size: 1.25em;
    /* Increased size */
    margin: 0 5px;
    /* Added horizontal margin */
}

h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--primary);
    opacity: 0.4;
    z-index: -1;
}

h1 .omoi {
    color: var(--primary-dark);
    /* #e8aeb4 */
}

h1 .kaisha {
    font-size: 0.9em;
    /* 90% */
}

.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(--primary-dark);
    animation: scrollLine 2s infinite;
}

@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;
    }
}

/* --- 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;
}

/* --- 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(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    transition: 0.4s;
}

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

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    color: var(--primary-dark);
}

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

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

.service-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid currentColor;
}

.service-link:hover {
    color: var(--text);
}

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

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;
}

/* --- 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 ease;
    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(--primary-light);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 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.1em;
    line-height: 1.8;
}

/* --- 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);
}

.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.3s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

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

/* 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(30px);
    transition: 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

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

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

    .section {
        padding: 60px 0;
    }

    .nav {
        display: none;
    }

    #header {
        height: 70px;
    }

    h1 {
        font-size: 2.4rem;
    }

    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;
    }
}
