@charset "UTF-8";

/* ==========================================================================
   基本設定
   ========================================================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
}
:root {
    --primary-color: #009edd;      /* ロゴと同じ色（鮮やかな青） */
    --primary-dark: #007eb0;       /* ↑を少し濃くした色（ボタンのホバー用） */
    --text-main: #1f2937;          /* 本文色 (gray-800) */
    --text-sub: #6b7280;           /* 薄い文字色 (gray-500) */
    --bg-light: #f3f4f6;           /* 薄い背景色 (gray) */
    --white: #ffffff;
    --border-color: #e5e7eb;       /* gray-200 */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    /* 1. 自動的な文字サイズ拡大を防ぐ（スマホ・Chrome対策） */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;

    /* 2. 日本語の文字詰め（プロポーショナルメトリクス）を有効にする */
    font-feature-settings: "palt";

    /* 3. 文字間隔を少し空けて整える */
    letter-spacing: 0.05em;

    /* 4. フォントのアンチエイリアス（滑らかさ）を調整 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s, background-color 0.3s, opacity 0.3s;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }

/* レイアウト共通 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ▼▼▼ 基本は80px（ABOUT USやCONTACT用） ▼▼▼ */
.section-padding { padding: 80px 0; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

/* セクションタイトル */
.section-title {
    font-size: 1.875rem; font-weight: bold; color: #1f2937;
    margin-bottom: 0.5rem; letter-spacing: 0.05em; display: block; line-height: 1.3;
}
.section-subtitle { color: var(--text-sub); font-size: 1rem; }
.bg-gray { background-color: var(--bg-light); }

/* 枠線付きボタン */
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 4px;
    background-color: transparent;
    transition: color 0.3s, background-color 0.3s;
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 明朝体指定クラス */
.font-serif {
    font-family: 'Noto Serif JP', "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-feature-settings: "palt";
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px); 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--primary-color);
    transform: translateZ(0);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 60px; padding: 12px 0;
}

/* ヘッダーロゴ設定 */
.logo picture {
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
    width: auto;
}

.nav-menu { display: none; }
.nav-menu a {
    color: #374151; font-size: 0.875rem; font-weight: 500; margin-left: 32px;
}
.nav-menu a:hover { color: var(--primary-color); }

.btn-contact {
    display: inline-block; background-color: var(--primary-color);
    color: var(--white) !important; padding: 8px 20px; border-radius: 4px;
    font-weight: bold; font-size: 0.875rem;
    transition: background-color 0.3s;
}
.btn-contact:hover { background-color: var(--primary-dark); }

/* ==========================================================================
   ヒーローエリア
   ========================================================================== */
.hero-section {
    position: relative;
    
    /* ▼▼▼ ここを変更しました ▼▼▼ */
    /* 元のコード: height: 75vh; min-height: 600px; */
    
    width: 100%;             /* 横幅いっぱい */
    aspect-ratio: 16 / 9;    /* 横:縦 = 16:9 の比率を維持する */
    max-height: 76vh;        /* ただし、画面の高さの76%以上にはしない（PC全画面用） */
    min-height: 450px;       /* 文字がはみ出ないよう、これ以上は小さくしない */
    /* ▲▲▲ ここまで ▲▲▲ */

    margin-top: 60px; background-color: #111827;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.slideshow-container { position: absolute; inset: 0; z-index: 1; }

.slide {
    position: absolute; inset: 0;
    transition: opacity 4000ms ease-in-out;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-visible { opacity: 1; z-index: 2; }
.slide-hidden { opacity: 0; z-index: 1; }

.hero-overlay {
    position: absolute; inset: 0; background-color: transparent;
    z-index: 10; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 20; color: var(--white);
    text-align: center; padding: 0 1rem;
}

.hero-sub {
    font-size: 1.125rem;
    letter-spacing: 0.1em; margin-bottom: 0.5rem; font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.9);
}

.hero-title {
    font-size: 1.8rem;
    font-weight: bold; line-height: 1.25; margin-bottom: 1.5rem; margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.9);
}

