/*
Theme Name: Upload Inc Theme
Author: Upload Inc.
Description: Corporate Site Theme with Wave Animation
Version: 1.0
*/

@charset "UTF-8";

/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --c-text: #333;
    --c-bg: #fff;
    --c-accent: #B22222; 
    --c-sub: #f4f4f4;
    --c-dark: #111;
    
    --f-serif: 'Shippori Mincho', serif;
    --f-sans: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
    font-family: var(--f-sans);
    color: var(--c-text);
    line-height: 1.8;
    background-color: #fff;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

.text-accent {
    color: var(--c-accent);
}

.hero .text-accent {
    color: #ff6b6b;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   Wave Animation Canvas
   ========================================= */
#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    opacity: 0.5;
    background: transparent;
}

/* =========================================
   Opening Overlay
   ========================================= */
#opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ea9198;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation-name: forceOpen;
    animation-duration: 1.0s;
    animation-delay: 3.0s;
    animation-fill-mode: forwards;
    pointer-events: none;
}

@keyframes forceOpen {
    0% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

#opening-logo {
    width: 300px;
    margin-bottom: 2rem;
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* =========================================
   Header
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.logo-header {
    width: 60px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: #333;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--c-text);
    transition: 0.3s;
}

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

.btn-contact {
    background: var(--c-dark);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.btn-contact:hover {
    background: var(--c-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--c-dark);
    margin: 6px 0;
    transition: 0.3s;
}

/* =========================================
   Hero (Index)
   ========================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #111;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ▼▼▼ パス修正済み (../images -> images) ▼▼▼ */
    background-image: url('images/main.jpeg'); 
    background-position: center;
    background-size: cover;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    color: #fff;
}

.hero-copy {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* =========================================
   Sections General
   ========================================= */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--f-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* =========================================
   Sections Backgrounds
   ========================================= */
#concept, #service, #company, .service-intro, .service-detail-list, #flow {
    background-color: rgba(255, 255, 255, 0.9);
}

#strength {
    background-color: rgba(244, 244, 244, 0.9);
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Grids */
.strength-grid, .service-list, .company-layout {
    display: grid;
    gap: 2rem;
}
.strength-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.company-layout { grid-template-columns: 1fr 1fr; align-items: start; }

/* Cards & Items */
.strength-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.card-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.strength-card:hover .card-img-thumb img { transform: scale(1.05); }
.strength-card-content { padding: 2rem; flex-grow: 1; }
.strength-card .num { display: block; font-size: 3rem; font-family: var(--f-serif); color: #e0e0e0; margin-bottom: 0.5rem; line-height: 1; }
.strength-card h3 { margin-bottom: 1rem; font-size: 1.25rem; }

.service-item {
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid #ddd;
    border-radius: 4px;
}
.service-icon { color: var(--c-accent); margin-right: 0.5rem; }
.service-item h3 { display: inline-block; font-size: 1.25rem; margin-bottom: 0.5rem; }

/* Company Info */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid #eee; }
.info-table th { width: 30%; font-weight: normal; color: #666; }

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #eee;
}
.map-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--c-dark);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
}
.logo-footer { margin-bottom: 1rem; }
.copyright { font-size: 0.8rem; opacity: 0.6; }

/* =========================================
   Sub Pages (Hero & Detail)
   ========================================= */
.page-hero {
    height: 40vh;
    min-height: 300px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.page-hero h1 { font-family: var(--f-serif); font-size: 3rem; margin-bottom: 0.5rem; }

.service-block.text-only {
    display: block;
    margin-bottom: 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid var(--c-accent);
}
.service-text h3 { font-family: var(--f-serif); font-size: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid #ccc; padding-bottom: 1rem; }
.service-text .num { font-size: 1.2rem; color: var(--c-accent); margin-right: 0.5rem; font-family: var(--f-sans); }
.service-desc { margin-bottom: 2rem; line-height: 2; font-size: 1.05rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.service-tags li { background: var(--c-sub); padding: 0.5rem 1rem; font-size: 0.9rem; border-radius: 4px; color: #555; border: 1px solid #ddd; }

.special-section { background: var(--c-dark); color: #fff; padding: 6rem 0; position: relative; z-index: 1; }
.cost-content { text-align: center; max-width: 900px; margin: 0 auto; }
.highlight-label { display: inline-block; background: var(--c-accent); color: #fff; padding: 4px 12px; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.cost-header h2 { font-family: var(--f-serif); font-size: 2.5rem; margin-bottom: 0.5rem; }
.cost-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: left; }
.point-item { background: rgba(255,255,255,0.1); padding: 1.5rem; border: 1px solid rgba(255,255,255,0.2); }
.point-item h4 { color: var(--c-accent); margin-bottom: 0.5rem; font-size: 1.1rem; }
.point-item p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.6; }

.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; position: relative; padding: 1rem; }
.step-num { display: block; font-size: 2.5rem; font-family: var(--f-serif); color: #ccc; margin-bottom: 0.5rem; }
.step h4 { margin-bottom: 1rem; font-size: 1.2rem; }

.cta-section { background: rgba(244, 244, 244, 0.95); text-align: center; padding: 5rem 0; position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--f-serif); font-size: 2rem; margin-bottom: 1.5rem; }
.cta-section p { margin-bottom: 2.5rem; }
.btn-large { padding: 1rem 3rem; font-size: 1.1rem; }
.btn-contact { background: var(--c-dark); color: #fff !important; padding: 0.5rem 1.5rem; border-radius: 50px; }

/* =========================================
   Strength Page (Styles)
   ========================================= */
.strength-page-section {
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    padding-bottom: 8rem;
}

.strength-visual {
    margin-bottom: 5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.strength-visual img {
    width: 100%;
    max-width: 500px; /* サイズ縮小 */
    height: auto;
    display: block;
}

.strength-philosophy {
    text-align: center;
    margin-bottom: 6rem;
}

.label-philosophy {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--c-accent);
    margin-bottom: 1rem;
    font-weight: bold;
}

.strength-philosophy h2 {
    font-family: var(--f-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 3rem;
}

.strength-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2;
}

.strength-body {
    max-width: 800px;
    margin: 0 auto;
}

.strength-body p {
    margin-bottom: 2.5rem;
    line-height: 2;
    font-size: 1.05rem;
}

.strength-quote {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.strength-quote h3 {
    font-family: var(--f-serif);
    font-size: 2rem;
    color: var(--c-text);
    line-height: 1.6;
}

.strength-closing {
    font-weight: bold;
    font-size: 1.2rem !important;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; background: #fff; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0; }
    .nav-links a { color: #333; }
    .hero-copy { font-size: 2rem; }
    .company-layout { grid-template-columns: 1fr; }
    .service-block.text-only { padding: 2rem 1.5rem; }
    .service-tags li { width: 100%; text-align: center; }
    .strength-quote h3 { font-size: 1.5rem; }
}