/* ========================================
   中村原田法律事務所 - スタイルシート
   Design: 濃紺 + 白 + 水色（信頼感 + モダン）
   ======================================== */

/* === CSS変数 === */
:root {
    --navy: #1a2744;
    --navy-dark: #0f1a2e;
    --navy-light: #2a3f66;
    --blue: #3b7dd8;
    --blue-light: #5a9be6;
    --sky: #e8f0fa;
    --sky-light: #f2f6fc;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #eef1f5;
    --gray-200: #dde2ea;
    --gray-400: #9aa5b8;
    --gray-600: #5a6577;
    --gray-800: #2d3648;
    --gold: #c9a94e;
    --gold-light: #dfc778;

    --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;

    --header-height: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 39, 68, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 39, 68, 0.15);
}

/* === リセット === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.sp-only { display: none; }

/* === ヘッダー === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.06);
    z-index: 1000;
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ロゴ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    gap: 4px;
}

.logo-bar {
    width: 4px;
    height: 28px;
    background: var(--navy);
    border-radius: 2px;
}

.logo-bar:nth-child(2) {
    background: var(--blue);
}

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

.logo-en {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--gray-400);
    text-transform: uppercase;
}

.logo-jp {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 1px;
}

.logo-icon--light .logo-bar {
    background: var(--white);
}
.logo-icon--light .logo-bar:nth-child(2) {
    background: var(--blue-light);
}
.logo-text--light .logo-en {
    color: var(--gray-400);
}
.logo-text--light .logo-jp {
    color: var(--white);
}

/* ナビ */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width var(--transition);
}

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

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

.nav-link--cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
}

.nav-link--cta::after { display: none; }

.nav-link--cta:hover {
    background: var(--navy-light);
}

/* ハンバーガー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
}

/* === ヒーロー === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 39, 68, 0.88) 0%,
        rgba(26, 39, 68, 0.65) 50%,
        rgba(26, 39, 68, 0.4) 100%
    );
    z-index: 1;
}

/* テキストオンリーヒーロー */
.hero--text-only {
    background: linear-gradient(
        135deg,
        var(--navy-dark) 0%,
        var(--navy) 40%,
        var(--navy-light) 100%
    );
}

.hero--text-only .hero-content {
    text-align: center;
    max-width: 800px;
}

.hero--text-only .hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero--text-only .hero-title {
    font-size: clamp(32px, 5vw, 56px);
}

.hero--text-only .hero-desc {
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px 80px;
}

.hero-sub {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-desc {
    font-size: clamp(14px, 1.5vw, 17px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scrollLine 2s ease infinite;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 125, 216, 0.3);
}

.btn--outline {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

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

/* === セクション共通 === */
.section {
    padding: 100px 0;
}

.section--practice {
    background: var(--navy);
}

.section--contact {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 8px;
}

.section-header--light .section-label {
    color: var(--blue-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 2px;
}

.section-header--light .section-title {
    color: var(--white);
}

/* === 事務所概要 === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content--text-only {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content--text-only .about-heading {
    font-size: 24px;
}

.about-content--text-only .about-info {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-heading {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.about-info {
    margin-top: 32px;
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    font-size: 14px;
}

.info-label {
    min-width: 80px;
    color: var(--navy);
    font-weight: 500;
}

.info-value {
    color: var(--gray-600);
}

.info-value a {
    color: var(--blue);
}

.info-value a:hover {
    text-decoration: underline;
}

/* === 弁護士紹介 === */
.section--lawyers {
    background: var(--sky-light);
}

.lawyers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.lawyer-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.lawyer-card:hover {
    box-shadow: var(--shadow-md);
}

.lawyer-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.lawyer-photo-placeholder svg {
    width: 48px;
    height: 48px;
}

.lawyer-name {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 2px;
}

.lawyer-kana {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 1px;
    margin-top: 4px;
}

.lawyer-bar {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.lawyer-career {
    margin-top: 24px;
}

.lawyer-career-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
    padding: 32px 0;
}

.career-heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 1px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
    margin-bottom: 12px;
    margin-top: 20px;
}

.career-heading:first-child {
    margin-top: 0;
}

.career-list {
    margin-bottom: 8px;
}

.career-item {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.7;
}

.career-item dt {
    min-width: 85px;
    color: var(--gray-400);
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.career-item dd {
    color: var(--gray-800);
}

/* === 取扱分野 === */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.practice-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 36px 28px;
    transition: all var(--transition);
}

.practice-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.practice-icon {
    width: 48px;
    height: 48px;
    color: var(--blue-light);
    margin-bottom: 20px;
}

.practice-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.practice-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

/* === アクセス === */
.access-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.access-map iframe {
    display: block;
}

.access-detail {
    margin-bottom: 28px;
}

.access-detail h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.access-detail p {
    font-size: 14px;
    color: var(--gray-600);
}

.access-detail small {
    color: var(--gray-400);
    font-size: 12px;
}

/* === お問い合わせ === */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--blue-light);
}

.contact-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.contact-phone {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.contact-phone:hover {
    color: var(--blue-light);
}

.contact-hours {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

.contact-note {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 40px;
    line-height: 1.8;
}

/* === フッター === */
.footer {
    background: var(--navy-dark);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-info {
    text-align: right;
}

.footer-info p {
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-info a {
    color: var(--blue-light);
}

.footer-copy {
    text-align: center;
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 24px;
}

/* === アニメーション === */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* === レスポンシブ === */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .sp-only { display: inline; }

    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ffffff !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 999;
        opacity: 1 !important;
    }

    .nav.open { display: flex; }

    .header:has(.nav.open),
    .header.menu-open {
        background: #ffffff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nav-link { font-size: 18px; }

    .nav-link--cta {
        margin-top: 16px;
    }

    .hamburger { display: none; }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        padding: 100px 20px 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        height: 240px;
    }

    .lawyers-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lawyer-card {
        padding: 32px 24px;
    }

    .practice-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .practice-card {
        padding: 28px 24px;
    }

    .access-content {
        grid-template-columns: 1fr;
    }

    .access-map iframe {
        height: 280px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-info { text-align: center; }

    .section {
        padding: 64px 0;
    }
}
