/* 基本設定と変数 */
:root {
    --primary-color: #004d40;
    --accent-color: #ff9800;
    --text-color: #333;
    --text-light: #555;
    --bg-color: #ffffff;
    --bg-light-gray: #f7f9fa;
    --border-color: #e0e0e0;
    --header-nav-bg: #eaf4f2;
    --contact-btn-bg: #00a0e9;
    --contact-btn-hover-bg: #0089c7;
    --reception-time-bg: #888888; /* ← ここをお好みのグレーに変更 */
}

*, *::before, *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Noto Sans JP', sans-serif; line-height: 1.75;
    color: var(--text-color); background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}
.header-container, .section-content {
    max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

/* ヘッダー */
.header { background: var(--bg-color); position: relative; z-index: 1000; }
.header-top { border-bottom: 1px solid var(--border-color); padding: 10px 0; }
.header-top .header-container { display: flex; justify-content: space-between; align-items: center; }

/* ロゴ */
.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-image { width: 75px; height: 75px; } /* 変更：サイズを少し大きく */
.logo-text { line-height: 1.4; }
.logo-subtitle { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-light); }
.logo-main { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin: 0; }

/* 連絡先エリア */
.header-contact { display: flex; align-items: center; gap: 25px; }
/* 変更：縦並びにするためのスタイル */
.header-info-wrapper {
    display: flex;
    flex-direction: column; /* 電話番号と受付時間を縦に並べる */
    align-items: flex-start; /* 左揃えにする */
    gap: 4px; /* 間の余白を調整 */
}
/* 削除：.reception-time-wrapper のスタイルは不要になったため削除 */
/* 変更：受付時間全体のスタイル */
.reception-time {
    color: var(--text-light); /* 文字色を通常テキストカラーに */
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    display: flex;         /* ラベルとテキストを垂直中央揃えにする */
    align-items: center;   /* 追加 */
}
/* 追加：「受付時間」ラベルのスタイル */
.reception-time-label {
    background-color: var(--reception-time-bg);
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 8px; /* 右側のテキストとの余白 */
    font-size: 0.8rem;
    line-height: 1.5;
}
/* 削除：.contact-info 関連のスタイルは不要になったため削除 */

/* 追加：電話番号のスタイル */
.tel {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.contact-button { display: flex; align-items: center; justify-content: center; background-color: var(--contact-btn-bg); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 25px; border-radius: 5px; transition: background-color 0.3s; white-space: nowrap; }
.contact-button:hover { background-color: var(--contact-btn-hover-bg); }
.contact-button .mail-icon { width: 20px; height: 20px; margin-right: 8px; }

/* ナビゲーション */
.header-nav-wrapper { position: sticky; top: 0; background: var(--header-nav-bg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); z-index: 999; }
.global-nav ul { display: flex; list-style: none; justify-content: center; gap: 2rem; }
.global-nav li a { display: block; padding: 15px 20px; font-weight: 700; font-family: 'Poppins', sans-serif; color: var(--primary-color); text-decoration: none; transition: color 0.3s, background-color 0.3s; }
.global-nav li a:hover { color: var(--accent-color); background-color: rgba(255, 255, 255, 0.5); }
.hamburger-menu, .mobile-nav { display: none; }

/* ヒーローセクション（スライダー） */
.hero { position: relative; height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: white; }
.slider-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.slides { list-style: none; position: relative; width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero-image {
    background-size: cover; background-position: center;
    width: 100%; height: 100%;
    animation: zoom-in 10s ease-out forwards;
    animation-play-state: paused;
    will-change: transform;
}
.slide.active .hero-image {
    animation-play-state: running;
}
@keyframes zoom-in { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 1; }
.hero-text-content { position: relative; z-index: 2; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: 3.5rem; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.25rem; margin-top: 1rem; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.slider-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.dot { width: 12px; height: 12px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; transition: background-color 0.3s; }
.dot.active { background-color: #fff; }

/* 共通セクションスタイル */
.section-container { padding: 80px 0; }
.bg-light-gray { background-color: var(--bg-light-gray); }
.section-title { font-family: 'Poppins', sans-serif; font-size: 2.5rem; text-align: center; margin-bottom: 60px; color: var(--primary-color); position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--accent-color); }
.subsection-title { font-size: 1.5rem; color: var(--primary-color); text-align: center; margin-bottom: 30px; }
.card { background: var(--bg-color); border-radius: 8px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07); padding: 40px; margin-bottom: 30px; }

/* 経営理念 */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.philosophy-card, .policy-card { margin-bottom: 0; }
.card-title-icon { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.card-title-icon::before { content: ''; display: block; width: 28px; height: 28px; background-color: var(--accent-color); background-size: 60%; background-repeat: no-repeat; background-position: center; border-radius: 50%; flex-shrink: 0; }
.card-title-icon.shaze::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L1 9l4 2.18V18h14V11.18L23 9l-11-7zm0 14.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E"); }
.card-title-icon.vision::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E"); }
.card-title-icon.policy::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/%3E%3C/svg%3E"); }
.policy-card .policy-list { list-style-type: none; padding-left: 0; counter-reset: policy-counter; }
.policy-card .policy-list li { margin-bottom: 15px; padding-left: 2em; position: relative; }
.policy-card .policy-list li::before { counter-increment: policy-counter; content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23004d40'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); background-size: 80%; background-position: center; background-repeat: no-repeat; position: absolute; left: 0; top: 3px; width: 1.5em; height: 1.5em; text-align: center; line-height: 1.5em; font-weight: 700; background-color: #eaf4f2; border: none; border-radius: 50%; }

/* 会社概要 */
.company-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: flex-start; }
.company-details dl { display: grid; grid-template-columns: 120px auto; gap: 1rem; }
.company-details dt { font-weight: 700; color: var(--primary-color); }
.company-map { aspect-ratio: 1 / 1; width: 100%; border-radius: 8px; overflow: hidden; }
.company-map iframe { width: 100%; height: 100%; }

/* 業務内容 */
.business-content h4 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 10px; font-weight: 700; }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; padding-top: 20px; }
.logo-grid a { transition: opacity 0.3s; }
.logo-grid a:hover { opacity: 0.7; }
.logo-grid img { display: block; max-width: 100%; max-height: 45px; width: auto; object-fit: contain; margin: 0 auto; }

/* 沿革 */
.timeline-container { position: relative; }
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; top: 10px; left: 0; bottom: 10px; width: 3px; background: var(--border-color); }
.timeline li { margin-bottom: 30px; position: relative; }
.timeline-marker { position: absolute; top: 1.2rem; left: -37px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-color); border: 3px solid var(--bg-light-gray); z-index: 1; }
.timeline-content { margin-left: 20px; }
.timeline-date { display: block; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }

