@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ==========================================================================
   Variables & Reset - STYLISH BLUE EDITION
   ========================================================================== */
:root {
    /* Primary Blue Palette - Deep & Authoritative */
    --color-primary: #001f3f; /* Darker Navy for Authority */
    --color-primary-light: #C5A059; /* Muted Gold for Borders/Icons */
    --color-primary-light-text: #9E7E38; /* Darker Gold for Text Legibility */
    --color-secondary: #FF0033; /* Sharp Red for Vital CTAs */
    
    --color-blue-gradient: linear-gradient(135deg, #001f3f, #003366);
    --color-blue-shine: linear-gradient(45deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 60%);

    /* Backgrounds */
    --color-bg: #FFFFFF;
    --color-bg-sub: #F8F9FA; /* Crisp Light Gray for alternating sections */
    --color-bg-card: #FFFFFF;
    
    /* Text */
    --color-text: #333333; /* Soften slightly from #111 for better readability with light font */
    --color-text-light: #666666;
    --color-text-white: #FFFFFF;

    /* Shadows (Pro Layered) */
    --shadow-card: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.05);
    
    /* Spacing & Layout */
    --header-height: 80px;
    --container-width: 1100px; /* Slightly wider for modern feel */
}

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

html {
    scroll-behavior: smooth;
    font-size: 17px; /* Increased from 16px for better readability */
    overflow-y: scroll; /* Force scrollbar to prevent layout shift */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 2.0; /* Increased line-height for "easy to read" */
    letter-spacing: 0.05em;
    overflow-x: hidden;
    font-weight: 300; /* Lightweight */
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 500; /* Medium weight for contrast without being too heavy */
    line-height: 1.4;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
    text-shadow: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4%; /* Responsive fluid padding */
}

