/*
Theme Name: yamahigashi_theme
Author: Crossroad Co., Ltd.
*/
@charset "utf-8";
:root {
    /* 配色: オフホワイト背景 + ダークグレー文字 */
    --color-bg: #FAFAFA;
    --color-bg-light: #F7F7F7;
    --color-text: #2C2C2C;
    --color-text-light: #555555;
    --color-border: #d3d3d3;
    --color-muted: #888888;

    /* タイポグラフィ: モダンゴシック体 */
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;

    /* 行間・余白 */
    --line-height-base: 2.0;
    --transition-base: all 0.3s ease;
}

/* ==========================================================================
   ベーススタイル / リセット
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height-base);
    font-weight: 300;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
}

/* 見出し: ゴシック体統一、ウェイトのみで階層表現 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    opacity: 0.6;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */
.bg-light-gray {
    background-color: var(--color-bg-light);
}

/* セクションラベル（01 / About など） */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* セクションタイトル */
.section-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(250, 250, 250, 0.96);
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

/* スクロール時のヘッダー（JSでクラス付与） */
.site-header.is-scrolled {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

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

/* サイトタイトル: ゴシック体 */
.site-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
}

/* ナビゲーション: モバイルファースト（フルスクリーンオーバーレイ） */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav.is-active {
    opacity: 1;
    visibility: visible;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.site-nav li {
    margin: 2.2rem 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.site-nav.is-active li {
    opacity: 1;
    transform: translateY(0);
}

/* Nav項目のスタガーアニメーション */
.site-nav.is-active li:nth-child(1) { transition-delay: 0.08s; }
.site-nav.is-active li:nth-child(2) { transition-delay: 0.14s; }
.site-nav.is-active li:nth-child(3) { transition-delay: 0.20s; }
.site-nav.is-active li:nth-child(4) { transition-delay: 0.26s; }
.site-nav.is-active li:nth-child(5) { transition-delay: 0.32s; }
.site-nav.is-active li:nth-child(6) { transition-delay: 0.38s; }

.site-nav a {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: var(--font-sans);
    color: var(--color-text);
    text-decoration: none;
    display: block;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   ハンバーガーボタン
   ========================================================================== */
.mobile-menu-btn {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    z-index: 1000;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    position: absolute;
    width: 28px;
    height: 1px;
    background-color: var(--color-text);
    left: 6px;
    transition: all 0.4s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 14px;
}

.mobile-menu-btn span:nth-child(2) {
    top: 26px;
}

.mobile-menu-btn.is-active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.mobile-menu-btn.is-active span:nth-child(2) {
    top: 20px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    background-color: var(--color-bg);
}

/* 極細の縦線（CSSのみ） */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--color-border);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-company {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    margin-bottom: 2.5rem;
    color: var(--color-muted);
}

.hero-copy {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    line-height: 2.2;
    color: var(--color-text);
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #aaa;
}

.scroll-indicator::after {
    content: "";
    display: block;
    width: 1px;
    height: 36px;
    background: #ccc;
    margin: 10px auto 0;
}

/* ==========================================================================
   コンテンツセクション共通
   ========================================================================== */
.content-section {
    padding: 100px 0;
}

.text-content p {
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 2.2;
}

/* 代表者名 */
.representative-name {
    margin-top: 3rem;
    text-align: right;
    font-weight: 400;
    font-size: 0.95rem;
}

/* ==========================================================================
   事業内容
   ========================================================================== */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.service-list li:last-child {
    border-bottom: 1px solid var(--color-border);
}

.service-num {
    font-size: 1.1rem;
    font-weight: 400;
    margin-right: 2rem;
    color: var(--color-muted);
    flex-shrink: 0;
}

.service-body h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.service-body p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-text-light);
    margin: 0;
    line-height: 2.0;
}

/* ==========================================================================
   実績紹介
   ========================================================================== */
.work-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* グローバルaタグのopacity:0.6をリセットし、静かに浮き上がるアニメーション */
.work-item:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.work-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    transition: background-color 0.4s ease;
}
.work-img-placeholder img {
	width:100%;
	height:100%;
	object-fit:cover;
}
.work-item:hover .work-img-placeholder {
    background-color: #e2e2e2;
}

