@charset "UTF-8";

/* ==========================================================================
   ファイル名: home.css
   役割: トップページ専用のデザイン設定
   ========================================================================== */

/* -------------------------------------------------------
   【共通】色の設定（変数）
   後で色を変えたい時はここを変更すれば一括で変わります
   -------------------------------------------------------
*/
:root {
    --home-primary: #0050A0;  /* メインカラー（青） */
    --home-text: #333333;     /* 文字色（濃いグレー） */
    --home-light-bg: #F5F8FA; /* 薄いグレーの背景色 */
}

/* 各セクションの余白設定 */
.home-section {
    padding: 20px 0; /* 上下に広めの余白 */
}

/* コンテンツの幅制限 */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------
   【1】メインビジュアル（一番上の画像）
   -------------------------------------------------------
*/
.hero {
    width: 100%;
    margin: 0;
    line-height: 0; /* 画像の下に変な隙間ができないようにする */
}

.hero img {
    width: 100%;    /* 画面いっぱいに広げる */
    height: auto;   /* 高さは自動調整 */
    display: block;
}

/* -------------------------------------------------------
   【2】数字で見るデータバー（Stats）
   -------------------------------------------------------
*/
.stats-bar {
    /* 青色のグラデーション背景 */
    background: linear-gradient(135deg, #004080 0%, #0050A0 100%);
    color: white;
    padding: 60px 0;
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4つの要素を均等に並べる */
    gap: 20px;
    text-align: center;
}

.stats-item {
    position: relative;
}

/* PC画面のみ：右側に区切り線を入れる */
@media (min-width: 993px) {
    .stats-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background-color: rgba(255,255,255,0.2); /* 半透明の白い線 */
    }
}

.stats-label {
    font-size: 1.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase; /* 大文字に変換 */
    margin-bottom: 5px;
    font-family: sans-serif;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 5px;
}

/* 「OMUTA」の文字サイズ調整用 */
.stats-number.text-lg {
    font-size: 3.5rem; 
}

.stats-sub {
    font-size: 1.7rem;
    opacity: 0.8;
}

/* -------------------------------------------------------
   【3】ごあいさつセクション
   -------------------------------------------------------
*/
.greeting-section {
    background-color: #fff;
    padding-top: 20px;
}

/* 「ごあいさつ」という見出し */
.greeting-section h4 {
    font-size: 2.0rem;   /* 文字サイズ */
    text-align: center;  /* 中央寄せ */
    margin-bottom: 20px; /* 下の余白 */
    color: var(--home-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: "Yu Mincho", serif; /* 明朝体 */
}

/* 2カラムレイアウト（画像と文章） */
.greeting-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 左:右 = 1 : 1.2 の比率 */
    gap: 60px;
    align-items: center;
}

/* 画像まわり */
.greeting-image-wrapper {
    position: relative;
    box-shadow: 20px 20px 0 #f0f4f8; /* 背景の四角い影 */
    border-radius: 4px;
}

.greeting-img {
    width: 100%;
    height: auto;
    display: block;
    object-position: top center; /* 写真の表示位置調整 */
}

/* 文章まわり */
.greeting-content h2 {
    font-size: 2.4rem;
    line-height: 1.4;
    margin-bottom: 35px;
    color: var(--home-primary);
    font-family: "Yu Mincho", serif;
    letter-spacing: -0.05em;
}

.greeting-text {
    color: #444;
}

.greeting-text p {
    font-size: 1.25rem; /* 本文の文字サイズ */
    line-height: 2.0;   /* 行間 */
    margin-bottom: 30px;
    text-align: justify; /* 両端揃え */
}

/* 最後の段落（署名部分）だけ右寄せにする */
.greeting-text p:last-child {
    font-size: 1.1rem; 
    text-align: right;
    font-weight: 700;
    color: #555;
    margin-top: 20px;
}

/* -------------------------------------------------------
   【4】社名の由来セクション
   -------------------------------------------------------
*/
.origin-section {
    background-color: var(--home-light-bg); /* 背景を薄いグレーに */
}

.origin-wrapper {
    max-width: 900px; /* 読みやすいように幅を少し狭くする */
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--home-primary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

/* タイトルの下線 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--home-primary);
}

.origin-content p {
    margin-bottom: 2em;
    text-align: justify;
    line-height: 2;
    color: var(--home-text);
    font-size: 1.05rem;
}

.origin-highlight {
    font-weight: 700;
    color: var(--home-primary);
    font-size: 1.2rem;
}

/* -------------------------------------------------------
   【スマホ対応】レスポンシブ設定
   -------------------------------------------------------
*/
/* タブレット・小さいPC向け (992px以下) */
@media (max-width: 992px) {
    .stats-grid { 
        grid-template-columns: 1fr 1fr; /* 2列にする */
        gap: 30px; 
    }
    
    .stats-item::after { display: none; /* 区切り線を消す */ }

    .greeting-grid { 
        grid-template-columns: 1fr; /* 1列にする */
        gap: 40px;
    }
    
    .greeting-image-wrapper { 
        margin: 0 auto 40px; 
        max-width: 500px;
        box-shadow: 10px 10px 0 #f0f4f8;
    }

    .greeting-content h2 {
        font-size: 2rem;
        text-align: center;
    }
}

/* スマホ向け (576px以下) */
@media (max-width: 576px) {
    /* 「ごあいさつ」見出し調整 */
    .greeting-section h4 {
        font-size: 1.7rem; 
        margin-bottom: 30px;
    }

    /* データバーをコンパクトに */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 10px;
    }

    .stats-bar {
        padding: 30px 0;
    }

    .stats-label {
        font-size: 0.7rem;
    }

    .stats-number {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    /* 「OMUTA」の文字サイズを他の数字に近づける */
    .stats-number.text-lg {
        font-size: 1.9rem; /* 1.6rem から 1.9rem に変更 */
        margin-top: 3px;   /* 位置を微調整 */
    }

    .stats-sub {
        font-size: 0.7rem;
    }
    
    /* 本文の文字サイズをスマホ用に調整 */
    .greeting-text p {
        font-size: 1.05rem; 
        text-align: left;
    }
    
    .origin-content p {
        font-size: 0.95rem;
    }
}