@charset "UTF-8";

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* ?J???[?p???b?g */
    --primary-color: #1a2a5e; /* ?Z???F?w?b?_?[?A?t?b?^?[?AConstruction?w?i */
    --accent-color: #f39c12;  /* ?S?[???h/?I?????W?F?A?N?Z???g???? */
    --text-color: #333333;    /* ???e?L?X?g */
    --text-light: #666666;    /* ?T?u?e?L?X?g */
    --bg-light: #f9f9f9;      /* ?w?i?O???[ */
    --white: #ffffff;
    
    /* ?t?H???g */
    --font-base: 'Noto Sans JP', sans-serif;
    
    /* ?T?C?Y */
    --header-height: 80px;
    --content-width: 1100px;
}

/* ???Z?b?gCSS?I???{??? */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    padding-top: var(--header-height); /* ?w?b?_?[?????]?? */
}

/* WordPress TOP（body.home）ではヒーローをヘッダー直下に配置したいので余白をなくす */
body.home {
    padding-top: 0;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Common Components
   ========================================================================== */
.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* ???o???X?^?C?? */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-title .accent {
    color: var(--accent-color);
}

.ja-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.description {
    margin-bottom: 40px;
    font-size: 0.95rem;
    text-align: justify;
}

/* ?{?^???X?^?C?? */
.btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    text-align: center;
    min-width: 200px;
    position: relative;
}

.btn-navy {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* ???[?e?B???e?B */
.text-white { color: var(--white) !important; }
.center { text-align: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    /* max-width: var(--content-width);  ?? ????????????100%???X */
    max-width: 100%;                     /* ?????????????L???? */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;                     /* ???E??????]????????????i40px???x???Y?????j */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;                        /* ?e?v?f???????????? */
}

.logo img {
    height: 40px; /* ???S?T?C?Y???? */
    width: auto;
}

.nav-menu {
    margin-left: auto; /* ??? */
    height: var(--header-height);
    display: flex;
    align-items: center;
}

/* SP用ナビ（デフォルトは非表示。モバイル時だけJSで開閉） */
.nav-menu-sp {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* ??????????????? */
.nav-list li a {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
}

/* Instagram??????????????? */
.nav-sns {
    display: flex;
    align-items: center;
}

.instagram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 4px;
    box-sizing: border-box;
}

.instagram-icon:hover {
    opacity: 0.85;
}

.instagram-icon svg {
    width: 100%;
    height: 100%;
}

/* ??????????????????????????? */
.nav-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    height: var(--header-height);
    padding: 0 24px;
    border-radius: 0;
    margin-right: -40px;
}

/* ?????????????????????????????? */
.hover-fill-left {
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--accent-color);
}

.hover-fill-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    z-index: -1;
    transition: width 0.35s ease;
}

