/* ===================================
   小野晋平税理士事務所 - スタイルシート
   =================================== */

/* リセットと基本設定 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #008AE4;
    --primary-dark: #0066B3;
    --primary-light: #33A1EC;
    --primary-lighter: #66B8F2;
    --accent-color: #00C6FF;
    --accent-gradient: linear-gradient(135deg, #008AE4 0%, #00C6FF 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #00C6FF 0%, #008AE4 100%);
    --hero-gradient: linear-gradient(135deg, rgba(0, 138, 228, 0.9) 0%, rgba(0, 102, 179, 0.95) 50%, rgba(0, 198, 255, 0.85) 100%);
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f0f8ff;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 138, 228, 0.1), 0 2px 4px -1px rgba(0, 138, 228, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 138, 228, 0.15), 0 4px 6px -2px rgba(0, 138, 228, 0.08);
    --shadow-blue: 0 10px 40px rgba(0, 138, 228, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-white);
}

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

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    font-family: 'Cormorant Garamond', serif;
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

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

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

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-dark);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 背景に薄いオーバーレイ（フィルターなし、画像を活かす） */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    text-align: left;
    color: var(--bg-white);
    padding: 0 60px;
    z-index: 1;
    max-width: 900px;
}

/* 事務所名 - メインカラー背景、白テキスト */
.hero-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    font-family: 'Cormorant Garamond', serif;
    color: #ffffff;
    background: var(--primary-color);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 138, 228, 0.3);
}

/* メインキャッチコピー - 左寄せで強調、一つの段落として統一 */
.hero-main-copy {
    margin-bottom: 0;
    padding-left: 25px;
    border-left: 5px solid var(--primary-color);
}

.hero-main-copy .copy-text {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-main-copy .copy-line {
    display: block;
}

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

.section-alt {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

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

.section-title-en {
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
}

/* コンセプトセクション */
.concept-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.concept-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
}

.concept-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concept-text h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.concept-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 2;
}

.concept-points {
    margin-top: 30px;
}

.concept-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.concept-point-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
}

.concept-point-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-white);
}

.concept-point-content h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.concept-point-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 138, 228, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-blue);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 138, 228, 0.3), transparent);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 25px;
}

.service-card-title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card-link svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: var(--transition);
    fill: var(--primary-color);
}

.service-card:hover .service-card-link svg {
    transform: translateX(5px);
}

/* 事務所情報セクション */
.office-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

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

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.office-table tr {
    border-bottom: 1px solid var(--border-color);
}

.office-table th,
.office-table td {
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.office-table th {
    width: 30%;
    font-weight: 600;
    color: var(--primary-dark);
    background: linear-gradient(90deg, var(--bg-light) 0%, rgba(0, 138, 228, 0.05) 100%);
}

.office-table td {
    color: var(--text-color);
}

/* CTAセクション */
.cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
    background: var(--bg-light);
}

.cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--accent-gradient);
    border-radius: 16px;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
}

.cta-desc {
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
}

.cta-phone {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    position: relative;
}

.cta-phone a {
    color: var(--bg-white);
}

.cta-hours {
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 138, 228, 0.4);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* アクセスセクション */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.access-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.access-info h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.access-address {
    margin-bottom: 30px;
}

