/* ===================================================== エンディングノート メインスタイル テーマ:白 × 薄墨 × 深緑(和モダン) ===================================================== */ @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600&family=Zen+Old+Mincho:wght@400;700&display=swap'); /* CSS変数(カラーパレット) */ :root { --color-bg: #FAFAF8; /* 白(背景) */ --color-bg-ink: #F0EDE5; /* 薄墨(カード等) */ --color-ink-light: #E8E4DC; /* 薄墨ライト(罫線) */ --color-green-dark: #2D5016; /* 深緑(メインアクセント) */ --color-green-mid: #4A7C2F; /* 中緑 */ --color-green-light:#7BA05B; /* 薄緑 */ --color-text: #2C2A27; /* 墨色(本文) */ --color-text-muted: #7A7468; /* 薄墨テキスト */ --color-caution: #C0392B; /* 朱(警告) */ --color-warning-bg: #FFF8F8; --color-success: #27AE60; --font-serif: 'Noto Serif JP', 'Georgia', serif; --font-heading: 'Zen Old Mincho', 'Noto Serif JP', serif; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --shadow-sm: 0 2px 8px rgba(0,0,0,0.08); --shadow-md: 0 4px 20px rgba(0,0,0,0.12); --transition: all 0.22s ease; } /* ===================================================== リセット・ベース ===================================================== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 18px; scroll-behavior: smooth; } /* 高齢者向けに18pxに拡大 */ body { font-family: var(--font-serif); background: var(--color-bg); color: var(--color-text); line-height: 1.75; min-height: 100vh; } a { color: var(--color-green-dark); text-decoration: none; transition: var(--transition); } a:hover { color: var(--color-green-mid); } /* ===================================================== ヘッダー ===================================================== */ .site-header { background: var(--color-green-dark); color: #fff; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.2); } .header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; } .header-brand { display: flex; align-items: center; gap: 0.6rem; } .header-kamon { font-size: 1.4rem; } .header-title { font-family: var(--font-heading); font-size: 1.1rem; letter-spacing: 0.05em; } .header-back { color: rgba(255,255,255,0.85); font-size: 0.9rem; transition: var(--transition); } .header-back:hover { color: #fff; } .header-title-center { font-family: var(--font-heading); font-size: 1rem; color: rgba(255,255,255,0.95); text-align: center; flex: 1; } .header-save-status { font-size: 0.82rem; color: rgba(255,255,255,0.7); min-width: 100px; text-align: right; } .header-save-status.saving { color: #f0d070; } .header-save-status.saved { color: #a8e6a8; } .header-save-status.error { color: #f5a5a5; } .header-nav { display: flex; align-items: center; gap: 0.75rem; } .header-nav .btn-outline, .header-nav .btn-ghost { min-height: 38px; display: inline-flex; align-items: center; } /* ===================================================== ログイン画面 ===================================================== */ .login-page { background: linear-gradient(135deg, #1a2e0e 0%, #2D5016 40%, #3d6b20 100%); display: flex; align-items: center; justify-content: center; min-height: 100vh; } .login-container { width: 100%; max-width: 420px; padding: 2rem 1.5rem; } .login-header { text-align: center; margin-bottom: 2rem; } .login-icon { display: flex; justify-content: center; margin-bottom: 0.75rem; } .login-title { font-family: var(--font-heading); font-size: 1.8rem; color: #fff; letter-spacing: 0.1em; margin-bottom: 0.4rem; } .login-subtitle { color: rgba(255,255,255,0.7); font-size: 0.9rem; } .login-card { background: rgba(255,255,255,0.97); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-md); animation: fadeInUp 0.4s ease; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .login-form-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-green-dark); margin-bottom: 1rem; } .login-note { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.25rem; } .login-form { display: flex; flex-direction: column; gap: 1rem; } .login-footer-note { text-align: center; color: rgba(255,255,255,0.55); font-size: 0.8rem; margin-top: 1.5rem; } /* ===================================================== フラッシュメッセージ ===================================================== */ .flash-msg { padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; animation: fadeIn 0.3s ease; } .flash-error { background: #fde8e8; color: #8b1a1a; border-left: 4px solid var(--color-caution); } .flash-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--color-success); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* ===================================================== フォーム共通 ===================================================== */ .form-group { display: flex; flex-direction: column; gap: 0.35rem; } .form-group label { font-size: 0.88rem; color: var(--color-text-muted); } .form-input, .form-select, .form-textarea { padding: 0.6rem 0.85rem; border: 1.5px solid var(--color-ink-light); border-radius: var(--radius-sm); font-family: var(--font-serif); font-size: 0.95rem; background: #fff; color: var(--color-text); transition: var(--transition); width: 100%; } .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--color-green-mid); box-shadow: 0 0 0 3px rgba(74,124,47,0.12); } .form-textarea { resize: vertical; min-height: 80px; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; } .form-full { grid-column: 1 / -1; } .mt-1 { margin-top: 0.5rem; } /* ラジオ・チェック */ .radio-group { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.35rem 0; } .radio-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; cursor: pointer; } .radio-label input[type="radio"], .radio-label input[type="checkbox"] { accent-color: var(--color-green-dark); width: 1rem; height: 1rem; } /* ===================================================== ボタン ===================================================== */ .btn-primary { background-color: #3a5c2e; color: #fff; border: 2px solid #3a5c2e; padding: 10px 20px; border-radius: 6px; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; } .btn-primary:hover { background-color: #2e4a24; } /* サブボタン(枠線のみ・緑統一) */ .btn-secondary { background-color: #fff; color: #3a5c2e; border: 2px solid #3a5c2e; padding: 10px 20px; border-radius: 6px; font-size: 0.95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, color 0.2s; } .btn-secondary:hover { background-color: #3a5c2e; color: #fff; } /* ボタン内のSVGアイコン色を継承させる */ .btn-primary svg, .btn-secondary svg { stroke: currentColor; } .btn-outline { display: inline-block; padding: 0.5rem 1.2rem; background: transparent; color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-sm); font-size: 0.88rem; transition: var(--transition); } .btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; } .btn-ghost { display: inline-block; padding: 0.5rem 1rem; background: transparent; color: rgba(255,255,255,0.75); font-size: 0.88rem; border-radius: var(--radius-sm); transition: var(--transition); } .btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.1); } .btn-full { width: 100%; text-align: center; } .btn-file-label { cursor: pointer; } .hidden-file-input { display: none; } /* 小ボタン(動的リスト) */ .btn-add-item { padding: 0.4rem 1rem; background: transparent; color: var(--color-green-dark); border: 1.5px dashed var(--color-green-mid); border-radius: var(--radius-sm); font-size: 0.88rem; cursor: pointer; transition: var(--transition); margin-top: 0.5rem; } .btn-add-item:hover { background: rgba(74,124,47,0.08); } .btn-delete-item { padding: 0.35rem 0.6rem; background: transparent; color: var(--color-caution); border: 1px solid var(--color-caution); border-radius: var(--radius-sm); font-size: 0.82rem; cursor: pointer; transition: var(--transition); white-space: nowrap; } .btn-delete-item:hover { background: var(--color-caution); color: #fff; } /* ===================================================== 注意書きボックス ===================================================== */ .note-box { background: #f5f2eb; border-left: 4px solid var(--color-green-mid); padding: 0.7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.87rem; color: var(--color-text-muted); margin-bottom: 1.25rem; line-height: 1.6; } .caution-box { background: var(--color-warning-bg); border-left: 4px solid #e67e22; padding: 0.7rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.87rem; color: #7d4a10; margin-bottom: 1rem; line-height: 1.6; } .caution-red { background: #fff0f0; border-left-color: var(--color-caution); color: #7a1010; } .label-note { font-size: 0.82rem; color: var(--color-caution); margin-left: 0.4rem; font-weight: normal; } /* ===================================================== ダッシュボード ===================================================== */ .main-content { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; } .reminder-banner { background: linear-gradient(90deg, #fffbf0, #fff7e0); border: 1px solid #f0c040; border-left: 5px solid #e0a020; padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); color: #7a5010; font-size: 0.9rem; margin-bottom: 1.5rem; animation: pulse 2s ease infinite alternate; } @keyframes pulse { from { box-shadow: 0 0 0 0 rgba(240,192,64,0.3); } to { box-shadow: 0 0 0 8px rgba(240,192,64,0); } } .section-heading { font-family: var(--font-heading); font-size: 1.2rem; color: var(--color-green-dark); margin-bottom: 1rem; } /* 総合完成度エリア */ .total-progress-section { margin-bottom: 2rem; } .total-progress-card { background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%); border-radius: var(--radius-lg); padding: 2.5rem 2rem; color: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-md); } .total-progress-info { flex: 1; } .total-progress-info .section-heading { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 0.25rem; } .total-progress-label { font-size: 1rem; color: rgba(255,255,255,0.85); } .total-progress-num { font-size: 4rem; font-weight: 300; line-height: 1; margin: 0.5rem 0; } .total-progress-num span { font-size: 1.5rem; } .progress-message { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.5rem; color: #fff; } .updated-date { font-size: 0.9rem; color: rgba(255,255,255,0.75); } /* 円グラフコンテナ */ .progress-circle-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; } .progress-circle { transform: none; } /* 中央テキスト */ .progress-circle-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; line-height: 1; } .progress-pct-large { font-family: 'Zen Old Mincho', serif; font-size: 2rem; font-weight: 700; } .progress-pct-unit { font-size: 0.85rem; opacity: 0.8; } /* エクスポートエリア */ .export-section { margin-bottom: 2rem; } .export-btns { display: flex; flex-wrap: wrap; gap: 1rem; } /* セクションカード */ .sections-grid { margin-bottom: 2rem; } .cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .section-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-lg); padding: 1.5rem; color: var(--color-text); transition: var(--transition); box-shadow: var(--shadow-sm); cursor: pointer; position: relative; overflow: hidden; } /* セクションごとの特殊カラー */ .sec-card[data-sec="basic"] { background-color: #dbeafe; } /* 薄い青 */ .sec-card[data-sec="family"] { background-color: #dcfce7; } /* 薄い緑 */ .sec-card[data-sec="assets"] { background-color: #fef9c3; } /* 薄い黄 */ .sec-card[data-sec="digital"] { background-color: #e0e7ff; } /* 薄い藍 */ .sec-card[data-sec="medical"] { background-color: #fce7f3; } /* 薄いピンク */ .sec-card[data-sec="funeral"] { background-color: #fae8ff; } /* 薄い紫 */ .sec-card[data-sec="will"] { background-color: #e0f2fe; } /* 薄い水色 */ .sec-card[data-sec="will_template"] { background-color: #d1fae5; } /* 薄いエメラルド */ .sec-card[data-sec="life_story"] { background-color: #ffedd5; } /* 薄いオレンジ */ /* サイドバーのナビリンク */ .nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; color: #3a3a3a; text-decoration: none; font-size: 0.9rem; transition: background 0.15s, color 0.15s; } .nav-link:hover { background: rgba(58, 92, 46, 0.08); color: #3a5c2e; } .nav-link.active { background: rgba(58, 92, 46, 0.12); color: #3a5c2e; font-weight: 600; } .nav-link svg { flex-shrink: 0; opacity: 0.75; } .nav-link.active svg, .nav-link:hover svg { opacity: 1; } .section-card:hover { transform: translateY(-2px); filter: brightness(0.96); box-shadow: 0 6px 20px rgba(0,0,0,0.1); color: var(--color-text); } .card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; } /* セクションカードアイコン */ .section-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, 0.6); color: var(--color-text); flex-shrink: 0; } .section-icon svg { display: block; width: 24px; height: 24px; } .card-body { flex: 1; display: flex; flex-direction: column; } .card-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: bold; line-height: 1.4; color: var(--color-text); margin: 0;} .card-desc { font-size: 0.75rem; color: rgba(44, 42, 39, 0.75); margin-bottom: 1rem; line-height: 1.5; flex-grow: 1;} /* 未着手は薄いグレー */ .progress-bar-track { width: 100%; height: 4px; background: #e5e7e0; border-radius: 2px; overflow: hidden; margin-bottom: 0.25rem; } /* 入力済みは緑グラデーション */ .progress-bar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #5a8a4a, #7ab86a); transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); min-width: 0; } /* 0%のときはバーを非表示にしてテキストのみ */ .progress-bar-fill[style*="width: 0"] { background: transparent; } .card-pct { font-size: 0.85rem; color: rgba(44, 42, 39, 0.8); font-weight: 500; text-align: right; margin-top: 0.1rem;} .card-arrow { display: none; } /* ===================================================== セクション編集画面レイアウト ===================================================== */ .layout-wrapper { display: flex; min-height: calc(100vh - 60px); } .sidebar { width: 220px; background: var(--color-bg-ink); border-right: 1px solid var(--color-ink-light); padding: 1rem 0; flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; } .sidebar-nav { display: flex; flex-direction: column; } .sidebar-link { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem; font-size: 0.85rem; color: var(--color-text-muted); border-left: 3px solid transparent; transition: var(--transition); } .sidebar-link:hover, .sidebar-link.active { background: rgba(45,80,22,0.08); color: var(--color-green-dark); border-left-color: var(--color-green-dark); } .sidebar-icon { font-size: 1rem; flex-shrink: 0; } .section-main { flex: 1; padding: 2rem; overflow-x: hidden; } /* フォームコンテナ */ .section-form-wrap { max-width: 760px; } .form-section-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-green-dark); margin-bottom: 1.25rem; } /* 動的リスト */ .dynamic-section { margin-bottom: 2rem; } .dynamic-title { font-family: var(--font-heading); font-size: 1rem; color: var(--color-green-dark); margin-bottom: 0.75rem; border-bottom: 1px solid var(--color-ink-light); padding-bottom: 0.4rem; } .dynamic-list { display: flex; flex-direction: column; gap: 0.6rem; } .dynamic-item { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; background: var(--color-bg-ink); padding: 0.6rem; border-radius: var(--radius-sm); animation: fadeIn 0.25s ease; } .dynamic-item .form-input, .dynamic-item .form-textarea { flex: 1; min-width: 120px; } .dynamic-item-col { flex-direction: column; align-items: stretch; } .dynamic-item-col .btn-delete-item { align-self: flex-end; } /* 前後ナビゲーション */ .section-nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-ink-light); } /* 遺言状プレビューボタンエリア */ .will-preview-btn-wrap { margin-top: 1.5rem; text-align: center; } /* ===================================================== フッター ===================================================== */ .site-footer { text-align: center; padding: 1.5rem; color: var(--color-text-muted); font-size: 0.82rem; border-top: 1px solid var(--color-ink-light); margin-top: 3rem; } /* ===================================================== レスポンシブ ===================================================== */ @media (max-width: 768px) { .layout-wrapper { flex-direction: column; } .sidebar { width: 100%; height: auto; position: relative; top: 0; overflow-x: auto; overflow-y: hidden; } .sidebar-nav { flex-direction: row; padding: 0.5rem; overflow-x: auto; } .sidebar-link { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 0.5rem 0.75rem; } .sidebar-link:hover, .sidebar-link.active { border-left-color: transparent; border-bottom-color: var(--color-green-dark); } .form-grid { grid-template-columns: 1fr; } .total-progress-card { flex-direction: column; text-align: center; gap: 1rem; } .cards-grid { grid-template-columns: repeat(2, 1fr); } .export-btns { flex-direction: column; } .section-nav-btns { flex-wrap: wrap; gap: 0.75rem; } } @media (max-width: 480px) { .cards-grid { grid-template-columns: 1fr; } } /* hidden */ .hidden { display: none; } /* ===== Aj[VGA ===== */ .sakura-tree-wrap { position: relative; width: 220px; height: 170px; flex-shrink: 0; } .sakura-tree-svg { width: 100%; height: 100%; display: block; } /* ԂтUCanvasSVGɏd˂ */ .petal-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } /* J[hCAEgFSVG + eLXg + ~Otт */ .progress-card-inner { display: flex; align-items: center; gap: 16px; width: 100%; }