﻿/* ===================================================
   株式会社 LDD — Corporate Website Styles
   =================================================== */

:root {
    --primary:       #0097a7;
    --primary-dark:  #006978;
    --primary-light: #56c8d8;
    --text:          #333333;
    --text-light:    #666666;
    --bg:            #ffffff;
    --bg-gray:       #f5f7f8;
    --border:        #e0e0e0;
    --header-h:      60px;
    --drawer-w:      270px;
    --max-w:         900px;
}

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

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo,
                 'MS PGothic', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.9;
    font-size: 15px;
}

a { color: inherit; }
ul { list-style: none; }

.header {
    position: sticky;
    top: 0;
    z-index: 800;
    background: #fff;
    border-bottom: 2px solid var(--primary);
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
}
.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 4px;
}
.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 1px;
    transition: 0.25s;
}
.brand {
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.brand-main {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.1em;
}
.brand-sub {
    font-size: 0.6rem;
    color: var(--text-light);
    letter-spacing: 0.12em;
}
.header-spacer { width: 34px; }

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--drawer-w);
    height: 100dvh;
    background: #fff;
    z-index: 1100;
    transform: translateX(calc(-1 * var(--drawer-w)));
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.18);
}
.drawer.open { transform: translateX(0); }
.drawer-header {
    background: var(--primary-dark);
    color: #fff;
    padding: 1.4rem 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}
.drawer-header-text h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.drawer-header-text p {
    font-size: 0.7rem;
    opacity: 0.75;
    margin-top: 2px;
    letter-spacing: 0.05em;
}
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.drawer-close:hover { opacity: 1; }
.drawer-nav { flex: 1; overflow-y: auto; }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.4rem;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.18s, color 0.18s;
}
.drawer-nav a:hover,
.drawer-nav a.active {
    background: #e0f7fa;
    color: var(--primary-dark);
    font-weight: 600;
}
.drawer-nav a i {
    width: 18px;
    text-align: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.drawer-nav a.active i { color: var(--primary-dark); }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.42);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* Layout */
.main-content { min-height: calc(100dvh - var(--header-h)); }
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* Hero (index) */
.hero {
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-img {
    background-image: url('img/main_company.jpg');
    background-size: cover;
    background-position: center;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,40,50,0.45) 60%,
        rgba(0,60,70,0.55) 100%);
    pointer-events: none;
}
.hero-text {
    position: relative;
    z-index: 1;
    padding: 3.5rem 1.5rem;
    width: 100%;
}
.hero-company { font-size: 1rem; letter-spacing: 0.18em; opacity: 0.92; margin-bottom: 0.25rem; }
.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.12em;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.55);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.hero-tagline {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.65);
    padding: 0.5rem 1.75rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    border-radius: 2px;
    background: rgba(0,0,0,0.18);
}

/* Page hero */
.page-hero {
    background: var(--primary);
    color: #fff;
    padding: 2.75rem 1.5rem 2.25rem;
    text-align: center;
}
.page-hero h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
.page-hero p { font-size: 0.85rem; opacity: 0.85; line-height: 1.6; }
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    opacity: 0.78;
}
.breadcrumb a { color: #fff; text-decoration: none; }

/* Section box */
.section-box {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.section-box-header {
    background: var(--bg-gray);
    border-left: 4px solid var(--primary);
    padding: 0.7rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.section-box-body {
    padding: 1.4rem 1.2rem;
    font-size: 0.92rem;
    line-height: 2;
}
.section-box-body p + p { margin-top: 0.9rem; }

/* Motto / 社訓 */
.motto-section { background: var(--bg-gray); padding: 3rem 1.5rem; }
.motto-inner { max-width: var(--max-w); margin: 0 auto; }
.motto-label { text-align: center; font-size: 0.8rem; letter-spacing: 0.25em; color: var(--text-light); margin-bottom: 0.4rem; }
.motto-title-jp { text-align: center; font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary-dark); }
.motto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.motto-card {
    background: #17213a;
    color: #fff;
    padding: 2rem 1.25rem 1.75rem;
    text-align: center;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s;
}
.motto-card:nth-child(2) { transition-delay: 0.14s; }
.motto-card:nth-child(3) { transition-delay: 0.28s; }
.motto-card.animate { opacity: 1; transform: translateY(0); }
.motto-card:hover { box-shadow: 0 6px 22px rgba(0,151,167,0.32); transform: translateY(-3px); }
.motto-en { font-size: 1.05rem; font-weight: 700; color: var(--primary-light); margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.motto-ja { font-size: 0.82rem; line-height: 1.7; opacity: 0.82; }

/* Strengths grid */
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.strength-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.25s, transform 0.25s;
    overflow: hidden;
    display: block;
}
.strength-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-4px); }
.strength-icon {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary);
}
.strength-label {
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.92rem;
    text-align: center;
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
}

/* Info table */
.info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.info-table th {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    width: 28%;
    vertical-align: top;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.info-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.8; }
.info-table tr:last-child td { border-bottom: none; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; font-size: 0.88rem; }
.addr-label { font-weight: 600; color: var(--primary-dark); font-size: 0.8rem; margin-bottom: 2px; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.feature-list li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; font-size: 0.9rem; border-bottom: 1px solid var(--border); line-height: 1.7; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '■'; position: absolute; left: 0; color: var(--primary); font-size: 0.72rem; top: 0.6rem; }

/* CTA block */
.cta-block {
    background: #e0f7fa;
    border-left: 4px solid var(--primary);
    padding: 1.1rem 1.4rem;
    border-radius: 0 4px 4px 0;
    margin-top: 1.75rem;
    font-size: 0.88rem;
    line-height: 2;
}

/* Contact */
.contact-box { border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; }
.contact-box-header { background: var(--primary); color: #fff; text-align: center; padding: 1rem; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; }
.contact-row { display: flex; align-items: flex-start; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); gap: 1.5rem; font-size: 0.9rem; line-height: 1.8; }
.contact-row:last-child { border-bottom: none; }
.contact-row-label { width: 150px; font-weight: 600; flex-shrink: 0; padding-top: 2px; }
.contact-note { background: #fff3e0; border-left: 3px solid #ff9800; padding: 0.8rem 1.2rem; font-size: 0.82rem; line-height: 1.7; margin-bottom: 1rem; border-radius: 0 2px 2px 0; }

/* Footer */
.footer { background: #17213a; color: rgba(255,255,255,0.65); text-align: center; padding: 2.25rem 1.5rem; font-size: 0.82rem; }
.footer-name { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.footer-mission { font-size: 0.78rem; margin-bottom: 1rem; opacity: 0.7; letter-spacing: 0.04em; }
.footer-copy { opacity: 0.5; font-size: 0.75rem; margin-top: 0.75rem; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in[data-delay="1"] { transition-delay: 0.1s; }
.fade-in[data-delay="2"] { transition-delay: 0.2s; }
.fade-in[data-delay="3"] { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 640px) {
    .motto-grid { grid-template-columns: 1fr; }
    .addr-grid { grid-template-columns: 1fr; }
    .info-table th { width: 36%; }
    .contact-row { flex-direction: column; gap: 0.4rem; }
    .contact-row-label { width: auto; }
    .strengths-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
    .strengths-grid { grid-template-columns: 1fr; }
}
