/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* タブレット・スマホ表示で背景色を無効化 */
@media (max-width: 1024px) {
    body {
        background-color: #ffffff;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* カラーパレット */
:root {
    --primary-blue: #1e3a8a;
    --medium-blue: #3b82f6;
    --light-blue: #60a5fa;
    --teal: #06b6d4;
    --peach: #fbbf24;
    --light-green: #10b981;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* ヘッダー */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* ロゴテキストを画像に置き換える場合のスタイル */
.logo-text {
    display: none; /* 元のテキストを非表示 */
}

.logo-text-image {
    display: block;
    height: 60px;
    width: auto;
    object-fit: contain;
    /* ヘッダー用: 340×120px（2倍サイズ）でエクスポート */
    /* CSSで60pxに縮小表示してRetina対応 */
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); /* 白いドロップシャドウで可読性向上 */
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 400;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.logo-title {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hamburger-line:nth-child(1) {
    top: 6px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 6px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    height: 3px;
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    height: 3px;
}

/* メインビジュアル */
.hero {
    position: relative;
    overflow: hidden;
}

/* カルーセル */
.carousel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px); /* ヘッダーの高さを引いた高さ */
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* より明確に中心配置 */
    display: block;
}

/* レスポンシブ画像表示 */
.carousel-image.desktop {
    display: block;
}

.carousel-image.tablet,
.carousel-image.mobile {
    display: none;
}

/* タブレット用（769px～1023px） */
@media (min-width: 769px) and (max-width: 1023px) {
    .carousel-image.desktop,
    .carousel-image.mobile {
        display: none;
    }
    
    .carousel-image.tablet {
        display: block;
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* 不透明度を下げる */
    display: flex;
    align-items: center;
    z-index: 2;
}

/* カルーセルコントロール */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* カルーセルインジケーター */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
    height: 100%;
}

.hero-logo {
    margin-bottom: 0;
    margin-top: 0;
    padding: 1rem 2rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    align-self: flex-start;
    margin-left: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 1;
    padding-bottom: 2rem;
    padding-left: 6rem; /* カルーセルボタンがかからないように右に移動 */
}

.hero-logo-icon-small {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
    transition: none !important;
}

.hero-logo-icon-small:hover {
    transform: none !important;
}

/* ヒーローセクション用ロゴ画像 */
.hero-logo-text {
    display: none; /* 元のテキストを非表示 */
}

.hero-logo-text-image {
    display: block;
    height: 90px;
    width: auto;
    object-fit: contain;
    /* ヒーロー用: 500×180px（2倍サイズ）でエクスポート */
    /* CSSで90pxに縮小表示してRetina対応 */
    filter: drop-shadow(3px 3px 6px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.7)); /* 白いドロップシャドウで可読性向上 */
}

.hero-logo-subtitle {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 400;
    margin-bottom: 0.5rem;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.hero-logo-title {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.hero-description p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9), 
                 0 0 8px rgba(255, 255, 255, 0.7),
                 0 0 12px rgba(255, 255, 255, 0.5); /* より強い白いシャドウで可読性向上 */
}


.hero-buttons {
    display: flex;
    gap: 1rem;
}


.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3); /* 元のシャドウに戻す */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    /* シャドウエフェクトを削除 */
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}


.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.infinity-symbol {
    font-size: 8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}


/* セクション共通 */
section {
    padding: 5rem 0;
}

/* モバイル表示でセクションの縦余白を削減 */
@media (max-width: 768px) {
    section {
        padding: 1rem 0;
    }
    
    /* メインビジュアル（hero）は余白を維持 */
    section.hero {
        padding: 3rem 0;
    }
}

/* メインコンテンツセクションを白いカード状に */
.about,
.comparison,
.service,
.cost,
.flow,
.faq-section,
.contact {
    background-color: #ffffff;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* モバイル表示でカードのマージンを削減 */
@media (max-width: 768px) {
    .about,
    .comparison,
    .service,
    .cost,
    .flow,
    .faq-section,
    .contact {
        margin: 1rem auto;
    }
}

.container {
    background-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact .section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* スマホ表示でsection-headerの<p>は左寄せ、配置は中央 */
@media (max-width: 768px) {
    .section-header p {
        text-align: left;
        max-width: 100%;
    }
}

.section-email-icon {
    width: 80px;
    height: auto;
    margin: 2rem auto;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text-content {
    padding: 1.5rem 0;
}

.about-text-content p {
    margin-bottom: 1.8rem;
    position: relative;
}

.about-text-content p:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gray-300), transparent);
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* 強調キーワードのスタイル */
.about-text-content strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* サービス */
.service {
    background: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-column {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-item {
    background: #f0f9ff;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--light-blue);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-item ul {
    list-style: none;
    text-align: left;
}

.service-item li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: bold;
}

/* 利用の流れ */
.flow {
    background: var(--gray-50);
}

/* 利用料金 */
.cost {
    background: var(--white);
}

.cost-content {
    max-width: 800px;
    margin: 0 auto;
}

.cost-content .comparison-table table {
    max-width: 900px;
}

.cost-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.cost-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cost-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cost-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.cost-details p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* 比較テーブル */
.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 1rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 120px;
    min-width: 120px;
    white-space: nowrap;
}

/* 4列目のテーブルセルを中央寄せ（支援のタイミングなど） */
.comparison-table td:nth-child(4),
.comparison-table th:nth-child(4) {
    text-align: center;
}

/* 2列のテーブル（ステップなど）の1列目を中央寄せ */
.comparison-table th:nth-child(1):nth-last-child(2),
.comparison-table td:nth-child(1):nth-last-child(2) {
    text-align: center;
    width: 180px;
    min-width: 180px;
}

.comparison-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-50);
}

