/* 
   Pattern 41: Accounting (会計士・税理士)
   Theme: Trust & Professionalism (Navy Blue & Silver/Gray)
   Font: Shippori Mincho (見出し用) / Noto Sans JP (本文用)
*/

:root {
    /* カラーパレット：知的で誠実なネイビー */
    --c-primary: #1A365D;
    /* ディープネイビー */
    --c-primary-dark: #0D1C30;
    --c-accent: #E2E8F0;
    /* シルバー/ライトグレー */
    --c-text: #2D3748;
    --c-text-light: #718096;
    --c-bg: #FFFFFF;
    --c-bg-gray: #F7FAFC;
    --c-border: #CBD5E0;

    /* タイポグラフィ */
    --f-title: 'Shippori Mincho', serif;
    --f-main: 'Noto Sans JP', sans-serif;
    --f-en: 'Cinzel', serif;
    /* ロゴやアクセント用のクラシックな英語フォント */

    /* その他 */
    --spacing-section: 120px;
    --border-radius: 4px;
    /* 四角くカッチリとした印象 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--f-main);
    color: var(--c-text);
    background-color: var(--c-bg);
    line-height: 1.8;
    font-size: 16px;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.text-small {
    font-size: 0.85rem;
    color: var(--c-text-light);
}

/* =========================================
   Typography & Sections
========================================= */
.section {
    padding: var(--spacing-section) 0;
}

.section--gray {
    background-color: var(--c-bg-gray);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.section-subtitle {
    display: inline-block;
    font-family: var(--f-en);
    color: var(--c-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--c-primary);
}

.text-center .section-subtitle::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title {
    font-family: var(--f-title);
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--c-text);
    font-weight: 700;
}

.section-desc {
    color: var(--c-text-light);
    font-size: 0.95rem;
}

/* ボタン共通 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--c-primary);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--c-primary);
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    transition: var(--transition);
}

.header.is-scrolled .logo {
    color: var(--c-primary);
}

.logo-mark {
    font-family: var(--f-en);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.header.is-scrolled .logo-mark {
    border-color: var(--c-border);
}

.logo-text {
    font-family: var(--f-main);
    /* 英字もGothicでかっちり */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1.5px;
}

