/* 
クリスタル・クリーン - メインスタイルシート
バージョン: 1.0
最終更新: 2023年
*/

/* ===== ベース設定 ===== */
:root {
    /* カラーパレット */
    --primary-color: #0095da; /* 青 - 主要なアクセント色 */
    --secondary-color: #4acb8f; /* 緑 - 二次的なアクセント色 */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-blue: #004b6b; /* ダークブルー - 深みのあるコントラスト */
    --light-blue: #e1f5ff; /* ライトブルー - 背景やハイライト用 */
    --light-green: #e8f9f0; /* ライトグリーン - セカンダリー背景 */
    --dark-text: #333333; /* ダークグレー - 本文テキスト */
    --medium-text: #666666; /* ミディアムグレー - サブテキスト */
    --light-text: #ffffff; /* ホワイト - ライトモードテキスト */
    --background: #ffffff; /* 白 - 一般的な背景 */
    --light-gray: #f5f5f5; /* ライトグレー - セクション背景 */
    --border-color: #e0e0e0; /* ボーダー用グレー */
    --success-color: #4caf50; /* 緑 - 成功メッセージ */
    --warning-color: #ff9800; /* オレンジ - 警告メッセージ */
    --error-color: #f44336; /* 赤 - エラーメッセージ */
    
    /* タイポグラフィ */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    
    /* スペーシング */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* ブレークポイント */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    
    /* その他 */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* リセット＆ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-blue);
}

