@charset "utf-8";
/**
 * ユーザー登録用
 *
 * create: 2025-11-27
 * update: 2026-09-15
 *
 * @package     yonde
 * @author      ik
 * @copyright   Copyright (c) 2025 , NetReal
 * @version     yonde 1.00
 *
 * 修正履歴:
 * 2026-09-18: cstConfirm()/cstAlert()（cmn.js）用のカスタムダイアログ .cst-confirm-* を追加。
 *             iOSアプリ内WebViewで window.confirm()/alert() が機能しないための代替。
 * 2026-09-15: public/*.html のフォント統一（index_1.html 基準）。--font-family-base 変数を追加し、
 *             body・ボタン・フォーム部品に適用（PDF：読んで修正_TOPページ20260915.pdf）。
 * 2026-08-29: 横スクロール(はみ出し)診断パネル（.ovf-diag-*）のスタイルを追加。
 *             cmn.js の診断ツール（URL に ?ovf=1 指定時のみ動作）用。原因特定後は削除可。
 * 2026-08-26: 「お問い合わせ▶」ボタンの形状を cont.html CTA帯内「無料ではじめる▶」
 *             （cont.css .btn-cont-cta）と同一に変更（角丸50px→8px、padding 0.7→0.9rem、
 *             hover挙動も統一）。配色は白帯上での視認性維持のため白地・緑枠・濃緑文字のまま。
 * 2026-08-26: 「お問い合わせ▶」ボタンの位置ズレ・拡縮時のブレを修正。揃える基準を
 *             ヘッダーボタンから cont.html のCTA帯内「無料ではじめる▶」ボタンに変更し、
 *             .footer-contact-inner を .cont-wrap と同一の max-width:840px 中央寄せ＋
 *             CTA帯と同じ右パディング(2.5rem、モバイル1.5rem)に変更。
 *             .footer-contact-spacer（ヘッダー基準のダミー要素方式）は廃止。
 * 2026-08-25: フッタ手前の「お問い合わせ▶」ボタン用に .footer-contact-band / .btn-footer-contact を追加
 *             （PDF：読んで修正_契約ページ0825.pdf）。
 */


/* ==========================================
   カスタム色変数
   ========================================== */
