@charset "utf-8";

/* --- 変数定義 (Modern Design System) --- */
:root {
    --primary-color: #138056; /* ボタン・タイトルのメイン色 */
    --error-color: #bf0000;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --border-color: #bbbbbb;
}

/* --- リセット & 基本設定 --- */
html, body, div, span, h1, h2, h3, p, a, ul, li, form, label, footer, header, section {
    margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; box-sizing: border-box;
}
ol, ul { list-style: none; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "メイリオ", sans-serif;
    background-color: var(--bg-color);
    color: #333;
    line-height: 1.5;
}

/* ▼ ボタンや入力欄のフォントをサイト全体に合わせる（メイリオ適用） ▼ */
button, input, select, textarea { 
    font-family: inherit; 
}

/* --- レイアウト --- */
#wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 22px 10px 50px;
}

#header {
    background: #fff;
    padding: 10px 0;
}
#header .inner {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
}
#header h1 img {
    width: 200px;
    height: auto;
}

/* --- コンテンツ共通パーツ --- */
h2.user_ttl {
    margin: 0 auto; /* 中央に配置する */
    padding: 10px 15px;
    font-size: 1rem !important; 
    font-weight: bold;
    color: #fff;
    background: #009999;
    border: 1px solid var(--border-color);
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    max-width: 800px !important; /* 下の白枠に合わせて最大800pxに揃える */
    width: 100%;
    box-sizing: border-box;
}

/* フォームを包む白いボックス */
.login, .regist-inner-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 20px;
    max-width: 800px; /* 規約などの文章が読みやすい幅に設定 */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    box-sizing: border-box;
}

/* --- フォーム要素（お問い合わせ用などに残す） --- */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.required {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-left: 5px;
}
.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* 入力フィールドの統一 */
input[type="text"], 
input[type="password"], 
input[type="email"], 
select,
textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 16px !important;
}

/* textarea以外の入力欄だけに height: auto を適用する */
input[type="text"], 
input[type="password"], 
input[type="email"], 
select {
    height: auto !important;
}

/* textarea専用設定（縦方向のみリサイズ可能にする） */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* チェックボックス・ラジオボタン */
input[type="checkbox"], 
input[type="radio"] {
    width: auto !important;
    height: auto !important;
    margin-right: 5px;
    cursor: pointer;
    vertical-align: middle;
}
.checkbox-label, .radio-group label {
    display: inline-block;
    font-weight: normal;
    margin-right: 15px;
    cursor: pointer;
}

/* --- ボタン --- */
.btn-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 15px !important;
    width: 100% !important;
    border-radius: 6px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}
.btn-submit:hover { opacity: 0.9; }

.btn-danger {
    background: #555;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    transition: 0.2s;
}

.btn-submit:active, .btn-danger:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* --- エラー表示 --- */
.error-summary {
    background-color: #fff5f5;
    border: 1px solid var(--error-color);
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: var(--error-color);
    font-weight: bold;
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}
.input-error {
    border: 2px solid var(--error-color) !important;
    background-color: #fff0f0 !important;
    transition: all 0.3s ease;
}
.input-error:focus {
    box-shadow: 0 0 0 3px rgba(191, 0, 0, 0.2) !important;
}

/* =======================================================
   フォーム用 必須・任意バッジ
======================================================= */
.badge-req {
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

.badge-opt {
    background-color: #a0aec0;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    display: inline-block;
}

/* =======================================================
   よくある質問 (FAQ) 専用スタイル
======================================================= */
.faq-container {
    padding: 30px;
    color: #333;
}
.faq-category-title {
    font-size: 1.1rem;
    color: #138056;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}
.faq-category-title:first-child {
    margin-top: 0;
}

.faq-item {
    margin-bottom: 20px; /* ▼ 修正: 直書きスタイルから移行 (10px -> 20px) */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.faq-question {
    background: #f8fafc;
    padding: 15px 20px 15px 45px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    user-select: none;
}
.faq-question:hover {
    background: #f1f5f9;
}
.faq-question::before {
    content: "Q.";
    position: absolute;
    left: 15px;
    color: #3b82f6;
    font-size: 1.1rem;
}
.faq-question::after {
    content: "＋";
    position: absolute;
    right: 20px;
    color: #94a3b8;
    font-weight: bold;
    transition: transform 0.3s;
}
.faq-item.is-open .faq-question::after {
    content: "－";
    color: #138056;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #fff;
    position: relative;
}
.faq-item.is-open .faq-answer {
    /* ▼ 修正: 直書きスタイルから移行し、下部のpaddingを20pxに固定 (padding-bottom: 20px を統合) */
    padding: 20px 20px 20px 45px;
    border-top: 1px dashed #e2e8f0;
}
.faq-answer::before {
    content: "A.";
    position: absolute;
    left: 15px;
    top: 20px;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1rem;
    display: none;
}
.faq-item.is-open .faq-answer::before {
    display: block;
}
.faq-answer p {
    margin-bottom: 1em; /* ▼ 修正: 直書きスタイルから移行 (10px -> 1em) */
    font-size: 0.9rem;
    line-height: 1.6;
}
.faq-answer p:last-child {
    margin-bottom: 0; /* (※元々定義されていましたがそのまま生かします) */
}
.faq-answer a {
    color: #3366ff;
    text-decoration: underline;
}
.faq-answer a:hover {
    color: #1e3a8a;
}

/* =======================================================
   お問い合わせ (contact.php) 専用スタイル
======================================================= */
.contact-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}
.msg-success {
    background: #dcfce7;
    color: #16a34a;
    padding: 20px 25px;       /* 💡 左右の余白を少し広げて読みやすく */
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin: 0 auto 25px auto; /* 💡 枠自体を画面の中央（センター）に配置 */
    max-width: 600px;         /* 💡 PCの大画面でも1行が長くなりすぎない最適な横幅 */
    font-weight: bold;
    text-align: left;         /* 💡 文字の開始位置を左に揃えて劇的に読みやすく */
    line-height: 1.7;         /* 💡 行間を少し広げて視線移動をスムーズに */
}
.msg-error {
    background: #fee2e2;
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

/* =======================================================
   利用規約・プライバシーポリシー 専用スタイル
======================================================= */
.policy-container {
    text-align: left;
    padding: 40px 30px;
    color: #333;
}
.policy-container p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.policy-section {
    margin-bottom: 35px;
}
.policy-section h3 {
    font-size: 1.1rem;
    color: #138056; /* メインカラー */
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}
.policy-list {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.policy-list li {
    margin-bottom: 8px;
}

/* --- フッター --- */
#footer {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

/* --- レスポンシブ --- */
@media (max-width: 767px) {
    #header h1 img { width: 150px; }
    #wrapper { padding: 10px; }
    .login, .regist-inner-container { padding: 15px; }
}