/* Yellow Fluorescent Marker Accent */
.marker-yellow {
    background: linear-gradient(transparent 60%, #ffff00 60%);
    display: inline;
    padding: 0 4px;
    font-weight: bold;
}

/* New Utility for alternating backgrounds */
.bg-sub {
    background-color: var(--color-bg-sub);
}

.text-primary { color: var(--color-primary) !important; }
.text-gold { color: var(--color-primary-light) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background: rgba(255, 255, 255, 0.98); /* Less transparent for cleaner look */
    backdrop-filter: blur(20px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(10, 36, 99, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-right: var(--scrollbar-width, 0px); /* Compensate for scrollbar */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-primary);
    font-weight: bold;
    line-height: 1.1;
    font-size: 1.35rem; /* Increased logo size */
}

.site-logo-sub {
    font-size: 0.9rem;
    font-weight: normal;
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary-light); /* Skye blue for subtext */
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-item {
    font-size: 0.95rem; /* Increased from 0.8rem */
    color: var(--color-text);
    position: relative;
    padding: 5px 2px; /* Further reduced horizontal padding */
    font-weight: 500;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

.tab-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 18px 35px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid rgba(184,134,11,0.4);
    background: rgba(255,255,255,0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #1a2a4a;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    color: #B8860B; /* Inactive icon color */
    transition: color 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.tab-btn.active {
    border: 2px solid transparent; /* Maintain size or use none if box-sizing handles it */
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(184,134,11,0.35);
}

.tab-btn.active i {
    color: white;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.header-btn {
    background: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(10, 36, 99, 0.2);
    transition: all 0.3s ease;
}

.header-btn:hover {
    transform: translateY(-2px);
    background: var(--color-primary-light);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.35); /* Gold accent shadow */
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section - HOME
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh; /* Taller hero */
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Blue Background - More transparent for photo visibility */
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.3) 0%, rgba(62, 146, 204, 0.3) 100%);
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('../images/hero_bg_split.png') center/cover no-repeat;
    opacity: 0.8; /* High opacity for visibility */
    z-index: 0;
}

/* Blue Abstract Shape */
.hero::after {
    display: none; /* Remove distracting shape for pro look */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px; /* Wider for impact */
    padding: 60px;
    background: rgba(255, 255, 255, 0.7) !important; /* More transparent card */
    border: none;
    backdrop-filter: blur(4px); /* Reduced blur to see background */
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 4px;
    border-top: 4px solid var(--color-primary);
}

.hero-title {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--color-primary); /* Dark text again */
    line-height: 1.8; /* Increased line spacing */
    /* ... other styles preserved ... */
}

.hero-subtitle {
     color: var(--color-primary-light);
}

/* FAQ Styles */
.faq-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.faq-question {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
}

.faq-question::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-answer {
    padding-left: 30px;
    color: var(--color-text);
    position: relative;
    line-height: 1.8;
}

.faq-answer::before {
    content: 'A.';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* Checklist Grid for Requirements */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.check-item {
    display: flex;
    align-items: center; /* Vertically align icon and text */
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.check-item i {
    font-size: 1.5rem;
    color: var(--color-primary-light);
    flex-shrink: 0;
}

/* ==========================================================================
   Article Content Styles (Redesign)
   ========================================================================== */
.article-content {
    max-width: 800px; /* Optimal line length for reading */
    margin: 0 auto;
    padding: 0 10px;
    font-size: 1.05rem; /* Slightly larger for articles */
    line-height: 2.3; /* Relaxed line height for better readability */
    color: #444; /* Soft black */
}

.article-date {
    display: block;
    text-align: right;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #001f3f;
    border-bottom: none; /* Reset existing */
    padding-bottom: 0;   /* Reset existing */
    text-align: left;
    border-left: 8px solid #001f3f;
    background: linear-gradient(to right, #f0f4f8, transparent);
    padding: 15px 20px;
    position: relative;
    border-radius: 0 4px 4px 0;
    margin-top: 80px;
    margin-bottom: 40px;
}

.article-content h2 span {
    border-bottom: 2px solid #C5A059;
    padding-bottom: 5px;
    display: inline-block;
}

.article-content h3 {
    font-size: 1.6rem;
    color: #001f3f;
    border-bottom: 1px solid #C5A059;
    padding-bottom: 10px;
    border-left: 5px solid #C5A059;
    background: linear-gradient(to right, rgba(197, 160, 89, 0.05), transparent);
    padding: 10px 15px;
    margin-top: 90px;
    margin-bottom: 35px;
    font-weight: bold;
}

.article-content h4 {
    font-size: 1.3rem;
    color: #001f3f;
    border-left: 4px solid #C5A059;
    padding-left: 15px;
    margin-top: 60px;
    margin-bottom: 25px;
    background: transparent;
    padding-top: 8px; /* Maintain alignment */
    padding-bottom: 8px;
}

.article-content p {
    margin-bottom: 1.5rem; /* Standard space between paragraphs */
    text-align: left;
}

.lead-conclusion {
    border: 2px solid #C5A059; /* Gold border */
    background-color: #fffefb; /* Light cream/off-white */
    padding: 30px 25px 25px; /* Top padding for label space */
    border-radius: 8px;
    position: relative;
    margin: 50px 0;
}

.lead-conclusion::before {
    content: '\f0eb  POINT'; /* Font Awesome lightbulb icon + POINT */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Solid', sans-serif;
    font-weight: 900; /* Required for solid FA icons */
    position: absolute;
    top: -14px;
    left: 20px;
    background-color: #C5A059; /* Gold bg */
    color: white;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lead-conclusion p {
    margin-bottom: 0; /* Remove bottom margin for text inside */
    color: #001f3f;
}

.lead-conclusion strong {
    font-weight: normal;
}

/* List Styling in Articles */
.article-content ul, 
.article-content ol {
    background: #fdfbf7; /* Very subtle paper-like background */
    padding: 40px 50px; /* More internal padding */
    border-radius: 8px;
    margin-top: 40px;
    margin-bottom: 50px; /* More external space */
    border: 1px solid rgba(197, 160, 89, 0.2);
}

/* glass-card内のul/olは親カードに任せるためリセット */
.glass-card ul,
.glass-card ol {
    background: transparent;
    padding: 0 0 0 20px;
    border-radius: 0;
    margin-top: 15px;
    margin-bottom: 0;
    border: none;
}

.article-content ul li {
    list-style: none; /* Reset default */
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px; /* More space between items */
}
.check-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: rgba(197, 160, 89, 0.4); /* Gold accent on hover */
}

.check-icon {
    font-size: 1.5rem;
    color: var(--color-primary-light);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.check-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-text);
    word-break: normal; /* Allow breaks in small cards */
    overflow-wrap: normal;
}

.hero-title {
    font-size: 2.4rem; /* Reduced from 2.8rem */
    margin-bottom: 30px;
    color: var(--color-primary);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--color-primary);
    text-shadow: none;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em; /* Tight heading */
}

.hero-title .marker-yellow {
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--color-primary-light);
    font-weight: bold;
}

/* ==========================================================================
   Page Headers (Subpages)
   ========================================================================== */
.page-header {
    position: relative;
    /* Black overlay for text readability */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/hero_bg_split.png') center/cover no-repeat;
    padding: 120px 0 60px; /* Increased padding */
    text-align: center;
    margin-bottom: 0; /* Removed margin to reduce gap */
    color: white;
}

/* Specific adjustment to reduce gap between Page Header and Content */
.page-header + section {
    padding-top: 40px !important; /* Overrides generic section padding */
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white; /* Changed specifically for header context */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* ==========================================================================
   Components: Cards & Sections
   ========================================================================== */
section {
    padding: 100px 0; /* More breathing room */
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 20px;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary-light);
    border-radius: 2px;
}

.glass-card {
    background: #ffffff;
    line-height: 1.6;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 2px solid #001f3f; /* Navy left border for unity with H2 */
    border-radius: 0 8px 8px 0;
    padding: 35px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #C5A059, transparent);
    border-radius: 0 8px 0 0;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left-color: #C5A059; /* Gold on hover */
}

/* Obligation Card Style (Gold left border) */
.obligation-card {
    border-left: 4px solid #B8860B !important;
}

.obligation-card:hover {
    border-left-color: #C5A059 !important;
}

/* Penalty Card Style (Red left border) */
.penalty-card {
    border-left: 4px solid #d9534f !important;
}

.penalty-card:hover {
    border-left-color: #c9302c !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    font-size: 1.0rem;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-blue-shine);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--color-primary-light);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.35); /* Gold accent shadow */
    color: white;
}

.btn-sm { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; font-size: 0.85rem; }

/* ==========================================================================
   Tables
   ========================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background-color: rgba(62, 146, 204, 0.1);
    color: var(--color-primary);
    font-weight: bold;
    border-bottom: 2px solid var(--color-primary-light);
    text-align: center;
}

.office-table th {
    text-align: left;
    background: var(--color-primary);
    color: white;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 20px 30px;
    font-weight: 400 !important;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    width: 25%;
    vertical-align: middle;
    position: relative;
}

/* 繧ｴ繝ｼ繝ｫ繝峨い繧ｯ繧ｻ繝ｳ繝医Λ繧､繝ｳ */
.office-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--color-primary-light);
    border-radius: 0 2px 2px 0;
}

