/* ========================================
   よやす研究所 - レトロスタイル CSS
   ======================================== */

/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS PGothic', 'MS Gothic', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
    background-color: #e8f4f8;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.3) 2px,
            rgba(255, 255, 255, 0.3) 4px
        );
    color: #333;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 4px solid #0066cc;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
}

/* ヘッダー */
header {
    background: linear-gradient(to bottom, #0066cc 0%, #0052a3 100%);
    border-bottom: 4px solid #ffcc00;
    padding: 0;
}

.header-banner {
    text-align: center;
    padding: 30px 20px;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
}

.header-banner h1 {
    color: #ffcc00;
    font-size: 2.5em;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    font-weight: bold;
}

.tagline {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

/* ナビゲーション */
.navbar {
    background: #ffcc00;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #ff9900;
}

.nav-link {
    padding: 15px 30px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    border-right: 2px solid #ff9900;
    transition: all 0.2s;
    display: inline-block;
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover {
    background: #ffd633;
    color: #0066cc;
}

.nav-link.active {
    background: #ff9900;
    color: #ffffff;
}

/* メインコンテンツ */
main {
    padding: 30px;
}

.content-box {
    background: #ffffff;
    border: 3px solid #0066cc;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 4px 4px 0px rgba(0, 102, 204, 0.2);
}

.content-box h2 {
    color: #0066cc;
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px dotted #ffcc00;
}

.content-box h3 {
    color: #0052a3;
    font-size: 1.4em;
    margin: 15px 0 10px 0;
}

.content-box p {
    margin-bottom: 15px;
}

.content-box.highlight {
    background: #fffef0;
    border-color: #ff9900;
}

/* 特徴リスト */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px;
    margin: 10px 0;
    background: #f0f8ff;
    border-left: 5px solid #0066cc;
    font-size: 1.05em;
}

/* 製品ハイライト */
.product-highlight {
    background: #f0f8ff;
    border: 3px dashed #0066cc;
    padding: 20px;
    margin: 15px 0;
}

.product-highlight h3 {
    color: #0066cc;
    font-size: 1.6em;
    margin-bottom: 10px;
}

/* 製品カード */
.product-card {
    background: #ffffff;
    border: 3px solid #0066cc;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 102, 204, 0.15);
}

.product-card h3 {
    color: #0066cc;
    font-size: 1.6em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

.product-card.main-product {
    background: #fffef0;
    border: 4px solid #ff9900;
    box-shadow: 6px 6px 0px rgba(255, 153, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ff3366;
    color: white;
    padding: 5px 15px;
    font-weight: bold;
    border: 3px solid #cc0033;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.product-description {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-features {
    background: #f0f8ff;
    padding: 15px;
    margin: 15px 0;
    border-left: 5px solid #0066cc;
}

.product-features h4 {
    color: #0066cc;
    margin-bottom: 10px;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 5px 0;
    font-size: 1.05em;
}

.product-info {
    background: #f5f5f5;
    padding: 15px;
    margin: 15px 0;
    border: 2px dashed #999;
}

.product-info p {
    margin: 5px 0;
}

.product-link {
    margin-top: 20px;
}

/* 警告ボックス */
.warning-box {
    background: #fff3cd;
    border: 3px solid #ff9900;
    padding: 15px;
    margin: 15px 0;
}

.warning-box p {
    margin: 0;
    color: #856404;
}

/* 更新情報ボックス */
.update-box {
    background: #e7f3ff;
    border: 3px solid #0066cc;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 4px 4px 0px rgba(0, 102, 204, 0.15);
}

.update-box h3 {
    color: #0066cc;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.update-box p {
    margin: 10px 0;
}

/* ボタン */
.button {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 3px solid #cc5200;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.button:hover {
    background: #ff7722;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.button-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 3px solid #0052a3;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.button-secondary:hover {
    background: #0077dd;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

/* ミッションテキスト */
.mission-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #0066cc;
    text-align: center;
    padding: 20px;
    background: white;
    border: 3px double #0066cc;
    margin: 20px 0;
}

/* 強みグリッド */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.strength-item {
    background: #f0f8ff;
    border: 3px solid #0066cc;
    padding: 15px;
    text-align: center;
}

.strength-item h3 {
    color: #0066cc;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.strength-item p {
    font-size: 0.95em;
    margin: 0;
}

/* 実績リスト */
.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    padding: 12px;
    margin: 10px 0;
    background: #f0fff0;
    border-left: 5px solid #00cc66;
    font-size: 1.05em;
}

/* プロセスリスト */
.process-list {
    padding-left: 20px;
}

.process-list li {
    padding: 10px 0;
    font-size: 1.05em;
}

/* 区切り線 */
.section-divider {
    border: none;
    border-top: 3px dashed #0066cc;
    margin: 30px 0;
}

.footer-line {
    border: none;
    border-top: 3px solid #0066cc;
    margin: 20px 0;
}

/* フッター */
footer {
    background: #f5f5f5;
    padding: 20px 30px;
    text-align: center;
    border-top: 4px solid #ffcc00;
}

footer p {
    margin: 10px 0;
    color: #666;
}

.footer-note {
    font-size: 0.9em;
    color: #999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header-banner h1 {
        font-size: 2em;
    }

    .navbar {
        flex-direction: column;
    }

    .nav-link {
        border-right: none;
        border-bottom: 2px solid #ff9900;
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    main {
        padding: 15px;
    }

    .content-box {
        padding: 15px;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }

    .button,
    .button-secondary {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
}

/* アニメーション */
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.product-badge {
    animation: blink 2s infinite;
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #e8f4f8;
}

::-webkit-scrollbar-thumb {
    background: #0066cc;
    border: 2px solid #e8f4f8;
}

::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}
