/* ============================================================
   JOHO TECH Corporate — main.css v1.1（グレー×白）
   ============================================================ */
:root {
    --white: #ffffff;
    --bg: #f4f5f7;
    --ink: #17181c;
    --gray-700: #3f434a;
    --gray-500: #7a7f88;
    --line: #e3e5e8;
    --ph-1: #d7d9dd;
    --ph-2: #c9ccd2;
    --ph-3: #bfc3c9;
    --ph-4: #b2b6bd;
    --grad: linear-gradient(120deg, #2a2d33 0%, #565b64 55%, #8b929c 100%);
    --radius-card: 0;
    --radius-band: 0;
    --font-jp: "Noto Sans JP", "Noto Sans Japanese", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    --font-en: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 共通レイアウト ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.container--narrow { max-width: 860px; }
.section { padding: 120px 0; }
.section--alt { background: var(--bg); }
.pc { display: inline; }

/* ---------- セクション見出し（大型英字＋日本語サブ） ---------- */
.sec-en {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(52px, 6.5vw, 96px);
    line-height: 1.05;
    letter-spacing: .01em;
    color: var(--ink);
}
.sec-en--md { font-size: clamp(40px, 5vw, 64px); }
.sec-sub {
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    margin: 12px 0 28px;
}
.sec-text { max-width: 560px; margin-bottom: 40px; }

/* ---------- 写真モック ---------- */
.ph {
    position: relative;
    background: var(--ph-2);
    overflow: hidden;
}
.ph::before {
    content: "PHOTO";
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .25em;
    color: rgba(23, 24, 28, .3);
    z-index: 1;
}
.ph::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 45%);
}
.ph--1 { background: var(--ph-1); }
.ph--2 { background: var(--ph-2); }
.ph--3 { background: var(--ph-3); }
.ph--4 { background: var(--ph-4); }

/* ---------- ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 0;
    padding: 13px 24px 13px 28px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    transition: opacity .25s;
}
.btn:hover { opacity: .85; }
.arw {
    display: inline-grid;
    place-items: center;
    transition: transform .25s;
}
.arw::after { content: "\2192"; color: #fff; font-weight: 700; font-size: 18px; }
.btn:hover .arw { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .arw::after { color: var(--ink); }
.btn--nav { padding: 10px 18px; font-size: 14px; }
.btn--nav .arw::after { font-size: 15px; }

/* ---------- タグ ---------- */
.tag {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 3px 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-500);
    background: #fff;
    white-space: nowrap;
}

/* ---------- ヘッダー ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 72px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(23, 24, 28, .05);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: block; color: #1b1c1e; }
.brand-mark svg { display: block; height: 32px; width: auto; }
.brand-text { display: inline-flex; align-items: baseline; gap: 10px; }
.brand--foot .brand-mark { color: #fff; }
.brand-jp { font-size: 20px; font-weight: 900; color: var(--ink); }
.brand-en {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--gray-500);
}
.gnav { display: flex; align-items: center; gap: 28px; }
.gnav > a:not(.btn) {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
}
.gnav > a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--ink);
    transition: right .25s;
}
.gnav > a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to bottom, rgba(23, 24, 28, 0), rgba(23, 24, 28, .5));
    pointer-events: none;
}
.hero-copy {
    position: absolute;
    left: 4vw;
    bottom: 7vh;
    z-index: 2;
    color: #fff;
}
.hero-copy h1 {
    font-size: clamp(44px, 7.5vw, 104px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: .02em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-sub {
    margin-top: 18px;
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

/* ---------- About（全幅グラデーション・中央揃え） ---------- */
.about {
    background: linear-gradient(120deg, #2a2d33 0%, #565b64 30%, #8b929c 50%, #565b64 70%, #2a2d33 100%);
    background-size: 300% 300%;
    animation: gradmove 16s ease-in-out infinite;
    color: #fff;
    text-align: center;
    padding: clamp(64px, 7vw, 104px) 6vw;
}
.about-en {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 34px);
    color: rgba(255, 255, 255, .75);
}
.about-title {
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 900;
    line-height: 1.75;
    margin: 18px 0 20px;
}
.about-lead {
    color: rgba(255, 255, 255, .88);
    line-height: 2.2;
    margin-bottom: 32px;
}

/* ---------- 2カラム（Business / Workplace） ---------- */
.twocol {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 6vw;
    align-items: center;
}
.twocol-media {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 22px;
    align-items: start;
}
.biz-ph-a, .biz-ph-b { width: 100%; object-fit: cover; display: block; }
.biz-ph-a { aspect-ratio: 3 / 4; border-radius: var(--radius-card); }
.biz-ph-b { aspect-ratio: 9 / 14; border-radius: var(--radius-card); margin-top: 56px; }

