/* --- ベース設定 --- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* --- 全体レイアウト --- */
.layout-wrapper {
    width: 100%;
}

/* --- 固定サイド --- */
.sidebar-left,
.sidebar-right {
    position: fixed;
    top: 0;
    height: 100vh;
    overflow: hidden;
    width: 30%;
}

.sidebar-left {
    left: 0;
}

.sidebar-right {
    right: 0;
}

.side-img{
    position: relative;
    width:100%;
    height:100%;
    overflow:hidden;
}

.side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-img-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.7s ease-in-out; /* ここでフェード時間を調整 */
    opacity: 0;
}

.side-img-base.active {
    opacity: 1;
}

/* --- 中央エリア --- */
.main-content {
    width: 40%;
    margin-left: 30%;
    min-height: 100vh;
    background: #f9f9f9;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    position: relative;
}


/* --- 固定ヘッダー --- */
.header-inner {
    position: fixed;
    top: 0;
    left: 30%;
    right: 30%;
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 40px;
    z-index: 500;
    box-sizing: border-box;
}

/* --- スクロール出現白帯 --- */
.sticky-header {
    position: fixed;
    top: 0;

    left: 30%;
    right: 30%;
    width: auto;

    height: 60px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);

    opacity: 0;
    transition: opacity 0.2s ease-in-out;

    z-index: 400;
    pointer-events: none;

    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;

    box-sizing: border-box;
}

.sticky-header.is-visible {
    opacity: 1;
}