.comparison-summary {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.comparison-summary p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* デスクトップ表示のテーブルを非表示 */
    .comparison-table table {
        display: none;
    }
    
    /* モバイル用カード形式の表示 */
    .comparison-table {
        display: block;
    }
    
    .comparison-cards {
        display: block;
    }
    
    .comparison-card {
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .comparison-card-header {
        background: var(--primary-blue);
        color: var(--white);
        padding: 0.8rem 1rem;
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
    }
    
    .comparison-card-content {
        padding: 1rem;
    }
    
    .comparison-item {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .comparison-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .comparison-item-label {
        font-weight: 600;
        color: var(--gray-900);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .comparison-item-content {
        color: var(--gray-600);
        line-height: 1.6;
        font-size: 0.95rem;
        text-align: left;
    }
    
    /* 雇用契約・賃金・工賃・利用期間を中央寄せ */
    .comparison-item:nth-child(4) .comparison-item-label,
    .comparison-item:nth-child(4) .comparison-item-content,
    .comparison-item:nth-child(5) .comparison-item-label,
    .comparison-item:nth-child(5) .comparison-item-content,
    .comparison-item:nth-child(6) .comparison-item-label,
    .comparison-item:nth-child(6) .comparison-item-content {
        text-align: center;
    }
    
    /* 4項目目の比較項目（支援のタイミングなど短いテキスト）を中央寄せ */
    .comparison-item:nth-child(4) .comparison-item-label,
    .comparison-item:nth-child(4) .comparison-item-content {
        text-align: center;
    }
    
    /* ステップの矢印（モバイル用） */
    .flow-arrow {
        text-align: center;
        font-size: 2rem;
        color: var(--primary-blue);
        margin: 0.5rem 0;
        font-weight: bold;
    }
    
    /* ステップの矢印（PC用テーブル） */
    .flow-arrow-cell {
        text-align: center;
        padding: 0.5rem 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    .flow-arrow-row {
        background: transparent !important;
    }
    
    .flow-arrow-cell {
        font-size: 1.5rem;
        color: var(--primary-blue);
        font-weight: bold;
    }
}

/* デスクトップ表示ではカードを非表示 */
@media (min-width: 769px) {
    .comparison-cards {
        display: none;
    }
    
    .flow-arrow {
        display: none;
    }
    
    /* PC表示用のテーブル矢印スタイル */
    .flow-arrow-cell {
        text-align: center !important;
        padding: 0.8rem 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    .flow-arrow-row {
        background: transparent !important;
    }
    
    .flow-arrow-cell {
        font-size: 1.8rem;
        color: var(--primary-blue);
        font-weight: bold;
    }
}

/* フローチャート */
.flowchart-summary {
    margin: 3rem 0 2rem;
    text-align: center;
}

.flowchart-summary h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.flowchart-summary p {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.flowchart-container {
    margin: 3rem 0;
}

.flowchart-step {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.flowchart-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.flowchart-arrow-down {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin: 0.5rem 0;
}

.flowchart-main {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.flowchart-main-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    border-radius: 12px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
}

.flowchart-main-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
}

.flowchart-main-content {
    background: #e8f4ff;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.flowchart-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flowchart-item {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.flowchart-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.flowchart-branch {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flowchart-branch-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.flowchart-branch-content {
    padding: 1.5rem;
}

.flowchart-sub-section {
    margin-bottom: 1.5rem;
}

.flowchart-sub-section:last-child {
    margin-bottom: 0;
}

.flowchart-sub-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.flowchart-sub-item {
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--medium-blue);
    font-size: 0.9rem;
}

.flowchart-simple-item {
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: 6px;
    border-left: 3px solid var(--medium-blue);
    font-size: 0.9rem;
}

/* FAQ セクション */
.faq-section {
    background: var(--gray-50);
    padding: 5rem 0;
    scroll-margin-top: 80px; /* 固定ヘッダー用のスクロール調整 */
}

/* スマホ表示でFAQセクションの余白を削減 */
@media (max-width: 768px) {
    .faq-section {
        padding: 1rem 0;
    }
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    background: var(--primary-blue);
    position: relative;
    user-select: none;
    list-style: none;
}

.faq-item summary::marker {
    display: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "▼";
    float: right;
    color: var(--white);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "▲";
    transform: rotate(180deg);
}

.faq-item summary:hover {
    background: var(--medium-blue);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0 0 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.faq-summary {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-summary h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.faq-summary p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.faq-summary p:last-child {
    margin-bottom: 0;
}

/* ハイライトボックス */
.highlight-box {
    background: #f0f9ff;
    color: var(--gray-800);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--light-blue);
}

.highlight-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-box p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlight-box ul {
    list-style: none;
    padding-left: 0;
}

.highlight-box li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.highlight-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.flow-step:hover {
    transform: translateX(10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* お問い合わせ */
.contact {
    background: var(--white);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    width: 100%;
    max-width: 700px;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-icon a {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-icon a:hover {
    transform: scale(1.1);
}

.contact-icon img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.contact-details strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}

.contact-item:first-of-type .contact-details p:first-of-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.phone-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.phone-link:hover {
    color: #0a4da0;
    text-decoration: underline;
    transform: scale(1.05);
}

.phone-link:active {
    transform: scale(1.02);
}

.contact-item:nth-of-type(2) .contact-details p:first-of-type {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-600);
}

.contact-details small {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
}

.contact-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-form p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.required {
    color: #ef4444;
    font-weight: 600;
}

.form-note {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 1rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-style: normal;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, 
        var(--primary-blue) 0%, 
        var(--medium-blue) 30%, 
        var(--teal) 70%, 
        var(--light-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

/* フッターの装飾効果を削除 */

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-link {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* フッター用ロゴ画像 */
.footer-logo-text {
    display: none; /* 元のテキストを非表示 */
}

.footer-logo-text-image {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
    /* フッター用: 280×100px（2倍サイズ）でエクスポート */
    /* CSSで50pxに縮小表示してRetina対応 */
    filter: drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); /* 白いドロップシャドウで可読性向上 */
}

.footer-logo-subtitle {
    font-size: 0.8rem;
    color: var(--gray-300);
    font-weight: 400;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.footer-logo-title {
    font-size: 1rem;
    color: var(--white);
    font-weight: 700;
    font-family: 'CorporateLogo', 'Noto Sans JP', sans-serif;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--gray-50);
}

.back-to-top-arrow {
    font-size: 1.2rem;
    color: var(--gray-800);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.back-to-top-text {
    font-size: 0.7rem;
    color: var(--gray-800);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* レスポンシブデザイン */

@media (max-width: 768px) {
    /* モバイル用の基本フォントサイズ調整 */
    body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav li {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    
    
    
    /* タブレット用トップに戻るボタン */
    .back-to-top {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .back-to-top-arrow {
        font-size: 1.1rem;
    }
    
    .back-to-top-text {
        font-size: 0.65rem;
    }
    
    /* スマートフォン用画像表示 */
    .carousel-image.desktop,
    .carousel-image.tablet {
        display: none;
    }
    
    .carousel-image.mobile {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    
    .hero-description h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .carousel-controls {
        padding: 0 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .highlight-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .cost-details p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-details p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-form p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .contact-details small {
        color: #ef4444;
        font-size: 0.85rem;
        line-height: 1.4;
        font-weight: 600;
    }
    
    /* モバイル用フローチャート */
    .flowchart-main-content {
        grid-template-columns: 1fr;
    }
    
    .flowchart-branches {
        grid-template-columns: 1fr;
    }
    
    .flowchart-box {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }
    
    /* スマホ用トップに戻るボタン */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .back-to-top-arrow {
        font-size: 1rem;
    }
    
    .back-to-top-text {
        font-size: 0.6rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        padding-top: 0.3rem; /* さらに上部に寄せる */
    }
    
    .hero-logo {
        margin-bottom: 0.3rem; /* マージンをさらに小さく */
        padding: 0.3rem 0.8rem; /* パディングをさらに小さく */
    }
    
    .hero-logo-text {
        gap: 0.1rem; /* 行間をさらに狭く */
    }
    
}

/* シンプルなレスポンシブ設定 */
@media (max-width: 768px) {
    .carousel-overlay {
        justify-content: center;
        align-items: center;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-logo {
        margin-bottom: 1rem;
        margin-top: 0;
        padding: 1rem 2rem;
    }
    
    .hero-main-content {
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }
    
    .hero-left {
        align-items: center;
        text-align: center;
    }
    
    .hero-description h1 {
        font-size: 2rem;
    }
    
    .hero-description p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 500px) {
    .hero-logo {
        gap: 0.5rem; /* ロゴ間の隙間を狭く */
        padding-top: 1rem; /* 上部に余白を追加 */
    }
    
    .hero-logo-text-image {
        height: 50px; /* 500px以下では小さく */
    }
    
    .hero-logo-icon-small {
        height: 50px; /* 500px以下では小さく */
    }
    
    .hero-description h1 {
        font-size: 1.5rem;
    }
    
    .hero-description p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* FAQスマホ表示時の調整 */
    .faq-item summary {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }
    
    .faq-item summary::after {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .faq-summary {
        padding: 1.5rem;
        margin: 2rem auto 0;
    }
    
    .faq-summary h3 {
        font-size: 1.3rem;
    }
    
    .faq-summary p {
        font-size: 0.9rem;
    }
}



/* Contact form messages */
.contact .field-error {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
}

.form-status.error {
  color: #d32f2f;
}

.form-status.ok {
  color: #2e7d32;
}