ul, ol {
    list-style-position: inside;
    margin: 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

button, 
.btn-primary, 
.btn-secondary {
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--light-text);
    box-shadow: 0 4px 8px rgba(0, 149, 218, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 12px rgba(0, 149, 218, 0.3);
    transform: translateY(-2px);
    color: var(--light-text);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-blue);
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.center-btn {
    text-align: center;
    margin-top: 2rem;
}

/* ===== ヘッダー ===== */
header {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    max-width: 180px;
}

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

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--dark-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.main-nav a:hover:after, .main-nav a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== ヒーローセクション ===== */
.hero {
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 4rem 0;
}

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

.hero-content {
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ===== 特徴セクション ===== */
.features {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--primary-color);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-item h3 {
    margin-bottom: 1rem;
}

/* ===== 製品プレビュー ===== */
.products-preview {
    padding: 4rem 0;
}

.product-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.product-card h3 {
    margin: 1rem;
}

.product-card p {
    margin: 0 1rem 1.5rem;
    flex-grow: 1;
}

.product-card .btn-secondary {
    margin: 0 1rem 1rem;
    align-self: flex-start;
}

/* ===== ブログプレビュー ===== */
.blog-preview {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--medium-text);
    margin-bottom: 1rem;
}

.blog-category {
    background-color: var(--light-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    color: var(--primary-color);
}

.blog-card h3 {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--dark-text);
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    color: var(--dark-blue);
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 0.75rem;
}

/* ===== 見出し付きの引用セクション ===== */
.quote-section {
    padding: 3rem 0;
    background-color: var(--light-blue);
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote-box h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.quote-box blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quote-author {
    font-weight: 500;
    color: var(--medium-text);
}

/* ===== アンケートセクション ===== */
.poll-section {
    padding: 3rem 0;
    background-color: var(--light-green);
}

.poll-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.poll-box h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.poll-option {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.poll-option input[type="radio"] {
    margin-right: 1rem;
}

#poll-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.result-bar {
    display: grid;
    grid-template-columns: 150px 1fr 50px;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.result-label {
    font-weight: 500;
}

.result-progress {
    background-color: var(--light-gray);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
}

.hidden {
    display: none;
}

/* ===== フッター ===== */
footer {
    background-color: var(--dark-blue);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
}

.footer-links ul {
    list-style: none;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--light-text);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
}

.social-icons {
    display: flex;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
    color: var(--light-text);
    margin-right: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Cookie同意バナー ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-content p {
    margin: 0 1rem 1rem 0;
    flex: 1 1 100%;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-accept {
    background-color: var(--success-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.btn-customize {
    background-color: var(--light-gray);
    color: var(--dark-text);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.btn-decline {
    background-color: var(--error-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.cookie-policy-link {
    margin-left: 1rem;
    text-decoration: underline;
}

/* ===== ページヒーローセクション ===== */
.page-hero {
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.page-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* ===== 会社概要ページ ===== */
.about-intro {
    padding: 4rem 0;
}

.about-intro .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.vision-mission {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.vision-mission-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vision, .mission, .values {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.vision h2, .mission h2, .values h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values ul {
    list-style-type: disc;
    margin-left: 1rem;
}

.timeline {
    padding: 4rem 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 100%;
    background: var(--light-blue);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    width: 50%;
    text-align: right;
    padding-right: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-content {
    width: 50%;
    padding-left: 2rem;
}

.team {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: auto;
}

.team-card h3, .team-card p {
    padding: 0 1.5rem;
}

.team-card h3 {
    margin-top: 1.5rem;
}

.team-card p:last-child {
    padding-bottom: 1.5rem;
}

.certifications {
    padding: 4rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.cert-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-text);
    color: var(--primary-color);
}

.cert-icon svg {
    width: 30px;
    height: 30px;
}

.cta {
    padding: 4rem 0;
    background: var(--primary-gradient);
    color: var(--light-text);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== 製品ページ ===== */
.product-categories {
    padding: 2rem 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 0.5rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active, .tab:hover {
    background: var(--primary-gradient);
    color: var(--light-text);
}

.products {
    padding: 2rem 0 4rem;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 2rem;
}

.product-info h2 {
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    margin-right: 0.5rem;
}

.count {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pack-info {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--medium-text);
}

.product-info .description {
    margin-bottom: 1.5rem;
}

.features {
    margin-bottom: 1.5rem;
    list-style-type: none;
}

.features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.features li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.product-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-benefits {
    padding: 4rem 0;
    background-color: var(--light-blue);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--light-text);
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
}

.testimonials {
    padding: 4rem 0;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    position: relative;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background-color: var(--background);
    transform: rotate(45deg);
}

.testimonial-content p {
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin: 0;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    color: var(--medium-text);
    font-size: 0.9rem;
}

.faq {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: var(--background);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-answer {
    background-color: var(--light-blue);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* ===== ブログページ ===== */
.blog-categories {
    padding: 2rem 0;
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gradient);
    color: var(--light-text);
}

.blog-search {
    padding: 2rem 0;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    padding: 1rem;
    border: none;
    font-size: 1rem;
}

.search-button {
    background: var(--primary-gradient);
    color: var(--light-text);
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.blog-posts {
    padding: 2rem 0 4rem;
}

.pagination {
    padding: 2rem 0 4rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-text);
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background: var(--primary-gradient);
    color: var(--light-text);
}

.page-dots {
    margin: 0 0.5rem;
}

.page-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.page-next:hover {
    background: var(--primary-gradient);
    color: var(--light-text);
}

.page-next svg {
    width: 16px;
    height: 16px;
}

.subscribe {
    padding: 4rem 0;
    background-color: var(--light-blue);
}

.subscribe-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.subscribe-content h2 {
    margin-bottom: 1rem;
}

.subscribe-content p {
    margin-bottom: 0;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscribe-form input[type="email"] {
    flex-grow: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* ===== ブログ記事ページ ===== */
.blog-single {
    padding: 4rem 0;
}

.blog-header {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.blog-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.author-name {
    font-weight: 600;
    display: block;
}

.author-title {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.blog-featured-image {
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.blog-content img {
    max-width: 100%;
    margin: 1.5rem auto;
    border-radius: var(--border-radius);
}

.image-with-caption {
    margin: 1.5rem 0;
    text-align: center;
}

.caption {
    color: var(--medium-text);
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.tip-box {
    background-color: var(--light-blue);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tip-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tip-box p {
    margin-bottom: 0;
}

.conclusion {
    background-color: var(--light-green);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.conclusion h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.blog-tags {
    max-width: 800px;
    margin: 0 auto 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tag-label {
    margin-right: 0.5rem;
    font-weight: 600;
}

.tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--dark-text);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin: 0 0.5rem 0.5rem 0;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.blog-share {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.share-label {
    margin-right: 0.5rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.share-button svg {
    width: 18px;
    height: 18px;
}

.share-button.twitter {
    background-color: #1da1f2;
    color: var(--light-text);
}

.share-button.facebook {
    background-color: #4267B2;
    color: var(--light-text);
}

.share-button.linkedin {
    background-color: #0077B5;
    color: var(--light-text);
}

.share-button.email {
    background-color: #333;
    color: var(--light-text);
}

.share-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: var(--light-text);
}

.related-posts {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.comments {
    padding: 4rem 0;
}

.comment-form {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.comment-form h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.required {
    color: var(--error-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.comments-list {
    max-width: 800px;
    margin: 0 auto;
}

.comment {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

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

.comment-header h4 {
    margin: 0;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.newsletter {
    padding: 4rem 0;
    background-color: var(--light-blue);
}

.newsletter-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* ===== お問い合わせページ ===== */
.contact-info {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--light-text);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-card p {
    margin-bottom: 0.5rem;
}

.response-time {
    font-size: 0.9rem;
    color: var(--medium-text);
    font-style: italic;
}

.contact-form-section {
    padding: 2rem 0 4rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.map-section {
    padding: 4rem 0;
    background-color: var(--light-blue);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: var(--background);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    text-align: center;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--success-color);
    color: var(--light-text);
}

.modal-icon svg {
    width: 30px;
    height: 30px;
}

.modal h2 {
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
}

.close-btn {
    margin-top: 1rem;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .container, .about-intro .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content, .about-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .subscribe-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        width: auto;
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
    }
    
    .timeline-content {
        width: 100%;
        padding-left: 80px;
    }
    
    .product-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav li {
        margin: 0 0 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .feature-grid, .product-slider, .blog-grid, .testimonial-slider, .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .newsletter-form, .share-buttons {
        flex-direction: column;
    }
    
    .newsletter-form .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 100%;
        text-align: center;
    }
}
