/* ルート要素（html）に対してフォントサイズを定義（累積的なフォントサイズ計算バグを修正） */
html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem; /* 標準フォントを16pxに設定 */
    line-height: 1.6;
    color: #333;
    background-color: #fcfcf9; /* 落ち着いた和モダンな背景色 */
}

/* ヘッダー・ヒーローセクション */
.hero {
    position: relative;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.badge {
    display: inline-block;
    background: #00b4ff;
    color: #000;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Yu Mincho', serif;
    font-size: 4.2rem;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.hero-sub {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* コンテナ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border: 1px solid #e0dcd3;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.card h3 {
    font-size: 2.0rem;
    color: #c0392b;
    margin-top: 0;
}

/* ボタン */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6rem;
    padding: 15px 30px;
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: #f39c12;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* シミュレーターセクション */
.simulator-section,.form-section {
    margin-top: 80px;
    padding: 40px;
    background: #fff;
    border: 2px solid #00b4ff;
    border-radius: 12px;
}

.simulator-box {
    max-width: 600px;
    margin: 30px auto 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.6rem;
}

.result-box {
    background: #e8f8f5;
    border: 1px solid #2ecc71;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 30px;
}

.result-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #27ae60;
}

.result-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: #c0392b;
    margin: 10px 0;
}

.result-note {
    font-size: 1.2rem;
    color: #666;
}

/* フォームセクション */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0 auto;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-submit {
    background: #27ae60;
    color: #fff;
    border: none;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.feedback {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

.feedback.success { color: #27ae60; }
.feedback.error { color: #c0392b; }

footer {
    text-align: center;
    padding: 40px;
    background: #2c3e50;
    color: #fff;
    font-size: 1.4rem;
}

/* ナビゲーションバー */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e0dcd3;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-logo {
    font-family: 'Yu Mincho', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #555;
    font-weight: bold;
    transition: color 0.2s;
}

.nav-menu a:hover,.nav-menu a.active {
    color: #f39c12; /* 建築に合うゴールドオレンジ */
}

/* 下層用サブヒーロー */
.sub-hero {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.sub-hero h1 {
    font-family: 'Yu Mincho', serif;
    font-size: 3.2rem;
    margin: 0 0 10px 0;
}

.sub-hero p {
    font-size: 1.4rem;
    letter-spacing: 0.3em;
    color: #f39c12;
}

/* お知らせリスト */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    border-bottom: 1px solid #e0dcd3;
    padding-bottom: 25px;
}

.news-date {
    font-size: 1.4rem;
    color: #777;
    margin-right: 15px;
}

.news-category {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 3px;
    color: #fff;
    margin-right: 15px;
}

.news-category.event { background-color: #e67e22; }
.news-category.info { background-color: #3498db; }

.news-title {
    font-size: 2.0rem;
    margin: 10px 0;
    font-family: 'Yu Mincho', serif;
}

.news-title a {
    text-decoration: none;
    color: #2c3e50;
}

.news-title a:hover {
    color: #f39c12;
}

.news-summary {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.7;
}

/* 施工事例グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.works-card {
    background: #fff;
    border: 1px solid #e0dcd3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.works-card:hover {
    transform: translateY(-5px);
}

.works-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.works-info {
    padding: 25px;
}

.works-tag {
    font-size: 1.2rem;
    color: #e67e22;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.works-info h3 {
    font-family: 'Yu Mincho', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.works-info p {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
}