/* ==========================================
   カラーパレット設定
   ========================================== */
:root {
    --color-main: #4591A0;      /* メイン（青緑） */
    --color-accent: #b3ac00;    /* アクセント（ゴールド・マスタード） */
    --color-sub: #8C857B;       /* サブ（シックなグレージュ） */
    --color-bg-light: #E5E0D8;  /* 背景・枠線 */
    --color-white: #FFFFFF;
    --color-text: #333333;
}

/* 全体設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", MeiRyo, sans-serif;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
    background-color: #ffffff;
}

p {
    font-size: 16px;
    line-height: 1.8;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    margin: 0;
    line-height: 1;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    color: var(--color-main);
    font-weight: bold;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--color-main);
    font-weight: bold;
}

/* ボタン類 */
.btn-primary {
    background-color: var(--color-main);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    background-color: var(--color-accent);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.nav .btn-contact {
    background-color: var(--color-main);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
}

/* ヒーローセクション */
.hero {
    background-color: #f4efe6;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 32px;
    color: var(--color-main);
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 共通セクション設定 */
.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

/* 見出しの色統一 */
.section-title,
h2, h3 {
    color: var(--color-main) !important;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
}

.section-description {
    color: #666;
    font-size: 15px;
}

/* カードスタイル */
#about {
    background-color: #ffffff;
    padding: 60px 0;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.card h3 {
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 10px;
    margin-top: 0;
}

.card h4 {
    color: var(--color-accent);
    margin-top: 25px;
    margin-bottom: 5px;
}

/* ==========================================
   「仕組み」ページ専用スタイル
   ========================================== */
.step-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin: 40px 0 50px 0;
}

.step-card {
    background-color: #ffffff;
    border: 1px solid var(--color-bg-light);
    border-top: 4px solid var(--color-main);
    border-radius: 8px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-badge {
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.step-title {
    color: var(--color-main) !important;
    font-size: 18px;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.step-role {
    color: var(--color-sub);
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.step-text {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* 補足ボックス */
.feature-box {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-left: 5px solid var(--color-main);
    border-radius: 0 8px 8px 0;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.feature-box h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: var(--color-main) !important;
}

.feature-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* フッター */
.footer {
    background-color: var(--color-main);
    color: #ffffff !important;
    text-align: center;
    padding: 25px 0;
    font-size: 13px;
    margin-top: 60px;
}

.footer p {
    margin: 0;
    color: #ffffff !important;
}

/* フッター */
.footer {
    background-color: var(--color-main);
    color: #ffffff !important;
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-sns a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    transition: background-color 0.3s, opacity 0.3s;
}

.footer-sns a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 0.9;
}

.footer-sns svg {
    stroke: #ffffff;
}

.footer p {
    margin: 0;
    color: #ffffff !important;
    font-size: 12px;
}

/* ==========================================
   お問い合わせページ（contact.html）用スタイル
   ========================================== */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 15px;
}

.form-label .badge-required {
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-label .badge-optional {
    background-color: #95a5a6;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--color-main);
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 145, 160, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-submit-wrapper {
    text-align: center;
    margin-top: 35px;
}

.btn-submit {
    background-color: var(--color-main);
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #387783;
}

/* ==========================================
   JS連動用追加スタイル
   ========================================== */

/* スクロール時のヘッダー */
.header.is-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* ページトップへ戻るボタン */
.page-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background-color: var(--color-main);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 99;
}

.page-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-top-btn:hover {
    transform: translateY(-3px);
    background-color: #387783;
}

/* スマホ用ハンバーガーボタン（デフォルト非表示） */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* レスポンシブ（スマホ表示時のナビゲーション切り替え） */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        display: none;
    }

    .nav.is-active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
}