/* ==========================================
   ベース＆高級邸宅風グローバル設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', 'Times New Roman', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    color: #2c3e50;
    line-height: 1.8;
    background-color: #ffffff;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

/* シャンパンゴールドを織り交ぜた品格のある見出し */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 5px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #c5a059, #e5c17d, #c5a059); /* 鈍く光るゴールド */
}

/* 幾何学的で奥深いダークネイビー＆大理石を模したプレミアム背景 */
.bg-premium {
    background-color: #f4f7f9;
    background-image: 
        radial-gradient(rgba(197, 160, 89, 0.03) 1px, transparent 0),
        radial-gradient(rgba(12, 35, 64, 0.02) 2px, transparent 0);
    background-size: 24px 24px, 40px 40px;
    position: relative;
}

/* ==========================================
   立体フレーム＆ボタンの3D加工
   ========================================== */
.btn-main {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #aa7c11); /* ゴールド鏡面風 */
    color: #fff;
    padding: 14px 40px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(170, 124, 17, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(170, 124, 17, 0.6), inset 0 1px 0 rgba(255,255,255,0.4);
    background: linear-gradient(135deg, #e5c17d, #b8860b);
}

.btn-sub {
    display: inline-block;
    border: 1px solid #c5a059;
    color: #c5a059;
    background-color: transparent;
    padding: 10px 24px;
    border-radius: 2px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.btn-sub:hover {
    background-color: #c5a059;
    color: #fff;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
    transform: translateY(-1px);
}

/* ディープブルーのプレースホルダー */
.photo-placeholder, .photo-placeholder-square, .icon-placeholder, .map-placeholder, .icon-placeholder-small {
    background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* ==========================================
   ヘッダー（格式高いネイビー＆ホワイト）
   ========================================== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0c2340;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 600;
}

nav ul li a:hover {
    color: #c5a059;
}

.btn-nav {
    background: #0c2340;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 2px;
    box-shadow: 0 3px 6px rgba(12,35,64,0.2);
}

.btn-nav:hover {
    background: #1a365d;
    transform: translateY(-1px);
}

/* ==========================================
   メインビジュアル（映画のワンシーンのような奥行き）
   ========================================== */
.hero {
    position: relative;
    background: #0c2340 linear-gradient(135deg, #0c2340 0%, #1a3a60 100%);
    padding: 160px 0;
    text-align: center;
    overflow: hidden;
}

/* 幾何学的高級ライン（背景装飾） */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197,160,89,0.08) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

/* ==========================================
   立体額縁：グラスモルフィズム＆重厚フレーム
   ========================================== */
.glass-morphism {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(197, 160, 89, 0.2);
    border-radius: 4px;
    padding: 40px;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text h3 {
    font-size: 1.6rem;
    color: #0c2340;
    margin-bottom: 20px;
    position: relative;
}

.photo-placeholder {
    height: 280px;
    border-radius: 3px;
}

/* ==========================================
   3Dプレミアムカード（法人・個人）
   ========================================== */
.section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #4a5568;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* 浮き出す重厚なカード枠 */
.service-card-premium {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 4px;
    border-top: 4px solid #0c2340;
    box-shadow: 
        0 15px 35px rgba(12, 35, 64, 0.04),
        0 5px 15px rgba(0, 0, 0, 0.02);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}

.service-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(12, 35, 64, 0.1),
        0 10px 20px rgba(197, 160, 89, 0.1);
}

/* 個人向けカードはエレガントなゴールドトーンの立体枠 */
.service-card-premium.personal-card {
    border-top: 4px solid #c5a059;
}

.icon-placeholder {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border-radius: 50%;
}

.service-card-premium h3 {
    font-size: 1.3rem;
    color: #0c2340;
    margin-bottom: 15px;
}

/* ==========================================
   沿革（タイムライン・3Dブロック）
   ========================================== */
.history-timeline {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
    border-left: 2px solid rgba(197, 160, 89, 0.4);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 6px;
    width: 14px;
    height: 14px;
    background-color: #0c2340;
    border: 3px solid #e5c17d;
    border-radius: 50%;
}

.timeline-date {
    font-weight: 700;
    color: #c5a059;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content3d {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================
   メンバー紹介（額縁仕上げ）
   ========================================== */
.member-card-premium {
    display: flex;
    background-color: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 4px;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.member-img {
    flex: 1;
    min-width: 240px;
    border-right: 1px solid rgba(197, 160, 89, 0.2);
}

.photo-placeholder-square {
    height: 100%;
    min-height: 240px;
}

.member-info {
    flex: 2;
    padding: 40px;
}

.member-info .post {
    font-size: 0.85rem;
    color: #c5a059;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.member-info h3 {
    font-size: 1.6rem;
    color: #0c2340;
    margin: 10px 0 20px 0;
}

/* ==========================================
   事務所概要・アクセス
   ========================================== */
.info-table-premium {
    width: 100%;
    border-collapse: collapse;
}

.info-table-premium th, .info-table-premium td {
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
}

.info-table-premium th {
    width: 30%;
    color: #0c2340;
    font-weight: 700;
}

.map-placeholder {
    height: 340px;
}

/* ==========================================
   個別詳細ページ専用・重厚3Dボックス
   ========================================== */
.page-header {
    position: relative;
    background: #0c2340 linear-gradient(135deg, #1a365d 0%, #0c2340 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.detail-box-premium {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 20px 40px rgba(12,35,64,0.04);
    scroll-margin-top: 100px;
}

/* 個人向けディテールボックスはゴールドのアクセントライン */
.detail-box-premium.personal-detail {
    border-left: 6px solid #c5a059;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.icon-placeholder-small {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.premium-list {
    margin-top: 20px;
}

.premium-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.premium-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: #c5a059;
    font-size: 0.8rem;
    top: 2px;
}

/* 個人向けステップカード（彫刻のようなディープ立体感） */
.flow-step-premium {
    background-color: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 3px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    position: relative;
}

.flow-step-premium h4 {
    color: #0c2340;
    border-bottom: 1px solid #f4f7f9;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* ==========================================
   お問い合わせ＆フッター
   ========================================== */
.contact-section {
    background: linear-gradient(135deg, #0c2340 0%, #112d52 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
    border-top: 3px solid #c5a059;
}

.contact-section .tel {
    font-size: 2.4rem;
    font-weight: 700;
    color: #e5c17d; /* 金色の文字 */
    margin: 25px 0;
}

footer {
    background-color: #061324;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================
   モバイル対応
   ========================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul li {
        margin: 5px 8px;
    }
    .about-flex, .access-flex, .member-card-premium {
        flex-direction: column;
    }
    .member-img {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    .detail-box-premium {
        padding: 30px 20px;
    }
    .sp-only {
        display: block;
    }
}
@media (min-width: 769px) {
    .sp-only {
        display: none;
    }
}

/* ==========================================
   スマホ完全対応 追加調整（既存デザイン維持）
   ========================================== */
img, iframe {
    max-width: 100%;
}

img {
    height: auto;
}

.about-img,
.access-info,
.access-map,
.about-text {
    min-width: 0;
}

.access-flex {
    display: flex;
    align-items: stretch;
    gap: 40px;
}

.access-flex > * {
    flex: 1 1 0;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: block;
    border-radius: 4px;
}

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

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 14px;
    }

    .logo h1 a {
        display: block;
        text-align: center;
        font-size: 1.15rem;
        line-height: 1.45;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: block;
        padding: 8px 10px;
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .btn-nav {
        padding: 8px 14px;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.75;
        letter-spacing: 0.03em;
        overflow-x: hidden;
    }

    .container {
        width: min(92%, 100% - 24px);
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: clamp(1.55rem, 6vw, 2rem);
        margin-bottom: 28px;
    }

    .section-lead {
        text-align: left;
        margin-bottom: 34px;
    }

    .hero {
        padding: 96px 0 88px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-content h2 {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
        line-height: 1.45;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 32px;
    }

    .btn-main,
    .btn-sub {
        width: min(100%, 320px);
        text-align: center;
    }

    .glass-morphism {
        padding: 24px 18px;
    }

    .about-flex,
    .access-flex,
    .member-card-premium {
        flex-direction: column;
        gap: 24px;
    }

    .about-text h3 {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    .photo-placeholder {
        width: 100%;
        height: auto;
        min-height: 220px;
        object-fit: cover;
    }

    .category-title {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card-premium {
        padding: 30px 22px;
    }

    .service-card-premium h3 {
        font-size: 1.18rem;
        line-height: 1.6;
    }

    .history-timeline {
        padding-left: 24px;
    }

    .timeline-item::before {
        left: -33px;
    }

    .timeline-content3d {
        padding: 20px 18px;
    }

    .info-table-premium,
    .info-table-premium tbody,
    .info-table-premium tr,
    .info-table-premium th,
    .info-table-premium td {
        display: block;
        width: 100%;
    }

    .info-table-premium th {
        padding: 14px 0 4px;
        border-bottom: none;
    }

    .info-table-premium td {
        padding: 0 0 14px;
        word-break: break-word;
    }

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

    .page-header {
        padding: 64px 0;
    }

    .page-header h2 {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
        line-height: 1.45;
    }

    .detail-box-premium {
        padding: 28px 18px;
        margin-bottom: 32px;
        scroll-margin-top: 145px;
    }

    .detail-header {
        align-items: flex-start;
        gap: 14px;
    }

    .detail-header h2 {
        font-size: 1.28rem;
        line-height: 1.55;
    }

    .icon-placeholder-small {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        font-size: 0.75rem;
    }

    .flow-step-premium {
        padding: 18px 16px;
    }

    .contact-section {
        padding: 64px 0;
    }

    .contact-section .tel {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
        word-break: break-word;
    }

    footer {
        padding: 24px 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 14px 0;
    }

    .logo h1 a {
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    nav ul li a {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(197, 160, 89, 0.18);
        border-radius: 2px;
        background-color: rgba(255,255,255,0.75);
    }

    nav ul li:last-child {
        grid-column: 1 / -1;
    }

    .hero {
        padding: 78px 0 74px;
    }

    .glass-morphism,
    .detail-box-premium {
        border-radius: 6px;
    }

    .service-card-premium {
        padding: 28px 18px;
    }

    .premium-list li {
        padding-left: 20px;
    }
}