.access-address p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.access-directions {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(0, 138, 228, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.access-directions h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.access-directions ul {
    list-style: disc;
    padding-left: 20px;
}

.access-directions li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #004080 100%);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-affiliate-inline {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-affiliate-inline .affiliate-title {
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.footer-affiliate-inline .affiliate-company {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.affiliate-desc-inline {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 12px;
}

.affiliate-link-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-size: 0.85rem;
    transition: var(--transition);
}

.affiliate-link-inline:hover {
    color: var(--bg-white);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--bg-white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-affiliate {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-bottom: 30px;
}

.affiliate-inner {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.affiliate-title {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.affiliate-company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.affiliate-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    flex: 1;
    min-width: 300px;
}

.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.affiliate-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

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

/* ページヘッダー（下層ページ用） */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-gradient);
}

.page-header-content {
    position: relative;
    text-align: center;
    color: var(--bg-white);
}

.page-header-title-en {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 600;
}

/* パンくずリスト */
.breadcrumb {
    padding: 15px 0;
    background: linear-gradient(90deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li:last-child {
    color: var(--primary-color);
}

/* お問い合わせフォーム */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 138, 228, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-label .required {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 138, 228, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* プロフィールセクション */
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

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

.profile-name {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.profile-name-en {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-message {
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 30px;
}

.profile-career h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
    border-image: var(--accent-gradient) 1;
}

.profile-career ul {
    list-style: none;
}

.profile-career li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.profile-career .year {
    width: 100px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 経歴タイムライン */
.career-timeline {
    position: relative;
    padding-left: 30px;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.career-item {
    position: relative;
    padding-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.career-item:last-child {
    padding-bottom: 0;
}

.career-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.career-current::before {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.career-year {
    min-width: 80px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 20px;
    text-align: center;
}

.career-current .career-year {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.career-content {
    color: var(--text-color);
    line-height: 1.8;
    padding-top: 3px;
}

/* サービス詳細 */
.service-detail {
    margin-bottom: 60px;
}

.service-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.service-detail-number {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 20px;
    box-shadow: var(--shadow-blue);
}

.service-detail-icon {
    width: 55px;
    height: 55px;
    background: var(--accent-gradient);
    color: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
}

.service-detail-icon svg {
    width: 28px;
    height: 28px;
}

.service-detail-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.service-detail-content.reverse {
    direction: rtl;
}

.service-detail-content.reverse > * {
    direction: ltr;
}

.service-detail-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-text p {
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 15px;
}

.service-detail-list {
    margin-top: 20px;
}

.service-detail-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    color: var(--text-color);
}

.service-detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 138, 228, 0.4);
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* ドロワーメニュー（画面全体を覆う） */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 0;
        box-shadow: none;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 998;
        justify-content: flex-start;
        align-items: stretch;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
        z-index: 999;
    }
    
    .hero {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        margin-bottom: 20px;
        padding: 6px 15px;
    }
    
    /* トップページMVのテキストサイズダウン */
    .hero-main-copy .copy-text {
        font-size: 1.6rem;
    }
    
    .hero-main-copy .copy-line.sub,
    .hero-main-copy .copy-line.emphasis {
        font-size: 1.1rem;
    }
    
    .hero-main-copy .copy-line.emphasis {
        padding-left: 10px;
        border-left-width: 2px;
    }
    
    .hero-title {
        font-size: 0.55rem;
        padding: 4px 10px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* 2カラムセクションを1カラムに */
    .concept-content,
    .office-info,
    .access-content,
    .profile-content,
    .service-detail-content,
    .service-detail-content.reverse {
        grid-template-columns: 1fr !important;
        direction: ltr;
        gap: 30px;
    }
    
    /* プロフィールページのグリッドを1カラムに */
    .profile-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* メッセージセクションのグリッドを1カラムに */
    .message-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 事務所概要ページのカードグリッドを1カラムに */
    .about-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 事務所概要ページの「私たちの想い」セクションを1カラムに */
    .about-philosophy-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 事務所概要ページの「取扱業務」セクションを1カラムに */
    .about-services-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* アクセスページのマップ下コンテンツを1カラムに */
    .access-info-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* 北浜ファイナンスデザインページのグリッドを1カラムに */
    .kitahama-company-grid {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* CTAセクションのサイズダウン */
    .cta-title {
        font-size: 1.3rem;
    }
    
    .cta-desc {
        font-size: 0.9rem;
    }
    
    .cta-phone {
        font-size: 1.5rem;
    }
    
    .cta-hours {
        font-size: 0.8rem;
    }
    
    .cta-inner {
        padding: 30px 20px;
    }
    
    .page-header {
        height: 200px;
    }
    
    .page-header-title {
        font-size: 1.8rem;
    }
    
    /* 経歴タイムラインのレスポンシブ */
    .career-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .career-year {
        align-self: flex-start;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* グラデーションテキスト */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* グラデーションボーダー */
.gradient-border {
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                var(--accent-gradient) border-box;
    border-radius: 12px;
}
