/* CSS変数定義 */
:root {
    /* メインカラー */
    --color-primary: #2d5a3d;
    --color-secondary: #7a9b85;
    --color-accent: #5a8a6b;
    
    /* 背景色 */
    --color-bg-main: #f8faf9;
    --color-bg-light: #e8f0ea;
    --color-bg-white: #fff;
    --color-bg-body: #fafafa;
    --color-bg-gradient-start: #f8fbf9;
    --color-bg-gradient-end: #e8f4ea;
    
    /* テキスト色 */
    --color-text-main: #333;
    --color-text-secondary: #666;
    --color-text-light: #999;
    --color-text-white: #fff;
    
    /* ボーダー色 */
    --color-border-light: #f0f0f0;
    --color-border-main: #e8f0ea;
    --color-border-gray: #e0e0e0;
    
    /* 警告・注意色 */
    --color-warning-bg: #fff3cd;
    --color-warning-border: #ffeaa7;
    --color-warning-text: #856404;
    --color-notice-bg: #f0f8f4;
    
    /* ボタン色 */
    --color-danger: #dc3545;
    --color-danger-hover: #c82333;
    --color-gray: #6c757d;
    --color-gray-hover: #5a6268;
    
    /* その他 */
    --color-text-label: #555;
    
    /* フッター色（案2: 中間トーンの緑） */
    /* --color-footer-bg: #7a9b85; */
    --color-footer-text: #fff;
    --color-footer-link: #333;
    --color-footer-link-hover: #2d5a3d;

    /* フッター色（元々のサイトの色） */
    --color-footer-bg: #b4c503;

    
    /* シャドウ */
    --shadow-main: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
}

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

/* ヘッダー */
.header {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 2px;
}

.logo .tagline {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-left: 4px;
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

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

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

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

/* ナビゲーション */
.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* シミュレーター */
.simulator {
    padding: 4rem 0;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border-main);
}


/* STEP間の間隔調整 */
.ceiling-section {
    margin-top: 3rem;
}

.finish-material-section {
    margin-top: 2.5rem;
}

.subsection-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
}

/* 壁入力セクション */
.wall-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--color-bg-main);
    border-radius: 12px;
    border: 1px solid var(--color-border-main);
}

.wall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wall-title {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.remove-wall {
    padding: 0.5rem 1rem;
    background-color: var(--color-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-wall:hover {
    background-color: var(--color-danger-hover);
}

/* 入力フィールド */
.wall-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 500;
    color: var(--color-text-label);
    margin-bottom: 0.5rem;
}

.input-group input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #7a9b85;
}

/* 開口部セクション */

#openings-details {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8faf9;
    border-radius: 8px;
    border: 1px solid #e8f0ea;
}

.opening-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.opening-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.opening-title {
    font-weight: 600;
    color: #2d5a3d;
    font-size: 1rem;
}

.opening-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* 壁の開口部チェックボックス */
.wall-openings-section {
    margin-top: 1rem;
}

.wall-openings-checkbox {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #2d5a3d;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.wall-openings-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.wall-openings-inputs {
    margin-top: 1rem;
    padding: 0rem;
    background-color: #f8faf9;
    border-radius: 8px;
    border: none;
}

.opening-inputs input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.opening-inputs input:focus {
    outline: none;
    border-color: #7a9b85;
}

