:root {
    --primary: #ff4444;
    --secondary: #ff6666;
    --dark: #333333;
    --light: #f8f9fa;
    --accent: #ffaa00;
    --warning: #ff8800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ヘッダー */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    z-index: 101;
}

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

/* ナビゲーション */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), 
                radial-gradient(circle at center, #001122, #000611);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 15rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
    opacity: 0.6;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-logo {
  display: block;
  margin: 0 auto 20px;
  width: 800px;       /* お好きな大きさに調整 */
  max-width: 80%;     /* スマホ幅には80%以内に収める */
  height: auto;
}

.hero-feature {
    margin-bottom: 3rem;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  display: block;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: white;                                 /* 背景が濃色なので白文字に */
  margin: 1rem auto 2rem;                      /* 上下マージンで余白確保 */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);    /* 背景から浮かせる影 */
  max-width: 90%;                               /* モバイル対応 */
  line-height: 1.4;
}

/* ボタン */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* セクション共通 */
.section {
    padding: 5rem 1rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent);
}

/* 特徴セクション */
.features {
    background-color: white;
}

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

.feature-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: var(--primary);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-item p {
    margin-top: auto;
}

/* 使用方法セクション */
.usage {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

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

.usage-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.usage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.usage-image {
    height: 200px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.usage-content {
    padding: 1.5rem;
}

.usage-number {
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 仕様セクション */
.specs {
    background-color: var(--light);
}

.spec-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.spec-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.spec-image .product-visual {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,68,68,0.1), rgba(255,170,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-list {
    flex: 1;
    min-width: 280px;
}

.spec-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.spec-icon {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.spec-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* 営業所選択セクション */
.branch-selector {
    background-color: white;
    padding: 5rem 1rem;
}

.branch-section {
    background-color: var(--light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.region-select {
    margin: 0 auto 2rem;
    text-align: center;
}

.region-select label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 500;
}

.region-select select {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-select select:focus {
    outline: none;
    border-color: var(--primary);
}

.region-branches {
    animation: fadeIn 0.3s ease;
}

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

.branch-list {
    max-width: 600px;
    margin: 0 auto;
}

.branch-item {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.branch-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.branch-info {
    flex: 1;
}

.branch-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.branch-phone {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
}

.call-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.call-button:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

/* CTA セクション */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* フッター */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    text-decoration: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--accent);
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
    .spec-wrapper {
        flex-direction: column;
    }
    
    .spec-image {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .usage-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .branch-info {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .call-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .spec-item {
        flex-direction: column;
    }
    
    .spec-icon {
        margin-bottom: 1rem;
    }
}

/* PCの場合は電話ボタンを非表示 */
@media (min-width: 769px) {
    .call-button {
        display: none;
    }
}