:root {
    --color-primary-green: #389a6e;
    --color-dark-green: #276f4d;
    --color-light-green: #57b38a;
    --color-lighter-green: #cfebd3;
    --color-bg-cream: #fffcf1;
    --color-pink: #FA6775;
    --color-red: #c2203d;
    --color-yellow: #e3ea85;
    --color-text-dark: #000000;
    --color-text-gray: #666666;
    --header-height: 85px;
    /* public/*.html 共通フォント（index_1.html 基準）。各ページCSSで font-family を上書きしない */
    --font-family-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ==========================================
   基本スタイル
   ========================================== */
body {
    font-family: var(--font-family-base);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* ボタン・フォーム部品もページ共通フォントに統一
   （Bootstrapの .btn / reboot は inherit だが、ページ固有CSSでの上書きを防ぐため明示） */
.btn,
button,
input,
select,
textarea,
a[class*="btn-"] {
    font-family: var(--font-family-base);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

section[id] {
    scroll-margin-top: var(--header-height);
}

/* ==========================================
   Header
   ========================================== */
.header-custom {
    background-color: var(--color-bg-cream) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-custom .navbar {
    height: 100%;
    padding: 0;
}

.header-custom .container {
    height: 100%;
}

.logo-img {
    width: 136.5px;
    height: auto;
}


.header-custom .nav-link {
    color: var(--color-text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

.header-custom .nav-link:hover,
.header-custom .nav-link.active {
    color: var(--color-primary-green) !important;
}

.btn-nav-start {
    display: inline-block;
    background-color: #389a6e;
    color: white !important;
    border: none;
    padding: 0.72rem 1.44rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-nav-start:hover {
    background-color: #276f4d;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 154, 110, 0.4);
}

.btn-login {
    background-color: var(--color-red);
    color: white !important;
    border: none;
    padding: 0.72rem 1.44rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #a01a31;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 32, 61, 0.4);
}

/* ==========================================
   Footer 手前のお問い合わせボタン
   ========================================== */
.footer-contact-band {
    background-color: #fff;
    padding: 2rem 0;
    text-align: right;
}

/* 形状は cont.html のCTA帯内「無料ではじめる▶」ボタン（cont.css .btn-cont-cta）と同一。
   ただし配置される帯の背景が白のため、配色のみ白地に緑枠・緑文字を維持している
   （CTAボタンと同じ白背景・枠なしでは背景に溶けて見えなくなるため）。 */
.btn-footer-contact {
    display: inline-block;
    background-color: #fff;
    color: var(--color-dark-green);
    border: 2px solid var(--color-primary-green);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-footer-contact:hover {
    color: var(--color-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 「お問い合わせ▶」の水平位置を、cont.html のCTA帯内「無料ではじめる▶」ボタンに
   揃えるための内側ラッパー。cont.html の .cont-wrap（max-width:840px・中央寄せ）と
   .cont-cta-band の右パディング(2.5rem)を再現することで、画面幅を拡縮しても
   常に同じ位置に表示される（Bootstrapの.containerと異なり段階変化しない）。 */
.footer-contact-inner {
    max-width: 840px;
    margin: 0 auto;
    padding-right: 2.5rem;
    text-align: right;
}

@media (max-width: 767px) {
    /* モバイルではCTA帯のパディングが1.5remになるため合わせる */
    .footer-contact-inner {
        padding-right: 1.5rem;
    }
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: linear-gradient(to right, #2d523f 0%, #389a6e 35%, #389a6e 100%);
    color: white;
    padding: 3rem 0;
}

.footer-logo-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-logo {
    max-width: 50%;
    height: auto;
}

.footer-icon {
    height: 2.2rem;
    width: auto;
    margin-right: 0.5rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-heading a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-heading a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-company {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.footer-company p {
    margin-bottom: 0.25rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright p {
    margin: 0;
}

/* ==========================================
   Page Content (Contact, FAQ共通)
   ========================================== */
.page-content {
    padding-top: calc(var(--header-height) + 1rem);
    min-height: 100vh;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #555;
}

/* ==========================================
   レスポンシブ対応
   ========================================== */
@media (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }

    /* ハンバーガーメニュー展開時のスタイル */
    .navbar-collapse {
        background-color: var(--color-bg-cream);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* ログインボタンをモバイルでフル幅に */
    .navbar-collapse .btn-login {
        width: 100%;
        margin-top: 1rem;
    }
}


/* ==========================================
   横スクロール(はみ出し)診断パネル
   cmn.js の診断ツール（URL に ?ovf=1 指定時のみ動作）用。
   原因特定後は本ブロックごと削除してよい。
   ========================================== */
.ovf-diag-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483647;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px 10px 12px;
    background: rgba(17, 24, 39, 0.95);
    color: #f9fafb;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ovf-diag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 6px;
}

.ovf-diag-close {
    background: transparent;
    border: 0;
    color: #f9fafb;
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.ovf-diag-info {
    color: #fcd34d;
    margin-bottom: 6px;
    word-break: break-all;
}

.ovf-diag-list {
    margin: 0;
    padding-left: 1.1em;
    list-style: decimal;
}

.ovf-diag-list li {
    margin-bottom: 3px;
    word-break: break-all;
}

.ovf-diag-rescan {
    margin-top: 8px;
    padding: 4px 10px;
    background: #374151;
    color: #f9fafb;
    border: 1px solid #6b7280;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

/* ==========================================
   カスタム確認/警告ダイアログ（cstConfirm/cstAlert、cmn.js）
   iOSアプリ内WebViewで window.confirm()/alert() が機能しないための代替。
   ========================================== */
.cst-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cst-confirm-box {
    background: #fff;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cst-confirm-msg {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
    margin-bottom: 20px;
}

.cst-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cst-confirm-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.cst-confirm-btn-cancel {
    background: #e9ecef;
    color: #333;
}

.cst-confirm-btn-cancel:hover {
    background: #dee2e6;
}

.cst-confirm-btn-ok {
    background: var(--color-primary-green, #389a6e);
    color: #fff;
}

.cst-confirm-btn-ok:hover {
    background: var(--color-dark-green, #276f4d);
}
