@charset "UTF-8";

/* ==================================
   Base Reset
================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.inner {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 0; /* 基準となる上下のパディングは100px */
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* ==================================
   改行制御用クラス
================================== */
/* PC表示ではそのまま改行させる */
.pc-br {
    display: inline;
}
/* PC表示では非表示（スマホでのみ改行させたい箇所用） */
.sp-br {
    display: none;
}

/* ==================================
   Hero
================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    /* WebP化した画像を読み込む設定に変更 */
    background-image: url('../image/hero-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.hero-sub {
    font-family: "Shippori Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
    font-size: 32px;
    color: #666;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* ==================================
   About
================================== */
.about .inner {
    max-width: 1650px; 
}

.about .about-text { width: 45%; } 
.about .about-image { width: 50%; } 
.about .about-image img { width: 100%; height: 100%; object-fit: cover; } 

.section-title-left {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.section-title-left h2 {
    font-size: 64px; 
    font-weight: bold;
}
.title-line {
    height: 1px;
    width: 120px;
    background-color: #333;
    margin: 0 20px;
}
.section-title-left span {
    font-size: 21px; 
    font-weight: bold;
    letter-spacing: 0.05em;
}

.about h3 { font-size: 42px; margin-bottom: 30px; line-height: 1.6; } 
.about .lead-text { font-size: 24px; font-weight: bold; margin-bottom: 15px; } 
.about .desc { color: #555; line-height: 1.8; font-size: 24px; } 

/* ==================================
   Trouble
================================== */
.trouble {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath fill='%237f7442' d='M0,80 C240,10 480,10 720,50 C960,90 1200,90 1440,20 L1440,850 C1200,920 960,920 720,850 C480,780 240,780 0,850 Z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 80px 0; 
    margin-top: -60px;
}

.trouble h2 { font-size: 36px; margin-bottom: 60px; }

.trouble-rows {
    display: flex;
    flex-direction: column;
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto 50px;
}

.trouble-row {
    display: flex;
    justify-content: center;
    gap: 30px; 
}

.trouble-item {
    width: 340px; 
    height: 140px; 
    border: 1px solid #fff;
    border-radius: 70px; 
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    font-size: 19px; 
    font-weight: bold;
    line-height: 1.6;
}

.trouble-bottom-text p {
    font-size: 24px;
    line-height: 1.8;
}
.trouble-bottom-text span {
    font-size: 26px;
    font-weight: bold;
}

/* ==================================
   Business
================================== */
.business .inner {
    padding-bottom: 30px; 
}

.section-title-center {
    text-align: center;
    margin-bottom: 10px;
}

.section-title-center h2 {
    font-size: 64px; 
    font-weight: bold;
}

.section-title-center span {
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.business-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 0; 
    width: 100%; 
}
.business-item { 
    position: relative; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
}
.business-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
.overlay-text { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: #fff; 
    font-size: 72px; 
    font-weight: bold; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6); 
}

/* ==================================
   Policy
================================== */
.policy { 
    background-color: #fff; 
    padding-top: 50px;
}

.policy-title-wrap {
    text-align: center;
    margin-bottom: 30px; 
}

.policy-title {
    display: inline-block;
    font-size: 36px; 
    font-weight: bold;
    color: #000;
    background: linear-gradient(transparent 50%, #7f7442 50%); 
    padding: 0 5px; 
}

.policy-box { 
    background: #fff; 
    border: 4px solid #7f7442; 
    border-radius: 20px; 
    padding: 60px 40px; 
    text-align: center; 
    width: 100%; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.check-list { 
    display: flex; 
    justify-content: center; 
    gap: 50px; 
    list-style: none; 
    margin-bottom: 40px; 
    flex-wrap: nowrap; 
    white-space: nowrap; 
    font-size: 22px; 
    font-weight: bold;
}

.check-img { 
    width: 32px; 
    height: 32px; 
    margin-right: 12px; 
    object-fit: contain; 
    vertical-align: middle; 
}

.policy-desc { 
    font-size: 26px; 
    font-weight: bold; 
    color: #000;
}

/* ==================================
   Message
================================== */
.message .inner {
    padding-bottom: 250px;
}

.message .message-text { 
    text-align: center; 
    margin-top: 40px; 
    font-size: 24px; 
    line-height: 2; 
}
.message .message-text strong {
    font-weight: bold;
}

/* ==================================
   Footer CTA
================================== */
.footer-cta {
    background: #6f4a1d; 
    color: #fff;
    text-align: center;
    padding: 40px 0; 
}

.footer-cta .inner {
    padding: 0;
}

.footer-cta h2 {
    font-size: 48px; 
    margin-bottom: 15px; 
}

.footer-cta p {
    font-size: 24px; 
    line-height: 1.6;
}

.cta-grid { 
    display: flex; 
    justify-content: center; 
    align-items: stretch; 
    gap: 100px; 
    margin-top: 50px; 
    position: relative; 
}

.cta-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 100%; 
    background-color: rgba(255, 255, 255, 0.6);
}

.cta-block { 
    width: 450px; 
    max-width: 45%; 
    display: flex;
    flex-direction: column; 
}

.cta-icon-wrap { 
    height: 105px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px; 
}
.cta-icon-img { 
    max-height: 100%; 
    width: auto; 
}

.cta-lead {
    font-size: 26px; 
    margin-bottom: 25px; 
    font-weight: bold;
}

.cta-btn-white { 
    display: flex; 
    align-items: center;
    justify-content: center;
    background: #fff; 
    color: #6f4a1d; 
    height: 70px; 
    width: 100%;
    font-weight: bold; 
    text-decoration: none; 
    border-radius: 8px; 
    font-size: 28px; 
    transition: 0.3s; 
    margin-top: auto; 
}

.cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #fdfdfd;
}

.cta-tel-text {
    height: 70px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; 
}

.cta-tel { 
    font-size: 38px; 
    font-weight: bold; 
    cursor: default; 
    line-height: 1;
    display: flex;
    align-items: baseline; 
    gap: 8px; 
}

.cta-tel span { 
    font-size: 19px; 
    font-weight: normal; 
}


/* ==================================
   Responsive (スマートフォン向け最適化)
================================== */
@media (max-width: 900px) {

    /* 変な場所で改行されないようにPC用のbrを非表示にし、自然な折り返しに任せる */
    .pc-br { display: none; }
    .sp-br { display: inline; }

    /* Hero */
    .hero-text h1 { 
        font-size: min(10vw, 45px); /* 画面幅に合わせて自動縮小 */
        white-space: nowrap; /* 絶対に改行させない */
    }
    .hero-sub { font-size: 18px; }
    
    /* 共通見出し */
    .section-title-left h2, .section-title-center h2 { font-size: 28px; }
    .section-title-left span, .section-title-center span { font-size: 14px; }
    
    /* About */
    .title-line { width: 40px; margin: 0 10px; } /* 線を短くして「Re:bootについて」を1行に */
    .about .about-text, .about .about-image { width: 100%; margin-bottom: 30px; }
    .about h3 { font-size: 22px; margin-bottom: 15px; line-height: 1.6; }
    .about .lead-text { font-size: 16px; margin-bottom: 15px; }
    .about .desc { font-size: 15px; line-height: 1.8; }
    
    /* Trouble (上下余白を半分に、項目の大きさと間隔を統一) */
    .trouble {
        background-image: none; 
        background-color: #7f7442; 
        margin-top: 0; 
        padding: 40px 15px; /* 上下余白をPC版の半分(40px)に */
    }
    .trouble h2 { font-size: 18px; margin-bottom: 30px; line-height: 1.5; }
    
    .trouble-rows { gap: 15px; } 
    .trouble-row { flex-direction: column; align-items: center; gap: 15px; }
    
    .trouble-item { 
        width: 100%; 
        max-width: 340px; 
        height: 100px; /* 全項目の高さを統一 */
        font-size: 15px; 
        padding: 10px; 
        min-height: auto; 
    }
    .trouble-bottom-text p { font-size: 15px; line-height: 1.6; }
    .trouble-bottom-text span { font-size: 18px; display: inline-block; margin-top: 5px;}
    
    /* Business */
    .business-grid { grid-template-columns: 1fr; }
    .business-item { aspect-ratio: 16 / 9; } 
    .overlay-text { font-size: 36px; }
    
    /* Policy (中間サイズにし、改行させない) */
    .policy { padding-top: 40px; }
    .policy-title { 
        font-size: 18px; /* 14pxと36pxの中間サイズ */
        line-height: 1.5; 
        white-space: nowrap; /* 強制的に1行にする */
    }
    .policy-box { padding: 30px 15px; width: 95%; }
    .check-list { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
        font-size: 15px; 
        margin-left: auto; 
        margin-right: auto; 
        width: fit-content; 
        white-space: normal; 
    }
    .check-img { width: 20px; height: 20px; margin-right: 8px;}
    .policy-desc { 
        font-size: 15px; /* 14pxと26pxの中間サイズ */
        margin-top: 20px;
        white-space: nowrap; /* 強制的に1行にする */
    }
    
    /* Message */
    .message .inner { 
        padding-top: 40px; /* 100pxの2/5のサイズに詰める */
        padding-bottom: 120px; 
        padding-left: 15px; 
        padding-right: 15px; 
    } 
    .message .message-text { 
        margin-top: 13px; /* 40pxの約1/3のサイズに詰める */
        font-size: 15px; 
        line-height: 1.8; 
    }
    
    /* Footer CTA */
    .footer-cta { padding: 40px 15px; }
    .footer-cta h2 { font-size: 24px; line-height: 1.5; margin-bottom: 10px; }
    .footer-cta p { font-size: 15px; }
    
    .cta-grid { flex-direction: column; align-items: center; gap: 30px; margin-top: 30px; }
    .cta-grid::after { display: none; } 
    
    .cta-block { width: 100%; max-width: 360px; }
    .cta-icon-wrap { height: 80px; margin-bottom: 10px; }
    .cta-lead { font-size: 16px; margin-bottom: 15px; }
    .cta-btn-white { font-size: 20px; height: 60px; }
    .cta-tel-text { height: 60px; }
    .cta-tel { font-size: 32px; justify-content: center; }
    .cta-tel span { font-size: 16px; }
}