.office-table tr:nth-child(even) th {
    background: #0a2a4a;
}

.office-table tr:nth-child(even) {
    background-color: #fafbfc;
}

.office-table tr {
    transition: all 0.25s ease;
}

.office-table tr:hover {
    background-color: rgba(197, 160, 89, 0.08);
}

.office-table tr:hover th {
    background: #002040;
}

.office-table td {
    background-color: white;
    padding: 20px 30px;
    font-size: 1rem;
    font-weight: 400 !important;
    color: var(--color-text);
    border-bottom: 1px solid #eaeef2;
    vertical-align: middle;
    line-height: 1.8;
    position: relative;
}

/* 蜿ｳ蛛ｴ縺ｫ繧ゅざ繝ｼ繝ｫ繝峨い繧ｯ繧ｻ繝ｳ繝医Λ繧､繝ｳ */
.office-table td::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--color-primary-light);
    border-radius: 0 2px 2px 0;
}

.office-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

.office-table tr:last-child td,
.office-table tr:last-child th {
    border-bottom: none;
}

/* 騾｣邨｡蜈医・繧ｹ繧ｿ繧､繝ｫ蠑ｷ隱ｿ */
.office-table a {
    color: var(--color-primary);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.office-table a:hover {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}

/* Price Table - 譁咎≡陦ｨ蟆ら畑繧ｹ繧ｿ繧､繝ｫ */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 1rem;
}

