/* 
   原田税務会計事務所 Stylesheet
   Premium, Trustworthy, Modern Design
*/

:root {
    /* Color Palette */
    --clr-navy: #0A192F;         /* Deep Navy for Trust & Professionalism */
    --clr-navy-light: #112240;   /* Slightly lighter navy */
    --clr-gold: #C5A059;         /* Premium Gold/Brass */
    --clr-gold-light: #D4B67B;
    --clr-text-main: #333333;    /* Main Body Text */
    --clr-text-muted: #666666;
    --clr-bg-body: #FAFAFA;      /* Off-white background */
    --clr-bg-light: #F0F4F8;     /* Very light blue/gray for sections */
    --clr-white: #FFFFFF;
    
    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --max-width-sm: 800px;
    --max-width-md: 1000px;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--clr-navy);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.text-sm { font-size: 0.875rem; }

/* Containers */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.container-sm {
    max-width: var(--max-width-sm);
}

.container-md {
    max-width: var(--max-width-md);
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-primary {
    background-color: var(--clr-navy);
}

.text-white {
    color: var(--clr-white);
}

.text-white h1, .text-white h2, .text-white h3 {
    color: var(--clr-white);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-en {
    font-size: 0.875rem;
    color: var(--clr-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--clr-gold);
    color: var(--clr-white);
    font-weight: 700;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--clr-gold);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-gold);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-jp {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-navy);
    line-height: 1.1;
}

.logo-en {
    font-size: 0.65rem;
    color: var(--clr-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold);
    transition: width 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
    overflow: hidden;
    padding-top: 80px; /* Offset for header */
}

/* Subtle pattern overlay for premium feel */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at center, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--clr-white);
    max-width: 800px;
    width: 90%;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--clr-white);
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-family: var(--font-serif);
}

.hero-contact-note {
    font-size: 0.875rem;
    color: var(--clr-gold);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* About Section */
.lead-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--clr-navy);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--clr-gold);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--clr-navy);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top-color: var(--clr-gold);
}

.card-icon {
    color: var(--clr-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-bg-light);
}

.card-body h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--clr-navy-light);
    font-family: var(--font-sans);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.card-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.card-body li {
    margin-bottom: 0.25rem;
}

.fee-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--clr-bg-light);
    border-radius: 4px;
    font-weight: 500;
}

/* Fees Section */
.image-wrapper {
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--clr-white);
    padding: 1rem;
    margin: 0 auto;
}

.responsive-img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the original xlt/png is not cropped */
}

.shadow-lg {
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.bullet-list {
    list-style: none;
    padding: 0;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--clr-text-muted);
}

.bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--clr-gold);
    font-size: 0.8rem;
    top: 2px;
}

/* FAQ Accordion */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--clr-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-navy);
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--clr-gold);
}

.accordion-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--clr-navy);
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    width: 2px;
    height: 16px;
}

.accordion-icon::after {
    width: 16px;
    height: 2px;
}

.accordion-header[aria-expanded="true"] .accordion-icon::before {
    transform: rotate(90deg);
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--clr-text-muted);
}

/* Profile Section */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.profile-image-container {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.profile-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}

.profile-details {
    flex: 2;
    min-width: 300px;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--clr-gold);
}

.profile-name .title {
    font-size: 1rem;
    color: var(--clr-gold);
    font-family: var(--font-sans);
    display: block;
    margin-bottom: 0.25rem;
}

.profile-name .small-text {
    font-size: 1.25rem;
    font-weight: 300;
    font-family: var(--font-sans);
}

.profile-history h4,
.profile-hobbies h4 {
    color: var(--clr-navy);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.profile-details p {
    color: var(--clr-text-muted);
}

/* Contact Section */
.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--clr-white);
    color: var(--clr-navy);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-step {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-gold);
    margin-bottom: 1rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    color: var(--clr-navy);
}

.contact-phone .icon {
    color: var(--clr-gold);
}

.contact-note {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--clr-navy-light);
    color: var(--clr-white);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .logo-jp { font-size: 1.25rem; }
    
    /* Mobile Menu setup */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: var(--clr-navy);
        transition: var(--transition);
        transform-origin: left center;
    }
    
    .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg); }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--clr-white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 2rem 2rem;
        flex-direction: column;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-cta {
        display: none; /* Hide button in mobile header to save space, maybe add in menu */
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Custom Fee Tables */
.fee-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.fee-table-container {
    flex: 1;
    min-width: 320px;
    background: var(--clr-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--clr-navy);
}

.fee-table-title {
    font-size: 1.25rem;
    color: var(--clr-gold);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-bg-light);
}

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

.fee-table th, .fee-table td {
    padding: 1rem 0.5rem;
    vertical-align: middle;
}

.fee-main-th {
    font-weight: 700;
    color: var(--clr-navy);
    width: 35%;
    border-bottom: 1px solid var(--clr-bg-light);
}

.fee-sub-th {
    font-weight: 500;
    color: var(--clr-navy-light);
    width: 35%;
    text-align: left;
    padding-left: 1rem !important;
}

.fee-price {
    font-weight: 700;
    color: var(--clr-text-main);
    text-align: right;
    width: 30%;
}

.fee-plus-row {
    text-align: center;
    color: var(--clr-gold);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 !important;
}

.fee-separator td {
    border-bottom: 2px dashed var(--clr-bg-light);
    padding: 0.5rem 0 !important;
}

.fee-notes {
    background: var(--clr-bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}