/* ページ先頭へ */
.back-to-top-wrapper { text-align: center; padding: 40px 0; }
.back-to-top { display: inline-block; padding: 10px 30px; border: 1px solid var(--border-color); border-radius: 20px; color: var(--text-light); text-decoration: none; transition: all 0.3s; }
.back-to-top:hover { background-color: var(--bg-light-gray); color: var(--primary-color); }

/* フッター */
.footer { background: var(--primary-color); color: rgba(255, 255, 255, 0.8); text-align: center; padding: 40px 20px; font-size: 0.9rem; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 30px; }
.footer-nav a { color: #fff; text-decoration: none; transition: opacity 0.3s; }
.footer-nav a:hover { opacity: 0.8; text-decoration: underline; }

/* アニメーション */
.animated-section { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animated-section.is-visible { opacity: 1; transform: translateY(0); }

/* レスポンシブ対応 */
@media (max-width: 1050px) {
    .header-contact { gap: 10px; }
    .contact-button { padding: 10px 15px; }
}
@media (max-width: 900px) {
    .header-top { display: block; border-bottom: none; padding: 0; }
    .header-nav-wrapper, .global-nav { display: none; }
    /* 変更：ロゴサイズに合わせてヘッダーの高さを調整 */
    .header { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 65px; position: fixed; width: 100%; top: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .header .header-container, .header .header-contact { display: contents; }

    .header .logo { gap: 10px; }
    /* 変更：スマホ版のロゴサイズを少し大きく */
    .header .logo-image {
        width: 55px;
        height: 55px;
    }
    .header .logo-text { display: block; line-height: 1.3; }
    .header .logo-subtitle { font-size: 0.65rem; }
    .header .logo-main { font-size: 1rem; }

    /* 削除：.reception-time-wrapper はPC版のみなので削除 */
    .contact-info, .contact-button, .header-info-wrapper { display: none; } /* 変更：.header-info-wrapper も非表示に */

    main { padding-top: 65px; } /* 変更：ヘッダーの高さに合わせて調整 */
    .hamburger-menu { display: block; position: relative; width: 30px; height: 20px; background: none; border: none; cursor: pointer; z-index: 1001; }
    .hamburger-menu span { display: block; position: absolute; width: 100%; height: 3px; background: var(--primary-color); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-menu span:nth-child(3) { bottom: 0; }
    .is-open .hamburger-menu span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .is-open .hamburger-menu span:nth-child(2) { opacity: 0; }
    .is-open .hamburger-menu span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }
    /* 変更：モバイルメニューの位置と高さを調整 */
    .mobile-nav { display: block; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(5px); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1000; padding-top: 40px; }
    .is-open .mobile-nav { transform: translateX(0); }
    body.is-open { overflow: hidden; }
    .mobile-nav ul { list-style: none; }
    .mobile-nav li a { display: block; padding: 20px; text-align: center; font-size: 1.2rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
    .hero { height: 60vh; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-container { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .philosophy-grid, .company-layout { grid-template-columns: 1fr; }
    .company-map { aspect-ratio: auto; height: 300px; }
    .logo-grid { grid-template-columns: 1fr; gap: 30px; }
    .logo-grid img { max-height: 65px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .card { padding: 30px 20px; }
}
/* --- お問い合わせページ専用スタイル --- */

/* 下層ページヘッダー */
.page-header {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}
.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}
.page-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* 導入文 */
.contact-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

/* フォームレイアウト */
.contact-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.form-group {
    margin-bottom: 25px;
}
.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.required {
    background-color: #e53935;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

/* 入力要素 */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

/* 個人情報同意エリア */
.privacy-consent {
    background-color: var(--bg-light-gray);
    padding: 30px;
    border-radius: 6px;
    margin: 40px 0;
}
.privacy-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}
.privacy-box {
    background: #fff;
    padding: 15px;
    height: 120px;
    overflow-y: scroll;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.consent-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
}
.consent-checkbox input {
    width: 18px;
    height: 18px;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
}
.submit-button {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 18px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}
.submit-button:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
    .page-title { font-size: 1.8rem; }
    .privacy-consent { padding: 20px 15px; }
    .submit-button { width: 100%; padding: 15px; }
}