/* =============================================
   立進通信建設有限会社 - 共通スタイルシート
   ============================================= */

/* ===== 1. VARIABLES ===== */
:root {
    --primary:       #0d2b5c;
    --primary-light: #1a4a8a;
    --accent:        #0077cc;
    --accent-light:  #3399ff;
    --gray-light:    #f5f7fa;
    --gray:          #e0e4eb;
    --text:          #1a1a2e;
    --text-light:    #666;
    --white:         #ffffff;
    --header-h:      70px;
}

/* ===== 2. RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; }

/* ===== 3. BASE ===== */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

/* ===== 4. HEADER ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray);
    transition: box-shadow 0.3s, background 0.4s, border-color 0.4s;
}
header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
/* Transparent variant — index page only */
header.is-transparent {
    background: transparent;
    border-bottom-color: transparent;
}
header.is-transparent .logo-main { color: var(--white); }
header.is-transparent .logo-sub  { color: rgba(255,255,255,0.55); }
header.is-transparent nav a       { color: rgba(255,255,255,0.85); }
header.is-transparent nav a:hover { color: var(--white); }
header.is-transparent .nav-cta    { color: var(--white) !important; }
header.is-transparent .hamburger span { background: var(--white); }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; flex-direction: column; }
.logo-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    line-height: 1.2;
    transition: color 0.4s;
}
.logo-sub {
    font-size: 10px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.4s;
}

/* ===== 5. NAV ===== */
nav { display: flex; align-items: center; gap: 32px; }
nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    transition: color 0.2s;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
nav a:hover        { color: var(--accent); }
nav a:hover::after { width: 100%; }
nav a.active       { color: var(--accent); }
nav a.active::after { width: 100%; }

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px !important;
    transition: background 0.2s !important;
}
.nav-cta::after  { display: none !important; }
.nav-cta:hover   { background: var(--primary) !important; color: var(--white) !important; }

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text);
    transition: background 0.4s;
}

/* ===== 6. FOOTER ===== */
footer {
    background: #07111f;
    color: rgba(255,255,255,0.45);
    padding: 44px 24px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
    color: rgba(255,255,255,0.38);
    font-size: 12px;
    transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.75); }
.footer-copy { font-size: 12px; }

/* ===== 7. BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover { background: #0066bb; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover { background: var(--gray-light); transform: translateY(-2px); }

.btn-dark {
    background: var(--primary);
    color: var(--white);
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ===== 8. SECTION COMMON ===== */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 15px;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.9;
    margin-bottom: 60px;
}

/* ===== 9. PAGE HERO (inner pages) ===== */
.page-hero {
    padding-top: var(--header-h);
    height: 42vh;
    min-height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,43,92,0.82), rgba(6,21,48,0.92));
}
.page-hero__inner {
    position: relative;
    z-index: 2;
}
.page-hero__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
}
.page-hero__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
}

/* ===== 10. CTA BANNER ===== */
.cta-banner {
    background: var(--primary);
    padding: 70px 24px;
}
.cta-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.cta-banner__text h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.4;
}
.cta-banner__text p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}
.cta-banner__phone {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cta-banner__phone i { color: var(--accent-light); font-size: 0.75em; }
.cta-banner__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ===== 11. CHECK POINTS (service detail) ===== */
.checkpoints {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkpoints li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}
.checkpoints li::before {
    content: '';
    display: block;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: cover;
    flex-shrink: 0;
}

/* ===== 11b. MOTTO BAND ===== */
.motto-band {
    background: var(--primary);
    padding: 40px 24px;
    text-align: center;
}
.motto-band__main {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.35em;
    margin-bottom: 10px;
}
.motto-band__main span { color: var(--accent-light); }
.motto-band__sub {
    font-size: 12px;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
}

/* ===== 11c. PRIVACY / AGREEMENT PAGE ===== */
.legal-section { background: var(--white); }
.legal-body { max-width: 860px; }
.legal-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 44px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 12px;
}
.legal-body ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 12px;
}
.legal-body ul li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
}

