/* --- 基本設定 --- */
:root {
    --primary-color: #00A3B4;
    --secondary-color: #F0F7F8;
    --text-color: #555;
    --heading-color: #003C40;
    --white-color: #ffffff;
    --grey-color: #e9e9e9;
    --font-family: 'Noto Sans JP', 'Helvetica Neue', 'Arial', 'Hiragino Sans', 'Meiryo', sans-serif;
    --box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}
*, *::before, *::after {
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white-color);
}
body.nav-is-open {
    overflow: hidden;
}
.site-container {
    background-color: var(--white-color);
    position: relative;
    z-index: 1;
    transition: transform 350ms ease-in-out;
}
body.nav-is-open .site-container {
    transform: translateX(-280px);
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section { padding: 100px 0; }
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--heading-color);
    margin: 0 0 60px 0;
    font-weight: 700;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* --- ヘッダー & ナビゲーション --- */
.header { background-color: rgba(255, 255, 255, 0.95); padding: 15px 0; position: sticky; top: 0; z-index: 999; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #f0f0f0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.header-logo img { height: 55px; }
.header-nav-desktop ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 30px; }
.header-nav-desktop a { text-decoration: none; color: var(--heading-color); font-weight: 700; }
.contact-button { background: var(--primary-color); color: var(--white-color) !important; padding: 12px 25px; border-radius: 50px; transition: background-color 0.3s; }
.contact-button:hover { background-color: var(--heading-color); }

/* --- スマホ用ナビゲーション --- */
.mobile-nav-toggle, .mobile-nav { display: none; }

/* --- ヒーロー (トップページ) --- */
.hero { display: flex; align-items: center; justify-content: center; min-height: 90vh; padding: 40px 0; position: relative; background-size: cover; background-position: center 40%; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.35); }
.hero-text { position: relative; color: var(--white-color); text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0 0 20px 0; font-weight: 700; line-height: 1.3; }
.hero-button { background: var(--white-color); color: var(--primary-color); padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.1rem; border: 2px solid var(--white-color); }