.price-table th {
    background: var(--color-primary);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    text-align: center;
    border-bottom: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.price-table th:first-child {
    text-align: left;
    border-radius: 4px 0 0 0;
}

.price-table th:last-child {
    border-radius: 0 4px 0 0;
}

.price-table td {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.price-table td:first-child {
    font-weight: 500;
    color: var(--color-primary);
}

.price-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.price-table tr:hover {
    background-color: rgba(0, 31, 63, 0.04);
    transition: background-color 0.2s ease;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:last-child td:first-child {
    border-radius: 0 0 0 4px;
}

.price-table tr:last-child td:last-child {
    border-radius: 0 0 4px 0;
}

/* 蜷郁ｨ亥・繧貞ｼｷ隱ｿ */
.price-table td:last-child {
    background-color: rgba(0, 31, 63, 0.03);
    font-weight: 600;
}

.price-table td:last-child strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* ==========================================================================
   Flow Steps - 縺比ｾ晞�ｼ縺ｮ豬√ｌ逕ｨ繧ｹ繧ｿ繧､繝ｫ
   ========================================================================== */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 35px 40px !important;
    margin-bottom: 0;
    position: relative;
    border-left: 3px solid var(--color-primary-light) !important;
    border-radius: 0 8px 8px 0 !important;
    margin-left: 30px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left-color: var(--color-primary) !important;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--color-primary-light);
}

/* 繧ｹ繝・ャ繝鈴俣縺ｮ邵ｦ遏｢蜊ｰ */
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid var(--color-primary-light);
    z-index: 10;
}

.flow-step:not(:last-child) {
    margin-bottom: 50px;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #003366);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    opacity: 0.5;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* 繝｢繝舌う繝ｫ蟇ｾ蠢・*/
@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        gap: 15px;
        padding: 25px !important;
        margin-left: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-number::after {
        width: 60px;
        height: 60px;
    }
    
    .flow-step::before {
        left: -22px;
        width: 15px;
    }
}

/* ==========================================================================
   Article List
   ========================================================================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white; /* Ensure white bg */
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-title a {
    color: var(--color-primary);
}

.article-title a:hover {
    color: var(--color-primary-light);
}

