/* ==============================================
   Renyuer 新サイト 共通スタイル
   ベースカラー: スレートブルー #4a6080 / テラコッタ #b5593e / グレー #555
   中国大陸対応: 外部フォント・ライブラリ不使用
   ============================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
                 "Meiryo", "メイリオ", "MS PGothic", "ＭＳ Ｐゴシック",
                 sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #3a3a3a;
    background-color: #f5f6f7;
}

a {
    color: #4a6080;
    text-decoration: none;
}
a:hover {
    color: #b5593e;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==============================================
   ページ全体レイアウト
   ============================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================
   ヘッダー
   ============================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid #d8dde3;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    height: 52px;
    width: auto;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

.header-phone strong {
    font-size: 1.0rem;
    color: #4a6080;
    display: block;
}

.btn-inquiry {
    display: inline-block;
    background-color: #b5593e;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 0.83rem;
    font-weight: bold;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-inquiry:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* ==============================================
   グローバルナビ
   ============================================== */

.global-nav {
    background-color: #52626e;
}

.global-nav ul {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.global-nav ul li a {
    display: block;
    color: #dde3e8;
    padding: 10px 12px;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.global-nav ul li a:hover,
.global-nav ul li a.active {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
}

/* ==============================================
   サブメニュー（各種システム）
   ============================================== */

.has-submenu {
    position: relative;
}

.submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3d4e58;
    min-width: 280px;
    z-index: 200;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-top: 2px solid #b5593e;
    flex-direction: column;
    flex-wrap: nowrap;
}

.submenu li a {
    display: block;
    color: #dde3e8 !important;
    padding: 9px 16px !important;
    font-size: 0.80rem !important;
    white-space: normal !important;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    line-height: 1.5;
}

.submenu li a:hover {
    background-color: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    text-decoration: none;
}

.has-submenu.open .submenu {
    display: flex !important;
    flex-direction: column;
}

/* PCはクリックのみで開閉（ホバー開閉なし） */

/* ハンバーガーメニューボタン（スマホ用） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #52626e;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==============================================
   メインコンテンツエリア
   ============================================== */

.page-main {
    flex: 1;
    padding: 24px 0 40px;
}

/* ==============================================
   ページタイトルバー
   ============================================== */

.page-title-bar {
    background-color: #eaecee;
    border-bottom: 1px solid #d4d8dc;
    padding: 24px 0;
    margin-bottom: 32px;
}

.page-title-bar h1 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #3a3a3a;
    letter-spacing: 0.04em;
}

.page-title-bar p {
    font-size: 0.84rem;
    color: #6a7885;
    margin-top: 5px;
}

/* ==============================================
   セクション共通
   ============================================== */

.section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-title {
    background-color: #eaecee;
    color: #3a3a3a;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    border-left: 4px solid #4a6080;
}

