/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.7;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #5eb3d6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 81px;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #e5e5e5;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 40px;
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ========================================
   First View
   ======================================== */

.fv {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-image: url('../images/office-workspace-new.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 150px;
}

.fv .container {
    max-width: 100%;
    padding-left: 80px;
    padding-right: 40px;
    margin: 0;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 35, 70, 0.88) 0%, rgba(15, 35, 70, 0.65) 45%, rgba(15, 35, 70, 0.25) 100%);
}

.fv-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: 0;
}

.fv-main-catch {
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HiraMinProN-W3', 'HGS明朝E', 'MS P明朝', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
}

.fv-sub-catch {
    font-family: 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'HiraMinProN-W3', 'HGS明朝E', 'MS P明朝', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 120px;
    opacity: 0.95;
}

.fv-english {
    font-family: 'Times New Roman', Times, serif;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.02em;
    opacity: 0.95;
    white-space: nowrap;
}

.fv-english .number-one {
    font-family: 'Times New Roman', Times, serif;
    font-size: 5rem;
    font-weight: 700;
    vertical-align: baseline;
}

@media (max-width: 768px) {
    .fv {
        min-height: 500px;
        padding-top: 120px;
    }
    
    .fv .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .fv-overlay {
        background: linear-gradient(to bottom, rgba(15, 35, 70, 0.88) 0%, rgba(15, 35, 70, 0.75) 100%);
    }
    
    .fv-content {
        max-width: 100%;
    }
    
    .fv-main-catch {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .fv-sub-catch {
        font-size: 0.85rem;
        margin-bottom: 60px;
    }
    
    .fv-sub-catch br {
        display: none;
    }
    
    .fv-english {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .fv-english .number-one {
        font-size: 2.8rem;
        font-weight: 700;
    }
}

/* ========================================
   Logo Carousel
   ======================================== */

.logo-carousel {
    background-color: #fafafa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 0;
    overflow: hidden;
}

.logo-track {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    white-space: nowrap;
}

.logo-item img {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-item img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 30px 0;
    }
    
    .logo-track {
        gap: 60px;
    }
    
    .logo-item {
        font-size: 1rem;
    }
}

/* ========================================
   Section Titles
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title-en {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 50px;
    }
}

/* ========================================
   Mission / Vision / Value
   ======================================== */

.mvv {
    background-color: #fafafa;
}

.mvv-item {
    margin-bottom: 100px;
}

.mvv-item:last-child {
    margin-bottom: 0;
}

.mvv-title {
    font-size: 2rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mvv-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
}

.mvv-content {
    max-width: 800px;
    margin: 0 auto;
}

.mvv-catch {
    font-size: 1.5rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.8;
}

.mvv-text {
    font-size: 1rem;
    line-height: 2;
    color: #555;
}

.value-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.value-item {
    padding: 30px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5eb3d6 0%, #4a9ec4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: #fff;
}

.value-number {
    font-size: 2rem;
    font-weight: 300;
    color: #5eb3d6;
    margin-bottom: 15px;
}

.value-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 10px;
}

.value-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 768px) {
    .mvv-item {
        margin-bottom: 60px;
    }
    
    .mvv-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mvv-catch {
        font-size: 1.2rem;
    }
    
    .value-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ========================================
   Services
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    background: linear-gradient(135deg, #5eb3d6 0%, #4a9ec4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

.service-number {
    font-size: 1.5rem;
    font-weight: 300;
    color: #5eb3d6;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 15px;
}

.service-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
}

/* ========================================
   CEO Message
   ======================================== */

.ceo-message {
    background-color: #fafafa;
}

.ceo-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.ceo-content {
    position: relative;
    min-height: 600px;
    background-image: url('../images/ceo-bw.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
}

.ceo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0) 100%);
}

.ceo-text-overlay {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px;
}

.ceo-paragraph {
    font-size: 0.95rem;
    line-height: 2;
    color: #333;
    margin-bottom: 25px;
}

.ceo-paragraph:last-of-type {
    margin-bottom: 40px;
}

.ceo-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.ceo-role {
    font-size: 0.85rem;
    color: #666;
}

.ceo-name-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #222;
}

@media (max-width: 768px) {
    .ceo-content {
        min-height: auto;
        background-position: top center;
    }
    
    .ceo-content::before {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    }
    
    .ceo-text-overlay {
        padding: 40px 30px;
        max-width: 100%;
    }
    
    .ceo-paragraph {
        font-size: 0.9rem;
    }
}

/* ========================================
   Company Info
   ======================================== */

.company-table {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.company-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #e5e5e5;
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    padding: 25px 30px;
    font-weight: 500;
    color: #222;
    background-color: #f5f5f5;
    border-right: 1px solid #e5e5e5;
}

.company-value {
    padding: 25px 30px;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .company-row {
        grid-template-columns: 1fr;
    }
    
    .company-label {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 20px;
    }
    
    .company-value {
        padding: 20px;
    }
}

/* ========================================
   Contact Form
   ======================================== */

.contact-section {
    background-color: #fafafa;
}

.section-title-contact {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle-contact {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.required {
    color: #e85656;
    font-size: 0.85rem;
    margin-left: 5px;
}

.form-input,
.form-textarea {
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #666;
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #333;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 18px 80px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .section-title-contact {
        font-size: 2rem;
    }
    
    .submit-button {
        padding: 16px 60px;
        font-size: 1rem;
    }
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0;
}

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

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

.footer-links {
    margin: 15px 0 5px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* ========================================
   Contact Button (Fixed)
   ======================================== */

.contact-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5eb3d6 0%, #4a9ec4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(94, 179, 214, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(94, 179, 214, 0.6);
}

.contact-button i {
    font-size: 1.8rem;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .contact-button i {
        font-size: 1.5rem;
    }
}

/* ========================================
   Animations
   ======================================== */

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

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