/* --- ロゴのサイズ --- */
.logo {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    margin-left: -20px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- お問い合わせボタン --- */
.btn-text {
    display: inline-block;
    padding: 7px 18px;
    margin: 0 -10px 0 0;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-text:hover {
    transform: translateY(-3px);
}

/* --- ヒーローセクション --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/head2c.jpg');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 35px;
    transform: translateY(-60px); /* 白帯ブロックを上に上げる */
}

.hero-text-box{
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 10px 35px 25px;
    margin-bottom: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
}

.hero-text h1 {
    font-size: 1.4rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 10px;
}

.hero-text h1 span {
    display: block;
    font-size: 1.55rem;
    color: #333;
}

.company-name {
    display: inline-block;
    font-size: 1.05em !important;
    color: #ffffff !important;
    background-color: #85C468;
    padding: 10px 20px;
    border-radius: 10px;
    margin: 10px 15px 0;
}

.btn-main {
    display: inline-block;
    padding: 18px 40px;
    background: #ffcc00;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s, background 0.3s;
}

.btn-main:hover {
    background: #e6b800;
    transform: translateY(-3px);
}

/* --- リードセクション --- */
.lead {
    padding: 60px 40px;
}

.lead-intro{
    width: 90%;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: left;
}

.lead-intro p{
    margin:0;
    font-size:1.2rem;
    line-height:1.8;
    color:#333;
    font-weight:500;
    margin-bottom:20px;
}

.lead-note{
    margin-top:40px;
    padding:30px;
    background:#fff;
    border-radius:12px;
    text-align:left;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.lead-note p{
    margin:0 0 15px;
    line-height:1.8;
    color:#333;
}

.lead-note p:last-child{
    margin-bottom:0;
}

.points {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    gap: 30px;
}

.points li {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* はみ出し防止 */
}

/* 画像 */
.point-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 20px;
    object-fit: cover;
}

/* 番号 */
.points li strong {
    font-size: 2rem;
    color: #85C468;
    text-align: center;
}

.point-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.point-heading strong{
    display:inline-block;
    margin:0;
    font-size:2rem;
    line-height:1;
}

.point-heading h3{
    margin:0;
    padding:0;
    line-height:1.2;
}

/* テキスト */
.points li h3 {
    text-align: center;
}

.points li p {
    margin: 10px 0 5px;
    line-height: 1.8;
    word-break: break-word;
}

.highlight {
    color: #e83e8c; /* ピンク系の赤色 */
    font-weight: bold;
}

/* ==========================
   会社概要
========================== */

.company {
    padding: 40px 40px 80px;
    background: #f7f7f7;
}

.company .container {
    max-width: 1000px;
    margin: 0 auto;
}

.company h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.company table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.company th,
.company td {
    padding: 18px 24px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.company th {
    width: 160px;
    background: #fafafa;
    font-weight: bold;
    color: #333;
}

.company tr:last-child th,
.company tr:last-child td {
    border-bottom: none;
}

/* ==========================
   アクセス
========================== */

.map {
    padding: 80px 40px 150px;
    background: #fff;
}

.map .container {
    max-width: 1000px;
    margin: 0 auto;
}

.map h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.map-frame {
    overflow: hidden;
    border-radius: 20px;
    /* box-shadow: 0 8px 25px rgba(0,0,0,0.15); */
}

.map-frame iframe {
    display: block;
    width: 100%; 
    height: 450px;
}

.map-note {
    background: #f9f9f9;
    border-left: 5px solid #85C468; /* 緑ラインで視認性を上げる */
    padding: 15px;
    margin: 0 auto 20px auto;
    max-width: 800px;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.6;
}

.map-note strong {
    color: #85C468;
    font-size: 1.05rem;
}

/* ==========================
   右側ブロック
========================== */
.sidebar-right{
    background:#fff8ec;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    padding-top:100px;
    overflow-y:auto;
}

.cta-list{
    list-style:none;
    padding:0;
    margin:0 0 0px;
}

.cta-list li{
    padding:5px 0;
    font-size:1.1rem;
    border-bottom:1px solid #eee;
}

.cta-btn{
    display:block;
    text-align:center;
    background:#ffcc00;
    color:#333;
    text-decoration:none;
    font-weight:bold;
    padding:18px 40px;
    border-radius:50px;
    margin-bottom:20px;
    transition: all 0.3s ease;
    font-size:1.5rem !important;
}

.cta-btn:hover{
    background:#e6b800;
    transform: translateY(-3px);
}

.cta-copy{
    font-size:1.3rem !important;
    font-weight:bold;
    color:#007bff !important;
    margin-bottom: 20px;
    text-align:center;
    line-height:2.0;
}

.download-box{
    background:#FFFEF9;
    border-radius:15px;
    padding:20px;
    text-align:center;
}

.download-box h3{
    margin-top:0;
    margin-bottom:10px;
    color:#333;
}

.download-box p{
    margin:0;
    color:#444;
    line-height:1.8;
}

.sp-cta{
    display:none;
}

.sp-driver-image{
    display:none;
}


.tel-box{
    text-align:center;
    margin-top:0px;
    margin-bottom:30px;
}

.tel-box span{
    display:block;
    margin:10px 0 0;
    color:#333;
    font-weight:600;
    font-size:1.0rem;
}

.tel-box p{
    margin:10px 0 0;
    color:#666;
    font-size:0.9rem !important;
}

.tel-box a {
    display: inline-block;
    font-size: 2.3rem;      /* 数字を大きく */
    font-weight: 800;       /* 太く */
    color: #333;            /* 文字色 */
    text-decoration: none;  /* 下線を消す */
    letter-spacing: 0.03em; /* 数字の間隔を少し開ける */
    transition: opacity 0.3s;
}

/* ホバーした時に少し薄くする（PC用） */
.tel-box a:hover {
    opacity: 0.7;
}

/* スマホでタップした時の背景色変化を抑える */
.tel-box a:active {
    background-color: transparent;
}

/* --- PC用：PCでは表示、スマホでは非表示 --- */
.event-box {
    width: 80%;
    margin: 0 auto 25px;
    padding: 15px;
    background: #007bff;
    border-radius: 15px;
    text-align: center;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
}

.sp-event-box {
    display: none; /* ←これがPC版（右サイドバー）でも有効になっているため消えています */
}

/* --- 共通：タイトルとサブタイトルのスタイル --- */
.event-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2rem;
    padding: 10px 0;
}

.event-sub {
    margin: 5px 0 0;
    font-size: 1.10rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
    padding: 0 10px 10px 15px;
}

/* ==========================
   フッター
========================== */
.footer {
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 10px 20px;

    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;

    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.footer a{
    color:#fff;
    text-decoration:none;
}

.footer a:hover{
    text-decoration:underline;
}

/* ==========================
   レスポンシブ (max-width: 1024px)
========================== */
@media screen and (max-width: 1024px) {
.hero-text {
    padding-bottom: 70px;
}

.hero-text h1 {
    font-size: 1.3rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 30px;
}

.hero-text h1 span {
    display: block;
    font-size: 1.5rem;
    color: #333;
}
}

/* ==========================
   レスポンシブ(max-width: 868px) 
========================== */
@media screen and (max-width: 868px) {
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
        padding-bottom: 0 !important;
    }

    html, body {
        overflow-x: hidden; /* 横方向のスクロールを物理的に禁止する */
        width: 100%;
        height: auto;
    }

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

    .layout-wrapper {
        display: block;
    }

    .sidebar-left {
        display: none !important;*/
        /* display: block !important;  */
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: -1;          /* コンテンツの後ろに隠す */
        pointer-events: none; /* タップ操作を透過させる */
    }

    .sidebar-right {
        display: none !important; /* 右側は消してOK */
    }

    /* 画像自体もSPで画面全体に広がるように調整 */
    .side-img-base {
        width: 100% !important;
        height: 100vh !important;
        object-fit: cover;
    }

    .main-content{
        width:100%;
        margin:0;
        min-height:auto;
        border:none;
    }

    .main-content, .layout-wrapper {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .logo {
        margin-left: -10px;
    }

    .logo img {
        width: 90%;
    }

    .header-inner,
    .sticky-header {
        position: fixed;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/head2c.jpg');
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
}

    .hero-text-box{
        padding: 30px 15px;
        border-radius: 10px;
    }

    .hero-text h1 {
        font-size: 1.15rem !important;
        line-height: 1.3;
        margin: 0 !important;
    }

    .hero-text h1 span {
        font-size: 1.3rem !important;
    }

    .hero-text h1 .company-name{
        display:block;
        width:fit-content;
        margin:10px auto 0;
        padding:8px 18px;
        font-size:1.35rem !important;
    }

    .highlight {
        color: #e83e8c;
        font-weight: 600; /* より太くする場合 */
        background: linear-gradient(transparent 50%, #ffe0f0 80%); /* マーカー風の装飾 */
        padding: 0 2px;
    }

    .lead{
        padding:60px 15px;
    }

    .lead-intro{
        width: 100%;
        max-width: 800px;
    }

    .lead-intro p{
        padding: 0px 30px;
    }

    .company,
    .map {
        padding: 60px 20px;
    }

    .company h2,
    .map h2 {
        font-size: 1.6rem;
    }

    .company th,
    .company td {
        display: block;
        width: 100%;
    }

    .company th {
        border-bottom: none;
        background: #f5f5f5;
    }

    .map-frame iframe {
        height: 300px;
    }

    .map, .sp-driver-image {
        margin-bottom: 0 !important;
    }

.cta-copy{
    font-size:1.4rem !important;
    margin: 25px 0 25px;
}

    .cta-btn{
        display:inline-block;
        padding:18px 40px;
        margin:0 auto;
        font-size:1.3rem !important;
    }

    .sp-cta {
        display: block;
        width: calc(100% - 40px); /* 左右20pxずつのマージンを考慮 */
        margin: 40px auto;        /* 中央寄せ */
        padding: 30px 20px;
        background: #fff8ec;
        border-radius: 20px;
        box-sizing: border-box;   /* paddingを含めて計算させる */
        text-align:center;
    }

    .sp-cta h2{
        text-align:center;
        margin-top:0;
    }

    .sp-cta ul{
        list-style:none;
        padding:0;
        text-align: center;
    }

    .sp-cta li{
        padding:10px 0;
        border-bottom:1px solid #ddd;
    }

    .sp-tel{
        text-align:center;
        margin:30px 0;
    }

    .sp-tel a{
        font-size:2rem;
        font-weight:bold;
        text-decoration:none;
        color:#333;
    }

    .sp-driver-image {
        display: block;
        width: calc(100% - 40px); /* 左右の余白分を差し引く */
        aspect-ratio: 3/4;
        overflow: hidden;
        border-radius: 20px;
        margin: 40px auto; /* 左右をautoにして中央寄せ */
    }

    .sp-driver-image img{
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center top;
        display:block;
    }

    .sp-message{
        margin-top:30px;
        padding:20px;
        background:#fff;
        border-radius:15px;
        text-align:center;
    }

    .sp-message h3{
        margin:0 0 10px;
        font-size:1.2rem;
        color:#333;
    }

    .sp-message p{
        margin:0;
        color:#666;
        line-height:1.8;
    }

    .sp-tel p{
        margin:10px 0 0;
        font-size:0.9rem;
        color:#666;
    }

    .sp-tel span{
        margin:10px 0;
    }

    .event-box {
        display: none; /* スマホではPC用を消す */
    }

    .sp-event-box {
        display: block; /* スマホではこっちを表示 */
        width: 90%;
        margin: 20px auto 30px;
        background: #007bff;
        border-radius: 15px;
        text-align: center;
    }

    .sp-fixed-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        z-index: 9999; /* 他の要素より上に表示 */
        height: 60px;
    }

    .sp-fixed-nav a {
        flex: 1; /* 2つのボタンを50%ずつ均等に配置 */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        font-weight: bold;
    }

    .nav-tel {
        background: #333; /* 電話ボタンは濃い色 */
        color: #fff;
    }

    .nav-contact {
        background: #ffcc00; /* 相談ボタンは目立つ色 */
        color: #333;
    }

    .nav-tel span {
        font-size: 0.85rem;
    }

    .footer {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important; 
        padding-top: 10px !important;
        padding-bottom: 80px !important; 
        background-color: #333333; 
        color: #ffffff;
    }

    .footer p {
        font-size: 0.8rem;
        margin: 0; /* pタグの余計な余白も消す */
    }
}
