/* CSS Reset & Variables */
:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --secondary-color: #e6f0fa;
    --accent-color: #f0ad4e;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #343a40;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #f0fbfc 0%, #ffffff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Glassmorphism Cards/Sections */
.bg-light,
.bg-dark,
.section:not(.hero):not(.message):not(.contact),
.merit-item,
.faq-item,
.company-table th {
    background: rgba(255, 255, 255, 0.9) !important;
    /* Glass effect */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
}

.bg-dark {
    background: rgba(52, 58, 64, 0.95) !important;
    color: var(--white);
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Typography */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.en-title {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.jp-title {
    font-size: 2rem;
    font-weight: 700;
}

/* Header */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo a {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: handwriting 3s ease-out forwards;
    vertical-align: bottom;
    /* Adjust align */
    padding-right: 5px;
    /* Prevent chop off */
}

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

.nav-desktop a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn-header {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    transition: var(--transition);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    /* JS will toggle this */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../assets/images/hero_new.jpg') !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    animation: heroPanZoom 30s infinite alternate ease-in-out;
}

@keyframes heroPanZoom {
    0% {
        background-position: center bottom;
        background-size: 110%;
    }

    100% {
        background-position: center top;
        background-size: 130%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* グラデーションによる虹色問題を解決 */
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(240, 173, 78, 0.4);
    transition: var(--transition);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 173, 78, 0.6);
}

/* News Section */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-list li {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    transition: var(--transition);
}

.news-list li:hover {
    background: #f9f9f9;
    padding-left: 10px;
}

.news-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.news-list .date {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-list .title {
    flex: 1;
    font-weight: 500;
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--text-color);
    padding: 10px 30px;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--white);
}

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

.problem-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.problem-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Problem List Layout */
.problem-content-wrapper {
    background: var(--white);
    padding: 60px 40px;
    border: 3px dotted #bdc3c7;
    /* Ennui/uncertain atmosphere */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.problem-list {
    list-style: none;
    max-width: 600px;
}

.problem-item {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 2em;
    position: relative;
    line-height: 1.6;
}

.problem-item::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.problem-shared-icon {
    position: absolute;
    bottom: -10px;
    right: 10px;
    width: 180px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Responsive for Problem */
@media (max-width: 768px) {
    .problem-content-wrapper {
        padding-bottom: 140px;
        /* Space for icon */
    }

    .problem-shared-icon {
        width: 140px;
        bottom: 0;
        right: 0;
    }
}

/* Solution Steps */
.solution-steps {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    border-top: 3px solid var(--primary-color);
    transform: translateY(-5px);
}

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

.arrow-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.arrow-link::after {
    content: ' →';
    transition: var(--transition);
}

.service-card:hover .arrow-link::after {
    padding-left: 5px;
}

/* Merit List */
.merit-list {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.merit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8fbff;
    padding: 20px;
    border-radius: var(--border-radius);
}

.check-icon {
    color: var(--white);
    background: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Flow Steps */
.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    flex: 1;
    min-width: 250px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.flow-arrow {
    width: 30px;
    height: 30px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    transform: rotate(45deg);
    display: none;
    /* Hidden by default on mobile/wrap, shown on desktop via media query */
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-question {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Message */
.section.message {
    background: #fdfdfd;
    /* 上品な白基調 */
    color: var(--text-color);
    padding: 100px 0;
    overflow: hidden;
}

.message-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 左カラム：写真 (ひき表示) */
.message-image-col {
    flex: 0 0 45%;
    position: relative;
    padding-right: 20px;
    /* 余白を減らして中央に寄せる */
}

.message-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.message-ceo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* 拡大せず全体を表示 */
}

/* 右カラム：テキスト */
.message-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 80px 0;
    text-align: center;
}

.message-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 800;
    color: rgba(0, 56, 120, 0.03);
    letter-spacing: 0.8rem;
    /* 背景のSSの間隔を調整 */
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    text-align: center;
    width: 100%;
}

.message-heading {
    position: relative;
    z-index: 2;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.message-divider {
    display: none;
}

.message-body p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 24px;
}

.highlight-underline {
    display: inline;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding: 0 1px;
}

.message-quote {
    display: none;
    /* 引用枠は使用しないため非表示 */
}

.message-signature {
    margin-top: 50px;
    text-align: right;
}

.message-company {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.message-rep {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* fade-in settings */
.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive: メッセージセクション */
@media (max-width: 900px) {
    .message-inner {
        flex-direction: column;
        padding: 0 20px;
    }

    .message-image-col {
        padding-right: 0;
        margin-bottom: 40px;
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .message-text-col {
        width: 100%;
    }

    .message-heading {
        font-size: 1.8rem;
    }
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

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

.company-table th {
    width: 30%;
    background: #f9f9f9;
}

/* Contact */
.contact-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--white);
    color: var(--text-color);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #bbb;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #222;
    padding-top: 30px;
    width: 100%;
    text-align: center;
}

/* Animations */
@keyframes handwriting {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (min-width: 768px) {
    .flow-arrow {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-desktop,
    .mobile-menu-btn {
        display: none;
        /* Logic handled by JS for mobile menu btn but default hid */
    }

    .mobile-menu-btn {
        display: block;
    }

    .sp-only {
        display: inline;
        /* Line break control */
    }

    .header-container {
        padding: 0 15px;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        display: none;
    }
}