@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --primary-color: #32d6c5;
    --primary-dark: #008ecc;
    --accent-color: #3b8d88;
    /* Navy for tightening */
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --white: #fff;
    --dgreen: #3b8d88;
    --rgreen: #bee3dc;
    --titlegreen: #3b8d88;
    --font-base: 'Noto Serif JP', serif;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    padding-top: var(--header-height);
    font-size: 1.1em;
    /* Header fixed height */
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

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


/* 1200px 以上の画面（大型PCなど） */
@media screen and (min-width : 1200px) {
    .sponly {
        display: none;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__title-en {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-top: 5px;
    font-family: 'Times New Roman', serif;
    /* Serif for elegant look */
    font-style: italic;
}

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

    .section__title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

/* Base style for CSS Wave layers */
.hero__waves-top,
.hero__waves-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
}

.hero__waves-top {
    top: 0;
}

.hero__notice {
    margin: 0 0 3% 0;
}

.hero__waves-bottom {
    bottom: 0;
}

/* Base style for CSS Wave Image layers (Mobile first: show full image) */
.hero__waves-top img,
.hero__waves-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* Animations for Images */
.hero__waves-top img {
    animation: slideDownFadeWave 1.8s ease-out forwards;
    opacity: 0;
}

.hero__waves-bottom img {
    animation: slideUpFadeWave 1.8s ease-out forwards;
    opacity: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}



.hero__notice {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0;
    animation: fadeInNotice 1.5s ease-out 0.5s forwards;
}

.hero__logo {
    max-width: 450px;
    width: 90%;
    height: auto;
    opacity: 0;
    animation: fadeInUpHero 1.2s ease-out 1.5s forwards;
}

@keyframes fadeInNotice {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.hero__subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    font-family: 'Times New Roman', serif;
}

@keyframes slideDownFadeWave {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFadeWave {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 450px;
    }

    .hero__waves-top svg,
    .hero__waves-bottom svg {
        height: 200px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }
}

/* 1000px 以上の画面（デスクトップ向け調整） */
@media (min-width: 1000px) {
    .hero {
        height: 700px;
    }

    .hero__waves-top img,
    .hero__waves-bottom img {
        height: 270px;
        object-fit: cover;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: #fff;
}

.contact .section__title {
    color: var(--text-color);
}

.contact__desc {
    margin-bottom: 30px;
    color: var(--text-light);
}

/* ==========================================================================
   Topics Section
   ========================================================================== */
.topics {
    text-align: center;
}

.topicswaku {
    background-color: var(--white);
    margin: 2% auto;
    border-top: 15px solid #fff;
    text-align: left;
}


.topics__list {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
}

.topics__item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.topics__item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}

.topics__date {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    margin-right: 15px;
    white-space: nowrap;
}

.topics__category {
    width: 6.5em;
    text-align: center;
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--white);
    border-radius: 0;
    margin-right: 15px;
    white-space: nowrap;
}

.topics__category.cat-news {
    background-color: var(--primary-color);
}

.topics__category.cat-column {
    background-color: #66cc99;
}

.topics__title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topics__more {
    text-align: right;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2% 0 4% 0;
}

.btn-more {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* 600px 以下の画面（小型スマホ） */
@media (max-width: 600px) {
    .topics__item {
        align-items: flex-start;
    }

    .topics__title {
        width: 100%;
        flex: none;
        margin-top: 8px;
    }
}

/* 1200px 以下の画面（ノートPC・タブレットなど） */
@media (max-width: 1200px) {
    .topics__item {
        flex-wrap: wrap;
    }

    .topics__title {
        width: 80%;
        margin-top: 5px;
        white-space: normal;
    }

    .topicswaku {
        width: 90%;
    }

    .topics__list {
        max-width: 90%;
    }

}

/* ==========================================================================
   Greeting Section
   ========================================================================== */
.greeting {
    background-color: #fff;
    background-image: url('/img/green-bg01.jpg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100%;
    /* Light blue tint */
}

.greeting .section__title {
    color: var(--text-color);
}

.greeting .section__title {
    color: var(--text-color);
}

.greeting .section__title-en {
    color: var(--primary-color);
}

.greeting__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.greeting__image {
    flex: 1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.greeting__text {
    flex: 1.5;
}

.greeting__text h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.greeting__text p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--text-color);
}


@media (max-width: 768px) {
    .greeting__content {
        flex-direction: column;
    }

    .greeting__image {
        width: 100%;
        max-width: 400px;
    }
}

/* ==========================================================================
   Business Section
   ========================================================================== */
.business {
    background-image: linear-gradient(#55c4c1, #62bbb2);
}

.business .section__title {
    color: #fff;
}

.business .section__title-en {
    color: #8bf3ed;
}

.business__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 基本2列 */
    gap: 30px;
}

/* 1個目だけ横いっぱい */
.business__grid>a:first-child {
    grid-column: 1 / -1;
    /* 全カラム使用 */
}

.business__item {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 0;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid #fff;
}

.business__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* 親のグリッドの高さまでいっぱいに広げる */
    background: #f9f9f9;
    /* 背景色などがある場合、これで見栄えが揃います */
}