.remove-opening {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.remove-opening:hover {
    background-color: #c82333;
}

.clear-opening {
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.clear-opening:hover {
    background-color: #5a6268;
}

.add-btn {
    padding: 0.8rem 1.5rem;
    background-color: #7a9b85;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.add-btn:hover {
    background-color: #6a8a75;
}


/* 天井面積セクション */
.ceiling-section {
    margin-bottom: 2rem;
}

.ceiling-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ceiling-checkbox {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ceiling-checkbox:hover {
    border-color: #7a9b85;
    background-color: #f8faf9;
}

.ceiling-checkbox input[type="checkbox"] {
    margin-right: 0.8rem;
    accent-color: #7a9b85;
    width: 18px;
    height: 18px;
}

.ceiling-checkbox span {
    font-weight: 500;
    color: #555;
}

.ceiling-dimensions {
    margin-top: 1rem;
}

.ceiling-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ceiling-dimensions input {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.ceiling-dimensions input:focus {
    outline: none;
    border-color: #7a9b85;
}

/* 仕上げ材選択 */
.finish-material-section {
    margin-bottom: 2rem;
}

.finish-material-section select {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.finish-material-section select:focus {
    outline: none;
    border-color: #7a9b85;
}

/* スキルレベル */
.skill-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-option:hover {
    border-color: #7a9b85;
    background-color: #f8faf9;
}

.skill-option input[type="radio"] {
    margin-right: 0.8rem;
    accent-color: #7a9b85;
}

.skill-option span {
    font-weight: 500;
    color: #555;
}

/* 計算ボタン */
.calculate-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

/* 結果表示 */
.result-display {
    background-color: var(--color-bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-main);
    min-height: 300px;
}

.result-placeholder {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    padding: 3rem 1rem;
    line-height: 1.8;
}

.result-content {
    display: none;
}

.result-content.show {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--color-text-label);
}

.result-value {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.result-item.total-wall {
    border-top: 2px solid var(--color-border-main);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
}

.result-item.total-wall .result-label {
    font-weight: 600;
    color: var(--color-primary);
}

.result-item.total-wall .result-value {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.area-display {
    background-color: var(--color-bg-main);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.area-value {
    font-size: 2rem;
    font-weight: 600;
    color: #2d5a3d;
    display: block;
}

.area-unit {
    font-size: 1.1rem;
    color: #7a9b85;
}

.product-recommendation {
    background-color: #e8f0ea;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0 2.5rem 0;
}

.product-title {
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 1rem;
}

.product-details {
    display: grid;
    gap: 0.5rem;
}

/* 結果セクション */
.result-section {
    margin-bottom: 1.5rem;
}

.result-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-border-main);
}

/* 関連情報セクションの上の線を削除 */
.related-links {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 警告メッセージ */
.foundation-warning {
    background-color: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.warning-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 0.5rem;
}

.warning-content {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
}

/* 関連リンク */
.related-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.related-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 1rem;
}

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

.related-link {
    display: block;
    padding: 0.8rem;
    background-color: #f8faf9;
    border: 1px solid #e8f0ea;
    border-radius: 6px;
    text-decoration: none;
    color: #2d5a3d;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.related-link:hover {
    background-color: #e8f0ea;
    border-color: #7a9b85;
}

/* フッター */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    max-width: 200px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #e8f4ea;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-footer-link);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-footer-link-hover);
    text-decoration: underline;
}

/* 教育セクション */
.education-section {
    background-color: var(--color-bg-main);
    padding: 4rem 0;
    margin-top: 2rem;
}

/* 部屋寸法図解セクション */
.room-diagram-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.diagram-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.room-diagram-img {
    width: 100%;
    height: auto;
    border: 1px solid #e8f0ea;
    border-radius: 4px;
}

.diagram-explanation h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.diagram-explanation p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.diagram-explanation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.diagram-explanation li {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.diagram-explanation strong {
    color: var(--color-primary);
}

.diagram-note {
    background: var(--color-notice-bg);
    padding: 1rem;
    border-left: 4px solid var(--color-secondary);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* YouTube動画セクション */
.youtube-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.youtube-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.video-explanation h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.video-explanation p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.education-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
}

.education-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 1.5rem;
}

.video-placeholder {
    margin-bottom: 1rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f0f0f0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.foundation-info ul,
.tools-info ul {
    list-style: none;
    padding: 0;
}

.foundation-info li,
.tools-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.foundation-info li:last-child,
.tools-info li:last-child {
    border-bottom: none;
}

/* DIY教室セクション */
.diy-section {
    background: linear-gradient(135deg, #f8fbf9 0%, #e8f4ea 100%);
    padding: 4rem 0;
    margin: 3rem 0 0;
    position: relative;
}

.diy-section::before {
    content: "人気！";
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.diy-promotion-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.diy-banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    width: 100%;
}

.diy-banner:hover {
    transform: translateY(-5px);
}

.diy-banner-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.diy-banner:hover .diy-banner-img {
    transform: scale(1.05);
}

.diy-content {
    padding: 1rem 0;
    text-align: center;
}

.diy-text {
    margin-bottom: 2rem;
}

.diy-highlight {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d5a3d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.diy-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.diy-action {
    text-align: center;
}

.diy-class-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #7a9b85 0%, #2d5a3d 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.diy-class-btn.featured {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.diy-class-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.diy-class-btn.featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    animation: none;
}

/* PC向けの大画面レイアウト */
@media (min-width: 1200px) {
    .diy-promotion-content {
        max-width: 900px;
        gap: 3rem;
    }
    
    .diy-highlight {
        font-size: 1.4rem;
    }
    
    .diy-content p {
        font-size: 1.1rem;
    }
}

/* タブレット向けレイアウト */
@media (max-width: 1024px) and (min-width: 769px) {
    .diy-promotion-content {
        max-width: 700px;
        gap: 2.5rem;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* ロゴのレスポンシブ対応 */
    .logo-img {
        height: 42px;
        max-width: 200px;
    }
    
    /* フッターロゴのレスポンシブ対応 */
    .footer-logo-img {
        height: 38px;
        max-width: 160px;
    }
    
    /* 図面セクションのレスポンシブ対応 */
    .diagram-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .room-diagram-section {
        padding: 1.5rem;
    }
    
    /* YouTube動画セクションのレスポンシブ対応 */
    .youtube-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .youtube-section {
        padding: 1.5rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #fff 0%, #f8fbf9 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid #e8f0ea;
        margin-bottom: 0.5rem;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .header .container {
        flex-direction: row;
        gap: 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wall-inputs {
        grid-template-columns: 1fr;
    }
    
    .ceiling-inputs-grid {
        grid-template-columns: 1fr;
    }
    
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .diy-promotion-content {
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .diy-section {
        padding: 3rem 0;
        margin: 2rem 0 0;
    }
    
    .diy-section::before {
        top: 20px;
        right: 20px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .opening-inputs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .simulator {
        padding: 2rem 0;
    }
    
    
    .education-section {
        padding: 2rem 0;
    }
    
    .education-card {
        padding: 1.5rem;
    }
}