.section-body {
    padding: 24px;
    font-size: 0.88rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.section-body p {
    margin-bottom: 12px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* ==============================================
   ハイライトボックス（ポイント紹介）
   ============================================== */

.highlight-box {
    background: #fff;
    border: 1px solid #dde2e6;
    border-left: 3px solid #4a6080;
    padding: 18px 22px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.highlight-box .point-title {
    font-size: 0.98rem;
    font-weight: bold;
    color: #4a6080;
    margin-bottom: 8px;
    display: block;
}

/* ==============================================
   サービスカードグリッド（トップページ用）
   ============================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.service-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    border: 1px solid #e4e7ea;
    overflow: hidden;
}

.service-card-head {
    background-color: #f0f2f4;
    color: #3a3a3a;
    padding: 10px 14px;
    font-size: 0.87rem;
    font-weight: bold;
    border-left: 3px solid #4a6080;
    border-bottom: 1px solid #e4e7ea;
}

.service-card-body {
    padding: 16px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: #555;
}

.service-card-body img {
    margin: 8px auto 12px;
    border-radius: 3px;
}

.service-card-body a.more-link {
    display: inline-block;
    margin-top: 8px;
    color: #b5593e;
    font-weight: bold;
    font-size: 0.84rem;
}

.service-card-body a.more-link:hover {
    text-decoration: underline;
}

/* ==============================================
   ヒーロー（トップページ）
   ============================================== */

.hero {
    background-color: #dfe4e9;
    border-bottom: 1px solid #cdd3d8;
    padding: 24px 0 20px;
    margin-bottom: 24px;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h2 {
    font-size: 1.35rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #2e3c4a;
}

.hero-text h2 span {
    color: #4a6080;
}

.hero-text p {
    font-size: 0.9rem;
    color: #5a6a78;
    line-height: 1.9;
}


/* ==============================================
   お知らせエリア（トップページ）
   ============================================== */

.intro-box {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 22px 24px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.9;
    color: #555;
    border-left: 3px solid #4a6080;
}

/* ==============================================
   トップページ イントロ＋ポイント（コンパクト横並び）
   ============================================== */

.top-intro {
    background: #fff;
    border: 1px solid #e4e7ea;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #4a4a4a;
}

.top-intro-lead {
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #dde2e6;
}

.top-points {
    display: flex;
    gap: 0;
}

.top-point-item {
    flex: 1;
    padding: 8px 14px 8px 0;
    line-height: 1.65;
    font-size: 0.83rem;
    color: #555;
    border-right: 1px dotted #dde2e6;
    padding-right: 14px;
    margin-right: 14px;
}

.top-point-item:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.top-point-label {
    display: inline-block;
    background-color: #4a6080;
    color: #fff;
    font-size: 0.76rem;
    font-weight: bold;
    padding: 1px 7px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .top-points {
        flex-direction: column;
        gap: 8px;
    }
    .top-point-item {
        border-right: none;
        border-bottom: 1px dotted #dde2e6;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 8px;
    }
    .top-point-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ==============================================
   導入事例（トップページ）
   ============================================== */

.case-section {
    background: #fff;
    border: 1px solid #e4e7ea;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.case-section-title {
    background-color: #eaecee;
    color: #3a3a3a;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    border-left: 4px solid #4a6080;
    border-bottom: 1px solid #e4e7ea;
}

.case-grid {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
}

.case-card {
    flex: 1;
    display: block;
    border: 1px solid #e4e7ea;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none !important;
    transition: box-shadow 0.2s;
}

.case-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    text-decoration: none !important;
}

.case-card img {
    width: 100%;
    height: auto;
    display: block;
}

.case-card-label {
    background-color: #f0f2f4;
    color: #3a3a3a;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 12px;
    border-bottom: 1px solid #e4e7ea;
}

@media screen and (max-width: 600px) {
    .case-grid {
        flex-direction: column;
    }
}

/* ==============================================
   お問合せボタン大
   ============================================== */

.inquiry-section {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e4e7ea;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.inquiry-section h3 {
    font-size: 0.98rem;
    color: #4a6080;
    margin-bottom: 14px;
}

.inquiry-section .phone-info {
    font-size: 1.05rem;
    color: #3a3a3a;
    font-weight: bold;
    margin-bottom: 16px;
}

.btn-inquiry-large {
    display: inline-block;
    background-color: #b5593e;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.btn-inquiry-large:hover {
    opacity: 0.85;
    text-decoration: none !important;
}

/* ==============================================
   テーブル
   ============================================== */

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.info-table th,
.info-table td {
    padding: 10px 14px;
    border: 1px solid #dde2e6;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background-color: #f0f2f4;
    color: #4a6080;
    font-weight: bold;
    width: 30%;
    white-space: nowrap;
}

.info-table td {
    color: #4a4a4a;
}

/* ==============================================
   リスト
   ============================================== */

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 6px 0 6px 18px;
    position: relative;
    font-size: 0.88rem;
    color: #4a4a4a;
    border-bottom: 1px dotted #dde2e6;
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: #4a6080;
    font-size: 1rem;
    top: 4px;
    font-weight: bold;
}

/* ==============================================
   フッター
   ============================================== */

.site-footer {
    background-color: #3a3f47;
    color: #b0b8c0;
    text-align: center;
    padding: 28px 20px;
    font-size: 0.8rem;
    line-height: 2;
}

.site-footer a {
    color: #c8cfd6;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-icp {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8a9098;
}

.footer-icp a {
    color: #b0b8c0;
}

.footer-icon {
    display: inline-block;
    margin-bottom: 8px;
}

/* ==============================================
   レスポンシブ対応
   ============================================== */

@media screen and (max-width: 768px) {

    html {
        font-size: 15px;
    }

    .header-inner {
        height: auto;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-logo img {
        height: 42px;
    }

    .header-contact {
        gap: 10px;
    }

    .header-phone {
        display: none;
    }

    /* ハンバーガーボタン表示 */
    .nav-toggle {
        display: flex;
    }

    /* ナビメニュー */
    .global-nav {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
    }

    .global-nav.open {
        max-height: 600px;
    }

    .global-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .global-nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 0.9rem;
    }

    /* スマホ：サブメニューをインライン展開 */
    .submenu {
        position: static !important;
        display: none !important;
        background-color: #2e3c45;
        box-shadow: none;
        border-top: none;
        min-width: 100%;
        flex-direction: column;
    }

    .has-submenu.open .submenu {
        display: flex !important;
        flex-direction: column;
    }

    .submenu li a {
        padding-left: 36px !important;
    }

    /* ヒーロー */
    .hero {
        padding: 28px 0 22px;
    }

    .hero-text h2 {
        font-size: 1.25rem;
    }

    /* サービスグリッド */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* ページ本文 */
    .page-main {
        padding: 20px 0 36px;
    }

    .page-title-bar {
        padding: 18px 0;
        margin-bottom: 20px;
    }

    .page-title-bar h1 {
        font-size: 1.1rem;
    }

    .section-body {
        padding: 16px;
    }

    .info-table th {
        width: 35%;
        font-size: 0.82rem;
    }

    .info-table td {
        font-size: 0.82rem;
    }
}

@media screen and (max-width: 480px) {

    .container {
        padding: 0 12px;
    }

    .header-inner {
        padding: 10px 12px;
    }

    .btn-inquiry {
        padding: 7px 11px;
        font-size: 0.8rem;
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 0.87rem;
    }

    .info-table {
        display: block;
        overflow-x: auto;
    }
}
