@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap");

/* ----- リセット & ベース ----- */
html {
    overflow-x: hidden;
}

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

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.7;
    color: #000;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 128px), 1120px);
    margin-inline: auto;
}

@media (max-width: 1920px) {
    .container {
        width: min(calc(100% - 64px), 90vw);
        margin-inline: auto;
    }
}

.center {
    text-align: center;
}

/* ----- Hero Section ----- */

/* ----- ヘッダー ----- */
.site-header {
    position: sticky;
    background: linear-gradient(to right, rgba(241, 249, 255, 0.98) 0%, rgba(241, 249, 255, 0.95) 70%, rgba(241, 249, 255, 0.7) 80%, rgba(241, 249, 255, 0.3) 100%);
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: stretch;
    gap: clamp(1rem, 2vw, 2rem);
    padding: clamp(0.5rem, 1.5vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.header-title {
    font-size: clamp(0.85rem, 1.6vw, 1.4rem);
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 2vw, 2rem);
}

.logo img {
    height: clamp(60px, 8vw, 120px);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
}

.main-nav ul li {
    position: relative;
    padding-left: 1.5rem;
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10005;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    min-width: 300px;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* オーバーレイ表示時のbodyスクロール防止 */
body.dropdown-open {
    overflow: hidden;
}

.main-nav ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.contact-tel {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #000000;
    color: #ffffff;
    padding: 1rem;
    border-radius: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 600;
    white-space: nowrap;
    z-index: 1002;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(0);
    line-height: 1.2;
}

.contact-tel .label {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    line-height: 1;
}

.contact-tel .number {
    display: block;
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 800;
    color: #ffffff;
}

/* ----- Hero ----- */


.hero-inner {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 2rem;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-text {
    flex: 1;
    position: relative;
    z-index: 1001;
    padding-left: 64px;
    padding-right: 64px;
    padding-top: 0px;
    padding-bottom: 32px;
    background: url('../images/hero-doctor.png');
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    text-shadow: 
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .hero-text {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero h1 {
        font-size: clamp(1.3rem, 6vw, 2.4rem);
        line-height: 1.2;
        margin: 12px 0 0.75rem;
    }
}

.hero-img {
    display: none;
}

.hero h1 {
    font-size: clamp(1.6rem, 4vw, 4.5rem);
    line-height: 1.25;
    margin: 20px 0 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.hero .lead {
    font-size: clamp(1rem, 2.5vw, 3rem);
    line-height: 1.5;
    font-weight: 550;
    margin: 0 0 2rem;
}

.hero .lead span {
    display: block;
    margin-top: 1rem;
}

.hero .highlight {
    color: #df9514;
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.hero-links li {
    position: relative;
    padding-left: clamp(0.5rem, 1.5vw, 1.2rem);
}

.hero-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(16px, 2vw, 24px);
    height: clamp(16px, 2vw, 24px);
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-links a {
    padding: 0.5rem 1rem;
    font-size: clamp(0.75rem, 1.5vw, 1.8rem);
    transition: background 0.3s, color 0.3s;
}

.hero-links a:hover {
    background: #0066cc;
    color: #ffffff;
}

/* ----- Buttons ----- */
.btn-primary {
    display: inline-block;
    background: #26a8df;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #008a45;
}

.btn-primary.large {
    font-size: 1.1rem;
}

/* ----- Section共通 ----- */
.section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-align: left;
    margin: 0 0 2rem 0;
    position: relative;
    background: linear-gradient(to right, #dae000, #8fc31f);
    padding: 0.5rem 2rem;
    color: #000000;
    padding-left: clamp(2.5rem, 6vw, 4rem);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.section-title::before {
    content: '';
    position: absolute;
    left: clamp(0.75rem, 2.5vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(18px, 2.2vw, 26px);
    height: clamp(18px, 2.2vw, 26px);
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.section-title::after {
    display: none;
}

/* ----- Case Studies ----- */
.cases-container {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 100%;
    width: 100%;
}

.case-item {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    text-decoration: none;
    color: inherit;
}

/* トップページ専用の事例画像スタイル */
.case-section .case-images {
    position: relative;
    height: clamp(280px, 25vw, 350px);
    overflow: hidden;
}

.case-section .case-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.case-section .case-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.case-section .case-thumbnails {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: clamp(140px, 20vw, 180px);
    opacity: 0.9;
}

.case-section .case-thumbnails img {
    width: 100%;
    height: clamp(50px, 6vw, 65px);
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}


.case-section .case-info {
    padding: clamp(1.2rem, 3vw, 1.8rem);
    background: #ffffff;
}

.case-section .case-location {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-section .case-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-section .case-doctor {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #4b5563;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.case-section .case-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: color 0.2s ease;
}

.case-item:hover .case-link {
    color: #1d4ed8;
}

/* セカンダリー事例（詳細記事なし）のスタイル */
.case-item.secondary {
    opacity: 0.85;
    transform: scale(0.95);
    border: none;
    box-shadow: none;
}

.case-item.secondary:hover {
    transform: scale(0.95);
    opacity: 0.85;
}

.case-item.secondary .case-title {
    font-size: 1.1rem;
}

.case-item.secondary .case-doctor {
    font-size: 0.9rem;
}


/* セカンダリー事例コンテナ */
.secondary-cases-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.secondary-cases-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0.8;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-cases-container .cases-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(0.8rem, 2vw, 1.2rem);
}

.secondary-cases-summary {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #666;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
}

/* ----- Flow ----- */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 3rem 0;
    width: 100%;
    overflow-x: hidden;
}

/* Flowセクションを縦一列のカード列にして、間に矢印を挿入表示 */
.flow-section .strength-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* 余白を倍に */
}

/* カードの最大幅を半分に調整（中央寄せ） */
.flow-section .strength-item {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .section-title {
        padding-left: clamp(2rem, 6.5vw, 3rem);
        padding-right: 1rem;
    }
    .section-title::before {
        left: clamp(0.5rem, 3vw, 0.75rem);
        width: 20px;
        height: 20px;
    }
    .flow-section .strength-item {
        max-width: 100%;
    }
}

.flow-section .step-connector {
    text-align: center;
    font-size: 2rem;
    color: #26a8df;
    line-height: 1;
    user-select: none;
    margin: 1.5rem 0; /* 上下余白を拡大 */
    font-weight: 900; /* 太字で視認性を向上 */
    text-shadow: 
        -1px 0 0 currentColor,
         1px 0 0 currentColor,
         0 -1px 0 currentColor,
         0 1px 0 currentColor; /* 疑似ストロークで矢印を太く */
}

@media (min-width: 1024px) {
    .flow-section .step-connector {
        font-size: 2.2rem;
    }
}

/* 一番下のカードの下余白を倍に（gapの2倍 = 3rem） */
.flow-section .strength-grid > .strength-item:last-child {
    margin-bottom: 3rem;
}

.flow-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    gap: 1.5rem;
    min-height: auto;
    height: auto;
}

.flow-step, .flow-description {
    height: auto;
    min-height: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px;
}

.flow-step {
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: none;
    flex-direction: column;
    justify-content: center;
}

.flow-description {
    border: none;
    background: none;
    border-radius: 0 12px 12px 0;
    box-shadow: none;
    justify-content: flex-start;
    text-align: left;
}

.step-number {
    background: #26a8df;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.flow-step h3 {
    margin: 0;
    padding: 0;
    font-size: 1.7rem;
    color: #333;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.flow-descriptions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-description {
    border: none;
    background: none;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: none;
}

.flow-description p {
    margin: 0;
    padding: 0;
    line-height: 1;
    color: #000;
    display: flex;
    align-items: center;
    height: 100%;
}

.flow-lead {
    text-align: left;
    font-size: 1.1rem;
    color: #000;
    margin: 2rem 0;
    line-height: 1.6;
    padding-bottom: 2rem;
}

/* ----- Greeting ----- */
.greeting-section {
    padding: 4rem 0;
}

.greeting-content {
    max-width: 1200px;
    margin: 0 auto;
}

.greeting-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.greeting-header {
    text-align: center;
    margin-bottom: 3rem;
}

.greeting-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.greeting-header h4 {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 0.25rem 0;
    font-weight: 400;
}

.greeting-header h5 {
    font-size: 1rem;
    color: #999;
    margin: 0;
    font-weight: 400;
}

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

.greeting-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.greeting-text {
    line-height: 1.8;
    color: #333;
}

.greeting-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.greeting-signature {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.greeting-signature p {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .greeting-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .greeting-image img {
        width: 200px;
        height: 200px;
    }
    
    .greeting-text {
        text-align: left;
    }
}

/* ----- Strength ----- */
.strength-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.strength-item {
    background: #e3e7ef;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* フロー用の矢印（カード内） */
.flow-section .strength-grid > .strength-item .step-arrow {
    margin-top: 1rem;
    font-size: 2rem;
    color: #26a8df;
    text-align: center;
    line-height: 1;
    user-select: none;
}

/* 最後のカードは矢印を表示しない */
.flow-section .strength-grid > .strength-item:last-child .step-arrow {
    display: none;
}

/* モバイルでは縦並びになるため矢印を90度回転（→ を ↓ 風に） */
@media (max-width: 768px) {
    .flow-section .strength-grid > .strength-item .step-arrow {
        transform: rotate(90deg);
    }
}

.strength-item .number {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    color: #26a8df;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 3rem;
    z-index: 1;
    font-family: 'Futura Medium', Futura, '游ゴシック', YuGothic, 'Noto Sans JP', sans-serif;
}

/* Flow内の番号の前に "Step" を表示 */
.flow-section .strength-item .number {
    gap: 0.4rem;
}
.flow-section .strength-item .number::before {
    content: 'Step';
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #26a8df;
    line-height: 1;
}

/* ----- Company ----- */
.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.company-info dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.company-info dt {
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.company-info dd {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    color: #333;
    margin-top: 0.25rem;
}



.map-container {
    margin: 0;
}

.map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* ----- Footer ----- */
.site-footer {
    background: none;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    width: 100%;
    border-top: 5px solid #000;
}

.site-footer .container {
    width: 100%;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo img {
    height: 48px;
}

.footer-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-nav ul li {
    position: relative;
    padding-left: 1.5rem;
}

.footer-nav ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-nav ul li a {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #26a8df;
}

.site-footer small {
    flex: 0 0 auto;
    font-size: 0.9rem;
    color: #000;
    margin-left: 2rem;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 768px) {
    .header-inner {
        padding: 1rem;
        gap: 1.5rem;
    }

    .header-content {
        gap: 0.5rem;
    }

    .header-nav {
        gap: 1.5rem;
    }

    .header-title {
        font-size: clamp(1.05rem, 4vw, 1.3rem);
    }

    .main-nav ul {
        font-size: 1rem;
        gap: 1.5rem;
    }
    
    .dropdown-menu {
        padding: 0.8rem 1rem;
        gap: 1rem;
        font-size: 0.9rem;
        min-width: 300px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .dropdown:hover .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .logo img {
        height: 72px;
    }

    .contact-tel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 0;
        padding: 0.75rem;
        font-size: clamp(0.8rem, 3.4vw, 0.95rem);
        font-weight: 600;
        text-align: center;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: normal;
    }


    
    .contact-tel .number {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem);
        font-weight: 800;
        word-break: break-word;
    }
    
    .contact-tel .label {
        font-size: clamp(0.75rem, 2.8vw, 0.9rem);
    }

    .site-footer {
        padding: 1rem;
        padding-bottom: 5rem;
    }

    .site-footer .container {
        padding: 0 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 0;
        background: #ffffff;
        width: 200px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
        display: none;
    }

    /* JSで.openを付与したときに表示 */
    .main-nav.open ul {
        display: block;
    }

    .container {
        width: min(calc(100% - 32px), 1120px);
    }
}

/* フルHDより小さいウィンドウ幅での調整 */
@media (max-width: 1920px) {
    .hero-text {
        padding-top: 0px;
    }
    
    .hero::before {
        background-size: contain;
        background-position: right center;
    }
    
    .case-section {
        margin-top: 0;
        margin-bottom: 4rem;
    }
    
    .flow-section {
        margin-bottom: 4rem;
    }
    
    .strength-section {
        margin-bottom: 4rem;
    }
    
    .company-section {
        margin-bottom: 4rem;
    }
    
    .case-section .section-title {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .cards-grid {
        gap: clamp(1.5rem, 3vw, 3rem);
        padding: 0 clamp(1rem, 2vw, 2rem);
    }
    
    .card {
        min-height: 400px;
    }
}

/* フルHD以上の解像度での拡大 */
@media (min-width: 1920px) {
    .hero-links a {
        padding: 0.75rem 1.5rem;
    }

    .case-section {
        margin-top: 0;
        margin-bottom: 4rem;
    }
    
    .flow-section {
        margin-bottom: 4rem;
    }
    
    .strength-section {
        margin-bottom: 4rem;
    }
    
    .company-section {
        margin-bottom: 4rem;
    }

    .hero-text {
        padding-left: 64px;
        padding-right: 64px;
        padding-top: 0px;
    }

    .container {
        width: 1920px;
    }
    
    .section-title {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .card-thumb img {
        aspect-ratio: 16 / 9;
    }
}

.bold {
    font-weight: 700;
}

@media (max-width: 768px) {
    .flow-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 80px;
    }
    .flow-step, .flow-description {
        min-height: 80px;
    }
    .flow-step {
        border-bottom: none;
    }
    .flow-description {
        border-top: none;
    }
    
    .company-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .company-info dl {
        padding: 1.5rem;
        gap: 0.75rem;
    }
    
    .company-info dt {
        font-size: 0.8rem;
    }
    
    .company-info dd {
        font-size: 0.9rem;
    }
    

    
    .map-container h3 {
        font-size: 1.3rem;
    }
}

.flow-arrow {
    text-align: center;
    font-size: 2.5rem;
    color: #26a8df;
    line-height: 1;
    margin: 0.2rem 0 0 0;
    user-select: none;
    height: 2.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.flow-step:last-child .flow-arrow {
    display: none;
}

@media (max-width: 768px) {
    .flow-arrow {
        font-size: 2rem;
        margin: 0.1rem 0 0 0;
        height: 2rem;
    }
}

.flow-arrow-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 2.5rem;
}
.flow-arrow-row .flow-arrow {
    text-align: center;
    font-size: 2.5rem;
    color: #000;
    line-height: 1;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
}
.flow-arrow-row > div:last-child {
    /* 右カラムは空白 */
    height: 2.5rem;
}
@media (max-width: 768px) {
    .flow-arrow-row {
        grid-template-columns: 1fr;
        min-height: 2rem;
    }
    .flow-arrow-row .flow-arrow {
        font-size: 2rem;
        height: 2rem;
    }
    .flow-arrow-row > div:last-child {
        height: 2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 5rem;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-logo img {
        height: 36px;
    }
    .footer-nav ul {
        gap: 1rem;
        justify-content: center;
        text-align: center;
    }
    .site-footer small {
        margin-left: 0;
    }
}

/* より狭い画面でのフッターメニュー対応 */
@media (max-width: 480px) {
    .footer-nav ul {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav ul li {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
    
    .footer-nav ul li::before {
        width: 12px;
        height: 12px;
    }
    
    .footer-nav ul li a {
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

.site-header.compact {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-header.compact .header-inner {
    padding: 0.3rem 1rem;
    gap: 0.5rem;
}
.site-header.compact .logo img {
    height: 40px;
    transition: height 0.2s;
}
.site-header.compact .header-title {
    font-size: 1rem;
    transition: font-size 0.2s;
    display: none;
}
.site-header.compact .main-nav ul {
    font-size: 0.9rem;
    gap: 1rem;
}

@media (max-width: 1699px) {
    .hero::before {
        width: 66vw;
        left: auto;
        right: 0;
        background-size: contain;
        background-position: right center;
    }
}

/* ===========================
   事例詳細ページスタイル
   =========================== */

.case-detail-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    min-height: 100vh;
}

.case-header {
    text-align: left;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    color: #1e293b;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2rem;
}

.case-location {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.case-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    color: #1e293b;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.case-doctor {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    margin: 0;
}

.case-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.case-text {
    order: 1;
}

.case-images {
    order: 2;
}

.case-images {
    position: sticky;
    top: 2rem;
}

.case-images .main-image {
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-images .main-image:hover {
    transform: translateY(-5px);
}

.case-images .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.case-images .main-image:hover img {
    transform: scale(1.05);
}

.sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sub-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sub-images img:hover {
    transform: translateY(-3px);
}

.additional-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 250px 250px;
    gap: 1rem;
    margin-top: 1.5rem;
}

.image-with-caption {
    position: relative;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border-radius: 0 0 15px 15px;
    line-height: 1.3;
}

.additional-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.additional-images img:hover {
    transform: translateY(-3px);
}

.case-text {
    padding: 2rem 0;
}

.case-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.5rem 0;
    position: relative;
    padding-left: 1rem;
}

.case-text h2:first-child {
    margin-top: 0;
}

.case-text h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

.case-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.case-text blockquote {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.case-text blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #3b82f6;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    opacity: 0.3;
}

.case-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.case-navigation .btn-primary,
.case-navigation .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.case-navigation .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.case-navigation .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.case-navigation .btn-secondary {
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.case-navigation .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

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

.case-content {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.case-text h2 {
    animation: fadeInUp 0.6s ease-out both;
}

.case-text h2:nth-child(1) { animation-delay: 0.1s; }
.case-text h2:nth-child(2) { animation-delay: 0.2s; }
.case-text h2:nth-child(3) { animation-delay: 0.3s; }
.case-text h2:nth-child(4) { animation-delay: 0.4s; }

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .section-title {
        padding-left: clamp(2.25rem, 5.5vw, 3.5rem);
        padding-right: 1.25rem;
    }
    .section-title::before {
        left: clamp(0.5rem, 2.5vw, 1rem);
        width: 22px;
        height: 22px;
    }
    .contact-tel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 0;
        padding: 0.75rem;
        font-size: clamp(0.8rem, 3.4vw, 0.95rem);
        font-weight: 600;
        text-align: center;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: normal;
    }
    
    .contact-tel .number {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem);
        font-weight: 800;
        word-break: break-word;
    }
    
    .contact-tel .label {
        font-size: clamp(0.75rem, 2.8vw, 0.9rem);
    }
    
    .site-footer {
        padding-bottom: 5rem;
    }
    
    .case-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .case-text {
        order: 2;
    }
    
    .case-images {
        order: 1;
        position: static;
    }
    
    .case-header {
        margin-bottom: 3rem;
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    /* contact-tel 超小画面のフォールバック */
    .contact-tel {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    .contact-tel .label {
        font-size: 0.75rem;
    }
    .contact-tel .number {
        font-size: 0.95rem;
    }
    .case-detail-section {
        padding: 2rem 0;
    }
    
    .case-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
        border-radius: 15px;
    }
    
    .case-header h1 {
        font-size: 2rem;
    }
    
    .case-content {
        gap: 2rem;
    }
    
    .case-text h2 {
        font-size: 1.5rem;
    }
    
    .case-text p {
        font-size: 1rem;
    }
    
    .case-text blockquote {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .case-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .case-navigation .btn-primary,
    .case-navigation .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .case-images .main-image img {
        height: 250px;
    }
    
    .sub-images img {
        height: 180px;
    }
    
    .additional-images {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 180px);
        gap: 0.8rem;
    }
    
    .additional-images img {
        height: 100%;
    }
    
    .image-caption {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .case-text blockquote {
        padding: 1rem;
    }
}

/* ===========================
   画像オーバーレイスタイル
   =========================== */

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.overlay-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay-content img {
    width: 90vw;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-counter {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.overlay-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .overlay-content {
        max-width: 90vw;
        max-height: 90vh;
    }
    
    .overlay-content img {
        width: 90vw;
        height: auto;
        max-height: 70vh;
    }
    
    .close-btn {
        top: -35px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .image-counter {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .overlay-content img {
        max-height: 60vh;
    }
    
    .close-btn {
        top: -30px;
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* トップページ事例セクションのレスポンシブ対応 */
@media (max-width: 1024px) {
    .case-section .cases-container {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: clamp(0.8rem, 2vw, 1.2rem);
    }
}

@media (max-width: 768px) {
    .case-section .cases-container {
        grid-template-columns: 1fr;
        gap: clamp(0.8rem, 2vw, 1.2rem);
        padding: 0 1rem;
    }
    
    .case-section .case-main-image {
        padding: 0.8rem 1.5rem;
    }
    
    .case-section .case-thumbnails {
        width: clamp(110px, 15vw, 130px);
        bottom: 0.8rem;
        right: 0.8rem;
    }
    
    .case-section .case-thumbnails img {
        height: clamp(40px, 5vw, 45px);
    }
}

@media (max-width: 480px) {
    .case-section .cases-container {
        padding: 0 0.5rem;
        gap: 0.8rem;
    }
    
    .case-section .case-main-image {
        padding: 0.6rem 1rem;
    }
    
    .case-section .case-thumbnails {
        width: clamp(90px, 12vw, 110px);
        bottom: 0.6rem;
        right: 0.6rem;
    }
    
    .case-section .case-thumbnails img {
        height: clamp(35px, 4vw, 40px);
    }
    
    .case-section .case-info {
        padding: clamp(1rem, 4vw, 1.2rem);
    }
}

/* 極小画面対応 */
@media (max-width: 320px) {
    .case-section .cases-container {
        padding: 0 0.25rem;
        gap: 0.6rem;
    }
    
    .case-section .case-thumbnails {
        width: 75px;
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .case-section .case-thumbnails img {
        height: 28px;
    }
}

/* ===========================
   お問い合わせフォーム
   =========================== */

.contact-form-section {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.form-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #26a8df;
    padding-bottom: 0.5rem;
}

.phone-info {
    margin-bottom: 2.5rem;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #26a8df;
    margin-bottom: 0.5rem;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
}

.phone-hours {
    color: #666;
    font-size: 0.95rem;
}
.contact-form-section .company-info {
    display: flex
}
.contact-form-section .company-info dl {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.contact-form-section .company-info dt {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    margin-top: 1rem;
}

.contact-form-section .company-info dd {
    color: #666;
    margin-bottom: 0.5rem;
    margin-left: 0;
    line-height: 1.6;
}

.contact-form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #26a8df;
    box-shadow: 0 0 0 3px rgba(38, 168, 223, 0.1);
}

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

.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.checkbox-label a {
    color: #26a8df;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: 700;
}

.privacy-policy-group {
    margin: 1.5rem 0;
}

.privacy-policy-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.privacy-policy-content {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-policy-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
}

.privacy-policy-content h5:first-child {
    margin-top: 0;
}

.privacy-policy-content p {
    margin: 0.8rem 0;
    color: #555;
}

.privacy-policy-content ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.privacy-policy-content li {
    margin: 0.4rem 0;
    color: #555;
}

.policy-update {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.recaptcha-group {
    margin-bottom: 1.5rem;
    text-align: center;
}

.recaptcha-group .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.form-errors {
    background-color: #fee;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.form-errors h4 {
    color: #e74c3c;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-errors li {
    color: #c0392b;
    margin: 0.5rem 0;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary.large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #26a8df;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.btn-primary.large:hover {
    background: #2196c3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 168, 223, 0.3);
}

/* 結果表示ページ */
.success-message, .error-message {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-message p, .error-message p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #26a8df;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #26a8df;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #26a8df;
    color: #ffffff;
}

/* 送信結果ページ専用 */
.contact-result-section {
    padding: 4rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    text-align: center;
}

.contact-result-section .contact-form-container {
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 2rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .form-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .btn-primary.large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
