:root {
    --color-navy-900: #0f213d;
    --color-navy-800: #17335d;
    --color-navy-700: #204579;
    --color-gold: #b6955a;
    --color-ink: #20252c;
    --color-sub: #5d6470;
    --color-line: #d7dde7;
    --color-paper: #f6f8fc;
    --color-white: #ffffff;
    --font-gothic: "Noto Sans JP", sans-serif;
    --font-mincho: "Shippori Mincho", serif;
    --utility-height: 40px;
    --header-height: 88px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-gothic);
    color: var(--color-ink);
    line-height: 1.75;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 60%, #f3f6fb 100%);
    padding-top: var(--utility-height);
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: var(--utility-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(90deg, #0a1830 0%, #13294e 100%);
}

.back-link {
    color: #dce6f7;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    color: #ffffff;
}

.header {
    position: fixed;
    top: var(--utility-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #d9e0ec;
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-family: var(--font-mincho);
    font-size: 1.25rem;
    font-weight: 700;
    color: #f2e6d0;
    background: linear-gradient(135deg, #1a3057 0%, #102447 100%);
    border: 1px solid #214471;
}

.brand-main {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-navy-900);
}

.brand-sub {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: #6f7f96;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    font-size: 0.93rem;
    font-weight: 500;
    color: #2a3450;
}

.nav a:hover {
    color: var(--color-navy-700);
}

.btn-nav {
    padding: 10px 16px;
    border-radius: 4px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #18345f 0%, #0f2344 100%);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px auto;
    background: #1d3052;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

main {
    margin-top: var(--header-height);
}

.hero {
    position: relative;
    overflow: hidden;
    color: #edf4ff;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(9, 25, 52, 0.88), rgba(20, 49, 90, 0.82)),
        url('images/hero-bg.jpg') center/cover no-repeat;
}

.hero-inner {
    position: relative;
    padding: 102px 0 86px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 6px 12px;
    color: #f5e8d1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.hero-title {
    font-family: var(--font-mincho);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.hero-copy {
    margin-top: 22px;
    max-width: 760px;
    color: #dae4f5;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    color: #fcf4e2;
    background: linear-gradient(135deg, #bf995a, #a17f4b);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-outline {
    color: #edf4ff;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-points {
    margin-top: 30px;
    display: grid;
    gap: 8px;
}

.hero-points li {
    position: relative;
    padding-left: 20px;
    color: #dce7f9;
}

.hero-points li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-gold);
}

.section {
    padding: 88px 0;
}

.section-light {
    background: linear-gradient(180deg, #f9fbff 0%, #f2f6fd 100%);
}

.section-navy {
    color: #e8eef8;
    background:
        linear-gradient(110deg, #112747 0%, #1b3e70 100%),
        repeating-linear-gradient(55deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 12px);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-head-left {
    margin: 0 0 18px;
    text-align: left;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    font-weight: 700;
}

.section-head h2 {
    margin-top: 8px;
    font-family: var(--font-mincho);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--color-navy-900);
}

.section-navy .section-head h2 {
    color: #ffffff;
}

.section-head p {
    margin-top: 10px;
    color: var(--color-sub);
}

.section-navy .section-head p {
    color: #c7d4eb;
}

.service-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-top: 4px solid #355682;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(26, 49, 85, 0.08);
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-line);
}

.service-card h3,
.service-card p,
.service-card ul {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
    font-family: var(--font-mincho);
    margin-bottom: 10px;
    color: var(--color-navy-800);
    font-size: 1.25rem;
}

.service-card p {
    color: #3e4550;
}

.service-card ul {
    margin-top: 16px;
    margin-bottom: 24px;
    display: grid;
    gap: 8px;
}

.service-card li {
    position: relative;
    padding-left: 20px;
    font-size: 0.94rem;
}

.service-card li::before {
    content: "・";
    position: absolute;
    left: 3px;
    top: 0;
    color: #486ca0;
}

.fee-table-wrap {
    background: rgba(7, 17, 34, 0.28);
    border: 1px solid rgba(231, 238, 248, 0.28);
    border-radius: 8px;
    overflow: hidden;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th,
.fee-table td {
    text-align: left;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(211, 223, 240, 0.28);
}

.fee-table th {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #d7e4fb;
    background: rgba(0, 0, 0, 0.2);
}

.fee-table td {
    color: #edf3fe;
}

.case-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
    border: 1px solid var(--color-line);
    border-left: 4px solid #31537f;
    border-radius: 6px;
    background: #ffffff;
    padding: 22px 18px;
    box-shadow: 0 10px 24px rgba(18, 41, 71, 0.06);
}

.case-tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e9f0fb;
    color: #214b7d;
    font-size: 0.78rem;
    font-weight: 700;
}

.case-card h3 {
    margin-top: 12px;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--color-navy-900);
}

.case-card p {
    margin-top: 10px;
    color: #475161;
}

.flow-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.flow-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    padding: 16px;
}