.work-info {
    transition: opacity 0.4s ease;
}

/* テキスト部分のみ「文字色がわずかに薄くなる」ルールを適用 */
.work-item:hover .work-info {
    opacity: 0.6;
}

.work-info h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.work-info p {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-muted);
    margin: 0;
}

/* ==========================================================================
   パートナー・スタッフ募集
   ========================================================================== */
.partner-text p {
    line-height: 2.4;
}

.partner-cta {
    margin-top: 3rem;
}

/* 枠線のみのシンプルなボタン */
.btn-outline-contact {
    display: inline-block;
    padding: 14px 48px;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-outline-contact:hover {
    opacity: 0.6;
}

/* ==========================================================================
   会社概要
   ========================================================================== */
.company-info {
    margin: 0;
}

.company-info dt {
    float: left;
    clear: left;
    width: 80px;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 2.0;
}

.company-info dd {
    margin-left: 100px;
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 2.0;
}

.company-info::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */
.wpcf7-spinner{
	display:block;
	margin:10px auto 0;
}
.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.contact-desc {
    margin-bottom: 3.5rem;
    font-weight: 300;
    line-height: 2.2;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 400;
}

/* 必須マーク */
.required-mark {
    color: #c0392b;
    font-size: 0.8rem;
    margin-left: 0.2em;
}

/* 任意マーク */
.optional-mark {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 300;
}

/* フォームコントロール */
.form-control-custom {
    width: 100%;
    padding: 14px 16px; /* 枠の内側に余白を持たせる */
    border: 1px solid #dcdcdc; /* 下線のみから四方の枠線に変更 */
    background: #ffffff; /* 背景を白にして入力エリアを明確に */
    border-radius: 0; /* フラットなデザインを維持（角丸なし） */
    outline: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-control-custom::placeholder {
    color: #bbb;
    font-weight: 300;
}

.form-control-custom:focus {
    border-color: var(--color-text);
}

/* textareaのリサイズ禁止 */
textarea.form-control-custom {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   プライバシーポリシー枠
   ========================================================================== */
.privacy-group {
    margin-top: 3rem;
}

.privacy-label {
    font-weight: 400;
    margin-bottom: 0.8rem;
}

/* スクロール可能な小さな枠 */
.privacy-box {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    padding: 24px;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--color-text-light);
    background-color: #fff;
}

.privacy-box h5 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.privacy-box h6 {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.privacy-box p {
    margin-bottom: 0.8rem;
}

.privacy-box ul {
    padding-left: 1.5em;
    margin-bottom: 0.8rem;
}

.privacy-box li {
    margin-bottom: 0.3rem;
}

/* スクロールバーのカスタマイズ（極細・目立たないグレー） */
.privacy-box::-webkit-scrollbar {
    width: 4px;
}

.privacy-box::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-box::-webkit-scrollbar-thumb {
    background: #d0d0d0;
}

.privacy-box::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Firefox用スクロールバー */
.privacy-box {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 transparent;
}

/* プライバシーポリシー同意チェック */
.privacy-agree {
    margin-top: 1.2rem;
}

.privacy-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
}

.privacy-check-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-text);
    cursor: pointer;
}

/* 送信ボタン: 枠線ベースのミニマルデザイン */
.form-submit {
    text-align: center;
    margin-top: 3.5rem;
}

.submit-btn {
    background: var(--color-text);
    color: var(--color-bg);
    border: 1px solid var(--color-text);
    padding: 14px 56px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-base);
}

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

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 5%;
}

.copyright {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--color-muted);
    margin: 0;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   下層ページ / ヘッダー・パンくず
   ========================================================================== */
.page-main {
    padding-top: 60px; /* 固定ヘッダーの高さ分を下げる */
}

.page-header {
	margin-top:77px;
    padding: 60px 0 50px;
    background-color: var(--color-bg-light);
    text-align: center;
}

.page-slug {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.08em;
}

/* パンくずリスト */
.breadcrumb-container {
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    background-color: #ffffff;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #ccc;
}

