@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@500;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: #333333; background-color: #ffffff; line-height: 1.7; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-padding { padding: 80px 0; } 
.bg-light { background-color: #f8fafc; }
.pc-only { display: block; }
.sp-only { display: none; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { font-size: 15px; font-weight: 700; color: #002b6b; letter-spacing: 0.15em; margin-bottom: 8px; }
.section-title { font-family: 'Noto Serif JP', serif; font-size: 36px; color: #0c2340; font-weight: 700; position: relative; padding-bottom: 15px; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 30px; border-bottom: 2px solid #0c2340; }
.section-desc { max-width: 700px; margin: 25px auto 0; font-size: 16px; color: #666; }

.header { background-color: rgba(255, 255, 255, 0.98); border-bottom: 1px solid #e5e9f0; position: sticky; top: 0; width: 100%; z-index: 2000; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 30px; height: 80px; display: flex; justify-content: space-between; align-items: center; }
.logo a { display: flex; align-items: center; gap: 12px; color: #0c2340; }
.header-logo-mark { height: 28px; width: auto; object-fit: contain; }
.logo span { font-family: 'Noto Serif JP', serif; font-size: 22px; font-weight: 700; letter-spacing: 0.05em; line-height: 1; white-space: nowrap; }

.gnav-pc { display: block; height: 100%; }
.gnav-pc > ul { display: flex; align-items: center; gap: 20px; height: 100%; }
.gnav-pc > ul > li { height: 100%; display: flex; align-items: center; position: relative; }
.gnav-pc > ul > li > a { font-size: 15px; font-weight: 700; color: #4a5568; white-space: nowrap; padding: 10px 5px; position: relative; }
.gnav-pc > ul > li > a:hover { color: #0c2340; }
.nav-arrow { font-size: 11px; margin-left: 4px; color: #a0aec0; }

.dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fff; border: 1px solid #e2e8f0; box-shadow: 0 8px 20px rgba(0,0,0,0.05); width: 220px; border-radius: 4px; padding: 10px 0; z-index: 2001; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { display: block; padding: 12px 20px; font-size: 15px; color: #4a5568; font-weight: 500; border-bottom: 1px solid #f7fafc; white-space: nowrap; }
.dropdown-menu li a:hover { background-color: #f4f7fa; color: #0c2340; padding-left: 25px; }
.hamburger, .drawer-nav { display: none; }

.hero-premium { position: relative; width: 100%; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(0, 43, 107, 0.9) 0%, rgba(0, 43, 107, 0.6) 50%, rgba(0, 43, 107, 0) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 50px; }
.hero-text-wrap { max-width: 850px; color: #ffffff; }

.hero-title { font-family: 'Noto Serif JP', serif; font-size: 58px; font-weight: 700; line-height: 1.5; margin-bottom: 30px; letter-spacing: 0.08em; text-shadow: 0 4px 15px rgba(0,0,0,0.4); }
.hero-title .highlight { color: #ffffff; background: linear-gradient(transparent 65%, rgba(255, 255, 255, 0.35) 65%); padding: 0 8px; }

.hero-lead { font-size: 22px; font-weight: 700; margin-bottom: 25px; line-height: 1.8; text-shadow: 0 2px 8px rgba(0,0,0,0.3); letter-spacing: 0.03em; }
.hero-sub-lead { font-size: 18px; color: #e2e8f0; margin-bottom: 35px; line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-notice { font-size: 14px; color: #cbd5e0; margin-bottom: 40px; border-left: 2px solid #fff; padding-left: 12px; opacity: 0.9; }

.hero-buttons { display: flex; flex-direction: row; gap: 20px; }
.btn { display: inline-flex; justify-content: space-between; align-items: center; padding: 22px 30px; border-radius: 8px; font-weight: 700; font-size: 17px; width: 320px; transition: 0.3s; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.btn-navy { background-color: #c5a059; color: #fff; border: 1px solid #c5a059; }
.btn-navy:hover { background-color: #b38e4a; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.btn-outline-light { background-color: rgba(255,255,255,0.1); color: #fff; border: 2px solid #fff; backdrop-filter: blur(5px); }
.btn-outline-light:hover { background-color: #fff; color: #002b6b; transform: translateY(-2px); }
.btn-arrow { font-size: 15px; transition: 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card-item { background: #fff; border: 1px solid #eef2f6; border-radius: 8px; padding: 25px; display: flex; align-items: center; gap: 20px; transition: 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.card-item:hover { box-shadow: 0 6px 15px rgba(0, 43, 107, 0.05); border-color: #002b6b; transform: translateY(-2px); }

.card-icon-box { width: 60px; height: 60px; background: #f4f7fa; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; transition: 0.3s; }
.card-item:hover .card-icon-box { background: #002b6b; color: #fff; }
.card-icon { font-size: 24px; color: #002b6b; }
.card-item:hover .card-icon { color: #fff; }
.card-body { flex: 1; }
.card-body h3 { font-size: 18px; color: #0c2340; font-weight: 700; margin-bottom: 5px; }
.card-body p { font-size: 15px; color: #666; line-height: 1.5; }
.card-arrow { color: #cbd5e0; font-size: 16px; }
.card-item:hover .card-arrow { color: #002b6b; transform: translateX(3px); }

.flow-steps-container { display: flex; justify-content: space-between; align-items: stretch; gap: 15px; margin-top: 30px; }
.flow-step-card { background: #fff; border-radius: 8px; padding: 45px 25px 30px; flex: 1; text-align: center; border: 1px solid #eef2f6; border-top: 4px solid #002b6b; box-shadow: 0 8px 20px rgba(0,0,0,0.05); position: relative; }
.step-number { font-size: 20px; font-weight: 900; color: #fff; background: #002b6b; width: 50px; height: 50px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; position: absolute; top: -25px; left: 50%; transform: translateX(-50%); box-shadow: 0 4px 10px rgba(0, 43, 107, 0.3); font-family: 'Arial'; }
.step-title { font-size: 18px; color: #0c2340; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 15px; color: #666; }
.step-arrow-divider { color: #c5a059; font-size: 24px; align-self: center; } 

.center-action-btn { text-align: center; margin-top: 40px; }
.btn-more { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #0c2340; border-bottom: 1px solid #0c2340; padding-bottom: 4px; }
.btn-more:hover { color: #002b6b; border-color: #002b6b; }

.fee-flex-row { display: flex; justify-content: center; gap: 20px; max-width: 1000px; margin: 0 auto 30px; }
.fee-premium-card { background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; padding: 40px 20px; text-align: center; flex: 1; box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s; }
.fee-premium-card:hover { transform: translateY(-5px); }
.fee-icon-circle { width: 75px; height: 75px; background: linear-gradient(135deg, #f4f7fa 0%, #e2e8f0 100%); color: #002b6b; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 30px; margin: 0 auto 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.fee-name { font-size: 16px; color: #555; font-weight: 700; margin-bottom: 10px; }
.fee-price-value { font-family: 'Noto Serif JP', serif; font-size: 34px; font-weight: 900; color: #0c2340; }

.highlighted-fee { border: 3px solid #002b6b; transform: scale(1.05); z-index: 2; }
.highlighted-fee:hover { transform: scale(1.05) translateY(-5px); }
.highlighted-fee .fee-icon-circle { background: linear-gradient(135deg, #002b6b 0%, #004099 100%); color: #fff; box-shadow: 0 4px 15px rgba(0, 43, 107, 0.4); }
.tax-label { font-size: 14px; font-weight: 500; color: #666; display: block; }
.fee-bottom-remark { text-align: center; font-size: 14px; color: #666; }

/* 事務所概要の修正（上下2段のレイアウトに変更） */
.office-inner { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.office-info-row { display: flex; gap: 40px; align-items: center; }

.office-photo-wrap { flex: 1; display: flex; align-items: center; }
.office-photo { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: block; }

.office-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.office-dl { width: 100%; margin-bottom: 30px; border-top: 2px solid #002b6b; display: flex; flex-wrap: wrap; }
.office-dl dt { width: 35%; padding: 18px 15px 18px 0; border-bottom: 1px dashed #e2e8f0; font-weight: 700; color: #0c2340; font-size: 15px; }
.office-dl dd { width: 65%; padding: 18px 0; border-bottom: 1px dashed #e2e8f0; font-weight: 500; color: #333; font-size: 15px; line-height: 1.6; }

.btn-office { display: inline-flex; justify-content: space-between; align-items: center; padding: 16px 32px; background: #002b6b; color: #fff; border-radius: 30px; font-weight: 700; transition: 0.3s; box-shadow: 0 4px 10px rgba(0, 43, 107, 0.2); gap: 15px; align-self: flex-start; }
.btn-office:hover { background: #001a40; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 43, 107, 0.3); }

/* マップを横長で配置 */
.office-map-row { width: 100%; }
.office-map { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; min-height: 350px; }
.office-map iframe { width: 100%; height: 100%; min-height: 350px; display: block; }

.security-alert-card { background: #fff; border: 1px solid #002b6b; border-radius: 8px; padding: 25px 30px; display: flex; gap: 20px; align-items: flex-start; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.alert-icon-wrapper { font-size: 28px; color: #002b6b; }
.alert-content-wrapper h4 { font-size: 18px; color: #002b6b; margin-bottom: 8px; }
.alert-content-wrapper p { font-size: 15px; color: #555; }

.footer { background: #f4f7fa; color: #333; padding: 60px 0 30px; }
.footer-cta-box { background: #002b6b; border-radius: 12px; padding: 40px 30px; text-align: center; margin-bottom: 60px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); color: #fff; }
.cta-subtitle { font-size: 14px; font-weight: 700; color: #fff; opacity: 0.8; letter-spacing: 0.15em; margin-bottom: 10px; }
.cta-title { font-family: 'Noto Serif JP', serif; font-size: 30px; font-weight: 700; margin-bottom: 15px; }
.cta-desc { font-size: 16px; color: #e2e8f0; margin-bottom: 30px; }
.cta-action-row { display: flex; justify-content: center; gap: 15px; }
.cta-btn-phone, .cta-btn-email { display: flex; align-items: center; padding: 15px 20px; border-radius: 6px; flex: 1; max-width: 420px; }
.cta-btn-phone { background: #002b6b; color: #fff; border: 2px solid #fff; }
.cta-btn-email { background: #fff; color: #002b6b; }
.cta-center-text { text-align: left; flex: 1; padding: 0 10px; }
.cta-label-small { display: block; font-size: 13px; opacity: 0.9; }
.cta-main-number { font-size: 18px; font-weight: 900; font-family: 'Arial'; }
.cta-main-text { font-size: 18px; font-weight: 700; }
.footer-links-list { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 30px; border-bottom: 1px solid #ddd; padding-bottom: 30px; }
.footer-links-list a { font-size: 15px; color: #555; font-weight: bold; }
.footer-copyright { text-align: center; font-size: 13px; color: #888; }

@media (max-width: 1080px) { 
    .gnav-pc > ul { gap: 10px; } 
    .gnav-pc > ul > li > a { font-size: 13px; } 
}

@media (max-width: 991px) {
    .gnav-pc { display: none; }
    .hamburger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; z-index: 2000; }
    .hamburger-bars { width: 28px; height: 18px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
    .hamburger-bars span { display: block; width: 100%; height: 2px; background: #0c2340; transition: 0.3s; }
    .hamburger-text { font-size: 10px; font-weight: 700; color: #0c2340; margin-top: 3px; }
    
    .pc-only { display: none !important; }
    br.sp-only { display: block !important; }
    
    .header-inner { height: 70px !important; padding: 0 15px !important; }
    .logo a { gap: 8px !important; }
    .header-logo-mark { height: 30px !important; }
    .logo span { font-size: clamp(15px, 4.8vw, 20px) !important; white-space: nowrap !important; letter-spacing: 0 !important; }
    
    .hero-premium { min-height: 85vh !important; align-items: flex-end !important; padding-top: 70px !important; padding-bottom: 25px !important; }
    .hero-inner { padding: 0 10px; width: 100%; margin-top: 0; }
    .hero-text-wrap { text-align: center; margin-bottom: 0 !important; width: 100%; }
    
    .hero-text-wrap br.pc-only { display: block !important; }

    .hero-title { font-size: clamp(24px, 7vw, 34px) !important; line-height: 1.5 !important; margin-bottom: 15px !important; white-space: nowrap !important; } 
    .hero-title .highlight { display: inline-block; padding: 0 4px; line-height: 1.4; }
    
    .hero-lead { font-size: clamp(11px, 3.2vw, 15px) !important; margin-bottom: 15px; line-height: 1.8 !important; white-space: nowrap !important; }
    .hero-sub-lead { font-size: clamp(10px, 2.8vw, 14px) !important; margin-bottom: 25px; white-space: nowrap !important; }
    
    .hero-notice { margin-bottom: 20px; font-size: clamp(9px, 2.6vw, 12px) !important; border-left: none; padding-left: 0; white-space: nowrap !important; }
    
    .hero-overlay { background: linear-gradient(to top, rgba(0, 43, 107, 1) 0%, rgba(0, 43, 107, 0.75) 45%, rgba(0, 43, 107, 0) 100%) !important; }
    
    .hero-buttons { display: flex !important; flex-direction: column !important; width: 100% !important; gap: 10px !important; align-items: center !important; }
    .btn { width: 100% !important; max-width: 100% !important; padding: 15px 15px !important; justify-content: center !important; font-size: 15px !important; line-height: 1.4 !important; gap: 10px !important; }
    
    .section-title { font-size: 26px !important; }
    .section-desc { font-size: 14px !important; }
    
    .card-grid { grid-template-columns: 1fr; }
    .card-body h3 { font-size: 17px !important; }
    .card-body p { font-size: 14px !important; }
    
    .flow-steps-container { flex-direction: column; margin-top: 10px; }
    .flow-step-card { margin-top: 25px; } 
    .step-arrow-divider { transform: rotate(90deg); padding: 15px 0; }
    .fee-flex-row { flex-direction: column; }
    
    .highlighted-fee { transform: scale(1); }
    .highlighted-fee:hover { transform: translateY(-2px); }
    
    /* SPサイズの事務所概要レイアウト変更 */
    .office-inner { padding: 30px 20px; gap: 20px; margin-bottom: 30px; }
    .office-info-row { flex-direction: column; gap: 20px; }
    .office-text { align-items: stretch; text-align: left; width: 100%; }
    .office-dl dt { width: 100%; padding: 15px 0 5px; border-bottom: none; }
    .office-dl dd { width: 100%; padding: 0 0 15px; }
    .btn-office { align-self: center; }
    .office-map { min-height: 250px; }
    .office-map iframe { min-height: 250px; }

    .cta-action-row { flex-direction: column; align-items: center; }
    .cta-title { font-size: 22px !important; }
    .cta-desc { font-size: 14px !important; }

    .footer-copyright { font-size: 10px !important; white-space: nowrap !important; }
}

.drawer-nav { position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px); background: #fff; z-index: 1999; overflow-y: auto; padding: 30px; transform: translateX(100%); transition: transform 0.3s ease; }

@media (max-width: 991px) {
    .drawer-nav { top: 70px; height: calc(100vh - 70px); }
}

.drawer-nav.is-open { display: block; transform: translateX(0); }
.drawer-nav ul { display: flex; flex-direction: column; gap: 15px; }
.drawer-nav > ul > li > a { font-size: 17px; font-weight: 700; color: #0c2340; display: block; border-bottom: 1px solid #eee; padding-bottom: 10px;}
.drawer-subtitle { font-size: 15px; font-weight: 700; color: #002b6b; margin-bottom: 10px; }
.drawer-sub-menu { padding-left: 10px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.drawer-sub-menu li a { font-size: 15px; color: #666; border: none; padding-bottom: 0;}

.hamburger.is-active .hamburger-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active .hamburger-bars span:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 400px) {
    .logo span { font-size: 13px !important; }
}

/* ====================================================
   追加：相談を迷っている方へ メッセージエリア
==================================================== */
.hesitation-message {
    padding-top: 30px;
    padding-bottom: 80px;
}

.message-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-top: 4px solid #c5a059;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.message-title {
    font-size: 24px;
    color: #0c2340;
    margin-bottom: 20px;
    font-weight: 700;
}

.message-box p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* ====================================================
   追加：フッターのCTAボタン（LINE含む3列）
==================================================== */
.cta-action-row.three-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    width: 100%;
}

.cta-action-row.three-columns a {
    width: 100% !important;
    margin: 0 !important;
    max-width: none;
}

.cta-btn-line {
    display: flex;
    align-items: center;
    background: #06C755;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

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

.cta-btn-line .cta-icon-left,
.cta-btn-line .cta-icon-right {
    flex-shrink: 0;
}

.cta-btn-line .cta-center-text {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

/* レスポンシブ（スマホ表示） */
@media (max-width: 991px) {
    .message-box {
        padding: 25px 20px;
    }
    
    .message-title {
        font-size: 20px;
    }
    
    .cta-action-row.three-columns {
        grid-template-columns: 1fr !important;
    }
}
/* ====================================================
   PCグローバルメニューの崩れ・被り防止調整
==================================================== */

/* メニュー間の隙間を 20px から 12px に狭めます */
.gnav-pc > ul { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    height: 100%; 
}

/* 文字サイズを 15px から 14px にし、絶対に改行させない(nowrap)設定にします */
.gnav-pc > ul > li > a { 
    font-size: 14px; 
    font-weight: 700; 
    color: #4a5568; 
    white-space: nowrap; 
    padding: 10px 4px; 
    position: relative; 
}

/* ▼ 画面が狭くなった時（ノートPCなど）にロゴに被らないための緊急回避 ▼ */
@media (max-width: 1200px) {
    /* ロゴの文字を少しだけ小さくしてスペースを確保 */
    .logo span { 
        font-size: 18px; 
    } 
    /* メニューの隙間と文字サイズを限界まで小さくして1行に収める */
    .gnav-pc > ul { 
        gap: 8px; 
    }
    .gnav-pc > ul > li > a { 
        font-size: 12px; 
        padding: 10px 2px; 
    }
}
/* ====================================================
   ページトップへ戻るボタン
==================================================== */
.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #c5a059; /* ゴールド */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0; /* 最初は透明（隠しておく） */
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* スクロールしてクラスが付与されたら表示する */
.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-top-btn:hover {
    background-color: #002b6b; /* ホバーでネイビーに */
    color: #fff;
    transform: translateY(-3px);
}

/* スマホ表示では少し小さく・端に寄せる */
@media (max-width: 991px) {
    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}