@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f4f6f8;

    /* Brand Colors */
    --color-primary: #006D77;
    /* Deep Blue / Clean Water */
    --color-secondary: #E63946;
    /* Alert Red / Fire Safety */
    --color-accent: #83C5BE;
    /* Soft Blue / Water Accent */
    --color-dark: #1D3557;
    /* Navy */

    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Roboto', sans-serif;

    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ==========================================================================
   Common Styles
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.section-sub {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--easing);
    box-shadow: 0 4px 15px rgba(0, 109, 119, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 53, 87, 0.4);
}

/* Text Colors */
.text-blue {
    color: var(--color-primary);
}

.text-red {
    color: var(--color-secondary);
}

/* Animation Utils */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    /* More transparent */
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* ==========================================================================
   Service Detail Page Styles
   ========================================================================== */
/* Background set inline per page for specific images */
.service-header {
    background-size: cover;
    background-position: center;
}

.service-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.service-lead {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.service-desc {
    font-size: 1.1rem;
    line-height: 2;
}

/* Workflow Steps */
.workflow-section {
    max-width: 800px;
    margin: 0 auto;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 5px solid var(--color-primary);
    display: flex;
    flex-direction: column;
}

/* Image inside step */
.step-img {
    margin-top: 15px;
    width: 60%; /* 画像を少し小さくする */
    margin-left: auto;
    margin-right: auto;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.step-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Arrow connecting steps */
.step-item:not(:last-child)::after {
    content: '▼';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    z-index: 1;
}

.step-num {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-desc {
    font-size: 1rem;
    line-height: 1.8;
}

.contact-form button {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Message Page Styles
   ========================================================================== */
.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    color: #fff;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-sub {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.message-page-content {
    background: #fff;
    padding: 80px 0;
}

.message-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-lead {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 2;
    color: var(--color-primary);
}

.message-text {
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 30px;
}

.message-signature {
    margin-top: 60px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}

.btn-readmore {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

.btn-readmore:hover {
    background: var(--color-primary);
    color: #fff;
}

.back-link {
    text-align: center;
    padding-bottom: 60px;
}

.btn-secondary {
    color: var(--color-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--color-dark);
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.btn-secondary:hover {
    opacity: 0.7;
}

.concept-summary {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.8;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark);
}

.nav .btn-contact {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
}

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu ul {
    text-align: center;
}

.mobile-menu li {
    margin: 20px 0;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* White background */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Fallback background if image is missing */
/* Fallback background removed as image is now present */
.hero-bg::before {
    display: none;
}

/* Layout Updates for Giant iPad */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    /* Full height */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Remove side-by-side specific constraints to allow full centered iPad */
@media (min-width: 992px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
    }
}

/* iPad Frame Styles - Silver & Large */
.ipad-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    /* Use 'height: auto' and aspect-ratio to prevent cutoff, or constrain height */
    aspect-ratio: 16/10;
    max-height: 85vh;
    margin: 0 auto;
}

.ipad-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    border-radius: 20px;
    border: 1px solid #aaa;
    box-shadow:
        0 0 0 2px #dcdcdc,
        inset 0 0 20px rgba(0, 0, 0, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 10px;
    overflow: hidden;
}

.ipad-camera {
    display: none;
}

.ipad-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Content (Text & Logo inside iPad) */
.hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay for brighter images */
    color: #fff;
    padding: 20px;
    padding-top: 40px;
    /* Reduced to move content up */
}

.hero-logo-box {
    margin-bottom: 2rem;
    /* Reduced margin to pull up text */
    width: 300px;
    /* Larger logo */
}

.hero-logo-box img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.hero-text-area {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    /* Stronger shadow */
    margin-bottom: 20px;
    /* Added slight clearance from bottom if needed */
}

.hero-sub {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    /* Slightly smaller to fit inside */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    /* Reduced to pull up the text below */
    letter-spacing: 0.05em;
}

.hero-title .text-blue {
    color: #4cd4ff; /* より明るい水色にして視認性を向上 */
    text-shadow: 0 0 10px rgba(76, 212, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-title .text-red {
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.4), 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Responsive adjustments for iPad internal content */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .hero-sub {
        font-size: 0.82rem;
        margin-bottom: 10px;
        white-space: nowrap;
    }

    .hero-logo-box {
        width: 90px;
        margin-bottom: 0.2rem; /* ロゴを下に下げるためにマージンを減らす */
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-text-area {
        margin-bottom: 0;
    }

    .ipad-container {
        aspect-ratio: 9 / 16;
        width: 90vw;
        max-height: 85vh;
    }

    .ipad-frame {
        border-radius: 30px;
    }

    .hero-overlay-content {
        justify-content: flex-end;
        padding-bottom: 20px;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    }

    .slide:nth-child(1) img {
        object-position: 75% center;
        /* Push the image to show the subject on the right side in the center for mobile */
    }

    .slide:nth-child(2) img,
    .slide:nth-child(3) img {
        object-position: center center;
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Concept
   ========================================================================== */
.concept {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0) 80%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.concept-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.concept-text p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 2.2;
}

/* ==========================================================================
   Service
   ========================================================================== */
.service {
    background-color: var(--bg-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background: #fff;
    /* padding: 40px; Removed padding from container */
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--easing);
    text-align: center;
    overflow: hidden;
    /* For image corners */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    background-color: #ddd;
    /* Placeholder color */
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.05);
}

.card-body {
    padding: 30px;
}

/* Icons removed in HTML, but keeping CSS if needed later or removing to clean up */
/* .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
} */

/* Add simplified icons via CSS for now */
.icon-water::after {
    content: '💧';
}

.icon-fire::after {
    content: '🔥';
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-weight: 700;
}

.service-highlight {
    grid-column: 1 / -1;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/service-highlight.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 60px;
    /* Increased padding for better visibility */
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-highlight h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.service-highlight p {
    font-size: 1.2rem;
    line-height: 2;
}

/* ==========================================================================
   Recruit
   ========================================================================== */
.recruit {
    position: relative;
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

.recruit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(29, 53, 87, 0.6), rgba(29, 53, 87, 0.6)), url('../images/recruit-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}

.recruit-catch {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
}

.recruit-body p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.recruit-footer {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 40px 0;
    color: var(--color-accent);
}

/* ==========================================================================
   Company
   ========================================================================== */
.company-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.company-item {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.company-item dt {
    width: 200px;
    font-weight: 700;
    color: var(--color-primary);
}

.company-item dd {
    flex: 1;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    text-align: center;
    background-color: var(--bg-gray);
}

.contact-box {
    background: #fff;
    max-width: 600px;
    margin: 40px auto 0;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-mail-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.contact-mail-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-inner {
        padding: 0 15px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .company-item {
        flex-direction: column;
    }

    .company-item dt {
        width: 100%;
        margin-bottom: 5px;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .contact-mail-link {
        font-size: 1.5rem;
        word-break: break-all;
    }

    .sp-only {
        display: block;
    }

    .pc-br {
        display: none;
    }

    .service-highlight {
        min-height: 450px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 40px 20px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.9) 100%), url('../images/service-highlight.jpg');
        background-size: cover;
        background-position: center top;
    }
}