/* ============================================
   マンション管理士 小松事務所 - メインスタイルシート
   WordPress化対応版
   ============================================ */

/* ============================================
   ベーススタイル
   ============================================ */
.komatsu-body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f8fafc;
    color: #334155;
}

/* ============================================
   テキストユーティリティ
   ============================================ */
.komatsu-text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* ============================================
   背景パターン
   ============================================ */
.komatsu-bg-dot {
    background-image: radial-gradient(#94a3b8 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.15;
}

.komatsu-bg-dot-light {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================
   カードコンポーネント
   ============================================ */
.komatsu-card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.komatsu-card-profile {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.komatsu-card-service {
    padding: 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.komatsu-card-service:hover {
    transform: translateY(-0.5rem);
}

/* ============================================
   アニメーション
   ============================================ */
.komatsu-animate-fade-in-up {
    animation: komatsuFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.komatsu-animate-bounce-slow {
    animation: komatsuBounceSlow 3s ease-in-out infinite;
}

@keyframes komatsuBounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   ナビゲーション
   ============================================ */
.komatsu-nav {
    position: relative;
}

.komatsu-nav__link {
    position: relative;
    transition: color 0.3s ease;
}

.komatsu-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c5a059;
    transition: width 0.3s ease;
}

.komatsu-nav__link:hover::after {
    width: 100%;
}

.komatsu-nav__menu-button {
    display: none;
}

@media (max-width: 768px) {
    .komatsu-nav__menu-button {
        display: block;
    }
}

/* ============================================
   ボタンコンポーネント
   ============================================ */
.komatsu-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.komatsu-btn--primary {
    background-color: #0f172a;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.komatsu-btn--primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.komatsu-btn--secondary {
    background-color: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.komatsu-btn--secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.komatsu-btn--accent {
    background-color: #d97706;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.3);
}

.komatsu-btn--accent:hover {
    background-color: #f59e0b;
}

/* ============================================
   セクションスタイル
   ============================================ */
.komatsu-section {
    position: relative;
    overflow: hidden;
}

.komatsu-section--hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    display: flex;
    align-items: center;
}

.komatsu-section--dark {
    background-color: #0f172a;
    color: white;
}

.komatsu-section--light {
    background-color: #f8fafc;
}

.komatsu-section__title {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    color: #0f172a;
}

.komatsu-section__title--white {
    color: white;
}

.komatsu-section__subtitle {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d97706;
}

/* ============================================
   バッジ・ラベル
   ============================================ */
.komatsu-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background-color: white;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
}

.komatsu-badge--category {
    padding: 0.125rem 0.5rem;
    background-color: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: bold;
}

/* ============================================
   フォーム要素
   ============================================ */
.komatsu-form {
    width: 100%;
}

.komatsu-form__input,
.komatsu-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.komatsu-form__textarea {
    resize: vertical;
}

.komatsu-form__input::placeholder,
.komatsu-form__textarea::placeholder {
    color: #94a3b8;
}

.komatsu-form__input:focus,
.komatsu-form__textarea:focus {
    outline: none;
    border-color: #c5a059;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ヘッダー
   ============================================ */
.komatsu-header {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

.komatsu-header--scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.komatsu-header__logo {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .komatsu-header__logo {
        font-size: 1.25rem;
    }
}

/* ============================================
   ヒーローセクション
   ============================================ */
.komatsu-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.komatsu-hero__background {
    position: absolute;
    inset: 0;
    z-index: -20;
    background: linear-gradient(to bottom, white, #f1f5f9, #f1f5f9);
}

.komatsu-hero__decorative-text {
    position: absolute;
    top: 5rem;
    right: 5rem;
    font-size: 12.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    color: rgba(226, 232, 240, 0.4);
    user-select: none;
    z-index: -10;
    line-height: 1;
}

@media (max-width: 1024px) {
    .komatsu-hero__decorative-text {
        display: none;
    }
}

.komatsu-hero__content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.komatsu-hero__content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .komatsu-hero__content-inner {
        flex-direction: row;
        gap: 5rem;
    }
}

.komatsu-hero__title {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.komatsu-hero__title-nowrap {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 360px) {
    .komatsu-hero__title-nowrap {
        white-space: normal;
    }
}

@media (min-width: 640px) {
    .komatsu-hero__title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .komatsu-hero__title {
        font-size: 3.75rem;
    }
}

.komatsu-hero__title-highlight {
    position: relative;
    display: inline-block;
}

.komatsu-hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: rgba(251, 191, 36, 0.5);
    z-index: -1;
    transform: rotate(-1deg);
}

.komatsu-hero__description {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.75;
    max-width: 36rem;
    border-left: 4px solid #fbbf24;
    padding-left: 1.5rem;
}

.komatsu-hero__image-wrapper {
    position: relative;
    width: 100%;
}

.komatsu-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.komatsu-hero__image:hover {
    transform: scale(1.05);
}

.komatsu-hero__badge {
    position: absolute;
    bottom: -2.5rem;
    left: -1.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #f59e0b;
    max-width: 18rem;
}

@media (min-width: 768px) {
    .komatsu-hero__badge {
        left: -3rem;
    }
}

/* ============================================
   課題紹介セクション
   ============================================ */
.komatsu-issues {
    padding: 7rem 0;
    background-color: white;
    position: relative;
}

.komatsu-issues__divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.komatsu-issues__item {
    position: relative;
    background-color: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.komatsu-issues__item:hover {
    background-color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.komatsu-issues__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #0f172a, #1e293b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.komatsu-issues__item:hover::before {
    transform: scaleX(1);
}

.komatsu-issues__icon {
    display: inline-flex;
    padding: 1rem;
    background-color: white;
    color: #d97706;
    border-radius: 9999px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.komatsu-issues__item:hover .komatsu-issues__icon {
    background-color: #d97706;
    color: white;
}

.komatsu-issues__title {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.komatsu-issues__description {
    color: #475569;
    line-height: 1.75;
    font-size: 0.875rem;
}

/* ============================================
   事務所についてセクション
   ============================================ */
.komatsu-about {
    padding: 8rem 0;
    background-color: #0f172a;
    color: white;
    position: relative;
    overflow: hidden;
}

.komatsu-about__background-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
}

.komatsu-about__decorative-text {
    position: absolute;
    right: -5rem;
    bottom: -10rem;
    font-size: 18.75rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.05);
    user-select: none;
    pointer-events: none;
}

.komatsu-about__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
}

.komatsu-about__stat {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.komatsu-about__stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.25rem;
}

.komatsu-about__stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.komatsu-about__profile-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    color: #334155;
    position: relative;
    z-index: 10;
}

.komatsu-about__profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.komatsu-about__profile-avatar {
    width: 5rem;
    height: 5rem;
    background-color: #e2e8f8;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .komatsu-about__profile-avatar {
        width: 140px;
        height: 140px;
    }
}

.komatsu-about__profile-name {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #0f172a;
}

.komatsu-about__profile-role {
    color: #64748b;
    font-size: 0.875rem;
}

.komatsu-about__profile-section {
    margin-bottom: 1.5rem;
}

.komatsu-about__profile-section-title {
    font-weight: bold;
    color: #0f172a;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.komatsu-about__profile-tag {
    display: inline-block;
    font-size: 0.75rem;
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #e2e8f0;
    margin: 0.25rem;
}

.komatsu-about__profile-list {
    font-size: 0.875rem;
    color: #475569;
    list-style: none;
    padding: 0;
    margin: 0;
}

.komatsu-about__profile-list-item {
    margin-bottom: 0.25rem;
}

.komatsu-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .komatsu-about__grid {
        grid-template-columns: 7fr 5fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .komatsu-about__grid {
        gap: 4rem;
    }
}

.komatsu-about__text-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.komatsu-about__profile-column {
    position: relative;
}

.komatsu-about__profile-deco {
    position: absolute;
    top: 1rem;
    right: -1rem;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 158, 11, 0.2);
    border-radius: 0.5rem;
    z-index: 0;
}

@media (max-width: 880px) {
    .komatsu-about__profile-deco {
        right: 0;
    }
}

/* ============================================
   業務案内セクション
   ============================================ */
.komatsu-services {
    padding: 8rem 0;
    background-color: #f8fafc;
    position: relative;
}

.komatsu-services__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.komatsu-services__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 5rem;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .komatsu-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.komatsu-services__card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.komatsu-services__card:hover {
    transform: translateY(-0.5rem);
}

.komatsu-services__card-indicator {
    width: 3rem;
    height: 4px;
    background-color: #e2e8f0;
    transition: background-color 0.3s ease;
    margin-bottom: 1.5rem;
}

.komatsu-services__card:hover .komatsu-services__card-indicator {
    background-color: #f59e0b;
}

.komatsu-services__card-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.komatsu-services__card-description {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    min-height: 5rem;
}

.komatsu-services__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.komatsu-services__card-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.75rem;
}

/* ============================================
   料金案内セクション
   ============================================ */
.komatsu-pricing {
    padding: 6rem 0;
    background-color: white;
}

.komatsu-pricing__header {
    text-align: center;
    margin-bottom: 3rem;
}

.komatsu-pricing__header-note {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.komatsu-pricing__table {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.komatsu-pricing__table-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.komatsu-pricing__table-header-cell {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: bold;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.komatsu-pricing__table-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.komatsu-pricing__table-row:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.komatsu-pricing__table-cell {
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
}

.komatsu-pricing__table-cell--name {
    font-weight: bold;
    color: #0f172a;
}

.komatsu-pricing__table-cell--price {
    font-weight: bold;
    color: #d97706;
    white-space: nowrap;
}

.komatsu-pricing__table-cell--note {
    color: #64748b;
}

@media (max-width: 640px) {
    .komatsu-pricing__table-cell--note {
        display: none;
    }
}

/* ============================================
   お知らせ・お問い合わせセクション
   ============================================ */
.komatsu-news-contact {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 600px;
}

@media (min-width: 1024px) {
    .komatsu-news-contact {
        grid-template-columns: repeat(2, 1fr);
    }
}

.komatsu-news-contact__header {
    text-align: center;
}

@media (min-width: 1024px) {
    .komatsu-news-contact__header {
        text-align: left;
    }
}

.komatsu-news-contact__content {
    text-align: center;
}

.komatsu-news-contact__content p {
    display: inline-block;
    text-align: left;
}

@media (min-width: 1024px) {
    .komatsu-news-contact__content {
        text-align: left;
    }
    
    .komatsu-news-contact__content p {
        display: block;
    }
}

.komatsu-news-contact__button-wrapper {
    text-align: center;
}

@media (min-width: 1024px) {
    .komatsu-news-contact__button-wrapper {
        text-align: left;
    }
}

.komatsu-news {
    background-color: #f8fafc;
    padding: 3rem;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

@media (min-width: 1024px) {
    .komatsu-news {
        padding: 6rem;
    }
}

.komatsu-news__item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.komatsu-news__item:hover {
    border-color: #fbbf24;
}

.komatsu-news__item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.komatsu-news__item-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
}

.komatsu-news__item-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.komatsu-news__item:hover .komatsu-news__item-title {
    color: #d97706;
}

.komatsu-contact {
    background-color: #020617;
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .komatsu-contact {
        padding: 6rem;
    }
}

.komatsu-contact__decorative-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background-color: rgba(217, 119, 6, 0.1);
    border-radius: 50%;
    filter: blur(100px);
    transform: translate(50%, -50%);
}

.komatsu-contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.komatsu-contact__phone:hover {
    color: #fbbf24;
}

.komatsu-contact__phone-hours {
    font-size: 0.75rem;
    color: #64748b;
    padding-left: 2.75rem;
}

.komatsu-contact__form {
    margin-top: 2.5rem;
}

.komatsu-contact__form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   フッター
   ============================================ */
.komatsu-footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.komatsu-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .komatsu-footer__inner {
        flex-direction: row;
    }
}

.komatsu-footer__brand {
    text-align: center;
}

@media (min-width: 1024px) {
    .komatsu-footer__brand {
        text-align: left;
    }
}

.komatsu-footer__logo {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .komatsu-footer__logo {
        justify-content: flex-start;
    }
}

.komatsu-footer__logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: #0f172a;
    color: #fbbf24;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.125rem;
}

.komatsu-footer__address {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.komatsu-footer__links {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.komatsu-footer__link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.komatsu-footer__link:hover {
    color: #0f172a;
}

.komatsu-footer__copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   ページネーション
   ============================================ */
.nav-next {
    margin-top: 1rem;
}

/* ============================================
   カスタムスクロールバー
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   ユーティリティクラス
   ============================================ */
.komatsu-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .komatsu-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .komatsu-container {
        padding: 0 2rem;
    }
}

.komatsu-text-center {
    text-align: center;
}

.komatsu-mb-16 {
    margin-bottom: 4rem;
}

.komatsu-mb-12 {
    margin-bottom: 3rem;
}

.komatsu-mt-16 {
    margin-top: 4rem;
}

/* ============================================
   事業概要ページ（会社概要テーブル）
   ============================================ */
.komatsu-aboutus-table {
    font-size: 0.875rem;
}

.komatsu-aboutus-table__header {
    background-color: #f8fafc;
    padding: 1.75rem 2rem;
    text-align: left;
    font-weight: bold;
    color: #0f172a;
    width: 30%;
    vertical-align: top;
    border-right: 1px solid #e2e8f0;
}

.komatsu-aboutus-table__cell {
    padding: 1.75rem 2rem;
    color: #334155;
    line-height: 1.75;
    vertical-align: top;
}

@media (max-width: 640px) {
    .komatsu-aboutus-table {
        font-size: 0.75rem;
    }
    
    .komatsu-aboutus-table__header {
        padding: 1.25rem 1.5rem;
        width: 35%;
    }
    
    .komatsu-aboutus-table__cell {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================
   Contact Form 7 スタイル
   ============================================ */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.wpcf7-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #334155;
    background-color: #ffffff;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

.wpcf7-submit {
    background-color: #0f172a;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: bold;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.wpcf7-submit:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.wpcf7-validation-errors {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* フォームのレイアウト調整 */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

@media (max-width: 640px) {
    .wpcf7-form-control {
        font-size: 16px; /* iOSでズームを防ぐ */
    }
}

/* ============================================
   プライバシーポリシーページ
   ============================================ */
.komatsu-privacy-section {
    margin-bottom: 2rem;
}

.komatsu-privacy-section__title {
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #fbbf24;
}

.komatsu-privacy-section__text {
    color: #334155;
    line-height: 1.875;
    margin-bottom: 1rem;
}

.komatsu-privacy-section__list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.komatsu-privacy-section__list li {
    color: #334155;
    line-height: 1.875;
    margin-bottom: 0.5rem;
    position: relative;
}

.komatsu-privacy-section__list li::before {
    content: '・';
    position: absolute;
    left: -1.5rem;
    color: #f59e0b;
    font-weight: bold;
}

.komatsu-privacy-contact {
    border-left: 4px solid #fbbf24;
}

