/* style.css */
:root {
    --primary-color: #0b2e59; /* 深いプレミアムブルー */
    --primary-light: #1e5ba3;
    --secondary-color: #0ea5e9; /* 鮮やかなシアン・ブルー */
    --accent-color: #f59e0b; /* アクセント用ゴールド */
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #e0eaf5 100%);
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(11, 46, 89, 0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.02em;
}

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

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

/* Header - Glassmorphism */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 112px;
}

.logo-link {
    position: relative;
    display: block;
    width: 128px;
    height: 96px;
    overflow: hidden;
    flex: 0 0 auto;
}

.logo-img {
    position: absolute;
    width: 164.0625%;
    height: auto;
    max-width: none;
    left: -32.03125%;
    top: -52.083333%;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav a:not(.btn-contact):hover::after {
    width: 100%;
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(11, 46, 89, 0.2);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 46, 89, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at top right, #e0eaf5, #f0f4f8 60%, #ffffff);
    text-align: center;
    padding: 172px 24px 150px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
}

.hero-content h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.hero-content p {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-content .hero-eyebrow {
    color: var(--primary-light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.hero-content .hero-description { line-height: 1.9; }
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin-top: 36px;
}
.hero-consult { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; }
.hero-services { color: var(--primary-color); font-weight: 700; padding: 12px 4px; }
.hero-services:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 5px; }
html { scroll-padding-top: 136px; }
.text-center { text-align: center; }

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,165.3C960,149,1056,171,1152,181.3C1248,192,1344,192,1392,192L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    z-index: 1;
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

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

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.text-white {
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
}

.text-white .section-title {
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    font-size: 18px;
    font-weight: 500;
}

/* Mission Box */
.mission-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
}

.mission-catch {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-family: 'Noto Serif JP', serif;
    line-height: 1.5;
}

.mission-text {
    font-size: 16px;
    line-height: 1.8;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(11,46,89,0.1);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card h3 span {
    display: block;
    font-size: 14px;
    color: var(--primary-light);
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* Company */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.company-table th, .company-table td {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.company-table tr:last-child th, .company-table tr:last-child td {
    border-bottom: none;
}

.company-table th {
    width: 35%;
    color: var(--primary-color);
    font-weight: 600;
    background: #f8fafc;
}

/* Contact */
.btn-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    padding: 16px 48px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.btn-email:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: var(--primary-light);
}

/* Footer */
.contact-builder { max-width: 760px; margin: 36px auto 0; padding: 36px; text-align: left; color: var(--text-main); background: var(--white); border-radius: 20px; box-shadow: var(--glass-shadow); }
.contact-topics { border: 0; min-width: 0; }
.contact-topics legend, .contact-fields label, .contact-message { font-weight: 600; }
.contact-optional { display: inline-block; color: var(--text-light); font-size: 12px; font-weight: 400; margin-left: 6px; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.contact-options label { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 12px; border: 1px solid #d5dfeb; border-radius: 10px; background: var(--bg-light); cursor: pointer; }
.contact-options label:has(input:checked) { border-color: var(--primary-light); background: #edf5fd; }
.contact-options input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--primary-color); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.contact-builder input[type="text"], .contact-builder textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid #b8c8d9; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text-main); background: var(--white); }
.contact-builder input:focus-visible, .contact-builder textarea:focus-visible, .contact-builder button:focus-visible, .contact-builder summary:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }
.contact-builder textarea { resize: vertical; }
.contact-message { display: block; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.contact-actions a, .contact-actions button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; font: inherit; font-weight: 600; text-align: center; }
.contact-actions button { padding: 10px 16px; background: transparent; border: 1px solid #b8c8d9; color: var(--primary-color); border-radius: 30px; cursor: pointer; }
.contact-note { margin-top: 16px; color: #526174; font-size: 14px; font-weight: 400; }
.contact-builder details { margin-top: 20px; }
.contact-builder summary { padding: 10px 0; color: var(--primary-color); cursor: pointer; }
.contact-draft-label { display: block; margin-top: 12px; }
.contact-address { margin: 24px auto 0; overflow-wrap: anywhere; }
.contact-address a { text-decoration: underline; text-underline-offset: 4px; }

.footer {
    text-align: center;
    padding: 30px 0;
    background-color: #041833;
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Responsive */
@media (max-width: 960px) {
    .nav ul { gap: 20px; }
}
@media (max-width: 768px) {
    .contact-builder { padding: 24px 18px; }
    .contact-options, .contact-fields { grid-template-columns: 1fr; }
    .contact-options { gap: 10px; }
    .contact-fields { gap: 18px; }
    .contact-optional { margin-left: 0; }
    .contact-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .header .container { height: 88px; gap: 12px; }
    .logo-link { width: 96px; height: 72px; }
    .nav ul { display: flex; }
    .nav li:not(:last-child) { display: none; }
    .nav .btn-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; font-size: 13px; }
    html { scroll-padding-top: 108px; }
    .hero { padding: 132px 20px 112px; }
    .hero::before { width: 180px; height: 180px; }
    .hero-content h1 { font-size: clamp(28px, 6.5vw, 36px); line-height: 1.6; }
    .hero-content .hero-eyebrow { font-size: 13px; }
    .hero-content .hero-description { font-size: 16px; text-align: left; max-width: 34em; margin: 0 auto; }
    .desktop-break { display: none; }
    .hero-actions { flex-direction: column; gap: 10px; margin-top: 28px; }
    .hero-consult { justify-content: center; width: 100%; max-width: 320px; }
    .wave { height: 90px; }
    .section { padding: 64px 0; }
    .container { padding: 0 20px; }
    .section-title { font-size: 28px; margin-bottom: 32px; }
    .section-subtitle { font-size: 16px; margin-bottom: 28px; }
    .mission-box { padding: 28px 20px; border-radius: 16px; }
    .mission-catch { font-size: 22px; margin-bottom: 24px; }
    .mission-text { overflow-wrap: anywhere; }
    .service-card { padding: 28px 22px; }
    .service-card h3 { font-size: 20px; }
    .service-card h3 span { overflow-wrap: anywhere; }
    .service-icon { font-size: 38px; margin-bottom: 16px; }
    .btn-email { font-size: 14px; padding: 16px; margin-top: 16px; border-radius: 20px; }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fade-in-up { opacity: 1; transform: none; }
}