.breadcrumb-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--color-text-light);
    opacity: 0.6;
}

.breadcrumb-item.active {
    color: var(--color-muted);
}
@media(min-width:992px){
	.page-header{
		margin-top:60px;
	}
}
/* ==========================================================================
   実績詳細コンテンツ (WordPress 投稿レイアウト)
   ========================================================================== */
.work-detail-section {
    padding: 80px 0 120px;
}

.work-detail-header {
    margin-bottom: 2.5rem;
}

.work-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.work-category::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ccc;
    margin-right: 15px;
    vertical-align: middle;
}

.work-title {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

/* アイキャッチ */
.work-eyecatch {
    margin: 0 0 3.5rem 0;
}

.work-eyecatch-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9; /* 大きくなり過ぎない比率 */
    max-height: 500px;
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.95rem;
    font-weight: 300;
    border-radius: 0;
}

/* 記事本文内のスタイル（WP想定） */
.work-body h2,
.work-body h3,
.work-body h4 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.work-body h3 {
    font-size: 1.4rem;
}

.work-body img {
    max-width: 100%;
    height: auto;
    margin: 2.5rem 0;
    display: block;
}

/* 戻るボタン */
.work-back {
    text-align: center;
    margin-top: 5rem;
}

.btn-outline-back {
    display: inline-block;
    padding: 14px 48px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: var(--transition-base);
}

.btn-outline-back:hover,.btn-outline-back:focus {
    background-color: #e4e4e4!important;
    border-color: var(--color-text);
}

/* ==========================================================================
   実績一覧 (WordPress アーカイブレイアウト)
   ========================================================================== */
.works-archive-section {
    padding: 60px 0 120px;
}

/* カテゴリーリスト */
.category-nav {
    margin-bottom: 3.5rem;
    text-align: center;
}

.category-list {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list a {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: var(--transition-base);
}

.category-list a:hover {
    color: var(--color-text);
    opacity: 0.7;
}

.category-list a.active {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

/* ページネーション */
.pagination-custom {
    margin-top: 5rem;
    text-align: center;
}

.pagination-custom .nav-links{
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.pagination-custom .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.pagination-custom .current.page-numbers,.pagination-custom a.page-numbers:hover,.pagination-custom a.page-numbers:focus  {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.pagination-custom .disabled .page-link {
    color: #ddd;
    border-color: var(--color-border);
    cursor: default;
}
/* ==========================================================================
   フェードインアニメーション用（JSで付与）
   ========================================================================== */
.fade-target {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   レスポンシブ: タブレット（768px以上）
   ========================================================================== */
@media (min-width: 768px) {
    /* ヘッダーナビ: 横並び表示 */
    .site-nav {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        display: block;
        opacity: 1;
        visibility: visible;
        z-index: auto;
    }

    .site-nav ul {
        display: flex;
        gap: 24px;
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: left;
    }

    .site-nav li {
        margin: 0;
        opacity: 1;
        transform: none;
    }

    .site-nav a {
        font-size: 0.82rem;
        position: relative;
    }

    /* ホバー時の下線アニメーション */
    .site-nav a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 1px;
        background: var(--color-text);
        transition: width 0.3s ease;
    }

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

    /* ホバー時はopacityを元に戻す（下線で表現するため） */
    .site-nav a:hover {
        opacity: 1;
    }

    .mobile-menu-btn {
        display: none;
    }

    /* セクションタイトルをPC向けに大きく */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }

    /* ヒーローコピーをPC向けに大きく */
    .hero-copy {
        font-size: 2.0rem;
    }

    /* コンテンツセクションのパディング拡大 */
    .content-section {
        padding: 120px 0;
    }

    /* 会社概要のdtをやや広く */
    .company-info dt {
        width: 160px;
    }

    .company-info dd {
        margin-left: 180px;
    }
}

/* ==========================================================================
   レスポンシブ: PC（1024px以上）
   ========================================================================== */
@media (min-width: 1024px) {
    .site-nav ul {
        gap: 32px;
    }

    .hero-copy {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2.0rem;
    }

    .content-section {
        padding: 140px 0;
    }
}