@charset "UTF-8";

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #ffffff;
}

/* ★カラー設定★ */
:root {
    --cta-red: #D02324;
    --cta-red-hover: #a81c1d;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --service-green: #27ae60; 
    --cta-green-hover: #2f9259;
    --border-color: #eaeaea;
    --bg-light: #f9f9f9;
}

/* --- Common Utility --- */
.section-border {
    border-bottom: 1px solid var(--border-color);
}

/* =================================================================
   Header (Fixed & Logic)
   ================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.4s ease;
}

header.header-visible {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

/* --- ロゴの制御 --- */
.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s ease;
}

header.header-visible .header-logo-link {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-logo-img {
    height: 36px; 
    width: auto;
    display: block;
}

/* --- モバイルメニュートグル --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- ナビゲーション --- */
nav {
    display: flex;
    gap: 30px;
    align-items: center; 
    margin-right: 30px; 
}

nav a, .dropdown-trigger {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    display: flex; 
    align-items: center;
    cursor: pointer;
}

nav a:hover, .dropdown-trigger:hover {
    color: var(--cta-red);
}

/* ドロップダウンメニュー */
.nav-item-dropdown {
    position: relative;
    display: flex;        
    align-items: center;  
    height: 100%;
}

.nav-item-dropdown::after {
    content: '';
    position: absolute;
    bottom: -20px; 
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.arrow-down {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: rotate(45deg) translateY(-2px); 
    margin-left: 8px;
    transition: all 0.3s ease;
}

.nav-item-dropdown:hover .arrow-down {
    border-color: var(--cta-red);
    transform: rotate(225deg) translateY(-2px); 
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(20px); 
    background-color: #ffffff;
    min-width: 240px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 200;
    border: 1px solid #eee;
    margin-top: 10px; 
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #444;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    white-space: nowrap;
    border-left: 3px solid transparent; 
}

.dropdown-menu a:hover {
    background-color: #fafafa;
    color: var(--service-green);
    border-left-color: var(--service-green);
}

/* ナビゲーション内のボタン */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    padding: 10px 20px;
    border: 1px solid var(--service-green);
    color: var(--service-green);
    background: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #fafff5;
    color: var(--service-green);
}

.btn-solid {
    padding: 10px 20px;
    background: var(--service-green);
    color: white;
    border: 1px solid var(--service-green);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-solid:hover {
    background: var(--cta-green-hover);
    color: white;
}

/* =================================================================
   Hero Section
   ================================================================= */
.hero {
    background: #ffffff;
    padding: 40px 80px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px; 
    min-height: 80vh;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
}

.hero-content {
    flex: 1;
    max-width: 550px;
    position: relative;
    z-index: 2;
}

.hero-logo-img {
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
    display: block;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.4;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--text-gray);
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 110%;
    max-width: 600px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.05));
}

/* =================================================================
   Service Section
   ================================================================= */
.service-professional-section {
    padding: 120px 80px;
    background: #ffffff;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header-styled {
    margin-bottom: 80px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header-styled h2 { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 15px;
    color: #1a1a1a; 
    line-height: 1.2;
}

.header-underline {
    width: 60px;
    height: 3px;
    background-color: var(--service-green);
    margin-bottom: 15px;
}

.header-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--service-green);
    letter-spacing: 1.5px;
    text-transform: uppercase; 
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; 
    margin-top: 40px;
}

.service-card {
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea; 
    padding: 30px 20px 40px; 
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    background: #fcfcfc;
}

.card-content {
    margin-bottom: 30px;
}

.en-category {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.service-card:hover .en-category {
    color: var(--service-green);
    transition: color 0.3s;
}

.jp-title {
    font-size: 22px; 
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
}

.card-arrow-container {
    width: 100%;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center; 
}

.arrow-line {
    position: relative;
    width: 30px; 
    height: 1px;
    background-color: #ccc;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 1px solid #ccc;
    border-right: 1px solid #ccc;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .arrow-line {
    width: 100%;
    background-color: var(--service-green);
}

.service-card:hover .arrow-line::after {
    border-color: var(--service-green);
    right: 0; 
}

/* =================================================================
   Why FiNDER? (Merit Card Style)
   ================================================================= */
.merit-section { 
    padding: 120px 80px; 
    background: #ffffff; 
    max-width: 1280px; 
    margin: 0 auto;
}

.merit-card-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1100px; 
    margin: 40px auto 0;
}