/* ---------- お客様の声（写真カード・横スクロール） ---------- */
.voice-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 5vw 28px;
    -webkit-overflow-scrolling: touch;
}
.voice-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 32px rgba(23, 24, 28, .06);
    overflow: hidden;
}
.voice-card > .ph { aspect-ratio: 4 / 3; }
.voice-body { padding: 20px 24px 26px; }
.voice-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.voice-quote { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.9; }

/* ---------- 事例ワイドカード ---------- */
.section--works { padding-top: 0; }
.works-card {
    position: relative;
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
}
.works-ph { aspect-ratio: 21 / 8; }
.works-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 24, 28, .5), rgba(23, 24, 28, .05));
    transition: background .25s;
}
.works-card:hover::after { background: linear-gradient(90deg, rgba(23, 24, 28, .62), rgba(23, 24, 28, .15)); }
.works-label {
    position: absolute;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    letter-spacing: .04em;
}

/* ---------- Workplace（リンクリスト＋コラージュ） ---------- */
.wp-links {
    border-top: 1px solid var(--line);
    margin: 8px 0 44px;
    max-width: 480px;
}
.wp-links li { border-bottom: 1px solid var(--line); }
.wp-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px 4px;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
}
.mini-arw {
    display: grid;
    place-items: center;
    flex: none;
    transition: transform .25s;
}
.mini-arw::after { content: "\2192"; color: var(--gray-500); font-weight: 700; font-size: 20px; }
.wp-links a:hover .mini-arw { transform: translateX(4px); }
.wp-collage {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
    align-items: start;
}
.wp-a {
    grid-row: span 2;
    aspect-ratio: 3 / 4.4;
    border-radius: var(--radius-card);
}
.wp-words {
    position: absolute;
    left: 10%;
    top: 12%;
    z-index: 2;
}
.wp-words li {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 2;
    color: #fff;
    text-shadow: 0 1px 10px rgba(23, 24, 28, .35);
}
.wp-b { aspect-ratio: 16 / 10; border-radius: 0; margin-top: 14%; }
.wp-c { aspect-ratio: 16 / 9; border-radius: 0; width: 126%; margin-left: -26%; position: relative; z-index: 3; }


/* ---------- Service 切り替えギミック ---------- */
.twocol--wp { align-items: center; }
.svc-nav a { color: var(--gray-500); transition: color .25s; }
.svc-nav a:hover { color: var(--ink); }
.svc-nav a:hover .mini-arw::after { color: var(--ink); }
.svc-nav a.is-active { color: var(--ink); }
.svc-nav a.is-active .mini-arw::after { color: var(--ink); }
.svc-panel { display: none; }
.svc-panel.is-active { display: block; animation: svcfade .45s ease; }
@keyframes svcfade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.svc-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 24px; }
.svc-panel h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.svc-panel p { font-size: 15px; line-height: 2.1; }
@media (prefers-reduced-motion: reduce) { .svc-panel.is-active { animation: none; } }

/* ---------- お知らせ ---------- */
.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.news-head .sec-sub { margin-bottom: 0; }
.news-head .btn { margin-bottom: 6px; }
.news-list { border-top: 1px solid var(--line); }
.news-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 6px;
    border-bottom: 1px solid var(--line);
    transition: background .2s;
}
.news-item:hover { background: var(--bg); }
.news-date {
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--gray-500);
    flex: none;
}
.news-title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; }
.news-arw {
    display: grid;
    place-items: center;
    flex: none;
    transition: transform .25s;
}
.news-arw::after { content: "\2192"; color: var(--ink); font-weight: 700; font-size: 20px; }
.news-item:hover .news-arw { transform: translateX(4px); }