.article-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(135deg, #001f3f 0%, #00152e 100%); /* Deep luxurious gradient */
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px;
    border-top: 5px solid var(--color-primary-light); /* Accent top border */
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 0%, rgba(58, 134, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-info .fa-phone {
    color: var(--color-primary-light);
}
.footer-info p[style*="font-weight: bold"] {
    color: var(--color-primary-light) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for 3 columns on standard screens */
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo-text,
.footer-info h4 {
    font-size: 1.0rem; /* Increased slightly as requested */
    font-weight: normal; /* Unified weight */
    color: white;
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    display: block;
}

.footer-info ul {
    padding-left: 0;
    display: grid; /* 2-column layout for links */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-info li {
    margin-bottom: 0; /* Handled by gap */
}

.footer-info a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding-left: 0;
    font-size: 0.85rem; /* Matched to headers */
}

.footer-info a::before {
    content: '\f054'; /* fa-chevron-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--color-primary-light);
    transition: transform 0.3s;
    font-size: 0.8em;
}

.footer-info a:hover {
    color: var(--color-primary-light); /* Gold hover effect */
    transform: translateX(5px);
    text-decoration: none;
}

.footer-info a:hover::before {
    transform: translateX(3px);
}

.footer-logo-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 0.05em;
}

.footer-address {
    line-height: 2.0;
    line-height: 2.0;
    font-size: 0.95rem;
}

.footer-area-list {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    /* Layout & Spacing */
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0; /* Reduce vertical padding */
    }
    
    /* Header */
    .header {
        height: 60px; /* Smaller header */
    }

    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 60px; /* Match header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.03);
        width: 100%;
        text-align: center;
        font-size: 1.05rem;
    }

    .nav-item:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }
    
    .header-btn {
        display: none; /* Hide header CTA in bar, move to menu by JS or CSS logic */
    }
    
    /* Improve Summary Card Layout on Mobile */
    /* Flex wrapping ensures content doesn't break on very small screens */
    .glass-card > div[style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* Hero */
    .hero {
        margin-top: 60px;
        min-height: auto;
        padding: 100px 0 80px;
    }

    /* Typography */
    html {
        font-size: 15px; /* Slightly smaller base size */
    }
    
    h1.hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    h2.section-title, .page-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    h3 {
        font-size: 1.4rem;
    }

    /* Hero Section Content */
    .hero-content {
        padding: 40px 20px;
        width: 95%;
        max-width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 40px;
        text-align: center;
    }
    
    .footer-info ul {
        grid-template-columns: 1fr; /* Stack links centered */
        justify-items: center;
    }

    .footer-info p.footer-address, .footer-logo-text {
        text-align: center;
    }
    
    /* Tables (Horizontal Scroll) */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap; /* Prevent messy wrapping in tight cells */
    }
    
    /* Inputs */
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on IOS */
    }
    
    /* Cards */
    .glass-card, .service-card, .price-card {
        padding: 25px 20px; /* optimized padding */
    }

    /* Adjust Flow Steps */
    .flow-step {
        flex-direction: column;
        gap: 15px;
        padding: 25px !important;
        margin-left: 0; /* Align with container */
        border-left: none !important;
        border-top: 3px solid var(--color-primary-light) !important;
        border-radius: 8px !important;
    }
    
    .flow-step::before {
        display: none; /* Hide connector on side */
    }

    .flow-step:not(:last-child)::after {
        left: 50%;
        bottom: -35px;
        border-top: 15px solid var(--color-primary-light);
        border-left: 12px solid transparent;
        border-right: 12px solid transparent; 
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .footer-info ul {
        grid-template-columns: 1fr; /* Stack links on very small screens */
    }
    
    .btn {
        width: 100%; /* Full width buttons */
        padding: 12px 20px;
    }
}

/* ==========================================================================
   Article Specific: 13 Types Grid
   ========================================================================== */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.type-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(197, 160, 89, 0.3);
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.type-card:hover::before {
    transform: scaleX(1);
}

.type-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f7ff, #ffffff);
    border: 1px solid rgba(0, 31, 63, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.type-card:hover .type-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--color-primary), #003366);
}

.type-icon {
    font-size: 2rem;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.type-card:hover .type-icon {
    color: var(--color-primary-light); /* Gold icon on hover */
}

.type-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.type-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}



/* Scroll to Top Button */
#scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), #003366);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 31, 63, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-top-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(184, 134, 11, 0.4);
}

#scroll-top-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid var(--color-primary-light);
    opacity: 0.3;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Question Box for Article Leads */
.question-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 4px;
    border-left: 6px solid #001f3f;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.question-item {
    margin: 0 0 10px;
    line-height: 1.6;
    font-weight: bold;
    font-size: 1.1rem;
    color: #001f3f;
    display: flex;
    align-items: center;
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-icon {
    color: #c5a059;
    margin-right: 15px;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Warning Item List (1-column cards) */
.warning-item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0 50px;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545; /* Red left border for warning */
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.warning-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
    border-left-color: #c5a059; /* Gold on hover */
}

.warning-item i {
    color: #dc3545;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-item span {
    color: #333;
    font-weight: 500;
}

/* Success Item List (1-column cards) */
.success-item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0 50px;
}

