/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.7;
}

/* --- ヘッダー --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 40px;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 700;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-nav a.login-button {
    border: 2px solid;
}

.header-nav a.store-login {
    border-color: #007bff;
    color: #007bff;
}
.header-nav a.store-login:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.header-nav a.user-login {
    border-color: #ed7112;
    color: #ed7112;
}
.header-nav a.user-login:hover {
    background-color: rgba(237, 113, 18, 0.05);
}

.header-nav a.signup-button {
    background-color: #ed7112;
    color: #ffffff;
    border: 2px solid #ed7112;
}
.header-nav a.signup-button:hover {
    background-color: #d1640f;
    border-color: #d1640f;
}

/* メインコンテンツ */
main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* ヒーローセクション */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    background-image: url('/static/images/32974269_s.jpg');
    background-size: cover;
    background-position: center 80%;
    color: #ffffff;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-title {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.3em;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ユーザー選択コンテナ */
.selection-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 40px 0;
}

/* カード共通スタイル */
.card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 25px 0 15px 0;
    color: #333;
    padding: 0 20px;
}

.card-description {
    font-size: 1em;
    color: #666;
    flex-grow: 1;
    margin-bottom: 30px;
    padding: 0 30px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 30px 30px 30px;
}

/* ★★★ ここからボタンのスタイルを修正・追加 ★★★ */

/* ボタン共通スタイル */
.button {
    display: inline-block;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent; /* 枠線の太さを統一 */
}

/* プライマリボタン (店舗側) - 青・塗りつぶし */
.store-card .button.primary {
    background-color: #007bff;
    color: #ffffff;
    border-color: #007bff;
}
.store-card .button.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: scale(1.03);
}

/* プライマリボタン (ユーザー側) - オレンジ・塗りつぶし */
.user-card .button.primary {
    background-color: #ed7112;
    color: #ffffff;
    border-color: #ed7112;
}
.user-card .button.primary:hover {
    background-color: #d1640f;
    border-color: #d1640f;
    transform: scale(1.03);
}

/* セカンダリボタン (店舗側) - 青・枠線 */
.store-card .button.secondary {
    background-color: #ffffff;
    color: #007bff;
    border-color: #007bff;
}
.store-card .button.secondary:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* セカンダリボタン (ユーザー側) - オレンジ・枠線 */
.user-card .button.secondary {
    background-color: #ffffff;
    color: #ed7112;
    border-color: #ed7112;
}
.user-card .button.secondary:hover {
    background-color: rgba(237, 113, 18, 0.05);
}

/* ★★★ ここまでボタンのスタイルを修正・追加 ★★★ */


/* --- How it Works Section --- */
.how-it-works-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 15px;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #343a40;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    max-width: 280px;
    padding: 20px;
}

.step-icon {
    font-size: 3em;
    color: #ed7112;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-description {
    font-size: 0.95em;
    color: #666;
}

.step-arrow {
    font-size: 2em;
    color: #ced4da;
    margin-top: 50px;
}

/* フッター */
.site-footer-bottom {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    color: #888;
    font-size: 0.9em;
    background-color: #e9ecef;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2em; }
    .hero-subtitle { font-size: 1em; }
    .card { max-width: 350px; }
}