/* ---------- CTAバンド ---------- */
.band {
    background: linear-gradient(120deg, #2a2d33 0%, #565b64 30%, #8b929c 50%, #565b64 70%, #2a2d33 100%);
    background-size: 300% 300%;
    animation: gradmove 16s ease-in-out infinite;
    border-radius: var(--radius-band);
    color: #fff;
    margin: 0;
    padding: 96px 6vw;
}
.band--cta { text-align: center; margin-bottom: 0; }
.cta-en {
    font-family: var(--font-en);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.2;
}
.cta-lead { margin: 16px 0 32px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; color: rgba(255, 255, 255, .9); }
.cta-btn { margin-bottom: 0; }
.cta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}
.cta-strip .ph { aspect-ratio: 3 / 4; border-radius: 0; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 64px 6vw 32px; }
.foot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.brand--foot .brand-jp { color: #fff; }
.brand--foot .brand-en { color: rgba(255, 255, 255, .6); }
.foot-address {
    margin-top: 16px;
    font-style: normal;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .72);
}
.foot-address a { color: inherit; }
.foot-address a:hover { color: #fff; }
.foot-nav { display: flex; gap: 28px; }
.foot-nav a { font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.foot-nav a:hover { color: #fff; }
.copyright {
    margin-top: 28px;
    font-family: var(--font-en);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .55);
}

/* ---------- 下層ページ共通 ---------- */
.page-hero { padding: 160px 0 72px; background: var(--bg); }
.page-hero .sec-sub { margin-bottom: 0; font-size: 18px; }
.page-hero--visual { position: relative; padding: 230px 0 110px; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(23, 24, 28, .1), rgba(23, 24, 28, .45));
}
.page-hero--visual .container { position: relative; z-index: 2; }
.page-hero--visual .sec-en,
.page-hero--visual .sec-sub { color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, .3); }
.prose { margin-bottom: 22px; }
.sign { margin-top: 36px; font-weight: 700; color: var(--ink); line-height: 1.9; }

/* ---------- 数字で見る ---------- */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.num-val {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.1;
    color: var(--ink);
}
.num-val .num-unit { font-family: var(--font-jp); font-size: .38em; font-weight: 700; margin-left: 4px; }
.num-label { margin-top: 8px; font-size: 14px; color: var(--gray-500); }

/* ---------- 会社概要 ---------- */
.spec {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-top: 1px solid var(--line);
}
.spec dt, .spec dd { padding: 22px 12px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink); }
.spec-list li { position: relative; padding-left: 18px; }
.spec-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .9em;
    width: 8px; height: 2px;
    background: var(--gray-500);
}
.history li {
    display: flex;
    align-items: baseline;
    gap: 28px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
}
.history .year {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 22px;
    color: var(--ink);
    flex: none;
    width: 72px;
}
.map-embed { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- お問い合わせフォーム ---------- */
.contact-form { margin-top: 40px; }
.jt-field { margin-bottom: 24px; }
.jt-field label { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    font: inherit;
    line-height: 1.6;
    color: var(--gray-700);
}
.contact-form textarea { min-height: 180px; resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.jt-submit { margin-top: 36px; text-align: center; }
.contact-form input[type="submit"] {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    border-radius: 0;
    padding: 16px 56px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    transition: opacity .25s;
}
.contact-form input[type="submit"]:hover { opacity: .85; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #a4443c; }
.wpcf7-response-output { margin: 28px 0 0; padding: 14px 18px; border: 1px solid var(--line) !important; border-radius: 0; font-size: 14px; }

@keyframes gradmove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---------- 出現アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .about, .band { animation: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
    .gnav { gap: 18px; }
}
@media (max-width: 900px) {
    .pc { display: none; }
    .section { padding: 72px 0; }
    /* site-headerのbackdrop-filterがfixed子要素の基準をヘッダー(72px)に変えるため、
       inset:0だと高さがヘッダーに縮み、閉じてもはみ出た後半リンクが見えてしまう。
       ビューポート単位で実寸を取り、閉状態はvisibilityでも隠す */
    .gnav {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100vh;
        height: 100svh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateY(-102%);
        visibility: hidden;
        transition: transform .35s ease, visibility 0s linear .35s;
        z-index: 90;
    }
    .gnav.is-open { transform: none; visibility: visible; transition: transform .35s ease; }
    .gnav > a:not(.btn) { font-size: 18px; }
    .nav-toggle {
        display: grid;
        gap: 7px;
        place-content: center;
        width: 44px; height: 44px;
        background: none;
        border: 0;
        cursor: pointer;
        z-index: 110;
    }
    .nav-toggle span {
        display: block;
        width: 26px; height: 2px;
        background: var(--ink);
        transition: transform .3s, opacity .3s;
    }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
    .twocol { grid-template-columns: 1fr; gap: 44px; }
    .twocol-media { order: 2; }
    .biz-ph-b { margin-top: 32px; }
    .wp-collage { margin-top: 8px; }
    .wp-c { width: 100%; margin-left: 0; }
    .news-head { flex-direction: column; align-items: flex-start; }
    .band { padding: 64px 8vw; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-strip { grid-template-columns: repeat(2, 1fr); }
    .news-item { flex-wrap: wrap; gap: 10px 14px; }
    .news-title { flex-basis: 100%; order: 3; }
    .news-arw { display: none; }
    .spec { grid-template-columns: 1fr; }
    .spec dt { padding-bottom: 0; border-bottom: 0; }
    .foot-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .voice-card { flex-basis: 280px; }
    .brand-en { display: none; }
}
