@charset "UTF-8";

/* サイト全体の基本的なスタイル */
:root {
    --primary-color: #1e40af;
    --primary-hover-color: #1d4ed8;
    --secondary-color: #1e40af;
    --background-color-light: #f8f9fa;
    --background-color-white: #ffffff;
    --background-color-blue-50: #eff6ff;
    --text-color-dark: #334155;
    --text-color-light: #475569;
    --text-color-link: #475569;
    --text-color-link-hover: #2563eb;
    --text-color-white: #ffffff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ヘッダーとナビゲーション (PC First) */
.main-header {
    background-color: var(--background-color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 1rem;
}

/* 制作サンプルサイト用固定ヘッダーがある場合の調整 */
body.has-sample-header .main-header {
    top: 45px;
}

@media (max-width: 768px) {
    body.has-sample-header .main-header {
        top: 40px;
    }
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    /* PC padding */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 75%;
    height: auto;
    margin-left: 0.5rem;
}

/* PC Navigation Links */
.nav-links-desktop {
    display: flex;
    /* Default to flex for PC */
    align-items: center;
    gap: 1.5rem;
    font-size: 1.125rem;
}

.nav-links-desktop a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.nav-links-desktop a:not(.contact-button):hover {
    color: var(--primary-color);
}

.nav-links-desktop .contact-button {
    background-color: var(--primary-color);
    color: var(--text-color-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links-desktop .contact-button:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
}

/* Dropdown (PC) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-color-white);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--text-color-dark);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Button (Hidden on PC) */
.mobile-menu-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    /* Hidden by default on PC */
}

.mobile-menu-button svg {
    height: 2rem;
    width: 2rem;
    color: var(--text-color-light);
}

.mobile-menu {
    display: none;
    background-color: var(--background-color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: var(--text-color-dark);
}

.mobile-menu a:hover {
    background-color: #f1f5f9;
}

.mobile-contact-button {
    background-color: var(--primary-color);
    color: var(--text-color-white) !important;
}

.mobile-submenu-item {
    background-color: #f8f9fa;
    padding-left: 2rem !important;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* メインビジュアル (PC First) */
.main-visual {
    position: relative;
    height: 100vh;
    /* PC he100ht */
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    background-image: url("../images/HERO.jpg");
}

.main-visual-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: flex-start;
    /* PC alignment */
    text-align: left;
    /* PC alignment */
    color: var(--text-color-white);
    padding: 7rem 3rem;
}

.main-visual-content h1 {
    color: #262626;
    font-size: 2.5rem;
    /* PC font size */
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(80, 80, 80, 0.3);
}

.main-visual-content p {
    font-size: 1.25rem;
    /* PC font size */
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.main-contact-button {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
}

.main-contact-button:hover {
    background-color: var(--primary-hover-color);
    transform: scale(1.05);
}

/* セクション共通スタイル */
.section {
    padding: 4rem 0;
}

.bg-white {
    background-color: var(--background-color-white);
}

.bg-light-blue {
    background-color: var(--background-color-blue-50);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-color-light);
}

.section-header h2::before {
    content: attr(data-en-title);
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.08);
    white-space: nowrap;
}

.services-bg-image .section-header h2::before,
.price-bg-image .section-header h2::before,
.faq-bg-image .section-header h2::before,
.contact-bg-image .section-header h2::before {
    color: rgba(255, 255, 255, 0.15);
}

/* 事務所概要セクション (PC First) */
.about-content {
    display: flex;
    flex-direction: row;
    /* PC layout */
    align-items: center;
    gap: 3rem;
    text-align: left;
    /* PC alignment */
}

.about-image {
    width: 50%;
    /* PC width */
}

.about-image img {
    background-image: url(../images/office-01.jpg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.about-text {
    width: 50%;
    /* PC width */
}

.mission-card {
    background-color: var(--background-color-blue-50);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.mission-card h3 {
    margin-top: 0;
}

.mission-card p {
    margin-bottom: 0;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-color-dark);
    line-height: 1.75;
    margin: 0 0 0 0.4rem;
}

.about-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* PC grid */
    gap: 1rem;
    margin-top: 2rem;
}

.about-details-grid h4 {
    font-weight: bold;
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

/* 弁護士紹介セクション (PC First) */
.profile-bg {
    background-color: #f0f4f8;
}

.profile-bg .profile-content {
    background-color: var(--background-color-white);
    border-radius: 0.75rem;
    padding: 3rem;
    /* PC padding */
    box-shadow: 0 8px 30px rgba(47, 79, 79, 0.08);
}

.profile-content {
    display: flex;
    flex-direction: row;
    /* PC layout */
    align-items: center;
    gap: 3rem;
    text-align: left;
    /* PC alignment */
}

.profile-image-container {
    width: 33.3333%;
    /* PC width */
}

.profile-image-container img {
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 25rem;
    height: 25rem;
    object-fit: cover;
}

.profile-details {
    width: 66.6666%;
    /* PC width */
}

.profile-details h3 {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
    /* PC alignment */
    margin-bottom: 0.2rem;
}

.profile-note {
    color: var(--primary-color);
    text-align: left;
    /* PC alignment */
    margin: 0 0 1rem 0;
}

.profile-grid {
    display: flex;
    flex-direction: row;
    /* PC layout */
    gap: 2rem;
}

.profile-info-left {
    flex: 1;
}

.profile-greeting {
    flex: 1;
    background-color: var(--background-color-blue-50);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.profile-greeting h4 {
    border-bottom: none;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    /* PC font size */
    margin: 0;
}

.profile-greeting p {
    line-height: 1.8;
}

.profile-list-item {
    margin-bottom: 1.5rem;
}

.profile-list-item:last-child {
    margin-bottom: 0;
}

.profile-list-item h4 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary-color);
}

.profile-list-item p,
.profile-list-item .sub-list {
    color: var(--text-color-dark);
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

.sub-list {
    list-style: none;
    padding-left: 1rem;
}

/* ご相談の流れセクション (PC First) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PC: 4 columns */
    gap: 2rem;
}

.process-card {
    position: relative;
    background-color: var(--background-color-white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.07);
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(47, 79, 79, 0.12);
}

.process-icon {
    margin: 0 auto 1rem;
    color: var(--primary-color);
}

.process-icon svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.5;
}

.step-number {
    position: absolute;
    top: -1.25rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: var(--primary-color);
    color: var(--text-color-white);
    margin: 0;
    font-weight: bold;
    font-size: 1.25rem;
    border: 4px solid var(--background-color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.process-card p {
    color: var(--text-color-light);
    font-size: 0.875rem;
}

/* 業務内容セクション (PC First) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC: 3 columns */
    gap: 2rem;
}

.services-bg-image {
    position: relative;
    background-image: url('../images/オフィス03.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.services-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(25, 50, 80, 0.75);
    z-index: 1;
}

.services-bg-image .container {
    position: relative;
    z-index: 2;
}

.services-bg-image .section-header h2,
.services-bg-image .section-header p {
    color: #fff;
}

.services-bg-image .service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    color: #fff;
}

.services-bg-image .service-card h3,
.services-bg-image .service-card p {
    color: #fff;
}

.services-bg-image .service-icon svg {
    stroke: #fff;
}

.services-bg-image .main-contact-button {
    background-color: #fff;
    color: #193250;
    border: 1px solid #fff;
}

.services-bg-image .main-contact-button:hover {
    background-color: transparent;
    color: #fff;
}

.service-card {
    background-color: var(--background-color-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    height: 4rem;
    width: 4rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-color-light);
    text-align: center;
}

.section-link-wrapper {
    margin-top: 3rem;
    text-align: center;
}

/* 解決事例セクション (PC First) */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.case-card {
    display: flex;
    flex-direction: row;
    /* PC: Row */
    align-items: center;
    background-color: var(--background-color-white);
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(47, 79, 79, 0.08);
    overflow: hidden;
    margin-top: 1.5rem;
}

/* 偶数番目のカードのレイアウトを反転させる (PC) */
.case-card:nth-child(even) {
    flex-direction: row-reverse;
}

.case-card-image {
    flex-shrink: 0;
    width: 45%;
    /* PC width */
}

.case-card-image img {
    width: 100%;
    height: 100%;
    /* PC height */
    object-fit: cover;
    display: block;
}

.case-card-content {
    position: relative;
    padding: 2.5rem;
    /* PC padding */
    flex-grow: 1;
}

.case-number {
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    z-index: 0;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(58, 64, 76, 0.07);
}

.case-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: var(--primary-hover-color);
    position: relative;
    z-index: 1;
}

.case-subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.case-card p {
    color: var(--text-color-light);
    line-height: 1.625;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.case-meta {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.case-meta span {
    font-weight: bold;
}

/* 料金セクション (PC First) */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC: 3 columns */
    gap: 2rem;
}

.price-bg-image {
    position: relative;
    background-image: url('../images/料金.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.price-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.9));
    z-index: 1;
}

.price-bg-image .container {
    position: relative;
    z-index: 2;
}

.price-bg-image .section-header h2,
.price-bg-image .section-header p {
    color: #fff;
}

.price-bg-image .price-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-color-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

.price-bg-image .price-card:hover {
    transform: translateY(-10px);
}

.price-bg-image .price-card h3 {
    color: var(--secondary-color);
}

.price-bg-image .price-card .price-value {
    color: var(--text-color-dark);
}

.price-bg-image .price-card .price-value span {
    color: var(--primary-color);
}

.price-bg-image .price-card p {
    color: var(--text-color-light);
}

.price-bg-image .price-note p {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.price-card {
    background-color: var(--background-color-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.price-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    text-align: center;
}

.price-value {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.price-value span {
    color: var(--primary-color);
}

.price-card p {
    color: var(--text-color-light);
    text-align: center;
}

.price-note {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-color-light);
    font-size: 0.875rem;
}

/* よくある質問セクション */
.faq-bg-image {
    position: relative;
    background-image: url('../images/FAQ.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.faq-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.7);
    z-index: 1;
}

.faq-bg-image .container {
    position: relative;
    z-index: 2;
}

.faq-bg-image .faq-item {
    background-color: var(--background-color-white);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-list-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--background-color-white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    cursor: pointer;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--secondary-color);
}

.faq-item summary::marker {
    display: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    color: var(--text-color-dark);
    margin-top: 1rem;
    padding-left: 2rem;
}

.accordion-arrow {
    height: 1.5rem;
    width: 1.5rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease-in-out;
}

details[open] .accordion-arrow {
    transform: rotate(90deg);
}

/* お知らせセクション (PC First) */
.news-list-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.news-article {
    display: flex;
    flex-direction: row;
    /* PC: Row */
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-list-wrapper .news-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 0;
    margin-right: 1rem;
    /* PC margin */
}

.news-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease-in-out;
}

.news-content h3:hover {
    color: var(--primary-color);
    cursor: pointer;
}

.news-content p {
    color: var(--text-color-light);
}

/* お問い合わせセクション */
.contact-bg-image {
    position: relative;
    background-image: url('../images/オフィス02.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.contact-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.9));
    z-index: 1;
}

.contact-bg-image .container {
    position: relative;
    z-index: 2;
}

.contact-bg-image .section-header h2,
.contact-bg-image .section-header p {
    color: #fff;
}

.contact-form-wrapper {
    max-width: 40rem;
    margin: 0 auto;
    background-color: var(--background-color-blue-50);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-bg-image .contact-form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-bg-image .form-group {
    margin-bottom: 1.5rem;
}

.contact-bg-image .form-group label {
    display: block;
    color: var(--text-color-light);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.contact-bg-image .form-group input,
.contact-bg-image .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(47, 79, 79, 0.2);
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background-color: transparent;
    color: var(--text-color-dark);
    font-size: 1rem;
}

.contact-bg-image .form-group input:focus,
.contact-bg-image .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.3);
}

.contact-bg-image .form-button-wrapper {
    text-align: center;
    margin-top: 2.5rem;
}

.contact-bg-image .form-button-wrapper button {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    font-weight: bold;
    padding: 1rem 3rem;
    border-radius: 9999px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: auto;
    /* PC width */
    border: none;
    cursor: pointer;
}

.contact-bg-image .form-button-wrapper button:hover {
    background-color: var(--primary-hover-color);
    transform: scale(1.05);
}

/* モーダル */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--background-color-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-width: 24rem;
    margin: 0 auto;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal-icon {
    height: 4rem;
    width: 4rem;
    color: #22c55e;
    margin: 0 auto 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.modal-button {
    background-color: var(--primary-color);
    color: var(--text-color-white);
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
}

.modal-button:hover {
    background-color: var(--primary-hover-color);
}

/* フッター */
.main-footer {
    background-color: #111827;
    color: var(--text-color-white);
    padding: 3rem 0;
    border-top: 1px solid #374151;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color-white);
}

.footer-info {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: #94a3b8;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color-white);
}

.copyright {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.mobile-only {
    display: none;
    /* Hidden on PC */
}

/* =================================================================
   レスポンシブデザイン (Max-Width Overrides)
   ================================================================= */

/* Tablet & Mobile Navigation Switch */
@media (max-width: 1000px) {
    .nav-links-desktop {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-button {
        display: block;
        /* Show mobile menu button */
    }
}

/* Tablet Layout (Max-width: 1024px) */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 4 -> 2 columns */
    }
}

/* Mobile Layout (Max-width: 768px) */
@media (max-width: 768px) {
    .main-visual {
        min-height: 60vh;
        height: auto;
        background-image: url("../images/HERO-2.jpg");
        position: relative;
    }

    .main-visual-content {
        position: absolute;
        
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 3rem 1.5rem 1.5rem;
    }

    .main-visual-content h1 {
        font-size: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .main-visual-content p {
        font-size: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .section {
        padding: 3rem 0;
    }

    .main-nav {
        padding: 0.2rem 0;
    }

    .logo-icon {
        width: 60%;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header h2::before {
        font-size: 3.5rem;
        top: 25%;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Stack Flex Containers */
    .about-content,
    .profile-content,
    .profile-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-image,
    .about-text,
    .profile-image-container,
    .profile-details {
        width: 100%;
    }

    .profile-bg .profile-content {
        padding: 2rem;
    }

    .profile-image-container img {
        width: 200px;
        height: auto;
    }

    .profile-details h3,
    .profile-note {
        text-align: center;
    }

    .profile-greeting h4 {
        font-size: 1.25rem;
    }

    .about-details-grid {
        grid-template-columns: 1fr;
    }

    /* Single Column Grids */
    .process-grid,
    .services-grid,
    .price-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        gap: clamp(1.5rem, 5vw, 2rem);
    }

    /* Case Cards Stacked */
    .case-card,
    .case-card:nth-child(even) {
        flex-direction: column;
    }

    .case-card-image {
        width: 100%;
    }

    .case-card-image img {
        height: 250px;
    }

    .case-card-content {
        padding: 1.5rem;
    }

    .case-number {
        top: -0.3rem;
        font-size: 4rem;
        font-weight: 700;
    }

    .case-title {
        font-size: 1.3rem;
    }

    /* News Articles Stacked */
    .news-article {
        flex-direction: column;
    }

    .news-date {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .mobile-only {
        display: inline;
        /* Show on mobile */
    }

    .contact-bg-image .form-button-wrapper button {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .main-visual-content h1 {
        color: var(--text-color-white);
    }
}