.nowrap-sm {
    white-space: nowrap;
    font-size: 0.95rem;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    background-image: 
        linear-gradient(rgba(200, 200, 200, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 200, 200, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    position: relative;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(46, 125, 50, 0.1);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    color: #2e7d32;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ロゴ画像のサイズと表示最適化 */
.site-logo {
    display: block;
    height: 72px;
    width: auto;
}

/* ヘッダーロゴをクロップして視覚的に拡大（ヘッダー高さは据え置き） */
.nav-logo {
    height: 70px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.header .site-logo {
    height: 105px; /* 70pxコンテナ内で上下を少しクロップして拡大表示 */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2e7d32;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2e7d32;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    background: linear-gradient(135deg, #1b5e20, #2e7d32) !important; /* 濃くする */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2e7d32;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: calc(80vh - 70px);
    height: calc(80dvh - 70px);
    margin-top: 70px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.6));
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-main {
    display: block;
    font-size: 3.5rem;
    opacity: 0.9;
}

.hero-sub {
    display: block;
    position: relative;
    margin-top: 0.5rem;
}

.hero-sub::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(255, 235, 59, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: none;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    color: #2e7d32;
    padding: 1rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: none;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.feature-card:nth-child(even) {
    transform: translateX(20px);
}

.feature-card:hover {
    transform: translateX(10px) scale(1.05);
}

.feature-card i {
    font-size: 1.5rem;
    color: #2e7d32;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover::before {
    content: none; /* あみあみ（グリッド）演出を無効化 */
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #2e7d32;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: #f0f0f0; /* ほんの少し暗く */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn,
.btn-primary,
.btn-full {
    border-radius: 0 !important;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.compare .section-title {
    color: #2e7d32;
    text-shadow: none;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Company Section */
.company {
    background: transparent;
}

.company-overview {
    display: flex;
    justify-content: center;
}

.company-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 125, 50, 0.15);
    padding: 2rem;
    max-width: 720px;
    width: 100%;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 0.8rem 1rem;
}

.company-table th {
    text-align: left;
    color: #2e7d32;
    white-space: nowrap;
    width: 160px;
}

.company-table td {
    color: #333;
}

.compare .section-subtitle {
    color: #666;
    text-shadow: none;
}

.compare-content-wrapper {
    background: linear-gradient(135deg, #4a7c59 0%, #5a8c69 50%, #6b9c79 100%);
    padding: 3rem 2rem;
    border-radius: 0;
}

.compare .section-header {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0; /* 表との距離を詰める */
}

.compare .section-header .section-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.compare .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 0 !important; /* 下マージンを削除して表に近づける */
}

.section-decoration {
    display: none;
}

.compare .section-decoration {
    display: none;
}

/* Philosophy Section */
.philosophy {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 装飾要素を削除してクリーンな方眼紙感を演出 */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 2rem;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.philosophy-card:nth-child(odd) {
    transform: none;
}

.philosophy-card:nth-child(even) {
    transform: none;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 125, 50, 0.25);
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.philosophy-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(46, 125, 50, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 50, 0.03) 1px, transparent 1px);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 0;
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-icon i {
    font-size: 1.8rem;
    color: white;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.philosophy-card p {
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-image {
    height: 150px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
}

.philosophy-card:hover .card-image img {
    transform: scale(1.1);
}

/* Service Section */
.service {
    background: transparent;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-overview {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: stretch; /* 同一行内で高さをそろえる */
}

.service-text h3 {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 2rem;
    font-weight: 700;
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-info-card {
    background: transparent;
    backdrop-filter: none;
    padding: 2rem 2rem 2rem 0; /* 左端をh3と揃える */
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr; /* 2行を等高に */
    gap: 2rem;
}

/* レイアウト調整: 左に「買取対象」、右に「対応エリア」→「形式」 */
.service-info-card .info-section:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}
.service-info-card .info-section:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
.service-info-card .info-section:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.info-section h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-section li {
    padding: 0.5rem 1rem;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-left: 4px solid #4caf50;
    box-shadow: none;
}

.info-section p {
    padding: 0.5rem 1rem;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-left: 4px solid #4caf50;
    box-shadow: none;
    margin: 0;
}

.item-category h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-category ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.item-category li {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-left: 4px solid #4caf50;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.feature i {
    font-size: 1.5rem;
    color: #2e7d32;
}

.service-image {
    position: relative;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.service-flow {
    background: transparent;
    padding: 1.5rem 0; /* 上下の余白を縮小 */
    margin-top: 0;     /* セクション間の隙間を解消 */
}

.service-flow h3 {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 700;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    position: relative;
    justify-items: center; /* 中央揃えに変更 */
}

.flow-steps .step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1.6rem; /* 文字に被らないよう余白を拡張 */
    transform: translateY(-50%);
    color: #ff9800;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
}

.step {
    text-align: left;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: transparent !important;
    color: #ff9800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    border: 3px solid #ff9800 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.step-number i {
    color: #ff9800;
    font-size: 1.2rem;
}

.step-content h4 {
    color: #ff9800;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

/* ステップ見出しをアイコン直下で中央揃え */
.service-flow .flow-steps .step .step-content h4 {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.25rem auto 0;
    text-align: center;
    white-space: normal !important; /* 手動改行を尊重 */
    overflow: visible;
    text-overflow: clip;
}

/* Service Features */
.service-features {
    background: transparent;
    padding: 4rem 0 0; /* 左右の余白をなくして見出しの左端を統一 */
    margin-top: 3rem;
}

.service-features h3 {
    font-size: 2.2rem;
    color: #2e7d32;
    margin-bottom: 3rem;
    text-align: left;
    font-weight: 700;
    position: relative;
}

.service-features h3::after {
    display: none;
    content: none;
}

/* Features Alternating */
.features-alternating {
    max-width: 1200px;
    margin: 0; /* 左端を見出しと揃える */
    padding: 0; /* 見出しの開始位置と揃える */
}

.features-alternating .feature-card {
    margin-bottom: 3rem;
    opacity: 1; /* 初期状態で表示 */
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    transform: none; /* アニメーション依存を解除 */
}

/* アニメーション有効時のみ適用 */
.features-alternating .feature-card[style*="animation"] {
    opacity: 0;
}

.features-alternating .feature-card:nth-child(2),
.features-alternating .feature-card:nth-child(4) {
    transform: none; /* 初期位置のズレを解除 */
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-alternating .feature-card.left {
    justify-content: flex-start;
    background: transparent;
}

.features-alternating .feature-card.left .card-content {
    margin-left: 2rem;
}

.features-alternating .feature-card.right {
    justify-content: flex-end;
    background: transparent;
}

.features-alternating .feature-card.right .card-content {
    margin-right: 2rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 2;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 2rem;
}

.features-alternating .feature-card.left .feature-icon {
    order: 1;
}

.features-alternating .feature-card.right .feature-icon {
    order: 3;
}

.features-alternating .card-content {
    background: #ffffff;
    padding: 2rem 3.5rem;
    border: 1px solid rgba(46, 125, 50, 0.15);
    position: relative;
    transition: all 0.3s ease;
    width: 95%;
    max-width: 1000px;
    box-sizing: border-box;
    overflow: hidden;
    order: 2;
}

.features-alternating .card-content:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
}

.card-content h4 {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    text-align: left;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Service Details */
.service-details {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 3rem 2rem;
    border-radius: 25px;
    border: 1px solid rgba(46, 125, 50, 0.15);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    margin-top: 2rem;
}

.service-details h3 {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-category {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: transform 0.3s ease;
}

.detail-category:hover {
    transform: translateY(-3px);
}

.detail-category h4 {
    color: #2e7d32;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-category h4 i {
    color: #4caf50;
}

.detail-category ul {
    list-style: none;
    padding: 0;
}

.detail-category li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.detail-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.detail-category li:last-child {
    border-bottom: none;
}

/* Service Assurance */
.service-assurance {
    background: transparent;
    backdrop-filter: none;
    padding: 3rem 0; /* 左右の余白をなくして見出しの左端を統一 */
    border: none;
    margin-top: 2rem;
}

.service-assurance h3 {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 700;
}

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

.assurance-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(46, 125, 50, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.assurance-item:hover {
    transform: translateY(-3px);
}

.assurance-item i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.assurance-item h4 {
    color: #2e7d32;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.assurance-item p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: normal;
    white-space: normal;
    line-break: strict;
    hyphens: none;
}

.assurance-note {
    margin-top: 0.5rem !important;
    font-size: 0.8rem !important;
    color: #888 !important;
    line-height: 1.4 !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
}

/* Compare Section */
.compare {
    background: transparent;
    position: relative;
    padding: 0; /* セクション自体の余白を削除 */
    overflow: hidden;
}

.compare::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    animation: backgroundShift 60s linear infinite;
    pointer-events: none;
}

@keyframes backgroundShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.compare .container {
    background: transparent;
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.comparison-table-wrapper {
    margin-bottom: 4rem;
    overflow-x: auto;
    background: transparent;
    padding: 2.5rem;
    border-radius: 0;
}

/* 比較表直下の2枚写真 */
.compare-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 2.5rem; /* 表ラッパーと左右を合わせる */
    margin: 0 0 48px; /* 写真とカードの間隔を拡大 */
}

.compare-photos .photo-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.compare-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
  .compare-photos { 
    grid-template-columns: 1fr; 
    padding: 0 1rem; 
    margin: 0 0 2rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .compare-photos { 
    padding: 0 0.5rem;
    margin: 0 0 1.5rem;
  }
}

/* 比較表の下に配置する質問カード */
.compare-questions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 56px 2.5rem 0; /* 上:56px, 左右は表と合わせる */
}

.question-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    padding: 1rem 1.4rem;
    border-radius: 9999px; /* 横長の楕円枠 */
    overflow: hidden;
}

.question-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.question-card.ours { border-color: #2e7d32; text-align: center; }
.question-card.ours h4 { color: #2e7d32; }
.question-card.ours ul { justify-items: center; }

.question-card.chain { border-color: #37474f; text-align: center; }
.question-card.chain h4 { color: #37474f; }
.question-card.chain ul { justify-items: center; }

.question-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.question-card li {
    color: #333;
    line-height: 1.6;
}

@media (max-width: 768px) {
  .compare-questions { 
    padding: 2rem 1rem 0;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .compare-questions { 
    padding: 1.5rem 0.5rem 0;
    gap: 1rem;
  }
  
  .question-card {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .question-card h4 {
    font-size: 1rem;
  }
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    table-layout: fixed;
}

.comparison-table th {
    background: #37474f;
    color: white;
    padding: 1.2rem 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th.highlight {
    background: #ff9800;
    position: relative;
}

.comparison-table th.highlight::after {
    content: '★';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1rem;
}

.comparison-table td {
    padding: 1.2rem 1rem;
    vertical-align: top;
    line-height: 1.6;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    color: #333;
    word-break: normal;
    white-space: normal;
    line-break: strict;
    hyphens: none;
    text-wrap: balance;
}

/* 2列目と3列目の幅をそろえる */
/* しおり列と一般的な買取チェーン店列の幅を同一に、
   さらに右端列も同幅にそろえる（左端は固定幅） */
.comparison-table th:nth-child(n+2),
.comparison-table td:nth-child(n+2) {
    width: calc((100% - 240px) / 3);
}

/* 1列目（評価項目）の幅と文字サイズ・改行制御 */
.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 240px;
    min-width: 240px;
    white-space: nowrap !important;
    font-size: 0.95rem;
}

/* ===== Mobile Optimizations for comparison table ===== */
@media (max-width: 768px) {
  .comparison-table { min-width: 720px; font-size: 0.9rem; }
  .comparison-table th:first-child,
  .comparison-table td:first-child { width: 180px; min-width: 180px; font-size: 0.9rem; }
  .comparison-table th:nth-child(n+2),
  .comparison-table td:nth-child(n+2) { width: 180px; }
  /* スマホでは一行固定を解除して自然改行に */
  .nowrap-sm { font-size: 0.9rem; white-space: normal; }
  /* はみ出し防止 */
  .comparison-table td, .comparison-table th { word-break: break-word; overflow-wrap: anywhere; }
  .desktop-br { display: none; }
}

@media (max-width: 480px) {
  .comparison-table { min-width: 640px; font-size: 0.85rem; }
  .comparison-table th:first-child,
  .comparison-table td:first-child { width: 160px; min-width: 160px; font-size: 0.85rem; }
  .comparison-table th:nth-child(n+2),
  .comparison-table td:nth-child(n+2) { width: 160px; }
  .nowrap-sm { font-size: 0.85rem; white-space: normal; }
  .comparison-table td, .comparison-table th { word-break: break-word; overflow-wrap: anywhere; }
  .desktop-br { display: none; }
}

/* PC版では比較表のスクロール矢印ヒントを非表示にする */
@media (min-width: 769px) {
  .comparison-table-wrapper.scroll-right::after,
  .comparison-table-wrapper.scroll-left::before {
    content: none !important;
  }
}

/* 列間の仕切り線を追加 */
.comparison-table th,
.comparison-table td {
    border-right: 1px solid #e0e0e0;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tbody tr:hover td {
    background-color: #f8f9fa;
}

.comparison-table td.highlight {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
    font-weight: 600;
    color: #333;
}

.comparison-table tbody tr:hover td.highlight {
    background: rgba(255, 152, 0, 0.15);
}

.comparison-table tbody tr:nth-child(even) td:not(.highlight) {
    background: #f8f9fa;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #37474f;
    background: #f5f5f5;
}

.comparison-table tbody tr:hover td:first-child {
    background: #eeeeee;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.checklist-section {
    background: transparent;
    padding: 3.5rem 2.5rem;
    margin-top: 3rem;
}

.checklist-section h3 {
    color: #ffffff;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.checklist-section h3 .accent-orange {
    color: #ff9800;
}

/* PC版：改行制御 */
.desktop-br {
    display: inline;
}

.mobile-br {
    display: none;
}

/* PC版：テキストを横並び表示 */
.checklist-section h3 .service-text,
.checklist-section h3 .accent-orange {
    display: inline;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
    position: relative;
}



.checklist-item:hover {
    background: rgba(255, 255, 255, 1);
}



.checklist-item i {
    color: #ff9800;
    font-size: 1.5rem;
    min-width: 24px;
}

.checklist-item span {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.6;
    white-space: normal; /* brを尊重 */
}

/* 先頭項目の先頭文を1行に収める */
.checklist-item:first-child .nowrap {
    white-space: nowrap;
    font-size: 0.95rem;
}

/* スタッフ専門性の項目だけ文字を小さくし、2行固定（各行は折り返さない） */
.checklist-grid .checklist-item:nth-child(5) span {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;
}

@media (max-width: 768px) {
  .checklist-grid .checklist-item:nth-child(5) span {
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .checklist-grid .checklist-item:nth-child(5) span {
      font-size: 0.85rem;
  }
}

/* Strength Section */
.strength {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* 装飾要素を削除してクリーンな方眼紙感を演出 */

.strength-comparison {
    position: relative;
}

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.comparison-card.our-service {
    background: rgba(232, 245, 232, 0.9);
    backdrop-filter: blur(3px);
    border: 3px solid #4caf50;
    transform: scale(1.05);
}

.comparison-card.general-service {
    background: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(3px);
    opacity: 0.8;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.our-service h3 {
    color: #2e7d32;
}

.general-service h3 {
    color: #666;
}

.comparison-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.comparison-card li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.our-service li {
    color: #2e7d32;
}

.general-service li {
    color: #666;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.3);
}

.strength-note {
    text-align: center;
    padding: 2rem;
    background: #8BC34A; /* ほんまやロゴの近似色。グラデーションなし */
    border-radius: 20px;
    color: white;
    box-shadow: none; /* 影禁止ルールに合わせて削除 */
}

.strength-note p {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Privacy Section */
.privacy {
    background: transparent;
}

.privacy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.privacy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.privacy-card:hover {
    transform: translateY(-10px);
}

.privacy-card i {
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.privacy-card h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Recruit Section */
.recruit {
    background: transparent;
}

.recruit-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.recruit-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.recruit-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.recruit-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.recruit-card h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.recruit-card ul {
    list-style: none;
}

.recruit-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1rem;
}

.recruit-card li::before {
    content: '•';
    color: #4caf50;
    position: absolute;
    left: 0;
}

.recruit-cta {
    text-align: center;
}

/* 福利厚生を3枚カードで横一列、上段2枚の幅と合致させる */
.recruit-benefits {
    grid-column: 1 / span 2; /* 上段2枚と同じ総幅を占有 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.benefit-text { display: inline-flex; flex-direction: column; }
.benefit-main { white-space: nowrap; }
.benefit-sub {
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
  .recruit-details { grid-template-columns: 1fr; }
  .recruit-benefits {
      grid-column: 1;
      grid-template-columns: 1fr;
  }
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.contact-card i {
    font-size: 2rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-image {
    margin-top: 1rem;
}

.contact-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

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

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

.required {
    color: #f44336;
}

.contact-note {
    color: #666;
    font-size: 1.1rem; /* お気軽に〜 と同じサイズに調整 */
    margin-top: 0.5rem;
    text-align: center;
    font-style: italic;
}

/* お問い合わせセクション：サブタイトルの下余白をなくす */
#contact .section-subtitle {
    margin-bottom: 0 !important;
}

/* 併せて補足文の上余白も0にして完全に詰める */
#contact .contact-note {
    margin-top: 0 !important;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* セレクトのスタイル */
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #ffeb3b;
}

/* フッター案内文のサイズをやや小さく */
.footer-info p {
    font-size: 0.95rem;
}

.footer-info .site-logo {
    height: 85px;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #4caf50;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4caf50;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-main {
        font-size: 2rem;
    }

    /* スマホ版：ヒーロー副見出しを非表示にして余白を保持 */
    .hero-subtitle {
        visibility: hidden !important; /* レイアウトは保持して非表示 */
    }
    
    /* スマホ版：ボタンを縦並びに */
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem;
        align-items: center;
    }
    
    /* ヒーローボタンのサイズを統一 */
    .hero-buttons .btn {
        width: 280px !important;
        justify-content: center;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }

    .hero-features {
        transform: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .feature-card:nth-child(even) {
        transform: none;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-card:nth-child(odd),
    .philosophy-card:nth-child(even) {
        transform: none;
    }
    
    /* スマホ版：アイコンとh3を一行に配置（中央揃え） */
    .philosophy-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    /* アイコンとh3のヘッダー部分をflexboxで横並び */
    .philosophy-card .card-icon,
    .philosophy-card h3 {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: top !important;
    }
    
    .philosophy-card .card-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
        margin-right: 0.8rem !important;
    }
    
    .philosophy-card .card-icon i {
        font-size: 1.2rem !important;
        margin: auto; /* アイコンを中央配置 */
    }
    
    .philosophy-card h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
        height: 40px; /* アイコンと同じ高さ */
        line-height: 1.2;
    }
    
    .philosophy-card p {
        margin-top: 1rem;
        text-align: center; /* 本文も中央揃え */
    }

    .service-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* スマホ版：PC版のgridレイアウトを完全に無効化 */
    .service-info-card {
        display: block !important; /* gridを無効化 */
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* スマホ版：info-sectionを完全にリセット */
    .service-info-card .info-section {
        display: block !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 0 0.5rem 0 !important;
        width: 100% !important;
    }
    
    /* 対応エリアセクションを特にコンパクトに */
    .service-info-card .info-section:nth-child(2) {
        margin-bottom: 0.3rem !important;
    }
    
    /* スマホ版：h4とp要素を完全にリセット */
    .service-info-card .info-section h4 {
        margin: 0 0 0.3rem 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .service-info-card .info-section p {
        margin: 0 !important;
        padding: 0.2rem 0.8rem !important;
        line-height: 1.2 !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .service-image img {
        transform: none;
    }

    .flow-steps {
        grid-template-columns: 1fr; /* モバイルは縦1列 */
        gap: 0; /* ステップ間のgapをなくしてmargin-bottomで制御 */
        padding: 0; /* パディングを削除してセンタリング */
        justify-items: center; /* アイテムを中央揃え */
        margin: 0 auto;
        max-width: 400px; /* タブレットでは少し幅を広げる */
    }

    /* モバイル版：PC版の矢印をリセット */
    .flow-steps .step::after {
        display: none !important;
    }
    
    /* モバイル版：新しい矢印の配置 */
    .flow-steps .step:not(:last-child) {
        position: relative;
        margin-bottom: 1.5rem; /* 矢印の下余白を減らす */
    }
    
    .flow-steps .step:not(:last-child)::before {
        content: '↓';
        position: absolute;
        bottom: -1.3rem; /* 矢印をステップに近づける */
        left: 50%;
        transform: translateX(-50%);
        color: #ff9800;
        font-size: 1.5rem;
        font-weight: bold;
        z-index: 10;
    }
    
    /* モバイル版：ステップのスタイル */
    .flow-steps .step {
        padding: 1rem;
        position: relative;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    /* モバイル段階：ステップ見出しサイズの最適化 */
    .service-flow .step .step-content h4 {
        font-size: 1.1rem !important;
    }
    .service-flow .step .step-content p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-top: 0.2rem !important;
        word-break: normal !important;
        white-space: normal !important;
    }
    
    /* モバイル版：セクション見出しを中央揃え */
    .service-flow h3,
    .service-features h3,
    .service-assurance h3 {
        text-align: center !important;
    }
    
    /* アイコンサイズも調整 */
    .step-number {
        width: 50px !important;
        height: 50px !important;
    }
    
    .step-number i {
        font-size: 1rem !important;
    }

    /* モバイル版：見極めポイントセクションの最適化 */
    .compare .container {
        padding: 2rem 1rem;
        border-radius: 0;
    }
    
    .compare-content-wrapper {
        padding: 2rem 1rem !important;
    }

    .comparison-table-wrapper {
        padding: 1rem;
        border-radius: 0;
        margin-bottom: 2rem;
    }
    
    /* セクション見出しを中央揃えに */
    .compare .section-header .section-title {
        text-align: center !important;
    }
    
    .compare .section-header .section-subtitle {
        text-align: center !important;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
    }

    .comparison-table td {
        padding: 1rem 0.8rem;
    }

    .checklist-section {
        padding: 2rem 1rem;
        border-radius: 0;
        margin-top: 2rem;
    }
    
    .checklist-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
    }
    
    /* モバイル版：flexを解除して縦並び表示 */
    .checklist-section h3 {
        display: block !important; /* flexを解除 */
    }
    
    .checklist-section h3 .service-text,
    .checklist-section h3 .accent-orange {
        display: block !important;
    }
    
    .checklist-section h3 .accent-orange {
        margin-top: 0.2rem; /* わずかに間隔を空ける */
    }
    
    /* モバイル版：改行制御 */
    .desktop-br {
        display: none !important;
    }
    
    .mobile-br {
        display: block !important;
    }
    
    /* スマホ版：チェックリストの改行位置を改善 */
    .checklist-item:nth-child(2) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(3) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(4) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(6) span::after {
        content: "\A";
        white-space: pre;
    }

    .checklist-item {
        padding: 1.2rem 1rem;
        gap: 1rem;
        border-radius: 10px;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
        position: relative;
        margin-top: 2rem;
    }

    .vs-divider {
        display: none; /* スマホ版では非表示 */
    }

    .comparison-card.our-service {
        transform: none;
    }

    .recruit-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .recruit-image img {
        transform: none;
        height: 250px !important; /* スマホ版で縦幅を縮小 */
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* モバイル版：フッターロゴを中央揃え */
    .footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info .logo-link {
        display: inline-block;
        text-align: center;
    }
    
    .footer-info .site-logo {
        display: block;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* スマホ版：サービス紹介のh2を非表示 */
    .service .section-title {
        display: none !important;
    }
    
    /* スマホ版：h3をh2のサイズに変更 */
    .service-text h3,
    .service-flow h3,
    .service-features h3,
    .service-assurance h3 {
        font-size: 2rem !important;
    }
    
    /* スマホ版：サービスセクションの余白を調整 */
    .service .section-header {
        margin-bottom: 1rem !important; /* 削除されたh2の分のスペースを詰める */
    }
    
    /* 個人情報セクションの見出しを1行に収める */
    .privacy .section-title {
        font-size: 1.5rem !important;
        white-space: nowrap !important;
    }
    
    /* 会社概要テーブルのスマホ最適化 */
    .company-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }
    
    .company-table th,
    .company-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .company-table th {
        width: 120px;
        font-size: 0.85rem;
    }
    
    .company-table td {
        word-break: break-all;
        line-height: 1.4;
    }
    
    /* 採用情報の福利厚生を1行表示 */
    .benefit-text {
        flex-direction: row !important;
        gap: 0 !important;
        align-items: center !important;
    }
    
    .benefit-sub {
        margin-left: 0 !important;
        align-self: center !important;
        vertical-align: middle !important;
    }

    .features-alternating {
        padding: 0; /* 見出しと左端を揃える */
    }

    /* モバイル版：縦配置に変更 */
    .features-alternating .feature-card {
        justify-content: flex-start;
        flex-direction: column;
        text-align: center;
        transform: none; /* アニメーション依存を解除 */
        margin-bottom: 3rem; /* アイコン分の余白を追加 */
        align-items: center; /* 中央揃え */
        position: relative;
        padding-top: 25px; /* アイコンの半分の高さ分上部を空ける */
    }
    
    .features-alternating .feature-card:nth-child(2),
    .features-alternating .feature-card:nth-child(4) {
        transform: none;
    }
    
    .features-alternating .feature-card.left,
    .features-alternating .feature-card.right {
        justify-content: center;
    }
    
    .features-alternating .feature-card.left .card-content,
    .features-alternating .feature-card.right .card-content {
        margin: 0;
        order: 2; /* テキストは下に */
    }
    
    /* モバイル版：すべてのアイコンを上部中央に統一 */
    .features-alternating .feature-icon {
        order: 1 !important; /* 常に上部に配置 */
        margin-bottom: 0;
        width: 50px; /* アイコンを小さく */
        height: 50px;
        position: absolute; /* カードに被せる */
        top: -25px; /* アイコンの半分を上にずらす */
        left: 50%;
        transform: translateX(-50%); /* 水平中央配置 */
        z-index: 3;
    }
    
    .features-alternating .feature-card.left .feature-icon,
    .features-alternating .feature-card.right .feature-icon {
        order: 1 !important; /* PC版の左右配置を上書き */
    }
    
    .features-alternating .feature-icon i {
        font-size: 1.3rem; /* アイコンサイズも調整 */
    }
    
    .features-alternating .card-content {
        width: calc(100% - 1rem); /* 少し余白を残して横幅を最大化 */
        max-width: none;
        padding: 2rem 1.5rem 1.5rem; /* 上部パディングを増やす */
        position: relative;
        margin-left: 0.5rem; /* 左右に少し余白 */
        margin-right: 0.5rem;
    }
    
    .features-alternating .card-content p {
        line-height: 1.7;
        text-align: left;
        word-break: normal;
    }

    .features-alternating .card-content h4 {
        font-size: 1.1rem;
    }

    .features-alternating .card-content p {
        font-size: 0.95rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .assurance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-features,
    .service-details,
    .service-assurance {
        padding: 3rem 1rem; /* 左右パディングを縮小 */
    }
    
    /* モバイル版：安心・安全セクションの位置調整 */
    .service-assurance {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        overflow-x: hidden; /* 横スクロールを防ぐ */
    }
    
    .assurance-grid {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* 768px以下では上記の.features-alternatingで定義済み */

    .feature-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    /* モバイル：assurance-itemの調整 */
    .assurance-item {
        min-height: 180px;
        padding: 1.5rem 1rem;
        margin: 0 auto; /* 中央配置 */
        width: 100%;
        max-width: 100%; /* はみ出し防止 */
        box-sizing: border-box;
    }

    .assurance-item h4 {
        font-size: 1.1rem;
    }

    .assurance-item p {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word; /* 長いテキストの折り返し */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px; /* さらに狭める */
    }
    
    /* スマホ版：安心・安全セクションの調整 */
    .service-assurance {
        padding: 2rem 0.5rem !important; /* 左右をさらに狭く */
        margin: 0 !important;
        width: 100% !important;
        overflow-x: hidden;
    }
    
    .assurance-grid {
        gap: 1rem; /* アイテム間の間隔を狭める */
        padding: 0;
        margin: 0;
    }
    
    .assurance-item {
        padding: 1rem 0.5rem;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-main {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        visibility: hidden !important; /* 小型スマホでもレイアウトを保持して非表示 */
    }
    
    /* スマホ版：ボタンを縦並びに（小型画面） */
    .hero-buttons {
        gap: 1rem;
    }
    
    /* ヒーローボタンのサイズを統一（小型画面） */
    .hero-buttons .btn {
        width: 260px !important;
        justify-content: center;
        padding: 0.9rem 1.8rem !important;
        font-size: 0.95rem !important;
    }
    
    /* 個人情報セクションの見出しをさらに小さく */
    .privacy .section-title {
        font-size: 1.3rem !important;
        white-space: nowrap !important;
    }
    
    /* 会社概要テーブルのスマホ最適化（小型画面） */
    .company-card {
        padding: 1rem 0.5rem;
        max-width: 100%;
    }
    
    .company-table th,
    .company-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .company-table th {
        width: 100px;
        font-size: 0.75rem;
    }
    
    .company-table td {
        word-break: break-all;
        line-height: 1.3;
        font-size: 0.8rem;
    }
    
    /* 採用情報の福利厚生を1行表示 */
    .benefit-text {
        flex-direction: row !important;
        gap: 0 !important;
        align-items: center !important;
    }
    
    .benefit-sub {
        margin-left: 0 !important;
        align-self: center !important;
        vertical-align: middle !important;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
    
    /* スマホ版：サービス紹介のh2を非表示（小型画面） */
    .service .section-title {
        display: none !important;
    }
    
    /* スマホ版：h3をh2のサイズに変更（小型画面） */
    .service-text h3,
    .service-flow h3,
    .service-features h3,
    .service-assurance h3 {
        font-size: 1.8rem !important;
    }
    
    /* スマホ版：サービスセクションの余白を調整（小型画面） */
    .service .section-header {
        margin-bottom: 0.5rem !important;
    }

    .compare .container {
        padding: 2rem 1rem;
        border-radius: 20px;
    }

    /* スマホ版：見極めポイントセクションの最適化 */
    .compare-content-wrapper {
        padding: 1.5rem 0.5rem !important;
    }
    
    .comparison-table-wrapper {
        padding: 0.5rem;
        border-radius: 0;
        margin-bottom: 1.5rem;
    }

    .comparison-table {
        font-size: 0.75rem;
        min-width: 600px; /* 最小幅を調整 */
    }
    
    /* セクション見出しの調整 */
    .compare .section-header .section-title {
        font-size: 1.8rem !important;
        text-align: center !important;
    }
    
    .compare .section-header .section-subtitle {
        font-size: 0.9rem !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }

    .comparison-table th {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    .comparison-table td {
        padding: 0.8rem 0.5rem;
    }

    .checklist-section {
        padding: 1.5rem 0.5rem;
        border-radius: 0;
        margin-top: 1.5rem;
    }
    
    .checklist-section h3 {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    /* スマホ版：flexを解除して縦並び表示 */
    .checklist-section h3 {
        display: block !important; /* flexを解除 */
    }
    
    .checklist-section h3 .service-text,
    .checklist-section h3 .accent-orange {
        display: block !important;
    }
    
    .checklist-section h3 .accent-orange {
        margin-top: 0.15rem; /* わずかに間隔を空ける */
    }
    
    /* スマホ版：改行制御 */
    .desktop-br {
        display: none !important;
    }
    
    .mobile-br {
        display: block !important;
    }
    
    /* スマホ版：チェックリストの改行位置を改善（小型画面） */
    .checklist-item:nth-child(2) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(3) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(4) span::after {
        content: "\A";
        white-space: pre;
    }
    
    .checklist-item:nth-child(6) span::after {
        content: "\A";
        white-space: pre;
    }

    .checklist-item {
        padding: 1rem 0.8rem;
        gap: 0.8rem;
        border-radius: 10px;
        text-align: left;
    }
    
    .checklist-item i {
        font-size: 1.2rem !important;
    }
    
    .checklist-item span {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    .checklist-item i {
        font-size: 1.3rem;
    }

    .checklist-item span {
        font-size: 1rem;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: 1fr;
        gap: 0; /* ステップ間の余白をなくす */
        padding: 0;
        justify-items: center; /* 中央揃え */
        margin: 0; /* 左右の余白をなくす */
        max-width: 100%; /* 幅を最大に */
    }

    /* スマホ版：矢印のサイズ調整 */
    .flow-steps .step:not(:last-child)::before {
        font-size: 1.3rem;
        bottom: -1.2rem; /* さらに近づける */
    }
    
    /* スマホ版：ステップの間隔調整 */
    .flow-steps .step:not(:last-child) {
        margin-bottom: 1.2rem; /* 間隔を狭く */
    }
    
    /* ステップ要素のパディング調整 */
    .flow-steps .step {
        padding: 0.8rem;
    }

    /* スマホ段階：ステップ見出しサイズの最適化 */
    .service-flow .step .step-content h4 {
        font-size: 1rem !important;
    }
    
    .service-flow .step .step-content p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* スマホ版：セクション見出しを中央揃え */
    .service-flow h3,
    .service-features h3,
    .service-assurance h3 {
        text-align: center !important;
    }
    
    /* ステップ番号をさらに小さく */
    .step-number {
        width: 45px !important;
        height: 45px !important;
    }
    
    .step-number i {
        font-size: 0.9rem !important;
    }

    /* スマホ版：PC版のgridレイアウトを完全に無効化（小型画面） */
    .service-info-card {
        display: block !important; /* gridを無効化 */
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* スマホ版：info-sectionを完全にリセット（小型画面） */
    .service-info-card .info-section {
        display: block !important;
        grid-column: auto !important;
        grid-row: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        margin: 0 0 0.3rem 0 !important;
        width: 100% !important;
    }
    
    /* 対応エリアセクションを特にコンパクトに（小型画面） */
    .service-info-card .info-section:nth-child(2) {
        margin-bottom: 0.2rem !important;
    }
    
    /* スマホ版：h4とp要素を完全にリセット（小型画面） */
    .service-info-card .info-section h4 {
        margin: 0 0 0.2rem 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important;
        font-size: 1.1rem !important;
    }
    
    .service-info-card .info-section p {
        margin: 0 !important;
        padding: 0.15rem 0.6rem !important;
        line-height: 1.1 !important;
        font-size: 0.9rem !important;
        height: auto !important;
        min-height: auto !important;
        width: 100% !important;
    }

    .philosophy-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* スマホ版：採用画像の縦幅をさらに縮小（小型画面） */
    .recruit-image img {
        height: 200px !important; /* 小型スマホでさらに縮小 */
    }
    
    /* スマホ版：アイコンとh3を一行に配置（小型画面・中央揃え） */
    .philosophy-card {
        padding: 1.2rem;
        text-align: center;
    }
    
    .philosophy-card .card-icon,
    .philosophy-card h3 {
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: top !important;
    }
    
    .philosophy-card .card-icon {
        width: 35px !important;
        height: 35px !important;
        margin-right: 0.6rem !important;
    }
    
    .philosophy-card .card-icon i {
        font-size: 1rem !important;
        margin: auto; /* アイコンを中央配置 */
    }
    
    .philosophy-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
        height: 35px; /* アイコンと同じ高さ */
        line-height: 1.2;
    }
    
    .philosophy-card p {
        font-size: 0.8rem !important;
        text-align: center; /* 本文も中央揃え */
        margin-top: 1rem;
    }
}

/* お問い合わせフォーム改善 */
.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-response-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

@media (max-width: 768px) {
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .contact-response-note {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* スマホ版：特徴カードのアイコンをさらに小さく */
    .features-alternating .feature-icon {
        width: 45px;
        height: 45px;
        top: -22.5px; /* アイコンサイズの半分 */
    }
    
    .features-alternating .feature-icon i {
        font-size: 1.2rem;
    }
    
    .btn-large {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
        min-height: 45px;
    }
    
    .contact-response-note {
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }
    
    .features-alternating .card-content h4 {
        font-size: 1rem;
    }
    
    .features-alternating .card-content {
        width: calc(100% - 0.5rem); /* スマホではさらに横幅を広げる */
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding: 2rem 1rem 1rem; /* 左右パディングも少し狭める */
    }
    
    .features-alternating .card-content p {
        line-height: 1.6;
        font-size: 0.95rem;
        word-break: normal;
    }
}

/* Form Status Messages */
#status .success {
    color: #22c55e;
    background: #f0fdf4;
    border: 1px solid #22c55e;
    padding: 12px;
    border-radius: 0;
    margin-top: 16px;
    font-weight: 500;
}

#status .error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #ef4444;
    padding: 12px;
    border-radius: 0;
    margin-top: 16px;
    font-weight: 500;
} 