@charset "UTF-8";

/* =========================================
   基本変数とリセット
   ========================================= */
:root {
    --fs-h2: 20px;
    --fs-h3: 18px;
    --fs-base: 14px;
    --fs-lead: 16px;
    --color-dark: #002d49;
    --color-white: #fff;
    --color-light: #DFDDDA;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-size: var(--fs-base);
    line-height: 1.6;
}

main {
    margin-left: 0;
    width: 100%;
    padding-top: 60px; /* ヘッダーの高さ分下げる */
}

section {
    padding: 60px 20px;
    min-height: auto;
}

/* =========================================
   ヘッダー（サイドバー）のスマホ化
   ========================================= */
.sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--color-dark);
    z-index: 99999 !important;
    display: flex;         
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ロゴの設定 */
.sidebar header {
    display: block !important;
    width: 120px;
    height: 40px;
    margin: 0;
    background-image: url(../image/logo.png) !important;
    background-size: contain;
    background-position: center left;
    background-repeat: no-repeat;
    font-size: 0px;
    color: transparent;
    filter: none;
}

.sidebar header::before {
    content: none !important;
    display: none !important;
}

/* ハンバーガーメニュー */
.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100000;
    margin-left: auto;
    top: auto; right: auto;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s;
}

.hamburger span:nth-of-type(1) { top: 0; }
.hamburger span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-of-type(3) { bottom: 0; }