.hover-fill-left:hover::before {
    width: 100%;
}
.nav-contact .icon-envelope {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ?n???o?[?K?[???j???[?iPC????\???j */
.hamburger-menu {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 80vh; /* ????80%????? */
    min-height: 500px;
    background-image: url('assets/img/hero.jpg'); /* ?w?i?????w??????????? */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

/* ???????????I?[?o?[???C */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

/* ==========================================================================
   About Section????????????????????????????
   ========================================================================== */
.about {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.about-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 420px;
}

.about-content-box {
    width: 45%;
    max-width: 560px;
    background-color: var(--white);
    padding: 60px 50px;
    margin-left: 40px;
    margin-right: -80px;
    margin-top: 40px; /* ????????????? */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center; /* ??????????????????????????????? */
    box-sizing: border-box;
}

.about-content-box .section-title,
.about-content-box .ja-subtitle,
.about-content-box .description {
    margin-bottom: 20px;
}

.about-content-box .description {
    margin-bottom: 30px;
}

.about-content-box .btn {
    margin-top: 0;
}

.about-image-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Business Section????????????About???????????
   ========================================================================== */
.business {
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.business-inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 420px;
}

.business-image-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.business-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.business-content-box {
    width: 45%;
    max-width: 560px;
    background-color: var(--white);
    padding: 60px 50px;
    margin-right: 40px;
    margin-left: -80px; /* ???????? */
    margin-top: 40px;   /* ???????? */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    box-sizing: border-box;
}

.business-content-box .section-title,
.business-content-box .ja-subtitle,
.business-content-box .description {
    margin-bottom: 20px;
}

.business-content-box .description {
    margin-bottom: 30px;
}

.business-content-box .btn {
    margin-top: 0;
}

/* ==========================================================================
   About & Business (Zigzag Layout)
   ========================================================================== */
.flex-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.flex-layout.reverse {
    flex-direction: row-reverse;
}

.text-area {
    flex: 1;
}

.image-area {
    flex: 1;
}

.image-area img {
    width: 100%;
    height: 400px; /* ???????? */
    object-fit: cover;
    box-shadow: 10px 10px 0 var(--bg-light); /* ???I????? */
}

/* ==========================================================================
   Construction (Works)
   ========================================================================== */
.construction {
    background-color: var(--primary-color);
    color: var(--white);
}

.center-header {
    text-align: center;
    margin-bottom: 50px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.work-item {
    background: transparent;
    overflow: hidden;
}

.work-item-img {
    height: 250px;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    padding: 16px 0 0;
    line-height: 1.5;
    letter-spacing: 0.05em;
    background: transparent;
}

.btn-container {
    text-align: center;
}

/* ==========================================================================
   Recruit
   ========================================================================== */
.recruit {
    background-color: var(--bg-light);
    padding: 0;
    margin: 100px 0;
}

/* Recruitセクションの画像を画面左端まで広げる */
.recruit .container.flex-layout {
    max-width: 100%;
    padding-left: 0;
}

/* ==========================================================================
   News
   ========================================================================== */
.news-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.news-header {
    flex: 0 0 250px;
}

.text-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
}

.text-link::after {
    content: '\003E'; /* '>' */
    margin-left: 0.5em;
    font-size: 1rem;
}

.news-list {
    flex: 1;
}

.news-list li {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.news-list time {
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Lato', sans-serif; /* ?????p??p???t?H???g??????? */
}

/* ==========================================================================
   Contact Area (Overlapping Card Style)
   ========================================================================== */
.contact-wrapper {
    background-color: var(--white);
    padding-bottom: 0; /* ?t?b?^?[??????????? */
    position: relative;
    /* ?t?b?^?[???d????\???????????}?[?W???????????A
       ????????w?i?F??????????????????????I????B
       ?????V???v????Z?N?V??????????`??????B */
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--white) 50%, var(--primary-color) 50%);
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: #F6F6F6;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-desc {
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.method-box {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
}

.method-box .label {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.tel-number {
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.icon-tel {
    width: 26px;
    height: 26px;
    margin-right: 10px;
}

.hours {
    font-size: 0.8rem;
}

.btn.full-width {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-mail {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0; /* Contact??w?i???????? */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-info {
    min-width: 360px; /* 住所が折り返さないよう少し広めに確保 */
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.footer-info address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 16px;
    color: var(--white);
}

.footer-instagram svg {
    width: 100%;
    height: 100%;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    max-width: 100%;
    justify-content: flex-end;
}

.footer-nav-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

.footer-nav-list li a {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-nav-list li a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ==========================================================================
   Responsive Design (Tablets & Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {

    #recruit{
        margin-bottom: 0;
    }
    :root {
        --header-height: 60px;
    }

    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Header Mobile */
    .header-inner {
        padding-left: 16px;
        padding-right: 0; /* 右端までハンバーガーを寄せる */
    }

    .logo img {
        height: 32px;
    }

    /* PCナビはSPでは非表示にして、別HTMLのSPナビを使う */
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: block;
        width: 60px;                          /* ヘッダーの高さと同じくらいでほぼ正方形 */
        height: var(--header-height);         /* ヘッダーと同じ高さ */
        position: relative;
        cursor: pointer;
        background-color: var(--primary-color);
        align-self: stretch;
    }
    
    .hamburger-menu span {
        position: absolute;
        left: 50%;
        width: 28px;
        height: 2px;
        background-color: #ffffff;
        transform: translateX(-50%);          /* 青背景の中心に横方向を揃える */
        transition: 0.3s;
    }
    
    .hamburger-menu span:nth-child(1) { top: calc(50% - 8px); }
    .hamburger-menu span:nth-child(2) { top: 50%; }
    .hamburger-menu span:nth-child(3) { top: calc(50% + 8px); }

    /* ハンバーガー開閉時のアニメーション（×マーク） */
    .hamburger-menu.is-active span:nth-child(1) {
        top: 50%;
        transform: translateX(-50%) rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        top: 50%;
        transform: translateX(-50%) rotate(-45deg);
    }

    /* SPメニュー展開時のフルスクリーンナビ（SP専用nav-menu-spを使用） */
    .nav-menu-sp {
        display: none;
    }

    .nav-menu-sp.is-open {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-height)); /* ヘッダーを除いた全高をメニューに割り当てる */
        background-color: var(--primary-color);
        z-index: 900;
        overflow-y: auto; /* メニューが画面より長い場合もスクロール可能に */
    }

    .sp-nav-list {
        display: flex;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
    }

    .sp-nav-list li {
        background-color: var(--primary-color);
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .sp-nav-list li a {
        background-color: var(--primary-color);
        display: block;
        padding: 16px 24px;
        text-align: center;
        color: #ffffff;
    }

    .sp-nav-sns {
        display: flex;
        justify-content: center;
        padding: 32px 0;
        border-bottom: none;
    }

    /* SPメニュー内のInstagramアイコンはフッターと同じ白アイコンに */
    .sp-nav-sns .instagram-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        padding: 0;
        width: 32px;
        height: 32px;
    }

    .sp-nav-sns .instagram-icon svg {
        width: 100%;
        height: 100%;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }

    /* グローバルの a:hover の透過の影響を受けないようにする */
    .sp-nav-sns .instagram-icon:hover {
        opacity: 1;
    }

    /* メニュー展開中の背景スクロール抑止 */
    body.is-nav-open {
        overflow: hidden;
    }

    /* Hero Mobile */
    .hero {
        height: calc(100vh - var(--header-height));
        min-height: 0;
        align-items: flex-end;
        background-position: right;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-content {
        padding-bottom: 32px;
    }
    
    /* Layout Reset for Mobile */
    .flex-layout, 
    .flex-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .image-area img {
        height: 250px;
    }

    /* Recruit Mobile: 画像とテキストを左右均等に */
    .recruit .container.flex-layout {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* About Mobile */
    .about-inner {
        flex-direction: column;
        min-height: 0;
    }
    
    .about-content-box {
        width: 100%;
        max-width: none;
        margin: 0 20px;
        padding: 40px 24px;
    }
    
    .about-image-wrap {
        min-height: 280px;
    }
    
    .about-image-wrap img {
        min-height: 280px;
    }

    /* Business Mobile */
    .business-inner {
        flex-direction: column-reverse;
        min-height: 0;
    }
    
    .business-content-box {
        width: 100%;
        max-width: none;
        margin: 0 20px;
        padding: 40px 24px;
    }
    
    .business-image-wrap {
        min-height: 280px;
    }
    
    .business-image-wrap img {
        min-height: 280px;
    }

    /* About Mobile */
    .about-inner {
        flex-direction: column;
        min-height: 0;
    }
    
    .about-content-box {
        width: 100%;
        max-width: none;
        margin: 0 20px;
        padding: 40px 24px;
    }
    
    .about-image-wrap {
        min-height: 280px;
    }
    
    .about-image-wrap img {
        min-height: 280px;
    }

    /* Construction Grid */
    .works-grid {
        grid-template-columns: 1fr; /* 1?J???? */
    }

    /* News Mobile */
    .news-layout {
        flex-direction: column;
        gap: 20px;
    }

    /* スマホのみ：お知らせの「お知らせ」と「詳しくはこちら」を横並び */
    .news-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5em 1em;
        flex: 0 0 0px;
        align-items: flex-start;
    }
    .news-header .section-title {
        width: 100%;
    }
    .news-header p.ja-subtitle {
        flex: 0 0 auto;
    }
    .news-header .text-link {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    /* スマホのみ：news-listを画面幅いっぱいに広げて線を表示 */
    .news-list {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding-left: calc((100vw - 100%) / 2 + 20px);
        padding-right: calc((100vw - 100%) / 2 + 20px);
        box-sizing: border-box;
    }
    .news-list li {
        flex-direction: column;
        gap: 5px;
        border-bottom: 1px solid #ddd;
    }
    /* 上下の線幅をそろえるため、最初の行にだけ上線を付与 */
    .news-list li:first-child {
        border-top: 1px solid #ddd;
    }
    /* 上側に重なっている長い線（.news-list 自体の border-top）をスマホでは消す */
    .news-layout .news-list {
        border-top: none;
    }

    /* Contact Mobile */
    .contact-wrapper {
        background: var(--white); /* ?O???f?[?V???????? */
        padding: 40px 0 0;
    }
    
    .contact-card {
        padding: 30px 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 20px;
    }

    /* フッター直前の「お問い合わせフォーム」ボタン：スマホで1行表示にする */
    .contact-card .method-box {
        padding: 20px 16px;
    }
    .contact-card .method-box .btn {
        padding: 12px 16px;
        white-space: nowrap;
    }

    /* Footer Mobile */
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 10px;
    }

    /* フッターの住所幅が原因で横スクロールが出ないようにする */
    .footer-info {
        min-width: 0;
        width: 100%;
    }
}