.btn-hero {
    display: inline-block; padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1f2937; font-weight: bold; border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-shadow: none;
    transition: color 0.3s, background-color 0.3s;
}
.btn-hero:hover { background-color: #ffffff; color: #000000; }

/* ==========================================================================
   About
   ========================================================================== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-text { 
    width: 100%; 
    text-align: left;
}

.about-text .btn-outline {
    display: block;      /* ブロック要素にして */
    width: fit-content;  /* 中身（文字）の幅に合わせて */
    margin: 0 auto;      /* 左右の余白を自動にして真ん中に置く */
}

.about-img img {
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.about-heading-small {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    display: block;
}

.about-heading-large {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
    border-left: none;
    padding-left: 0;
}

.about-text .about-heading-large,
.service-text .about-heading-large {
    border-left: 6px solid var(--primary-color);
    padding-left: 16px;
}

.about-desc {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    .about-img {
        width: 50%;
        padding-right: 48px;
        margin-bottom: 0;
    }
    .about-text { width: 50%; }
}

/* ==========================================================================
   WORKS
   ========================================================================== */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }

/* トップページのWORKSのみ、上下の隙間を16pxに詰めて統一する設定 */
#works .works-grid {
    gap: 16px;
}

.work-item { display: block; text-decoration: none; }

.work-media {
    position: relative; 
    border-radius: 2px; 
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #f3f4f6;
    margin-bottom: 8px;
}

.work-media img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s; 
}

.work-item:hover .work-media img { transform: scale(1.1); }

.work-overlay {
    position: absolute; inset: 0; background-color: rgba(0, 158, 221, 0.7);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 0.875rem; text-align: center;
    padding: 1rem; opacity: 0; transition: opacity 0.3s;
}
.work-item:hover .work-overlay { opacity: 1; }

.work-caption {
    font-size: 0.875rem; line-height: 1.5; color: #374151;
}

.work-caption strong {
    display: block; font-weight: bold; margin-bottom: 2px;
}

.work-caption span {
    font-size: 0.75rem; color: #6b7280;
}

@media (min-width: 768px) {
    .works-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   SERVICES（背景画像WebP ＋ 半透明カード版）
   ========================================================================== */

#services {
    position: relative;
    z-index: 1;
}

#services::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    background-image: url('images/image010.webp'); 
    background-color: #ffffff;
    
    background-size: 100% auto; 
    
    background-repeat: no-repeat;
    
    background-position: top center;
    
    opacity: 0.5; 
    z-index: -1;
}

.services-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 32px; 
}