/* --- 選ばれる理由 (ホーム)--- */
.features { background-color: #f9f9f9; border-top: 1px solid var(--grey-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-item { background-color: var(--white-color); padding: 35px; padding-top: 50px; border-radius: var(--border-radius); position: relative; border: 1px solid var(--grey-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden; }
.feature-item:hover { transform: translateY(-8px); box-shadow: var(--box-shadow); }
.feature-number { position: absolute; top: 0px; left: 20px; font-size: 5rem; font-weight: 700; color: var(--primary-color); opacity: 0.1; line-height: 1; }
.feature-item h3 { font-size: 1.6rem; color: var(--heading-color); margin: 0 0 15px 0; font-weight: 700; position: relative; z-index: 2; }
.feature-item p { font-size: 1rem; position: relative; z-index: 2; }

/* --- フッター --- */
.footer { background: var(--heading-color); color: rgba(255, 255, 255, 0.8); padding: 60px 0 30px 0; font-size: 0.95rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { max-width: 200px; margin-bottom: 20px; }
.footer a { color: var(--white-color); text-decoration: none; }
.footer-copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 30px; font-size: 0.9rem; }

/* --- 下層ページヘッダー --- */
.page-header { background-color: var(--white-color); padding: 80px 0; border-bottom: 1px solid var(--grey-color); }
.page-header .container { padding-left: 30px; border-left: 5px solid var(--primary-color); text-align: left; }
.page-header h1 { color: var(--heading-color); font-size: 2.8rem; margin: 0 0 10px 0; line-height: 1.2; }
.page-header p { color: var(--text-color); font-size: 1.1rem; margin: 0; }

/* --- 料金ページ --- */
.price-category-title { font-size: 1.8rem; color: var(--heading-color); border-bottom: 3px solid var(--primary-color); padding-bottom: 15px; margin-top: 60px; margin-bottom: 30px; }
.price-category-title:first-of-type { margin-top: 0; }
.service-description { text-align: center; margin-bottom: 30px; font-size: 1.1rem; }
.note { text-align: center; margin-top: 30px; font-size: 0.9em; color: #777; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; font-size: 1rem; box-shadow: var(--box-shadow); border: 1px solid var(--grey-color); border-radius: var(--border-radius); overflow: hidden; }
.price-table thead { background-color: var(--heading-color); color: var(--white-color); }
.price-table th, .price-table td { padding: 20px; border-bottom: 1px solid var(--grey-color); text-align: left; vertical-align: middle; }
.price-table tbody tr:nth-child(even) { background-color: var(--secondary-color); }
.price-table tr:last-child td { border-bottom: none; }

/* --- 施工事例ページ --- */
.works-grid-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work-case { background-color: var(--white-color); border-radius: var(--border-radius); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--box-shadow); }
.case-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: auto; }
.case-images figure { margin: 0; border: 1px solid var(--grey-color); border-radius: 8px; background-color: #fdfdfd; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.case-images img { display: block; width: 100%; height: auto; max-height: 200px; aspect-ratio: 1 / 1; object-fit: contain; }
.case-images figcaption { text-align: center; font-weight: bold; font-size: 0.9rem; padding-top: 10px; color: var(--text-color); }
.rotate-sink { transform: rotate(-90deg); }

/* --- お問い合わせフォーム --- */
.contact-lead { text-align: center; font-size: 1.1rem; max-width: 800px; margin: 0 auto 50px auto; }
.contact-wrapper { max-width: 800px; margin: 0 auto; background: var(--white-color); padding: 50px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.contact-form .form-group { margin-bottom: 25px; display: flex; align-items: flex-start; }
.contact-form label { width: 30%; padding-top: 15px; font-weight: 700; color: var(--heading-color); }
.contact-form label span { color: var(--primary-color); font-size: 0.85rem; margin-left: 8px; font-weight: normal; }
.contact-form .form-input { width: 70%; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid var(--grey-color); border-radius: 8px; font-size: 1rem; font-family: var(--font-family); }
.form-submit { width: 100%; text-align: center; margin-top: 40px; }
.form-note { font-size: 0.9rem; margin-bottom: 20px; color: #777; }
.contact-direct { text-align: center; margin-top: 60px; }
.contact-tel-number { font-size: 1.5rem; font-weight: 700; }
.contact-tel-number a { color: var(--heading-color); text-decoration: none; }

/* --- ページトップへ戻るボタン --- */
.back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary-color); color: var(--white-color); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; opacity: 0; visibility: hidden; transition: all 0.4s ease; z-index: 998; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* --- レスポンシブ対応 --- */
@media (max-width: 992px) {
    .header-nav-desktop { display: none; }
    .mobile-nav-toggle { display: block; position: relative; background: transparent; border: 0; width: 30px; height: 22px; cursor: pointer; z-index: 1002; }
    .mobile-nav-toggle span { display: block; width: 100%; height: 3px; background: var(--heading-color); border-radius: 2px; position: absolute; left: 0; transition: all 0.3s; }
    .mobile-nav-toggle span:nth-child(1) { top: 0; }
    .mobile-nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .mobile-nav-toggle span:nth-child(3) { bottom: 0; }

    .mobile-nav { display: block; position: fixed; top: 0; right: 0; width: 280px; height: 100%; background-color: var(--white-color); z-index: 1001; transform: translateX(100%); transition: transform 350ms ease-in-out; padding-top: 80px; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .mobile-nav.is-open { transform: translateX(0); }
    .mobile-nav ul { list-style: none; padding: 0 30px; margin: 0; }
    .mobile-nav li { border-bottom: 1px solid var(--grey-color); }
    .mobile-nav a { display: block; padding: 20px 0; text-decoration: none; color: var(--heading-color); font-weight: 700; font-size: 1.1rem; }
    .mobile-nav-close-button { position: absolute; top: 30px; right: 25px; background: transparent; border: 0; width: 2.2rem; height: 2.2rem; cursor: pointer; }
    .mobile-nav-close-button::before, .mobile-nav-close-button::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 3px; background: var(--heading-color); border-radius: 2px; }
    .mobile-nav-close-button::before { transform: rotate(45deg); }
    .mobile-nav-close-button::after { transform: rotate(-45deg); }
}
@media (max-width: 768px) {
    .works-grid-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}


/* --- テーブル共通スタイル (サービス, 会社概要, 採用) --- */
.info-table, .price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; font-size: 1rem; box-shadow: var(--box-shadow); border: 1px solid var(--grey-color); border-radius: var(--border-radius); overflow: hidden; }
.info-table thead, .price-table thead { background-color: var(--heading-color); color: var(--white-color); }
.info-table th, .info-table td, .price-table th, .price-table td { padding: 20px; border-bottom: 1px solid var(--grey-color); text-align: left; vertical-align: middle; }
.info-table tbody tr, .price-table tbody tr { background-color: var(--white-color); }
.info-table tbody tr:nth-child(even), .price-table tbody tr:nth-child(even) { background-color: var(--secondary-color); }
.info-table tr:last-child td, .price-table tr:last-child td { border-bottom: none; }
.info-table th { font-weight: 700; width: 30%; }
.price-table th:last-child, .price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; font-size: 1.1rem; }
