/* =========================================================
   Reset & Premium Bank Variables
========================================================= */
:root {
    --brand-red: #C80F0F; /* MSFJメインレッド */
    --brand-red-dark: #A30B0B; /* ホバー用濃い赤 */
    --text-main: #222222; /* 漆黒に近いグレー */
    --text-light: #666666;
    --bg-page: #F8F9FA; /* 全体の背景色 */
    --bg-white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Layout Components
========================================================= */
.wrap-2 {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

main.container {
    max-width: 1050px;
    margin: 0 auto 60px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 60px 70px;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
    main.container {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
}

/* =========================================================
   Header (Compact & Clean)
========================================================= */
/* 上部ユーティリティバー */
.utility-bar {
    background-color: #F0F2F5;
    border-bottom: 1px solid var(--border-color);
    padding: 4px 0;
    text-align: left;
}

.h_top_text {
    font-size: 10px !important;
    color: #999999 !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

/* メインヘッダー */
header {
    background-color: var(--bg-white);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-left a:hover img, .header-right a:hover img {
    opacity: 1 !important;
}

.tel-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--brand-red) !important;
    line-height: 1;
    text-decoration: none !important;
}

.tel-block:hover {
    text-decoration: none;
    opacity: 0.8;
}

.tel-number {
    font-size: 26px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.tel-number img {
    width: 20px;
}

.tel-time {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.btn-speed {
    background: var(--brand-red) !important;
    color: var(--bg-white) !important;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: inline-block;
}

.btn-speed:hover {
    background: var(--brand-red-dark);
    color: var(--bg-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 850px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .tel-block {
        align-items: center;
    }
}

/* =========================================================
   Global Nav (1 Line, No line breaks, Compact)
========================================================= */
nav#global-nav {
    background-color: var(--brand-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(200, 15, 15, 0.2);
}

nav#global-nav ul {
    display: flex;
    justify-content: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 10px;
}

nav#global-nav ul li {
    flex: 1;
    text-align: center;
}

nav#global-nav ul li a {
    display: block;
    padding: 12px 5px;
    color: var(--bg-white);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.2s;
    position: relative;
}

nav#global-nav ul li a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

nav#global-nav ul li:last-child a::after {
    display: none;
}

nav#global-nav ul li a:hover {
    background-color: var(--brand-red-dark);
    text-decoration: none;
}

nav#global-nav a {
    color: var(--brand-red);
    text-decoration: none;
    transition: var(--transition);
}

@media (max-width: 850px) {
    nav#global-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav#global-nav ul li a {
        padding: 15px 15px;
    }
}

/* =========================================================
   Footer Contact Area
========================================================= */
.top_contact {
    background: var(--bg-white);
    padding: 50px;
    text-align: center;
    border: 5px solid #FAFAFA;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    border-radius: 6px;
}

.top_contact p {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-btns img {
    max-width: 300px;
    transition: var(--transition);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.contact-btns a:hover img {
    opacity: 0.8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rbtn {
    display: inline-block;
    background: var(--brand-red);
    color: var(--bg-white);
    font-size: 22px;
    font-weight: bold;
    padding: 20px 60px;
    border-radius: 3px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    width: 100%;
    max-width: 620px;
}

.rbtn:hover {
    background: var(--brand-red-dark);
    color: var(--bg-white);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(200, 15, 15, 0.3);
    transform: translateY(-2px);
}

/* =========================================================
   Floating CTA & Page Top
========================================================= */
.f-float {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(200, 15, 15, 0.95);
    padding: 12px 0;
    z-index: 999;
    text-align: center;
    color: var(--bg-white);
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.f-float a {
    color: var(--bg-white) !important;
    font-size: 26px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.f-float .tel_float_icon {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-float .etime {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
    margin-top: 2px;
    display: block;
}

.f-float .tel_float_icon a:hover {
    text-decoration: underline;
}

.f-float .mails a {
    background: var(--bg-white);
    color: var(--brand-red) !important;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 2px;
    display: inline-block;
    margin-left: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.f-float .mails a:hover {
    background: #FAFAFA;
    color: var(--brand-red-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

#page-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 99;
    transition: var(--transition);
}

#page-top img {
    width: 50px;
    opacity: 0.6;
}

#page-top img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

#page-top a, #page-top a img {
    transition: all 0.3s ease;
}

/* =========================================================
   Footer
========================================================= */
footer {
    background: var(--text-main);
    color: var(--bg-white);
    padding: 70px 20px 120px;
    border-top: 5px solid var(--brand-red);
}

.f-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.t-footer_nav_ttl {
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    color: var(--bg-white);
    font-size: 16px;
    letter-spacing: 0.1em;
}

.t-footer_nav_body ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.t-footer_nav_body a {
    color: #B0B0B0 !important;
    transition: var(--transition);
}

.t-footer_nav_body a:hover {
    color: var(--bg-white) !important;
    text-decoration: none !important;
    padding-left: 5px;
}

.footer_logo {
    text-align: center;
    margin-bottom: 25px;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer_logo img {
    width: 161px !important;
}

.copy {
    text-align: center;
    font-size: 13px;
    color: #888;
    letter-spacing: 0.05em;
}

.is-front h2,
.is-front h3 {
    font-weight: bold;
}