.header.is-scrolled .logo-text span {
    color: var(--c-text-light);
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.header.is-scrolled .nav a {
    color: var(--c-text);
}

.nav a:hover {
    color: var(--c-primary-light) !important;
}

.header.is-scrolled .nav a:hover {
    color: var(--c-primary) !important;
}

.btn-contact {
    display: inline-block;
    padding: 10px 24px;
    background-color: #fff;
    color: var(--c-primary) !important;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 1px solid #fff;
}

.header.is-scrolled .btn-contact {
    background-color: var(--c-primary);
    color: #fff !important;
    border-color: var(--c-primary);
}

.btn-contact:hover {
    background-color: transparent !important;
    color: #fff !important;
}

.header.is-scrolled .btn-contact:hover {
    color: var(--c-primary) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

.header.is-scrolled .menu-toggle span {
    background-color: var(--c-primary);
}

/* =========================================
   Hero
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ネイビーのグラデーション乗算 */
    background: linear-gradient(90deg, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.4) 100%);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg.is-visible {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
}

.hero-title {
    font-family: var(--f-title);
    font-size: 3.5rem;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #fff;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--f-en);
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-down::after {
    content: '';
    width: 1px;
    height: 40px;
    background-color: #fff;
    margin-top: 10px;
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* =========================================
   About
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-point {
    font-size: 1.15rem;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 硬い印象の装飾 */
.image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background-color: var(--c-accent);
    z-index: 1;
    border-radius: var(--border-radius);
}

/* =========================================
   Services
========================================= */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.s-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-top: 5px solid var(--c-primary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.s-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.s-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.s-card h3 {
    font-family: var(--f-title);
    font-size: 1.3rem;
    color: var(--c-primary);
    margin-bottom: 15px;
}

.s-card p {
    text-align: left;
    font-size: 0.95rem;
    color: var(--c-text-light);
}

/* =========================================
   Pricing Matrix (独自UI)
========================================= */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    /* スマホ用にはみ出しスクロール */
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
}

.matrix-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    text-align: center;
}

.matrix-table th,
.matrix-table td {
    padding: 20px;
    border: 1px solid var(--c-border);
}

.matrix-table thead th {
    background-color: var(--c-primary);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    vertical-align: middle;
}

.th-sub {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.matrix-table tbody th {
    background-color: var(--c-bg-gray);
    color: var(--c-text);
    text-align: left;
    font-weight: 600;
}

.matrix-table tbody td {
    font-size: 1.15rem;
    color: var(--c-text);
    /* 数字フォントは英語フォントを当てて綺麗に */
    font-family: var(--f-en);
}

/* ハイライト行（オススメ等） */
.matrix-table tr.highlight th,
.matrix-table tr.highlight td {
    background-color: #EBF8FF;
    /* 非常に薄い青 */
    font-weight: 700;
}

.matrix-table tr.highlight th {
    color: #2B6CB0;
}

.price-note {
    background: var(--c-bg-gray);
    border-left: 4px solid var(--c-primary);
    padding: 20px;
    margin-top: 30px;
}

.price-note h4 {
    color: var(--c-text);
    margin-bottom: 10px;
}

.price-note ul {
    list-style: none;
    padding-left: 15px;
}

.price-note li {
    position: relative;
    margin-bottom: 5px;
    color: var(--c-text-light);
    font-size: 0.95rem;
}

.price-note li::before {
    content: '・';
    position: absolute;
    left: -15px;
}

/* =========================================
   FAQ
========================================= */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border: 1px solid var(--c-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-q {
    padding: 20px 25px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    background-color: #fff;
    transition: var(--transition);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c-text-light);
    transition: var(--transition);
}

.faq-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

details[open] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

details[open] .faq-q {
    border-bottom: 1px dashed var(--c-border);
}

.faq-a {
    padding: 25px;
    color: var(--c-text);
    background-color: var(--c-bg-gray);
}

.faq-a p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* =========================================
   Contact Area
========================================= */
.contact-section {
    position: relative;
    padding: 0;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 1;
}

.contact-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.85);
    /* 暗いネイビー */
}

.contact-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card {
    position: relative;
    z-index: 10;
    display: flex;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    /* 少し下に押し下げて重ねる */
    overflow: hidden;
}

.c-info {
    flex: 1;
    padding: 60px 50px;
    background: var(--c-bg-gray);
    border-right: 1px solid var(--c-border);
}

.c-action {
    flex: 1;
    padding: 60px 50px;
}

.c-info h2,
.c-action h2 {
    font-family: var(--f-title);
    font-size: 1.5rem;
    color: var(--c-primary);
    margin-bottom: 25px;
}

.info-dl {
    display: flex;
    flex-wrap: wrap;
}

.info-dl dt,
.info-dl dd {
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
}

.info-dl dt {
    width: 30%;
    font-weight: 600;
}

.info-dl dd {
    width: 70%;
    color: var(--c-text-light);
}

.tel-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.tel-wrap span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-light);
}

.tel-number {
    font-family: var(--f-en);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-primary);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--c-primary-dark);
    color: #fff;
    padding: 160px 0 40px;
    /* 連絡先カードの重なり分を含む */
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
}

.footer-logo .logo-mark {
    margin-right: 10px;
    padding-right: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #A0AEC0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #718096;
    font-size: 0.85rem;
}

/* =========================================
   Animations
========================================= */
.anim {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.anim-up {
    transform: translateY(30px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.anim-d1 {
    transition-delay: 0.2s;
}

.anim-d2 {
    transition-delay: 0.4s;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-cards {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card {
        flex-direction: column;
    }

    .c-info {
        border-right: none;
        border-bottom: 1px solid var(--c-border);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--c-primary);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }

    .nav.is-active {
        right: 0;
    }

    .nav a {
        font-size: 1.2rem;
        margin: 15px 0;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .contact-card {
        transform: translateY(50px);
    }

    .footer {
        padding-top: 100px;
    }

    .c-info,
    .c-action {
        padding: 40px 20px;
    }

    .info-dl dt,
    .info-dl dd {
        width: 100%;
        border-bottom: none;
        padding: 5px 0;
    }

    .info-dl dd {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--c-border);
    }
}