.hamburger.active span:nth-of-type(1) {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-of-type(2) { opacity: 0; }
.hamburger.active span:nth-of-type(3) {
    bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

/* =========================================
   ナビゲーションメニュー（修正版）
   ========================================= */
.sidebar ul {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    
    /* 背景を透けない濃紺に設定 */
    background-color: var(--color-dark);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    
    /* ★修正点1：左揃えに変更 */
    align-items: flex-start; 
    
    /* 余白の調整 */
    padding-top: 0;
    padding-bottom: 40px;
    gap: 0; /* 隙間はpaddingで管理するため0に */
    
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar ul.active {
    transform: translateX(0);
}

.sidebar ul li {
    width: 100%;
    /* ★修正点2：テキストも左揃え */
    text-align: left; 
}

.sidebar ul a {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    
    /* ★修正点3：押しやすいように余白を広げる */
    padding: 20px 30px; 
    
    /* ★修正点4：薄い線を入れて区切る */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    text-decoration: none;
    box-sizing: border-box;
    width: 100%;
}

/* 左の縦線（PC用）を消す */
.sidebar ul li.current a::before {
    display: none;
}

/* =========================================
   SNSリンク（インスタ）のスマホ用調整
   ========================================= */
/* インスタのリンクだけ少し見た目を変える */
.sidebar ul li.sns-link a {
    border-bottom: none; /* 線はなし */
    padding: 15px 30px;  /* 上下を少し狭く */
    font-size: 14px;     /* 文字サイズ控えめ */
    color: #ccc;         /* 色を少し薄く */
    display: flex;       /* アイコンと文字を横並び */
    align-items: center;
}

/* アイコンと文字の間隔 */
.sidebar ul li.sns-link a .sns-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    fill: currentColor;
}

/* お問い合わせの下に少し隙間を空ける */
.sidebar ul li:nth-last-child(3) { 
    /* お問い合わせ(下から3番目)の下に余白 */
    margin-bottom: 20px;
    border-bottom: none; /* お問い合わせの下の線は消す（お好みで） */
}

#nav-list {
    top: 60px;
}

/* =========================================
   メインコンテンツの調整
   ========================================= */

/* 各コンテナを縦並びに */
.concept-container, .house-container, .event-container, .flow-container,
.staff-container, .company-container, .contact-container {
    flex-direction: column;
    align-items: center;
    margin-top: -36px;
    padding: 0;
}

/* サイドバー画像（見出し）の設定 */
.concept-sidebar, .house-sidebar, .event-sidebar, .staff-sidebar,
.company-sidebar, .contact-sidebar, .flow-sidebar {
    position: static;
    width: 100%; height: auto;
    margin-bottom: 40px;
    margin-left: 0;
    display: flex; justify-content: center;
}

.concept-sidebar img, .house-sidebar img, .event-sidebar img, .staff-sidebar img,
.company-sidebar img, .contact-sidebar img, .flow-sidebar img {
    margin: 0 auto !important;
    width: 40px;
}

/* コンテンツ部分の幅・余白調整 */
.concept-content, .house-content, .event-content, .flow-steps,
.staff-content, .company-content, .contact-content {
    margin-left: 0 !important; 
    padding-left: 5% !important;
    padding-right: 5% !important;
    box-sizing: border-box;
    width: 100% !important; 
    max-width: 100%;
}

.main-visual { height: 50vh; }

.top-message { padding: 40px 20px; }
.top-message h2 { font-size: 20px; }

.service-nav {
    flex-direction: column; align-items: center;
    gap: 40px; padding: 0 20px;
}
.service-box, .service-box .img-wrap { width: 100%; max-width: 360px; }

/* HOUSE */
.house-intro-area { flex-direction: column; min-height: auto; margin-bottom: 40px; }
.house-text, .roles-text { width: 100%; }

.circle-images {
    position: static; height: auto;
    display: flex; justify-content: center;
    gap: 20px; margin: 40px 0;
}
.circle-img { position: static; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.img-1 { width: 150px; height: 150px; }
.img-2 { width: 120px; height: 120px; }

.house-nav-grid {
    flex-direction: column; align-items: center; 
    margin: 60px 0 100px;
    gap: 20px; width: 100%;
}

.nav-item {
    width: 90% !important;
    margin: 0 auto !important;
    height: auto !important;
    padding: 25px 0 !important;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 45, 73, 0.3);
    border: none !important;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}

.nav-item .arrow-icon {
    position: static !important;
    margin-top: 15px; margin-left: 0 !important;
    transform: rotate(45deg) !important;
    border-bottom: 1px solid #fff !important;
    border-right: 1px solid #fff !important;
    border-top: none !important; border-left: none !important;
    width: 20px; height: 20px;
}
.nav-item .arrow-icon::after { display: none !important; }

.nav-item:hover {
    background-color: var(--color-dark) !important;
    color: var(--color-white) !important;
}

.detail-card {
    width: 90% !important;
    margin: 100px auto 0 !important;
    padding: 60px 20px 40px !important;
    box-sizing: border-box;
}

.detail-card .card-title {
    width: 85% !important;
    font-size: 18px !important;
    padding: 20px 10px !important;
    top: -40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.spec-item { flex-direction: column; text-align: center; gap: 20px; }
.spec-desc { width: 100%; text-align: left; }
.card-bottom-images { flex-wrap: nowrap; }
.card-bottom-images img { height: 100px; }

/* 快適な暮らし */
.comfortable-row {
    flex-direction: column-reverse !important;
    padding: 0 !important;
    gap: 30px !important;
    margin-bottom: 80px !important;
    width: 100% !important;
}

.comfortable-images {
    width: 100% !important;
    height: auto !important;
    margin: -30px auto 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.c-img-main {
    position: static !important;
    width: 160px !important;
    height: 160px !important;
    margin: 0 60px 0 0 !important;
    z-index: 2;
}
.c-img-sub {
    position: static !important;
    width: 100px !important;
    height: 100px !important;
    margin: -5px 0 0 100px !important;
    z-index: 1;
}

.comfortable-images.type-reverse .c-img-main { margin: 0 60px 0 0 !important; }
.comfortable-images.type-reverse .c-img-sub  { margin: -5px 0 0 100px !important; }

.comfortable-text {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important;
}

.comfortable-text p {
    font-size: 14px !important;
    line-height: 1.8;
    text-align: justify !important;
    width: 100% !important;
}

/* =========================================
   EVENT (イベントセクション)
   ========================================= */
#event {
    padding: 36px;
}

.event-sidebar{
    margin-top: 60px;
}
.event-intro {
    width: 100% !important; /* 幅制限解除 */
    margin-bottom: 30px !important;
    text-align: center;
}

/* キャンペーンバナーのスマホ対応 */
.campaign-grid {
    width: 100% !important;
    grid-template-columns: 1fr !important; /* 縦1列に */
    gap: 20px !important;
    margin: 0 !important;
    padding-bottom: 40px !important;
}

.campaign-box {
    padding: 20px !important;
}

.campaign-box h3 {
    font-size: 18px !important;
}

/* イベントリストのスマホ対応 */
.event-list {
    grid-template-columns: 1fr !important; /* 縦1列に */
    gap: 30px !important;
}

.event-img {
    height: 200px !important;
}

/* FLOW */
.flow-steps { padding: 0 !important; width: 100% !important; }

.flow-row {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; gap: 0 !important;
    margin-top: 24px !important; margin-bottom: 60px !important;
}

.step-box {
    margin: 0 auto 45px !important;
    width: 85% !important; max-width: 400px !important;
    text-align: center !important;
    position: relative;
}
.step-box::after { display: none !important; }

.step-desc {
    width: 85% !important; margin: 0 auto !important;
    padding: 0 0 48px 0 !important;
    text-align: left !important; position: relative;
}

.step-desc::after {
    content: ""; display: block; position: absolute;
    bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-style: solid; border-width: 20px 15px 0 15px;
    border-color: #002D49 transparent transparent transparent;
}
.flow-row:last-of-type .step-desc::after { display: none !important; }
.flow-row:last-of-type .step-desc { padding-bottom: 0 !important; }

.step-desc h4 {
    text-align: center; font-size: 18px !important;
    margin-bottom: 12px !important; margin-top: -12px !important;
}

/* =========================================
   STAFF (スタッフセクション)
   ========================================= */
#staff {
    padding: 60px 20px !important;
    background-attachment: scroll; 
}

/* 白い箱のスマホ対応 */
.staff-box {
    width: 100% !important;
    padding: 60px 20px !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
}

/* スタッフグリッドのスマホ対応 */
.staff-list {
    grid-template-columns: 1fr !important; /* 1列にする */
    gap: 50px !important;
}

/* 写真や文字の幅調整 */
.s-img, .s-name, .s-info {
    width: 80% !important; /* 写真と文字の幅を箱いっぱいにする */
}

/* 役職名の高さ揃え解除 */
.s-info dt {
    min-height: auto !important;
}


/* COMPANY */
.company-container { margin-top: -100px; }
.company-row { flex-direction: column; }
.company-row dt {
    width: 100%; margin-bottom: 10px;
    border-bottom: 1px dashed #ccc; padding-bottom: 5px;
}
.company-list { margin-top: 48px; }

/* CONTACT */
.contact-intro { margin-left: 0; text-align: center; }
.form-row { flex-direction: column; }
.form-label { width: 100%; text-align: left; padding-right: 0; margin-bottom: 10px; }
.form-btn button { width: 100%; }
.form-input { width: 100% !important; }
.form-input input, .form-input textarea {
    width: 100% !important; box-sizing: border-box;
    max-width: 100% !important; padding: 12px !important;
    font-size: 16px !important;
}

/* 改行コントロール */
.text-block br, .main-lead br, .concern-list br,
.roles-text br, .comfortable-intro br, .comfortable-text p br {
    display: none;
}

.text-block p, .concern-list, .roles-text,
.comfortable-intro p, .comfortable-text p {
    font-size: 14px !important;
    line-height: 1.9;
    text-align: justify;
}

.main-lead {
    font-size: 18px !important;
    line-height: 1.8;
    text-align: left;
}

.highlight-box p { font-size: 18px !important; }
.highlight-box br { display: block; }

.staff-intro { text-align: justify; letter-spacing: -0.01em; }
.marker-line { letter-spacing: -0.01em; }
.concept-head h2:nth-of-type(2) { letter-spacing: -0.05em; }
.concept-content .text-block p { text-align:center; }


