/* ===============================
   RESET / BASE
=============================== */
html, body, div, span, h1, h2, h3, h4, h5, h6, p,
a, img, ul, li, table, tr, td, dl, dt, dd, form,
input, textarea, header, footer, section, nav {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: #fff;
    line-height: 1.8;
    background: #000;
}

/* 共通背景（木目＋黒透明） */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/header-2.jpg") center/cover no-repeat;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45); /* ← A：Wixと同じ暗さ */
    z-index: -1;
}

/* ===============================
   HEADER
=============================== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

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

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.global-nav a {
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    font-size: 15px;
}

.global-nav a:hover {
    opacity: 0.7;
}

/* ===============================
   HERO
=============================== */
.hero {
    position: relative;
    margin-top: 100px;
    height: calc(100vh - 100px);
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* HERO上のオーバーレイ（テキスト削除版） */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column; /* ← 追加：縦並びのため */
    justify-content: flex-end; /* ← 下寄せ */
    align-items: center; /* ← 中央寄せ（これで中央配置） */
    pointer-events: none;
    text-align: center;
    z-index: 0;
}


.hero-logo,
.hero-copy {
    display: none !important;
}

/* スクロール誘導位置調整（Wix に寄せる） */
.scroll-down {
    bottom: 40px; /* 以前よりやや下へ */
    pointer-events: auto;  /* スクロールリンクだけクリック可能 */
}


/* スクロール誘導 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-text {
    font-size: 12px;
    margin-bottom: 5px;
    letter-spacing: 0.25em;
}

.scroll-icon {
    width: 2px;
    height: 24px;
    background: #fff;
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* ===============================
   SECTION 共通
=============================== */
.section {
    padding: 120px 20px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 60px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background: #ccc;
    margin: 20px auto;
}


/* ===============================
   積小為大：全体構造
=============================== */
.section-sekisho .sekisho-images {
    text-align: center;
    margin-bottom: 50px; /* 書画像と下の2カラムの余白 */
}

.section-sekisho .sekisho-images img:first-child {
    width: 340px; /* 書画像のサイズ（調整可） */
    margin: 0 auto;
    display: block;
}

/* ===============================
   写真＋テキスト：2カラム
=============================== */
.section-sekisho .sekisho-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;  /* ← コレでテキストが写真の縦中心に揃う */
}

/* 左の写真 */
.section-sekisho .sekisho-photo img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* 右のテキスト */
.section-sekisho .sekisho-text {
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0.08em;
    max-width: 550px;
}

/* 代表名だけ少し下にメリハリ */
.section-sekisho .sekisho-text .sekisho-name {
    margin-top: 25px;
    text-align: right;
    font-size: 16px;
    opacity: 0.85;
}

/* ===============================
   スマホ用
=============================== */
@media (max-width: 768px) {

    .section-sekisho .sekisho-images img:first-child {
        width: 70%; /* スマホは少し大きく */
    }

    .section-sekisho .sekisho-2col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-sekisho .sekisho-text {
        max-width: 100%;
        text-align: left;
    }
}



/* ===============================
   ギャラリー
=============================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

/* ===============================
   会社概要テーブル
=============================== */

.company-table {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px 10px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.company-table dt {
    opacity: 0.8;
}

.company-table dd {
    opacity: 1;
}

/* ===============================
   お問合せフォーム
=============================== */

.section-contact {
    background: rgba(0,0,0,0.6);
    margin-top: 40px;
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #777;
    background: #fff;
    color: #000;
    border-radius: 4px;
}

.btn-submit {
    background: #fff;
    color: #000;
    border: none;
    padding: 14px 0;
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.15em;
    cursor: pointer;
}

.btn-submit:hover {
    opacity: 0.8;
}

.honeypot {
    display: none;
}

/* ===============================
   FOOTER
=============================== */

.site-footer {
    padding: 60px 20px;
    margin-top: 80px;
    background: rgba(0,0,0,0.4);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.copy {
    margin-top: 20px;
    font-size: 12px;
    opacity: 0.7;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
    .global-nav ul {
        gap: 12px;
    }
}

/*修正追記

/* HERO部分だけ黒オーバーレイ無しにする */
.hero::before {
    content: none !important;
}

/* ===============================
   職人の技術：固定レイアウト
=============================== */
/* 上段 3行×4カラム（Wix完全一致） */
.shokunin-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 幅はあとで調整する、今は均等でOK */
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "s08 s08 s04 s05"
        "s08 s08 s06 s06"
        "s02 s03 s06 s06";
    gap: 12px;
    margin-top: 40px;
}

.shokunin-grid-top .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    filter: grayscale(90%);
}

/* グリッドエリアの割当 */
.item-08 { grid-area: s08; }
.item-04 { grid-area: s04; }
.item-05 { grid-area: s05; }
.item-06 { grid-area: s06; }
.item-02 { grid-area: s02; }
.item-03 { grid-area: s03; }

/* ===============================
   中段：3行×4カラム
=============================== */
.shokunin-grid-mid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "s09 s11 s11 s12"
        "s09 s11 s11 s12"
        "s07 s07 s12 s12";
    gap: 12px;
    margin-top: 40px;
}

.shokunin-grid-mid .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    filter: grayscale(90%);
}

/* エリア割当 */
.item-09 { grid-area: s09; }
.item-11 { grid-area: s11; }
.item-12 { grid-area: s12; }
.item-07 { grid-area: s07; }

/* ===============================
   最終段：s01 → 全幅 × 高さは 2/3
=============================== */
.shokunin-last {
    width: 100%;
    margin-top: 12px;
}

.shokunin-last img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(90%);
}



/* ===============================
   スマホ（1 → 2 → 2 → 個別…）
=============================== */
@media (max-width: 768px) {

    .shokunin-grid {
        grid-template-areas:
            "s08"
            "s04 s05"
            "s02 s03"
            "s06"
            "s09"
            "s12"
            "s11"
            "s01";
        grid-template-columns: 1fr 1fr;
    }

    /* 1カラムにする行（s08、s06〜） */
    .item-08,
    .item-06,
    .item-09,
    .item-12,
    .item-11,
    .item-01 {
        grid-column: span 2;
    }
}