.success-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    background: #fff;
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745; /* Green left border for success */
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.success-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
    border-left-color: #c5a059; /* Gold on hover */
}

.success-item i {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-item strong {
    color: #001f3f;
}

.success-item span {
    color: #555;
}

/* Warning Title for Box Layout */
.warning-title {
    font-weight: bold;
    color: #dc3545;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    padding-bottom: 10px;
}

.warning-title::before {
    content: '\f071'; /* Exclamation Triangle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

/* ==========================================================================
   Article Points & Warnings
   ========================================================================== */
.article-point {
    background-color: #fdfbf7; /* Light warm bg matching theme */
    border-left: 5px solid var(--color-primary-light); /* Gold border */
    padding: 25px 30px;
    margin: 60px 0 40px; /* Increased top margin for breathing room */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.1);
    position: relative;
}

.point-title {
    font-weight: bold;
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 10px;
}

.point-title::before {
    content: '\f0eb'; /* Lightbulb */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

.point-text {
    margin-bottom: 0 !important;
    color: var(--color-text);
    line-height: 1.9;
}

/* Warning Context */
/* Warning Context */
/* Shared base styles for box containers */
p.warning-text, .warning-box {
    background-color: #fff5f5; /* Light red bg */
    border-left: 5px solid #dc3545; /* Red border */
    padding: 25px 30px;
    margin: 60px 0 40px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.1);
    color: #444;
}

/* p.warning-text: Single line alert with flex icon */
p.warning-text {
    display: flex;
    align-items: center; /* Vertically center icon and text */
    min-height: auto; /* Remove fixed min-height */
}

p.warning-text::before {
    content: '\f071'; /* Exclamation Triangle */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.4rem;
    color: #dc3545;
    margin-right: 20px; /* Space between icon and text */
    flex-shrink: 0; /* Don't squash icon */
    position: static; /* Reset absolute positioning */
}

/* .warning-box: Block container for Title + Body */
.warning-box {
    display: block;
}

/* Warning Box List Styling override */
.warning-box ul li::before {
    content: '\f00d'; /* Times (X) */
    color: #dc3545;
}

/* li内に<i>アイコンがある場合は::beforeを非表示 */
.warning-box ul li:has(> i)::before {
    content: none;
}

.warning-box ul li > i {
    margin-right: 10px;
    color: #dc3545;
}

/* ==========================================================================
   Refactored Utility Classes (New)
   ========================================================================== */
.price-summary-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.price-card-icon {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-bottom: 15px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-primary-light); /* Fallback */
    color: var(--color-primary-light-text); /* Accessible Gold */
    margin-bottom: 10px;
    line-height: 1;
}

.price-details {
    border-top: 1px dashed rgba(0,0,0,0.1);
    padding-top: 15px;
    margin-top: 10px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.flow-step-title {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--color-text-light);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
    color: white;
}

/* Smartphone Table Adjustments */
@media (max-width: 600px) {
    .office-table, .office-table tbody, .office-table tr, .office-table th, .office-table td {
        display: block;
        width: 100%;
    }
    
    .office-table th {
        width: 100%;
        background: #f0f4f8; /* Light gray for header look */
        color: var(--color-primary);
        padding: 10px 15px;
        border-bottom: none;
        position: relative;
    }
    
    .office-table th::before {
        display: none; /* Remove side accent */
    }

    .office-table td {
        padding: 10px 15px 20px 15px;
        border-bottom: 1px solid #ddd;
    }
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
    border-top: 3px solid #cb9b51;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #cb9b51 transparent;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #cb9b51;
}

.nav-item-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
    .nav-item-dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }
    .dropdown-content {
        position: static;
        display: block;
        width: 100%;
        box-shadow: none;
        transform: none;
        background: rgba(0,0,0,0.03);
        border-top: none;
        padding: 0;
    }
    .dropdown-content::before { display: none; }
    .dropdown-content a {
        padding-left: 30px;
        font-size: 0.9rem;
    }
    .nav-item-dropdown:hover .dropdown-content {
        animation: none;
    }
}