.merit-card {
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 0; 
    border: 1px solid #eaeaea; 
    border-top: 4px solid var(--service-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.merit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #eaeaea; 
    border-top-color: var(--service-green);
}

.merit-card h3 {
    font-size: 14px; 
    margin-bottom: 15px; 
    color: #999; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-sub-jp {
    font-size: 20px; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-desc {
    font-size: 14px; 
    color: #666; 
    margin-bottom: 0; 
    line-height: 1.8;
}

/* --- Scroll Animation --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact --- */
.contact-section { 
    padding: 100px 80px; 
    background: #ffffff; 
    text-align: center; 
    scroll-margin-top: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.contact-section h2 { 
    font-size: 28px; 
    font-weight: 600; 
    margin-bottom: 15px; 
    color: #1a1a1a; 
}

.contact-section p { 
    font-size: 14px; 
    color: #555; 
    margin-bottom: 30px; 
}

.contact-button { 
    display: inline-block; 
    text-decoration: none; 
    background: #27ae60; 
    color: white; 
    padding: 14px 40px; 
    border: none; 
    border-radius: 4px; 
    font-size: 15px; 
    font-weight: 500; 
    cursor: pointer; 
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3); 
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-button:hover { 
    background: #219150; 
    color: white; 
}

/* --- Company --- */
.company-section {
    padding: 120px 80px;
    background: #ffffff; 
    scroll-margin-top: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.company-minimal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.company-data-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    border-top: 1px solid var(--border-color); 
}

.data-row {
    display: grid;
    grid-template-columns: 200px 1fr; 
    gap: 40px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
}

.data-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--service-green);
    letter-spacing: 1px;
}

.data-value {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    margin-bottom: 5px;
    position: relative;
}

/* --- Footer --- */
footer {
    background: #ffffff; 
    color: #333;
    padding: 60px 80px 30px;
    text-align: left; 
    border-top: 1px solid var(--border-color);
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 150px; 
    height: auto;
    display: block;
}

.footer-links {
    display: flex;
    flex-direction: row; 
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap; 
}

.footer-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid #f5f5f5;
    padding-top: 30px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    font-size: 12px;
    color: #888;
}

.copyright {
    color: #aaa;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white; 
    color: var(--service-green);
    border: 2px solid var(--service-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--service-green);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(39, 174, 96, 0.3);
}

.arrow-up {
    border: solid currentColor; 
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(-135deg);
    margin-top: 4px; 
}

/* =================================================================
   Responsive Styles
   ================================================================= */
@media (max-width: 1024px) {
    header, .hero, .service-professional-section, .merit-section, .contact-section, .company-section, footer {
        padding-left: 40px; 
        padding-right: 40px;
    }
    .hero-content h1 { 
        font-size: 36px; 
    }
}

@media (max-width: 900px) {
    .merit-card-grid {
        grid-template-columns: 1fr;
    }
    .data-row {
        grid-template-columns: 1fr; 
        gap: 10px;
        padding: 20px 0;
    }
    .data-label { 
        font-size: 14px; 
        margin-bottom: 5px; 
    }
}

@media (max-width: 768px) {
    #hero-canvas {
        display: none;
    }
    
    header {
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    header.header-visible {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .header-logo-link {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
        z-index: 1001;
        max-width: calc(100% - 60px);
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* メニュー展開時にロゴを非表示 */
    header.menu-open .header-logo-link {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .header-logo-img { 
        height: 28px; 
    }
    
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 1005;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        margin: 0;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav > a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        color: var(--text-dark);
    }
    
    nav > a:hover {
        color: var(--cta-red);
    }
    
    .nav-item-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }
    
    .nav-item-dropdown::after {
        display: none;
    }
    
    .dropdown-trigger {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        justify-content: space-between;
        color: var(--text-dark);
    }
    
    .dropdown-trigger:hover {
        color: var(--text-dark);
    }
    
    .nav-item-dropdown.mobile-open .arrow-down {
        transform: rotate(225deg) translateY(2px);
        border-color: var(--service-green);
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        width: 100%;
        min-width: 100%;
        background: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .nav-item-dropdown.mobile-open .dropdown-menu {
        max-height: 500px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 13px;
        border-left: none !important;
        border-bottom: 1px solid #eee;
        white-space: normal;
        word-break: break-word;
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }
    
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-buttons .btn-outline,
    .nav-buttons .btn-solid {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        display: block;
    }
    
    .nav-buttons .btn-outline:hover,
    .nav-buttons .btn-solid:hover {
        color: var(--service-green);
    }
    
    .nav-buttons .btn-solid:hover {
        color: white;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .hero-content { 
        align-items: center; 
        max-width: 100%; 
    }
    
    .hero-logo-img { 
        margin: 0 auto 20px; 
        max-width: 220px;
    } 
    
    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .hero-image {
        display: none;
    }
    
    .service-professional-section {
        padding: 60px 20px;
    }
    
    .section-header-styled {
        margin-bottom: 50px;
    }
    
    .section-header-styled h2 {
        font-size: 28px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 25px 0 30px;
        min-height: auto;
        border: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .jp-title { 
        font-size: 20px; 
    }
    
    .service-desc {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .merit-section {
        padding: 60px 20px;
    }
    
    .merit-card {
        padding: 30px 20px;
    }
    
    .card-sub-jp {
        font-size: 18px;
    }
    
    .card-desc {
        font-size: 13px;
    }
    
    .contact-section {
        padding: 60px 20px;
    }
    
    .contact-section h2 {
        font-size: 22px;
        line-height: 1.5;
    }
    
    .contact-button {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .company-section {
        padding: 60px 20px;
    }
    
    .data-value {
        font-size: 15px;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content { 
        align-items: center; 
        text-align: center; 
    }
    
    .footer-logo {
        width: 130px;
    }
    
    .footer-links { 
        justify-content: center;
        gap: 20px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-bottom { 
        justify-content: center; 
    }
    
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .section-header-styled h2 {
        font-size: 24px;
    }
    
    .jp-title {
        font-size: 18px;
    }
    
    .contact-section h2 {
        font-size: 20px;
    }
}