@charset "utf-8";

/* ==========================================================================
   Loading Animation (Split Door)
   ========================================================================== */
.new-loader {
    position: fixed !important; 
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    z-index: 99999 !important; /* 最前面を強制 */
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
    background-color: transparent !important; /* ★修正: 絶対に透明にする！ */
    pointer-events: auto; /* ロード中の誤クリック防止 */
}
.new-loader.is-loaded {
    pointer-events: none; /* 扉が開き始めたらクリック貫通 */
}

.loader-panel {
    position: absolute; top: 0; 
    width: 50.5%; /* ★修正: 中央の隙間を防ぐために50%ではなく少し余分に */
    height: 100vh;
    background-color: #111 !important; /* 扉の色 */
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}
.loader-left { left: 0; transform-origin: left; }
.loader-right { right: 0; transform-origin: right; }

.loader-content {
    position: relative; z-index: 2; text-align: center;
    transition: opacity 0.5s ease;
}
.loader-content img {
    max-width: 180px; margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.loader-progress {
    width: 0; height: 2px; background-color: var(--primary-color);
    margin: 0 auto;
    animation: loadProgress 2s ease-in-out forwards;
}

/* 読み込み完了時 (.is-loaded) に扉を開く */
.new-loader.is-loaded .loader-left { transform: translateX(-100%); }
.new-loader.is-loaded .loader-right { transform: translateX(100%); }
.new-loader.is-loaded .loader-content { opacity: 0; }

@keyframes loadProgress {
    0%   { width: 0; }
    100% { width: 100%; }
}

/* -------------------------
   ヒーローエリア
------------------------- */
.hero-carousel { position: relative; }
.carousel-inner, .carousel-item { height: 100vh; }
.carousel-item::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}
.carousel-item img { object-fit: cover; width: 100%; height: 100%; }
.carousel-caption { bottom: 25%; text-align: left; left: 8%; z-index: 2; max-width: 800px; }
.hero-badge {
    display: inline-block; background-color: white; color: var(--primary-color);
    padding: 6px 20px; border-radius: 30px; font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.15em; margin-bottom: 25px;
}
.carousel-caption h1 {
    font-size: 3.5rem; font-weight: 300; margin-bottom: 30px; 
    letter-spacing: 0.15em; line-height: 1.4; text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.carousel-caption p { font-size: 1.1rem; margin-bottom: 40px; font-weight: 300; letter-spacing: 0.1em; opacity: 0.9; }

.carousel-indicators { bottom: 60px; margin-bottom: 0; z-index: 5; }
.carousel-indicators [data-bs-target] {
    width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); border: none; margin: 0 6px; transition: all 0.3s ease; opacity: 1;
}
.carousel-indicators .active { background-color: #fff; transform: scale(1.2); }

.carousel-control-prev, .carousel-control-next { width: 8%; z-index: 5; opacity: 0.5; transition: opacity 0.3s ease; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 3rem; height: 3rem; background-size: 100% 100%; }

.scroll-down {
    position: absolute; bottom: 40px; right: 50px; z-index: 20; color: #fff;
    font-size: 1.5rem; text-align: center; opacity: 0.8; cursor: pointer; transition: opacity 0.3s ease;
}
.scroll-down:hover { opacity: 1; }
.scroll-down i { display: block; animation: bounce 2s infinite; }
.scroll-down span { display: block; font-size: 0.7rem; font-weight: 300; letter-spacing: 0.2em; margin-top: 5px; text-transform: uppercase; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}


section { padding: 100px 0; }

/* -------------------------
   事業案内
------------------------- */
#services { position: relative; background-color: var(--accent-color); padding-bottom: 0; overflow: hidden; z-index: 1; }
#services::before {
    content: '\f0f2'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: -10%; left: -5%; font-size: 50rem;
    color: rgba(0, 86, 179, 0.03); z-index: -1; transform: rotate(-15deg);
}
.swiper-container-freeflow { width: 100%; overflow: hidden; position: relative; z-index: 2; }
.services-swiper .swiper-wrapper { transition-timing-function: linear !important; }
.service-card {
    border: none; border-radius: 0; background: transparent; border-right: 1px solid rgba(0,0,0,0.05);
    height: 350px; padding: 40px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center;
    transition: background 0.4s, color 0.4s;
}
.service-card:hover { background: var(--primary-color); color: white; }
.service-icon-box { font-size: 3rem; color: var(--primary-color); margin-bottom: 25px; transition: color 0.4s; }
.service-card:hover .service-icon-box { color: white; }
.service-card-title { font-weight: 500; font-size: 1.2rem; letter-spacing: 0.1em; margin-bottom: 20px; position: relative; }
.service-card-title::after {
    content: ""; display: block; width: 30px; height: 2px;
    background-color: var(--primary-color); margin: 15px auto 0; transition: background-color 0.4s;
}
.service-card:hover .service-card-title::after { background-color: white; }
.service-card-text { font-size: 0.9rem; line-height: 1.8; font-weight: 300; }

