/* Base Design System */
:root {
    --primary-red: #d31118;
    --primary-red-light: #fbe6e7;
    --primary-blue: #0077b6;
    --primary-blue-light: #e6f2f8;
    --dark-grey: #1a1a24;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 119, 182, 0.15);
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header & Glassmorphism */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-standard);
}

.logo img {
    height: 55px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section with Animated Gradient */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(211, 17, 24, 0.6)), url('画像集/トップ画像.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    font-weight: 400;
    opacity: 0.95;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
    padding: 7rem 10%;
    position: relative;
}

.bg-light {
    background-color: var(--light-grey);
}

h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-grey);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--primary-red);
}

.about-img {
    width: 100%;
    max-width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Representative Message Section */
.message {
    background-color: var(--white); /* Distinct from bg-light */
}

.message-text {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--light-grey);
    padding: 3rem 4rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-blue);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.ceo-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
    flex-shrink: 0; /* Ensures the image doesn't shrink on smaller screens */
}

.message-body {
    flex: 1;
}

.message-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.message-text .signature {
    margin-top: 3rem;
    margin-bottom: 0;
    text-align: right;
    font-size: 1.2rem;
}

.message-text .signature strong {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, transparent 100%);
    transition: var(--transition-standard);
    z-index: -1;
    border-radius: 16px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    height: 100%;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 800;
}

.service-card p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-standard);
}

.service-card:hover .service-link {
    color: var(--primary-red);
    transform: translateX(5px);
}

/* Contact Section (Form) */
.contact-form-container {
    max-width: 800px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.contact-form .required {
    color: var(--primary-red);
    margin-left: 3px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-standard);
    background: #fdfdfd;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
    background: var(--white);
}

.btn-submit {
    width: 200px;
    margin: 2rem auto 0;
    display: block;
    padding: 1rem 3rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-standard);
    box-shadow: 0 10px 20px rgba(211, 17, 24, 0.2);
}

.btn-submit:hover {
    background: var(--dark-grey);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-success-message {
    text-align: center;
    padding: 3rem;
}

.form-success-message i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.form-success-message p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-grey);
}

/* Footer */
.footer {
    background: var(--dark-grey);
    color: var(--white);
    padding: 3rem 10%;
    text-align: center;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-blue);
}

/* Animations (Intersection Observer class) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities for staggered animations */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    section {
        padding: 5rem 5%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }

    .message-text {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .ceo-img {
        width: 240px;
        height: 240px;
    }

    .message-text .signature {
        text-align: right;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .btn-submit {
        width: 100%;
    }
}

/* =========================================
   Sub-page (Service Details) Styles
   ========================================= */

/* Sub-page Hero */
.sub-hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* Account for sticky header */
    position: relative;
    overflow: hidden;
}

/* Background images for different services */
.service-expansion-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/法人進出支援.jpg') center/cover no-repeat; }
.service-app-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/スマホアプリ制作.jpg') center/cover no-repeat; }
.service-web-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/HP制作.jpg') center/cover no-repeat; }
.service-marketing-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/WEBマーケティング.jpg') center/cover no-repeat; }
.service-sunscreen-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/飲む日焼け止め.png') center/cover no-repeat; }
.service-aquarium-hero { background: linear-gradient(rgba(26, 26, 36, 0.7), rgba(0, 119, 182, 0.6)), url('画像集/第7位入賞（ベストスマイル賞）③水槽屋じゅげむ　小澤ひとみ　飲食店　海水.jpg') center/cover no-repeat; }

.sub-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    z-index: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-hero .breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.sub-hero .breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.sub-hero .breadcrumb a:hover {
    text-decoration: underline;
}

/* Content Layout */
.service-detail-section {
    padding: 6rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.detail-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary-blue);
    transition: var(--transition-standard);
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.detail-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Feature List (Flow) */
.flow-container {
    background: var(--light-grey);
    padding: 5rem 5%;
    border-radius: 30px;
    margin-bottom: 6rem;
    text-align: center;
}

.flow-step-list {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.flow-step-item {
    flex: 1;
    min-width: 200px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(211, 17, 24, 0.2);
}

/* CTA */
.sub-cta {
    text-align: center;
    padding: 6rem 10%;
    border-radius: 20px;
    background: var(--primary-blue-light);
}

.btn-contact {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-standard);
    box-shadow: 0 10px 20px rgba(211, 17, 24, 0.2);
}

.btn-contact:hover {
    background: var(--dark-grey);
    transform: translateY(-5px);
}