.business__item:hover {
    box-shadow: 0 10px 20px rgba(77, 184, 255, 0.15);
    transform: translateY(-5px);
}

.business__item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.business__item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ==========================================================================
   Lawyers Section (Simple CTA style)
   ========================================================================== */
.lawyers {
    background-color: var(--white);
    background-image: linear-gradient(#62bbb2, #62bbb2);

}

.lawyers .section__title {
    color: #fff;
}

.lawyers .section__title-en {
    color: #8bf3ed;
}

.section__desc {
    margin-bottom: 30px;
    color: var(--text-light);
}

.lawyer-list__items a {
    color: var(--white) !important;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(77, 184, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(77, 184, 255, 0.4);
}


/* ==========================================================================
   Column Article Styles (koyou-gimu.html)
   ========================================================================== */
.main_innner {
    /* Note: user provided class name has typo 'innner', keeping it for compatibility */
    padding: 40px 0;
}

#kouza01 {
    max-width: 960px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

#kouza01 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f1f1f1;
    border-left: 5px solid var(--dgreen);
    color: var(--accent-color);
}

#kouza01 h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

#kouza01 h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

#kouza01 h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

#kouza01 p {
    margin-bottom: 20px;
    text-align: justify;
}

#kouza01 ol,
#kouza01 ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

#kouza01 li {
    margin-bottom: 5px;
}

/* Layout for Intro with Image */
#kouza01nai {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

#kou {
    flex: 1;
    min-width: 300px;
}

#za {
    flex: 0 0 295px;
    /* Fixed width as per user request */
    max-width: 100%;
}

#za img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

.kouzabunwaku {
    margin-bottom: 40px;
}

.keisaibi {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.kouzafotter {
    background-color: #f9f9f9;
    padding: 15px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: var(--text-light);
    border-radius: 0;
}

/* Navigation Buttons */
.article-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
}

.article-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: var(--white);
    border: 1px solid #ddd;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition);
    min-width: 140px;
    font-size: 0.9rem;
}

.article-nav__btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.article-nav__btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #eee;
}

@media (max-width: 768px) {
    #kouza01nai {
        flex-direction: column-reverse;
        /* Text first on mobile usually, but maybe image first? Keep standard or reverse? User didn't specify. Standard stacking. */
        flex-direction: column;
    }

    #za {
        flex: auto;
        width: 100%;
        max-width: 295px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Column Section
   ========================================================================== */
.column {
    background-image: linear-gradient(#62bbb2, #55c4c1);

}

.column .section__title {
    color: #fff;
}

.column .section__title-en {
    color: #8bf3ed;
}


.column__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.column__card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.column__card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.column__img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.column__body {
    padding: 20px;
    text-align: center;
}

.column__body h3 {
    font-size: 1.1em;
    line-height: 1.4;
}

.column__body p {
    color: var(--text-light);
    line-height: 1.5;
}

/* ==========================================================================
   Access Section
   ========================================================================== */
.access {
    background-color: #fff;
    background-image: url('/img/green-bg02.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
}

.access .section__title {
    color: var(--text-color);
    padding: 40px 0 0 0;
}

.access__content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.access__map {
    flex: 1 1 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.access__info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.access__info h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.access__info p {
    margin-bottom: 15px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    position: relative;
    color: var(--white);
    text-align: center;
    background-image: url('/img/contact-nami.jpg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100%;
    margin: -40px 0 0 0;
    padding: 0 0 80px 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}


.contact__desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact__actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    padding: 20px;
    border-radius: 0;
    color: var(--white);
    transition: var(--transition);
    opacity: 0.8;
}

.contact__btn.tel {
    background-color: var(--white);
    color: #1c615d;
}

.contact__btn.mail {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact__btn .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact__btn.tel {
    font-size: 1.5rem;
    font-weight: 700;
}

.contact__btn.tel .sub {
    font-weight: 400;
    color: var(--text-light);
    margin-top: 5px;
    font-size: 0.8em;
}

.contact__btn.mail .sub {
    opacity: 0.9;
    margin-top: 5px;
    font-size: 0.9em;
}

.contact__btn:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.contact__btn.tel:hover {
    background-color: #f0f0f0;
}

.contact__btn.mail:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #1c615d;
    color: var(--white);
    padding-bottom: 20px;
    position: relative;
    margin-top: 0;
    /* Connected to Contact, but contact has padding. */
}

.footer__wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 0;
    z-index: 2;
}

.footer__wave svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: var(--accent-color);
    /* Match footer bg */
}

.footer__content {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 30px;
}

.footer__info {
    flex: 1;
    min-width: 250px;
}

.footer__logo {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
}

.footer__nav {
    flex: 2;
}

.footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.footer__nav a {
    color: #e0e0e0;
}

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

.footer__copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Page Top Button */
.pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.pagetop.active {
    opacity: 1;
    visibility: visible;
}

.pagetop a {
    display: block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    line-height: 50px;
    border-radius: 0;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pagetop a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
    }
}