/* -------------------------
   スタッフ紹介
------------------------- */
#staff { background-color: #fff; }
.staff-swiper { padding-bottom: 50px; }
.avatar-placeholder {
    width: 100%; aspect-ratio: 1 / 1; background-color: #f1f3f5; border-radius: 20px;
    display: flex; justify-content: center; align-items: center; color: #dee2e6; font-size: 6rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04); border: 2px dashed #e9ecef; margin: 0 auto; max-width: 280px;
}
.avatar-placeholder img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; display: none; }
.staff-msg { 
    line-height: 1.9; 
    font-weight: 300; 
    font-size: 0.95rem; 
    color: #444; 
    text-align: justify; /* ▼追加：両端揃え */
    text-justify: inter-ideograph; /* ▼追加：日本語の文字間を綺麗に調整 */
}
.staff-name { font-weight: 500; color: var(--primary-color); letter-spacing: 0.1em; }
.staff-role { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.swiper-pagination-staff .swiper-pagination-bullet {
    width: 12px; height: 12px; background-color: #ccc; opacity: 1; margin: 0 6px !important; transition: all 0.3s ease;
}
.swiper-pagination-staff .swiper-pagination-bullet-active { background-color: var(--primary-color); transform: scale(1.2); }

/* -------------------------
   業務パートナー募集
------------------------- */
#partner { background-color: var(--accent-color); }
.partner-box { background-color: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.benefit-list li { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: flex-start; }
.benefit-list li i { margin-top: 5px; color: var(--primary-light-color); font-size: 0.8rem; margin-right: 12px; }

/* -------------------------
   施工事例
------------------------- */
#works { background-color: #fff; }
.works-card {
    border: none; border-radius: 10px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: box-shadow 0.3s; height: 100%;
}
.works-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.works-card-img-wrapper { position: relative; overflow: hidden; height: 220px; }
.works-card-img-wrapper img { object-fit: cover; width: 100%; height: 100%; transition: transform 0.6s ease; }
.works-card:hover .works-card-img-wrapper img { transform: scale(1.08); }
.works-card-body { padding: 25px; background-color: #fff; }
.works-badge {
    display: inline-block; background-color: var(--accent-color); color: var(--primary-color);
    font-size: 0.75rem; padding: 5px 14px; border-radius: 4px; margin-bottom: 15px; font-weight: 700; letter-spacing: 0.1em;
}
.works-card-title { font-weight: 500; margin-bottom: 12px; font-size: 1rem; line-height: 1.5; }
.works-card-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* -------------------------
   Instagram
------------------------- */
#instagram { 
    position: relative; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 120px; z-index: 1;
}
#instagram::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 80px; background: #fff; 
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%); z-index: -1;
}
.insta-thumb { position: relative; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);}
.insta-thumb img { object-fit: cover; width: 100%; height: 220px; filter: grayscale(0.2); transition: all 0.4s; }
.insta-thumb:hover img { filter: grayscale(0); transform: scale(1.05); }
.insta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4);
    display: flex; justify-content: center; align-items: center; color: white; font-size: 2rem; opacity: 0; transition: opacity 0.3s;
}
.insta-thumb:hover .insta-overlay { opacity: 1; }

/* -------------------------
   レスポンシブ (トップ専用)
------------------------- */
@media (max-width: 991px) {
    .carousel-caption h1 { font-size: 2.5rem; letter-spacing: 0.1em; }
    .partner-box { padding: 25px; }
    .carousel-indicators { bottom: 80px; }
}
@media (max-width: 767px) {
    .carousel-caption h1 { font-size: 1.8rem; }
    .carousel-caption p { font-size: 0.9rem; }
    .carousel-item::after { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%); }
    .insta-thumb img { height: 160px; }
    .carousel-indicators { bottom: 100px; display: flex; }
}

/* -------------------------
   お知らせ (News)
------------------------- */
.c-heading-news {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}
.c-heading-news .line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-right: 15px;
}

/* リスト全体のアニメーション */
.news-item a {
    position: relative;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 滑らかな動き */
}

/* ホバー時の行の変化 */
.news-item a:hover {
    background-color: #f8f9fa; /* 背景をほんのりハイライト */
    transform: translateX(8px); /* 行ごと少し右にスライド */
}

/* ホバー時のタイトルの色変化 */
.news-item a:hover .news-title-text {
    color: var(--primary-color) !important;
}

/* ★カッコいい丸型矢印の基本スタイル */
.news-arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    color: #adb5bd;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

/* ホバー時に矢印が塗りつぶされて動く */
.news-item a:hover .news-arrow-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================================================
   Smash Balloon Instagram Feed カスタマイズ
   ========================================================================== */
/* プラグイン標準のヘッダーと下部ボタン（さらに読み込む・フォローする）を非表示 */
#sb_instagram .sb_instagram_header,
#sb_instagram #sbi_load,
#sb_instagram .sbi_follow_btn {
    display: none !important;
}

/* インスタ画像の枠をスタイリッシュに装飾 */
#sb_instagram #sbi_images .sbi_item {
    border-radius: 8px; /* 角を丸くする */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* ふんわりとした影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー（マウスカーソルを乗せた時）の動き */
#sb_instagram #sbi_images .sbi_item:hover {
    transform: translateY(-5px); /* 少し上に浮かす */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* 影を濃くする */
}

/* ==========================================================================
   右側 フローティングメニュー (トップページ用)
   ========================================================================== */
.floating-side-menu.pos-right {
    position: fixed;
    top: 25%;
    right: 20px; /* 画面右端からの余白 */
    transform: translateY(-25%);
    z-index: 1050; /* ヒーローエリアより前面に出るように調整 */
    display: flex;
    flex-direction: column;
    gap: 15px; /* ボタン同士の隙間 */
}

/* ボタンの基本形状と動き */
.floating-side-menu.pos-right .floating-circle-btn {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーで少し浮き上がる動き */
.floating-side-menu.pos-right .floating-circle-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* アイコンのサイズと色 */
.floating-side-menu.pos-right .floating-circle-btn i {
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: #ffffff; /* 確実に白にする */
}

/* テキストのサイズ */
.floating-side-menu.pos-right .floating-circle-btn span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: center;
}

/* LINEカラー */
.floating-side-menu.pos-right .btn-line {
    background-color: #06C755;
}

/* 不動産カラー (目立つように赤紫系のアクセントカラー) */
.floating-side-menu.pos-right .btn-estate {
    background-color: #c23561; 
}