.service-card {
    display: block;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    padding: 32px; 
    border-radius: 4px;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.service-card:hover { 
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
}

.service-number {
    font-family: var(--font-en); 
    font-size: 2.5rem; 
    font-weight: bold;
    color: #cbd5e1;
    line-height: 1; 
    margin-bottom: 12px; 
    display: block; 
    transition: color 0.3s;
}
.service-card:hover .service-number { color: var(--primary-color); }

.service-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.75rem; line-height: 1.4; }
.service-desc { font-size: 0.875rem; color: #4b5563; }

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section { background-color: #f9fafb; border-top: 1px solid #e5e7eb; }
.contact-form {
    max-width: 700px; margin: 0 auto; background-color: #ffffff; padding: 40px;
    border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.875rem; color: #374151; }
.form-tag-required {

    background-color: #ea580c; 
    
    color: white; 
    font-size: 0.7rem; 
    padding: 2px 6px; 
    margin-left: 8px; 
    border-radius: 2px;
    vertical-align: middle;
}

.form-tag-optional {
    background-color: #9ca3af; 
    color: white; 
    font-size: 0.7rem; 
    padding: 2px 6px; 
    margin-left: 8px; 
    border-radius: 2px;
    vertical-align: middle;
}
.form-input, .form-textarea {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 1rem; transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(31, 168, 191, 0.2);
}
.form-submit-wrapper { text-align: center; margin-top: 32px; }
.btn-submit {
    background-color: var(--primary-color); color: white; font-weight: bold;
    padding: 16px 64px; border: none; border-radius: 4px;
    cursor: pointer; transition: 0.3s; font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.btn-submit:hover { background-color: var(--primary-dark); }

/* ==========================================================================
   下層ページ用パーツ
   ========================================================================== */
.page-header {
    height: 320px; margin-top: 60px; background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.page-header-overlay { position: absolute; inset: 0; background-color: rgba(255, 255, 255, 0.3); }
.page-header-content { position: relative; z-index: 10; text-align: center; }
.page-title { font-size: 2.25rem; font-weight: bold; letter-spacing: 0.1em; margin: 0 0 0.5rem 0; }
.page-subtitle { color: #4b5563; font-weight: bold; letter-spacing: 0.05em; margin: 0; }
.breadcrumbs { background-color: var(--bg-light); border-bottom: 1px solid #f3f4f6; padding: 12px 0; font-size: 0.75rem; color: #6b7280; }
.breadcrumbs span { margin: 0 8px; }

.company-table {
    width: 100%; border-collapse: collapse; background-color: var(--white);
    border-top: 4px solid var(--primary-color); box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.company-table th, .company-table td { padding: 20px 24px; border-bottom: 1px solid #f3f4f6; text-align: left; }
.company-table th { background-color: #e5e7eb; width: 30%; color: #4b5563; font-weight: 500; }

.map-container { height: 400px; width: 100%; background-color: #e5e7eb; border-radius: 4px; overflow: hidden; }

/* 施工実績詳細 */
.filter-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }
.btn-filter {
    padding: 8px 24px; border-radius: 9999px; font-size: 0.875rem; font-weight: bold;
    border: 1px solid #e5e7eb; background: var(--white); color: #4b5563; cursor: pointer;
}
.btn-filter.active, .btn-filter:hover {
    background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color);
}
.work-detail-layout { display: flex; flex-direction: column; gap: 48px; }
.work-main-img { margin-bottom: 16px; }
.work-main-img img {
    width: 100%; height: auto; border-radius: 0;
}
.work-info-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.work-data-card {
    background-color: #f9fafb; padding: 24px; border-radius: 4px;
    border-top: 4px solid var(--primary-color); position: sticky; top: 100px;
}
.data-list { font-size: 0.875rem; }
.data-row { border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; margin-bottom: 16px; }
.data-label { color: #6b7280; display: block; margin-bottom: 4px; }
.data-value { font-weight: 500; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-grid img { border-radius: 0px; transition: opacity 0.3s; cursor: pointer; width: 100%; }
.gallery-grid img:hover { opacity: 0.8; }
.work-nav { border-top: 1px solid #e5e7eb; margin-top: 64px; padding-top: 32px; display: flex; justify-content: space-between; align-items: center; }

/* 事業内容・ポリシー */
.service-row { display: flex; flex-direction: column; gap: 32px; margin-bottom: 80px; align-items: center; }
.service-img { width: 100%; }
.service-img img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.service-text { width: 100%; }
.policy-list dl { margin-bottom: 40px; border-bottom: 1px solid #e5e7eb; padding-bottom: 40px; }
.policy-list dt { font-weight: bold; font-size: 1.2rem; margin-bottom: 16px; padding-left: 16px; border-left: 5px solid var(--primary-color); }
.policy-list dd { margin-left: 0; line-height: 1.8; color: #4b5563; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background-color: #1f2937; color: var(--white); padding: 48px 0; font-size: 0.875rem; border-top: 5px solid var(--primary-color);}
.footer-content { display: flex; flex-direction: column; gap: 32px; }

.footer-logo {
    height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); width: auto;
}
.footer-info picture {
    display: block; width: fit-content; margin-bottom: 1rem;
}
.footer-info picture .footer-logo { margin-bottom: 0; }

.footer-info p { color: #9ca3af; margin: 0; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #d1d5db; }
.footer-links a:hover { color: var(--white); }
.copyright { margin-top: 48px; padding-top: 24px; border-top: 1px solid #374151; text-align: center; color: #6b7280; font-size: 0.75rem; }

/* ==========================================================================
   PCレイアウト (Media Query)
   ========================================================================== */
@media (min-width: 768px) {
    .logo img { height: 56px; }
    .nav-menu { display: flex; align-items: center; }
    .hero-title { font-size: 2.5rem; }
    
    .about-content { flex-direction: row; text-align: left; align-items: flex-start; }
    .about-img { width: 50%; padding-right: 48px; margin-bottom: 0; }
    

    .about-text { 
        width: 50%; 

    }


    .about-text .btn-outline {
        margin: 0; /* スマホで設定した「margin: 0 auto」を打ち消して左寄せにする */
    }

    .works-grid { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-content { flex-direction: row; justify-content: space-between; }
    
    .service-row { flex-direction: row; gap: 64px; align-items: flex-start;}
    .service-row-reverse { flex-direction: row-reverse; }
    .service-img { width: 45%; }
    .service-text { width: 55%; }
    .service-img img { height: 350px; }
    .work-info-grid { grid-template-columns: 3fr 1fr; }
}

/* ==========================================================================
   スマホ・タブレット用調整
   ========================================================================== */
@media (max-width: 768px) {

.page-title {
        font-size: 1.7rem;  /* 元の2.25remから1.7remに縮小 */
    }
    .btn-hero {
        display: none;
    }

    .about-img {
        display: none;
    }

    .hero-section {
        
        /* 以前の設定： height: 50vh; min-height: 300px; */
        
        height: auto;           /* 高さを成り行きにする */
        aspect-ratio: 4 / 3;   /* 写真の比率（4:3） */
        min-height: 300px;      /* 文字がはみ出ないよう、最低限この高さは確保する */
        
    }
    
    .hero-title {
        font-size: 1.3rem; line-height: 1.4; width: 100%; white-space: nowrap;
    }
    .hero-sub { font-size: 0.9rem; }
}

/* ==========================================================================
   スマホ用ハンバーガーメニュー
   ========================================================================== */
.hamburger {
    display: none; border: none; background: transparent; cursor: pointer; z-index: 2000; padding: 10px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block; width: 44px; height: 44px; position: relative;
    }
    
    .hamburger span {
        position: absolute; left: 7px; width: 30px; height: 3px; background-color: var(--primary-color); transition: 0.3s; border-radius: 2px;
    }
    .hamburger span:nth-of-type(1) { top: 12px; }
    .hamburger span:nth-of-type(2) { top: 20px; }
    .hamburger span:nth-of-type(3) { top: 28px; }

    .hamburger.active span:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
    .hamburger.active span:nth-of-type(2) { opacity: 0; }
    .hamburger.active span:nth-of-type(3) { top: 20px; transform: rotate(-45deg); }

    .nav-menu {
        display: block; position: fixed; top: 0; right: -100%;
        width: 50%; height: 100vh; background-color: var(--white);
        padding: 80px 20px; transition: 0.3s; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1500; flex-direction: column;
    }

    .nav-menu.active { right: 0; }

    .nav-menu a {
        display: block; margin: 0 0 15px 0; font-size: 0.9rem;
        padding-bottom: 10px; border-bottom: 1px solid #f3f4f6;
    }
    
    .nav-menu .btn-contact {
        display: block; text-align: center; margin-top: 20px; color: white !important;
    }
}

/* ==========================================================================
   会社案内ページ用
   ========================================================================== */
@media (min-width: 768px) {
    .about-content.about-vertical .about-img {
        width: 45%; padding-right: 48px;
    }
    .about-content.about-vertical .about-img img {
        height: auto; width: 100%; object-fit: cover;
    }
    .about-content.about-vertical .about-text {
        width: 55%;
    }
}

/* ==========================================================================
   施工プロセス
   ========================================================================== */
.process-section {
    margin-top: 32px; 
    padding-top: 32px; 
    border-top: 1px solid #e5e7eb;
}

.process-grid {
    display: grid;
    
    /* ▼▼▼ スマホから常に「2列」にする設定 ▼▼▼ */
    grid-template-columns: 1fr 1fr;
    
    /* スマホ用の少し狭い隙間（上下24px, 左右12px） */
    gap: 24px 12px;
}

/* 画面幅が600px以上（タブレット・PC）の時の調整 */
@media (min-width: 600px) {
    .process-grid {
        /* PC用はゆったりした隙間（上下32px, 左右24px）に戻す */
        gap: 32px 24px;
    }
}

.process-item {
    display: flex; 
    flex-direction: column; 
    text-decoration: none;
}

.process-img {
    position: relative; 
    margin-bottom: 8px; 
    border-radius: 0px;
    overflow: hidden; 
    aspect-ratio: 4 / 3; /* 写真の比率を4:3に固定 */
    background-color: #f3f4f6;
}

.process-img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s;
}

/* ホバー時のズームエフェクト */
.process-item:hover .process-img img { 
    transform: scale(1.05); 
}

.process-date {
    font-family: var(--font-en); 
    font-size: 0.75rem; 
    color: #9ca3af;
    font-weight: bold; 
    margin-bottom: 2px; 
    display: block; 
    line-height: 1.2;
}

.process-title {
    font-size: 0.875rem; 
    font-weight: bold; 
    color: #1f2937;
    margin: 0; 
    line-height: 1.5; 
    border: none;
}

/* ==========================================================================
   ページ内リンクボタン（事業内容・会社案内共通）
   ========================================================================== */
.page-nav-btn {
    display: inline-block;
    padding: 12px 32px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    background-color: #fff;
    color: #4b5563;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.page-nav-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 158, 221, 0.2);
}

/* アンカーリンク調整（ヘッダー被り防止） */
#architecture, #civil, #landscape, #design-management,
#message, #outline, #history, #access {
    scroll-margin-top: 100px;
}

#works, #services {
    padding-top: 40px; /* 通常の80pxの半分にします */
}

#works .work-media {
    margin-bottom: 0;
}

.service-row:last-child {
    margin-bottom: 0;
}

/* 五條市ページの導入部専用スタイル */

/* 1. 見出し用：細く、大きく、ゆったりと */
.gojo-title-serif {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;        /* 細字 (Light) */
    font-size: 2.4rem;       /* かなり大きく */
    line-height: 1.4;
    letter-spacing: 0.15em;  /* 文字間を広げて上品に */
    margin-bottom: 2rem;     /* 本文との間隔を空ける */
    margin-top: 0;
    color: #1f2937;
}

/* 2. 本文用：標準の太さ、読みやすいサイズ */
.gojo-text-serif {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;        /* 標準 (Regular) - 細すぎると読みにくいため */
    font-size: 1.05rem;      /* 標準よりほんの少し大きく */
    line-height: 2.2;        /* 行間広めで情緒的に */
    letter-spacing: 0.08em;
    color: #374151;
    text-align: left;
    display: inline-block;
}

/* スマホ用のサイズ調整 */
@media (max-width: 768px) {
    .gojo-title-serif {
        font-size: 1.6rem;
    }
    .gojo-text-serif {
        font-size: 0.95rem;
        text-align: left;
    }
}

/* ==========================================================================
   アニメーション定義
   ========================================================================== */

/* 1. 動きの設計図（下から20px浮き上がりながら不透明になる） */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. 適用するクラス */
.fade-in {
    opacity: 0;                            /* 最初は隠しておく*/
    animation-name: fadeInUp;              /* 上で作った動きを指定 */
    animation-duration: 1.5s;              /* 1.5秒かけてゆっくり表示 */
    animation-timing-function: ease-out;   /* 終わり際をゆっくりに */
    animation-fill-mode: forwards;         /* アニメ終了後の状態（表示）を維持 */
}

/* 3. 時間差をつけるためのクラス（本文用） */
.delay-300 {
    animation-delay: 0.5s;                 /* 0.5秒待ってから開始 */
}

/* ==========================================================================
   印刷用スタイル設定 (@media print) 【ロゴ表示対応版】
   ========================================================================== */
@media print {
    /* 1. アニメーション停止 & 透明化解除 */
    .fade-in, 
    [class*="animation"], 
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* 2. 不要な要素を非表示にする（★.site-headerを除外しました） */
    .hamburger,            /* ハンバーガーメニュー */
    .page-nav-btn,         /* ページ内リンクボタン群 */
    .text-center.mb-16,    /* ボタン群を囲っていた箱 */
    .btn-contact,          /* お問い合わせボタン */
    .btn-hero,             /* ヒーローエリアのボタン */
    .breadcrumbs,          /* パンくずリスト */
    .filter-buttons,       /* 実績ページのフィルタボタン */
    .footer-links,         /* フッターのリンク集 */
    .slideshow-container,  /* トップページのスライドショー画像 */
    .page-header-overlay,  /* 下層ページヘッダーの暗いカバー */
    iframe                 /* Googleマップ本体 */
    {
        display: none !important;
    }

    /* ★ヘッダーの特別設定（ロゴを表示させる） */
    .site-header {
        display: block !important;    /* 表示する */
        position: static !important;  /* 固定せず、文書の先頭に配置 */
        background: none !important;  /* 背景色なし */
        border-bottom: none !important; /* 印刷用の線はページタイトル側につけるので、ここは消す */
        height: auto !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .site-header .header-inner {
        height: auto !important;
        padding: 10px 0 !important;
    }

    /* ヘッダー内のナビゲーション（メニュー）だけを隠す */
    .site-header .nav-menu,
    .site-header .hamburger {
        display: none !important;
    }

    /* ロゴのサイズ調整（大きすぎないように） */
    .logo img {
        height: 40px !important; /* 必要に応じて調整してください */
        width: auto !important;
    }

    /* ★地図の外枠を強制的に消す */
    .map-container {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 3. インク節約・視認性向上のためのリセット */
    body, .section-padding, .bg-gray, .contact-section, .site-footer, .hero-section {
        background-color: #fff !important;
        background-image: none !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* 4. レイアウト調整 */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ページタイトル周り */
    .page-header {
        height: auto !important;
        margin-top: 0 !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
        border-bottom: 2px solid #000; /* タイトルの下に太めの線 */
        background: none !important;
    }
    .page-header-content {
        background: none !important;
        padding: 0 !important;
        color: #000 !important;
    }
    .page-title {
        color: #000 !important;
        text-shadow: none !important;
        margin-bottom: 0 !important;
        font-size: 1.8rem !important;
    }
    .page-subtitle {
        color: #000 !important;
        text-shadow: none !important;
    }

    /* 5. 改ページ制御 */
    table, 
    .about-content, 
    .service-card {
        page-break-inside: auto !important; 
    }
    tr, 
    .work-item, 
    .process-item {
        page-break-inside: avoid !important;
    }
    h2, h3, .section-title {
        page-break-after: avoid !important;
        margin-top: 30px !important;
    }
    
    /* 6. フッター調整 */
    .site-footer {
        border-top: 2px solid #000 !important;
        padding: 20px 0 !important;
        margin-top: 20px !important;
    }
    .copyright {
        color: #000 !important;
        margin-top: 0 !important;
        border: none !important;
    }