/* ==========================================================================
   Sub-Page Styles
   ========================================================================== */
.sub-hero {
    position: relative;
    height: 300px;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dgreen);
    z-index: 1;
}

.sub-hero__content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.sub-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-hero__subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f0f0f0;
    padding: 15px 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-light);
}

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

.breadcrumbs__item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #ccc;
}

.breadcrumbs__item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Article List */
.article-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

.article-list__item {
    border-bottom: 1px solid #eee;
}

.article-list__link {
    display: block;
    padding: 20px 15px;
    transition: var(--transition);
}

.article-list__link:hover {
    background-color: #f9f9f9;
}

.article-list__date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.article-list__title {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.5;
}

.article-list__link:hover .article-list__title {
    color: var(--primary-color);
}

/* ==========================================================================
   Contact Form Styles
   ========================================================================== */
.contact-form {
    max-width: 800px;
    margin: 40px auto;
    background-color: var(--white);
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.form-label .required {
    background-color: #ff4d4d;
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: var(--font-base);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.1);
}

select.form-control {
    cursor: pointer;
}

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

.form-privacy {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

.form-privacy__check {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
}

.form-privacy__check input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

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

.btn-submit {
    display: inline-block;
    padding: 15px 60px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Thanks Page Styles */
.thanks-content {
    text-align: center;
    padding: 100px 20px;
}

.thanks-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.thanks-content p {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}

/* ==========================================================================
   Lawyer List (Consolidated) Styles
   ========================================================================== */
.lawyer-anchor {
    background-color: #f8f9fa;
    padding: 30px;
    margin-bottom: 60px;
    border-left: 5px solid var(--accent-color);
}

.lawyer-anchor__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.lawyer-anchor__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.lawyer-anchor__list a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: var(--transition);
}

.lawyer-anchor__list a:hover {
    color: var(--primary-color);
}

.profile-item {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
    /* アンカーリンク遷移時の余白 */
}

.profile-item__header {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.profile-item__name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.profile-item__title {
    font-size: 1.1rem;
    font-weight: 400;
}

.profile-item__name-en {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-family: 'Times New Roman', serif;
    font-style: italic;
    margin-top: 5px;
}

.profile-item__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.profile-item__section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 20px;
    background-color: #f0f8ff;
    padding-top: 10px;
    padding-bottom: 10px;
}

.profile-item__history {
    margin-bottom: 30px;
}

.profile-item__history dt {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.profile-item__history dd {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.profile-item__history dd::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background-color: var(--primary-color);
}

.profile-item__message {
    line-height: 1.8;
    text-align: justify;
}

.profile-item__divider {
    border: 0;
    border-top: 1px dashed #ddd;
    margin: 60px 0;
}

/* 992px 以下の画面（中型タブレット） */
@media (max-width: 992px) {
    .profile-item__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 768px 以下の画面（スマホ・小型タブレットの標準） */
@media (max-width: 768px) {
    .profile-item__name {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 5px;
    }

    .profile-item__title {
        font-size: 1rem;
    }

    .lawyer-anchor {
        padding: 20px;
    }

    .lawyer-anchor__list {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Additional Column Styles
   ========================================================================== */
.column__date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: right;
    /* 右寄せ */
}

.column__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: var(--transition);
}

.column__card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.column__card:hover .column__img img {
    transform: scale(1.05);
    /* ホバー時に画像を少し拡大 */
}

.column__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    /* 約110文字程度で省略されるように4行程度に設定 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    color: var(--text-color);
    margin-top: 10px;
}

.column__img {
    overflow: hidden;
    /* 画像拡大用 */
}

.column__img img {
    transition: transform 0.5s ease;
    /* スムーズな拡大 */
}

.column__disclaimer {
    color: var(--text-light);
    margin-top: 30px;
    text-align: center;
}