.flow-no {
    font-family: var(--font-mincho);
    font-size: 1.32rem;
    color: #345683;
    letter-spacing: 0.06em;
}

.flow-item h3 {
    color: #20395f;
    font-size: 1.06rem;
}

.flow-item p {
    margin-top: 6px;
    color: #4c5665;
}

.office-layout {
    display: grid;
    gap: 26px;
    grid-template-columns: 1.05fr 0.95fr;
}

.office-summary h3 {
    margin-bottom: 14px;
    font-family: var(--font-mincho);
    font-size: 1.45rem;
    color: var(--color-navy-900);
}

.office-summary p+p {
    margin-top: 12px;
}

.office-info {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(18, 42, 73, 0.08);
}

.office-info dl {
    padding: 16px;
    border-bottom: 1px solid #e6ebf4;
}

.office-info dl:last-child {
    border-bottom: 0;
}

.office-info dt {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6d7b90;
}

.office-info dd {
    margin-top: 5px;
    color: #2d3541;
}

.faq-list {
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px;
    font-weight: 700;
    color: #1b355d;
    position: relative;
    padding-right: 42px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 14px;
    font-size: 1.2rem;
    font-weight: 400;
    color: #47618a;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 16px 16px;
    color: #465261;
}

.contact-section {
    background:
        linear-gradient(130deg, #102341 0%, #1d3f70 100%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 15px);
}

.contact-box {
    padding: 28px;
    border-radius: 8px;
    border: 1px solid rgba(230, 238, 251, 0.32);
    background: rgba(8, 21, 42, 0.58);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    color: #e8eef9;
}

.contact-box h2 {
    margin-top: 8px;
    font-family: var(--font-mincho);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.contact-box p {
    margin-top: 10px;
}

.contact-tel {
    margin-top: 14px;
    font-size: 1.65rem;
    font-weight: 700;
    color: #f5e6cb;
}

.contact-note {
    font-size: 0.94rem;
    color: #c6d4ec;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(229, 238, 251, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #f2f7ff;
    padding: 10px 12px;
    border-radius: 4px;
    font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b8c8e4;
}

.footer {
    background: #0b1a33;
    color: #c5d3ea;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: grid;
    gap: 12px;
}

.footer-logo {
    color: #f0e2c9;
    font-family: var(--font-mincho);
    font-size: 1.16rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #94a8c8;
}

.fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

@media (max-width: 1080px) {
    .nav ul {
        gap: 12px;
    }

    .service-grid,
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .office-layout,
    .contact-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    :root {
        --header-height: 76px;
    }

    .brand-main {
        font-size: 0.92rem;
    }

    .brand-sub {
        font-size: 0.61rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        width: 100%;
        border-bottom: 1px solid #d8e0ec;
        background: rgba(255, 255, 255, 0.98);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav ul {
        padding: 16px 4%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .nav.active {
        max-height: 70vh;
    }

    .hero-inner {
        padding: 78px 0 72px;
    }

    .service-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-title {
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .flow-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fee-table th,
    .fee-table td {
        font-size: 0.85rem;
        padding: 12px 10px;
    }

    .contact-box {
        padding: 20px;
    }
}