/*
Theme Name: Komatani Theme　２
Author: Your Name
Version: 1.0
*/

@charset "UTF-8";
/* CSS Document */

:root {
    --corp-ink: #1c2433;
    --corp-muted: #5c6573;
    --corp-border: #dfe3ea;
    --corp-surface: #f6f7f9;
    --corp-accent: #8b2e14;
    --corp-accent-soft: rgba(139, 46, 20, 0.12);
    --corp-header-overlay: rgba(18, 24, 34, 0.82);
}

/* ---- WordPressでズレやすいデフォルト対策（最低限） ---- */
html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--corp-ink);
    background: var(--corp-surface);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity 0.08s ease;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* アクセシビリティ用：画面に出さないが読み上げはされる */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: none;
    /* PCでは非表示 */
    position: relative;
    z-index: 30;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    /* ハンバーガーボタンのスタイル */
    text-shadow: none;
    /* ←影の干渉防止 */
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}
.info {
    display: flex;
    font-family: "Noto Sans JP", sans-serif;
    color: rgba(245, 246, 248, 0.95);
    text-shadow: none;
    margin-left: auto;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.info p {
    margin: 0.25em 0;
}

.info .order-phone a {
    color: inherit;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    width: 100%;
    /* ← 右端に押し出す余地を作る */
}

/* wp_nav_menu が出す ul にも効くようにしている */
.site-nav ul {
    font-size: 20px;
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
}

.site-nav a {
    font-weight: 500;
    text-decoration: none;
    color: rgba(245, 246, 248, 0.92);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    position: relative;
    padding: 6px 0;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transition: 0.22s ease;
}

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

/* nav位置調整 */
.site-nav {
    margin-left: 50px;
}

.name {
    font-family: "Zen Old Mincho", serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    color: #fff;
    text-shadow: none;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.name a {
    font-weight: inherit;
}

/* インスタ */
.instagram {
    margin-left: auto;
}

.insta-link {
    width: 36px;
    height: 36px;
    margin: 0;
    flex-shrink: 0;
    display: inline-block;
    background-image: url("assets/images/Instagram_Glyph_White.png");
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.insta-link:hover {
    opacity: 1;
}

.header-left {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex: 0 0 auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    color: white;
    padding: 14px clamp(16px, 4vw, 40px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--corp-header-overlay), var(--corp-header-overlay)),
        url("assets/images/Factory_scenery1.jpg");
    background-size: cover;
    background-position: center;
    opacity: 1;
    transform: scale(1.02);
    z-index: -1;
}

.news-section {
    margin-top: 48px;
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.main-content > h2 {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    color: var(--corp-ink);
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--corp-ink);
    display: inline-block;
    min-width: 200px;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.news-item {
    margin-bottom: 0;
    margin-top: 20px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--corp-border);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(28, 36, 51, 0.04);
}

.news-title {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.news-title a {
    text-decoration: none;
    color: var(--corp-ink);
    font-weight: 600;
}

.news-title a:hover {
    color: var(--corp-accent);
}

.news-date {
    font-size: 13px;
    color: var(--corp-muted);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}

.news-content {
    color: var(--corp-muted);
    font-size: 0.9375rem;
}

.news-content p {
    margin: 0 0 1em 0;
    line-height: 1.85;
}

.news-content br {
    display: block;
    content: "";
    margin-bottom: 0.3em;
}

body.is-loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
}

.break {
    display: none;
}

.marker {
    background: linear-gradient(transparent 55%, var(--corp-accent-soft) 55%);
    display: inline;
    padding: 0 4px;
    border-radius: 2px;
}

.main-content {
    font-family: "Noto Sans JP", sans-serif;
    text-align: center;
    max-width: min(1040px, 100%);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 32px) clamp(48px, 8vw, 80px);
}

.main-content .news-section {
    text-align: left;
}

.worry {
    margin: 28px 0 36px;
    font-weight: 500;
    color: var(--corp-ink);
}

.red {
    color: var(--corp-accent);
    font-weight: 600;
}

.problems {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 16px;
    gap: clamp(20px, 4vw, 36px);
    list-style: none;
    font-size: 1rem;
    color: var(--corp-ink);
}

.problems li img {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.irastlations {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 32px 0 44px;
    color: var(--corp-ink);
    text-shadow: none;
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.Description_Pre-assembly {
    text-align: left;
    margin: 0 0 50px 0;
}

.Description {
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 20px;
    gap: 20px;
}

.Pre-assembly_on_the_ground img {
    width: 80%;
    max-width: 880px;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid var(--corp-border);
    box-shadow: 0 4px 24px rgba(28, 36, 51, 0.08);
}

.assembly {
    font-size: 1rem;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    width: min(80%, 720px);
    margin: 16px auto 0;
    text-align: center;
    color: var(--corp-muted);
    line-height: 1.8;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 36px solid transparent;
    border-right: 36px solid transparent;
    border-top: 14px solid var(--corp-accent);
    margin: 24px auto;
    opacity: 0.85;
}

.result {
    position: relative;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 600;
    text-align: center;
    margin: 28px auto 48px;
    padding: 20px 16px;
    max-width: 920px;
    color: var(--corp-ink);
    text-shadow: none;
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.result::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: min(280px, 60%);
    border-top: 1px solid var(--corp-border);
}

.result::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(280px, 60%);
    border-bottom: 1px solid var(--corp-border);
}

.irastlations_2 {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    list-style: none;
    margin: 0 0 40px 0;
    padding: 0;
}

.irastlations_2 li {
    flex: 1;
}

.irastlations_2 li img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--corp-border);
    box-shadow: 0 2px 12px rgba(28, 36, 51, 0.06);
}

.caption {
    width: min(90%, 480px);
    font-size: 0.9375rem;
    color: var(--corp-muted);
    margin: 12px auto 16px;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    line-height: 1.7;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141a24;
    color: rgba(255, 255, 255, 0.88);
    padding: 28px 24px 32px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
    text-align: center;
    line-height: 1.85;
}

.footer-content p {
    margin: 0.35em 0;
}

.footer-content .order-phone a {
    color: inherit;
    text-decoration: none;
}

.map-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.hours {
    margin: 0 0 50px 0;
}

@media (max-width: 1120px) {
    .name {
        margin: 5px 0 0px 0;
        font-size: 24px;
    }

    .header-right {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        transform: translateX(-100%);
        transition: transform 0.45s ease;
        z-index: 20;
        margin: 0;
        flex-direction: column;
    }

    .worry {
        font-size: 1.1rem;
    }

    .solution {
        font-size: 1.25rem;
    }

    .header-right.is-open {
        transform: translateX(0);
    }

    .header-right ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 130px 0 0 0;
        margin: 0;
    }

    .header-right .site-nav li {
        margin: 0;
        padding: 0;
    }

    .header-right li a {
        display: block;
        padding: 8px 20px;
        color: white;
        padding-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .insta-link {
        width: 44px;
        height: 44px;
        margin: 0 0 12px 0;
    }

    .info {
        margin-top: auto;
        padding: 0 24px 40px;
        font-size: 12px;
        display: flex;
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .problems {
        flex-direction: column;
    }

    .Pre-assembly_on_the_ground img {
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .assembly {
        width: 100%;
    }

    .Description {
        flex-direction: column;
    }

    .irastlations_2 {
        flex-direction: column;
    }

    .break {
        display: inline;
    }

    .footer-content {
        font-size: 14px;
        text-align: center;
    }

    .site-nav {
        margin-left: -60px;
    }
}