/* =========================================
   Variables & Reset
========================================= */
:root {
    --color-primary: #1A2530; /* 深いネイビー (信頼感) */
    --color-secondary: #C8A97E; /* シャンパンゴールド (高級感) */
    --color-secondary-hover: #b69668;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Serif JP', serif;
    --header-height: 80px;
    --transition-base: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: var(--font-base);
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   Utility Classes
========================================= */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section--bg-light { background-color: var(--color-bg-light); }
.section--bg-navy { 
    background-color: var(--color-primary); 
    color: #fff;
}

.center { text-align: center; }

/* Privacy Policy Styles */
.privacy-content {
    background: #fff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1.9;
}

.privacy-content__intro {
    margin-bottom: 40px;
}

.privacy-content__article {
    margin-bottom: 40px;
}

.privacy-content__article:last-child {
    margin-bottom: 0;
}

.privacy-content__title {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    border-left: 3px solid var(--color-secondary);
    padding-left: 15px;
}

.privacy-content__list {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 1.5em;
    list-style-type: disc;
}

.privacy-content__list ul {
    margin-top: 5px;
    list-style-type: circle;
}

.privacy-content__contact {
    margin-top: 20px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    .privacy-content {
        padding: 30px 20px;
    }
}

/* Responsive display classes */
.pc-only { display: block; }
.sp-only { display: none; }
.ib { display: inline-block; }
@media screen and (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
}

/* =========================================
   Typography & Buttons
========================================= */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 60px;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--color-secondary);
    margin-top: 15px;
}

.center.section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title--white {
    color: #fff;
}

.section-title__ja {
    display: block;
    font-family: var(--font-base);
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn--gold {
    background-color: var(--color-secondary);
    color: #fff;
    border: 1px solid var(--color-secondary);
}

.btn--gold:hover {
    background-color: var(--color-secondary-hover);
    border-color: var(--color-secondary-hover);
}

.btn--large {
    padding: 16px 40px;
    font-size: 1.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(200, 169, 126, 0.3);
}

.btn--large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 169, 126, 0.4);
}

/* =========================================
   Layout: Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0); /* 初期は透過 */
    z-index: 100;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header.is-scrolled .header__logo a,
.header.is-scrolled .header__nav-list a {
    color: var(--color-primary);
}

.header.is-scrolled .header__hamburger span {
    background-color: var(--color-primary);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 5%;
}

.header__logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff; /* 初期は白（Heroに乗るため） */
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-list {
    display: flex;
    gap: 30px;
    margin-right: 30px;
}

.header__nav-list a {
    color: #fff; /* 初期は白 */
    font-size: 1.4rem;
    font-weight: 500;
    position: relative;
}

.header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.header__nav-list a:hover::after {
    width: 100%;
}

.header__hamburger {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

.header__hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-base);
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header__hamburger span:nth-child(3) { bottom: 0; }

@media screen and (max-width: 1024px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header__nav.is-active {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        margin-right: 0;
        margin-bottom: 40px;
        gap: 20px;
    }

    .header__nav-list a {
        color: #fff !important;
        font-size: 1.8rem;
    }

    .header__hamburger {
        display: block;
    }

    .header.is-scrolled .header__logo a { color: var(--color-primary); }

    /* Open state */
    .header__hamburger.is-active span { background-color: #fff !important; }
    .header__hamburger.is-active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .header__hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .header__hamburger.is-active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

/* =========================================
   Layout: Hero
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-left: 5%;
    overflow: hidden;
}

/* 高品質な背景画像とグラデーションの組み合わせ設定 */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 保存いただいたビル画像を反映（.jpg.jpgのファイル名に対応） */
    background: linear-gradient(135deg, rgba(26,37,48,0.8) 0%, rgba(26,37,48,0.4) 100%),
                url('../images/hero_building.jpg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero__content {
    color: #fff;
    max-width: 800px;
    margin-top: 50px; /* ヘッダー分下げる */
}

.hero__copy {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 5vw, 5.6rem); /* Responsive typography */
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow-wrap: break-word;
}

.hero__subcopy {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    overflow-wrap: break-word;
}

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.hero__scroll::after {
    content: '';
    width: 1px;
    height: 40px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   Layout: Philosophy
========================================= */
.philosophy {
    text-align: center;
}

.philosophy__content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy__text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 2;
    margin-bottom: 40px;
    color: var(--color-primary);
}

.philosophy__text:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .philosophy__text {
        font-size: 1.8rem;
    }
    .philosophy__text:last-child {
        text-align: justify;
    }
}

/* =========================================
   Layout: Policy
========================================= */
.policy__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.policy__item {
    background-color: var(--color-bg-light);
    padding: 30px 40px;
    border-left: 4px solid var(--color-secondary);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease;
}