/* ===== 11d. FOOTER LEGAL ===== */
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 16px 24px;
    text-align: center;
}
.footer-legal a {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    margin: 0 12px;
    transition: color 0.2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ===== 12. INDEX — HERO ===== */
.idx-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d2b5c 0%, #0a1f40 45%, #061530 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.idx-hero__deco-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.idx-hero__deco-ring:nth-child(1) {
    top: -20%; right: -10%;
    width: 700px; height: 700px;
    border: 1px solid rgba(255,255,255,0.04);
}
.idx-hero__deco-ring:nth-child(2) {
    bottom: -30%; left: -10%;
    width: 900px; height: 900px;
    border: 1px solid rgba(0,119,204,0.1);
}
.idx-hero__grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,119,204,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,119,204,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.idx-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 100px;
}
.idx-hero__label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-light);
    border: 1px solid rgba(0,153,255,0.35);
    padding: 6px 16px;
    margin-bottom: 28px;
}
.idx-hero__title {
    font-size: clamp(34px, 5vw, 62px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}
.idx-hero__title span { color: var(--accent-light); }
.idx-hero__desc {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    max-width: 500px;
    margin-bottom: 48px;
    line-height: 1.95;
}
.idx-hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.idx-hero__creds {
    margin-top: 40px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.idx-hero__creds span {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.05em;
}
.idx-hero__creds i { color: var(--accent-light); font-size: 13px; }
.idx-hero__scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
    animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ===== 13. INDEX — SERVICE CARDS ===== */
.idx-services { background: var(--gray-light); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    background: var(--gray);
}
.service-card {
    background: var(--white);
    padding: 44px 36px;
    border-bottom: 3px solid transparent;
    position: relative;
    transition: all 0.3s;
}
.service-card:hover {
    border-bottom-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    z-index: 1;
}
.service-card__num {
    position: absolute;
    top: 20px; right: 28px;
    font-size: 52px;
    font-weight: 700;
    color: var(--gray-light);
    line-height: 1;
    user-select: none;
}
.service-card__icon {
    width: 54px; height: 54px;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
    font-size: 20px;
}
.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}
.service-card p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 20px;
}
.service-card__link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.service-card__link:hover { gap: 10px; }

/* ===== 14. INDEX — FEATURES ===== */
.idx-features { background: var(--white); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-item {
    text-align: center;
    padding: 48px 32px;
    border: 1px solid var(--gray);
    position: relative;
    transition: border-color 0.3s;
    overflow: hidden;
}
.feature-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transition: transform 0.35s;
}
.feature-item:hover { border-color: rgba(0,119,204,0.3); }
.feature-item:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(0,119,204,0.1), rgba(26,74,138,0.07));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--accent);
}
.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.6;
}
.feature-item p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.85;
}

/* ===== 15. SERVICE PAGE — DETAIL BLOCKS ===== */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}
.service-block__img { overflow: hidden; }
.service-block__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.service-block:hover .service-block__img img { transform: scale(1.04); }
.service-block__body {
    padding: 72px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
}
.service-block--alt .service-block__body { background: var(--gray-light); }
.service-block__num {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}
.service-block__body h2 {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
}
.service-block__body p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.95;
}

/* ===== 16. COMPANY PAGE ===== */
.company-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--gray); }
.company-table th {
    text-align: left;
    padding: 16px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    width: 130px;
    letter-spacing: 0.05em;
    vertical-align: top;
    white-space: nowrap;
}
.company-table td {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
}
.company-message {
    padding: 44px;
    background: var(--white);
    border-left: 4px solid var(--accent);
}
.company-message h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 22px;
    line-height: 1.55;
}
.company-message p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 16px;
}
.company-message p:last-child { margin-bottom: 0; }
.company-rep {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
    font-size: 13px;
    color: var(--text-light);
}
.company-rep strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.map-placeholder {
    margin-top: 60px;
    background: var(--gray-light);
    border: 1px solid var(--gray);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--text-light);
    font-size: 14px;
}
.map-placeholder i { font-size: 32px; color: var(--accent); }

/* ===== 17. CONTACT PAGE ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}
.c-icon {
    width: 46px; height: 46px;
    background: rgba(0,153,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-light);
    flex-shrink: 0;
}
.info-text h4 {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 5px;
}
.info-text p {
    font-size: 17px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.04em;
}
.info-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 13px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent-light); }
.form-group select option { background: var(--primary); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== 18. RESPONSIVE ===== */
@media (max-width: 900px) {
    .features-grid      { grid-template-columns: 1fr 1fr; }
    .company-layout     { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout     { grid-template-columns: 1fr; }
    .service-block      { grid-template-columns: 1fr; min-height: auto; }
    .service-block__img { height: 300px; }
    .service-block--reverse .service-block__img { order: -1; }
    .service-block__body { padding: 52px 40px; }
}
@media (max-width: 768px) {
    section { padding: 70px 20px; }
    nav {
        display: none;
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 28px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--gray);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    nav.open  { display: flex; }
    .hamburger { display: flex; }
    .features-grid  { grid-template-columns: 1fr; gap: 16px; }
    .form-row       { grid-template-columns: 1fr; }
    .service-block__body { padding: 40px 24px; }
    .cta-banner__inner  { flex-direction: column; text-align: center; }
    .cta-banner__phone  { justify-content: center; }
    .cta-banner__actions { justify-content: center; }
    .footer-inner   { flex-direction: column; text-align: center; }
    .footer-nav     { justify-content: center; }
    .idx-hero__scroll { display: none; }
    .company-message  { padding: 32px 28px; }
}