.policy__item:hover {
    transform: translateX(5px);
}

.policy__item-title {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.policy__item-num {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-size: 2.6rem;
}

.policy__item-text {
    font-size: 1.6rem;
    color: var(--color-text-light);
    padding-left: 40px;
}

@media screen and (max-width: 768px) {
    .policy__item {
        padding: 25px 20px;
    }
    .policy__item-text {
        padding-left: 0;
        margin-top: 10px;
    }
}

/* =========================================
   Layout: Strengths
========================================= */
.strengths__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.strength-card {
    background-color: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-5px);
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
}

.strength-card__num {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    color: #000000; /* 黒文字に変更 */
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0.8; /* ベタ塗りだと重すぎるため少しだけ透過 */
}

.strength-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.strength-card__text {
    font-size: 1.5rem;
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

@media screen and (max-width: 900px) {
    .strengths__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================
   Layout: Services
========================================= */
.services__intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.services__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-box {
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 60px 50px;
}

.service-box__title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-primary);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #EAEAEA;
    text-align: center;
}

.service-box__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
}

/* 個人向けは中央寄せスタイルにしたい場合などに調整可能。ここではそのまま */

.service-box__sub {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-box__sub::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    margin-right: 12px;
}

.service-box__desc {
    font-size: 1.5rem;
    color: var(--color-text-light);
}

@media screen and (max-width: 768px) {
    .service-box {
        padding: 40px 20px;
    }
    .service-box__list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================
   Layout: About
========================================= */
.about__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.about__info {
    flex: 1;
}

.about__table {
    width: 100%;
    border-collapse: collapse;
}

.about__table th, .about__table td {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.about__table th {
    width: 30%;
    text-align: left;
    font-weight: 500;
    color: var(--color-secondary);
}

.about__table td {
    color: #fff;
}

.tel-link {
    font-size: 2rem;
    font-weight: 700;
}

.about__map {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

@media screen and (max-width: 900px) {
    .about__inner {
        flex-direction: column;
    }
    .about__info, .about__map {
        width: 100%;
    }
}

/* =========================================
   Layout: Lawyers
========================================= */
.lawyers__wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.lawyer-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 50px;
    border-bottom: 1px solid #EAEAEA;
}

.lawyer-profile:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lawyer-profile__inner {
    display: flex;
    gap: 40px;
}

.lawyer-profile__img-wrap {
    flex-shrink: 0;
    width: 240px;
    align-self: flex-start;
    border: 3px solid #fff;
    outline: 1px solid var(--color-secondary);
    outline-offset: 2px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.lawyer-profile__img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: sepia(10%) contrast(1.05);
}

.lawyer-profile__body {
    flex: 1;
}

@media screen and (max-width: 768px) {
    .lawyer-profile__inner {
        flex-direction: column;
        gap: 30px;
    }
    .lawyer-profile__img-wrap {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        align-self: center;
    }
}

.lawyer-profile__header {
    border-left: 4px solid var(--color-secondary);
    padding-left: 20px;
}

.lawyer-profile__role {
    font-size: 1.4rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 5px;
}

.lawyer-profile__name {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary);
}

.lawyer-profile__desc {
    margin-bottom: 30px;
    color: var(--color-text);
}

.lawyer-profile__history-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.lawyer-profile__history li {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    display: flex;
}

.lawyer-profile__history li span {
    width: 80px;
    flex-shrink: 0;
    font-weight: 500;
}

/* =========================================
   Layout: CTA (Contact)
========================================= */
.section--bg-cta {
    background-color: var(--color-primary);
    position: relative;
    text-align: center;
    color: #fff;
    padding: 120px 0;
}

/* 背景画像用のオーバーレイ。実際にはここに画像を設定 */
.cta__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 37, 48, 0.9), rgba(26, 37, 48, 0.9));
    z-index: 1;
}

.cta__title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.6rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta__btn {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
}

.cta__tel {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
}

.cta__tel-label {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.cta__tel-number {
    font-size: 3.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: #111820; /* 濃いネイビー/黒 */
    color: #fff;
    padding: 60px 0 30px;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer__address {
    font-size: 1.4rem;
    color: #999;
}

.footer__nav {
    display: flex;
    gap: 30px;
}

.footer__nav a {
    font-size: 1.4rem;
    color: #ccc;
}

.footer__nav a:hover {
    color: #fff;
}

.footer__copyright {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

@media screen and (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .footer__nav {
        flex-wrap: wrap;
        gap: 15px 30px;
    }
}

/* =========================================
   Animations
========================================= */
.js-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade-up.is-active {
    opacity: 1;
    transform: translateY(0);
}
