/* ========================================================================== ベーススタイル・共通 ========================================================================== */ :root { --theme-green: #29a745; --theme-green-dark: #1e7e34; --theme-green-light: #f0f9f2; --theme-accent: #e67e22; --bg-color: #ffffff; --text-color: #333; --gray-bg: #f8f9fa; --header-height: 60px; /* guide.html用 */ } body { margin: 0; padding: 0; background-color: var(--bg-color); font-family: "Helvetica Neue", "Arial", sans-serif; color: var(--text-color); line-height: 1.6; font-size: 16px; } /* リンクの基本スタイル */ a { color: var(--theme-green); text-decoration: none; } a:hover { text-decoration: underline; } /* ========================================================================== entry_info.html 用スタイル ========================================================================== */ /* メインコンテンツ枠 */ .container { max-width: 900px; margin: 0 auto; padding: 40px 20px 80px; } /* 1. 挨拶エリア */ .welcome-box { text-align: center; margin-bottom: 40px; } .page-title { font-size: 28px; font-weight: 800; margin-bottom: 10px; color: var(--theme-green-dark); } .status-message { background: #f0f9f2; border-left: 5px solid var(--theme-green); padding: 20px; border-radius: 4px; text-align: left; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } /* 2. マイナンバー登録エリア */ .pweb-section { background: #fff; border: 2px solid var(--theme-green); border-radius: 12px; padding: 40px 30px; margin-bottom: 60px; box-shadow: 0 5px 15px rgba(41, 167, 69, 0.1); position: relative; overflow: hidden; } .pweb-section::before { content: "必須対応"; position: absolute; top: 0; left: 0; background: var(--theme-accent); color: #fff; padding: 5px 20px; font-weight: bold; font-size: 14px; border-bottom-right-radius: 12px; } .pweb-header { text-align: center; margin-bottom: 30px; } .pweb-title { font-size: 26px; font-weight: 800; color: #333; margin-bottom: 10px; } .pweb-desc { color: #666; font-size: 16px; } /* ログイン情報カード */ .login-card { background: #f8fcf9; border: 2px solid #c3e6cb; border-radius: 8px; padding: 25px; max-width: 600px; margin: 0 auto 40px auto; box-shadow: 0 4px 10px rgba(0,0,0,0.05); } .card-head { font-weight: bold; font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px dashed #aaa; color: var(--theme-green-dark); display: flex; align-items: center; gap: 10px; } .login-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } .login-field { margin-bottom: 0; } .field-label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: bold; } .field-value { background: #fff; border: 1px solid #ccc; border-radius: 4px; padding: 10px 15px; font-family: monospace; font-size: 18px; font-weight: bold; color: #333; display: block; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); } .field-helper { font-size: 13px; color: #666; margin-top: 5px; text-align: right; } .note-red { font-size: 15px; color: #e74c3c; margin-top: 20px; font-weight: bold; background: #fff5f5; padding: 15px; border-radius: 6px; border: 1px dashed #e74c3c; text-align: center; } /* 手順フロー */ .flow-area { margin-bottom: 40px; } .flow-title { text-align: center; font-size: 18px; font-weight: bold; margin-bottom: 20px; color: #444; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); background: #fff; padding: 0 15px; z-index: 2; } .flow-container { display: flex; gap: 15px; justify-content: space-between; counter-reset: step; } .flow-step { flex: 1; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px 10px; text-align: center; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } .flow-step::before { counter-increment: step; content: "STEP " counter(step); display: block; background: var(--theme-green); color: #fff; font-size: 12px; font-weight: bold; padding: 2px 10px; border-radius: 10px; width: fit-content; margin: 0 auto 10px auto; } .flow-step:not(:last-child)::after { content: "\f054"; /* chevron-right */ font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; right: -15px; transform: translateY(-50%); color: #ccc; font-size: 18px; z-index: 1; background: #fff; height: 20px; line-height: 20px; } .step-icon { font-size: 28px; color: var(--theme-green); margin-bottom: 10px; display: block; } .step-text { font-weight: bold; font-size: 14px; line-height: 1.4; } .step-highlight { color: #d35400; font-weight: 800; display: block; margin-top: 4px;} /* アクションボタン */ .action-area { text-align: center; margin-bottom: 30px; /* 下のマージンを少し調整 */ margin-top: 40px; /* 【改修】上にマージンを追加 */ } .btn-pweb-main { display: inline-block; background-color: var(--theme-accent); color: #fff; font-size: 22px; font-weight: bold; padding: 20px 60px; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: all 0.3s; width: 100%; max-width: 500px; word-break: break-all; } .btn-pweb-main:hover { background-color: #d35400; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.25); text-decoration: none; } .url-text { font-size: 14px; color: #fff; display: block; font-weight: normal; margin-top: 5px; opacity: 0.9; } /* 画像マニュアル表示エリア */ .manual-vertical-area { margin-top: 40px; border-top: 1px dashed #ddd; padding-top: 40px; } .manual-label { text-align: center; font-size: 18px; font-weight: bold; color: #333; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; gap: 8px; } .manual-grid-vertical { display: grid; grid-template-columns: 1fr; gap: 40px; width: 100%; } .manual-item { text-align: center; } .manual-link { display: block; width: 100%; border: 2px solid #eee; border-radius: 12px; overflow: hidden; position: relative; transition: all 0.3s; background: #fff; cursor: pointer; } .manual-link:hover { border-color: var(--theme-green); box-shadow: 0 10px 25px rgba(0,0,0,0.15); transform: translateY(-2px); } .manual-img { width: 100%; height: auto; display: block; } .zoom-hint { position: absolute; bottom: 20px; right: 20px; background: rgba(41, 167, 69, 0.9); color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 15px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); pointer-events: none; display: flex; align-items: center; gap: 8px; } .manual-caption { margin-top: 15px; font-weight: bold; color: var(--theme-green-dark); font-size: 18px; } /* モーダル用スタイル */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); z-index: 2000; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; padding: 20px 0; } .modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; opacity: 1; } .modal-content { position: relative; width: 95%; max-width: 1400px; margin: auto; background: transparent; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); } .modal-img { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px; } .modal-close-btn { position: fixed; top: 20px; right: 20px; background: rgba(0,0,0,0.6); color: #fff; border: 2px solid #fff; border-radius: 50%; width: 50px; height: 50px; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2010; transition: background 0.2s; } .modal-close-btn:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); } /* メニューエリア (entry_info.html下部) */ .menu-header { text-align: center; margin-bottom: 30px; position: relative; margin-top: 50px; } .menu-header h2 { font-size: 22px; color: #555; background: #fff; display: inline-block; padding: 0 15px; z-index: 1; position: relative; } .menu-header::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid #ddd; z-index: 0; } .menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; } .menu-card { display: flex; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px; text-decoration: none; color: #333; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } .menu-card:hover { border-color: var(--theme-green); background-color: #f9fff9; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-decoration: none; } .menu-icon { font-size: 24px; color: var(--theme-green); width: 50px; text-align: center; margin-right: 15px; } .menu-content { flex: 1; } .menu-title { font-weight: bold; font-size: 18px; display: block; } .menu-desc { font-size: 13px; color: #666; } .menu-arrow { color: #ccc; } /* ========================================================================== guide.html 用スタイル ========================================================================== */ html { scroll-behavior: smooth; } /* レイアウト */ .layout-wrapper { max-width: 900px; margin: 0 auto; /* WordPressのヘッダー高さに合わせて調整が必要な場合があります */ padding-top: 20px; display: flex; gap: 30px; position: relative; } /* サイドナビ(PC用) */ .side-nav { width: 200px; flex-shrink: 0; /* WordPressのヘッダー高さに合わせて top を調整してください */ position: sticky; top: 80px; height: calc(100vh - 100px); overflow-y: auto; display: none; } .side-nav ul { list-style: none; padding: 0; margin: 0; } .side-nav li { margin-bottom: 10px; } .side-nav a { display: block; padding: 10px; color: #555; text-decoration: none; font-size: 14px; border-radius: 4px; transition: background 0.2s; } .side-nav a:hover, .side-nav a.active { background-color: var(--theme-green-light); color: var(--theme-green); font-weight: bold; } .main-content { flex: 1; padding: 0 15px 50px; min-width: 0; } /* セクション */ .section { margin-bottom: 60px; padding-top: 20px; border-top: 1px dashed #eee; scroll-margin-top: 80px; /* スクロール時の位置調整 */ } .sec-header { border-left: 6px solid var(--theme-green); padding-left: 15px; margin-bottom: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; } .sec-title { font-size: 24px; font-weight: bold; margin: 0; } .sec-sub { font-size: 13px; color: #666; background: #eee; padding: 2px 8px; border-radius: 4px; } /* 画像・情報カード */ .img-box { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .img-caption { background: #f5f5f5; padding: 8px 15px; font-weight: bold; font-size: 14px; border-bottom: 1px solid #ddd; } .img-box img { width: 100%; height: auto; display: block; } .info-card { background: #f8fcf9; border: 1px solid #c3e6cb; padding: 15px; border-radius: 6px; margin-bottom: 20px; } .info-row { margin-bottom: 8px; font-size: 15px; } .label { font-weight: bold; margin-right: 10px; color: #444; } .val { font-family: monospace; font-weight: bold; background: #fff; padding: 2px 6px; border: 1px solid #ccc; border-radius: 3px; } .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; border-radius: 8px; margin-bottom: 10px; } .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* 【改修】追加テキストリンクリストのスタイル */ .text-link-list { list-style: none; padding: 15px; margin: 10px 0 30px; /* 画像の下、次の要素との間隔 */ background: #f9f9f9; border-radius: 8px; border: 1px solid #eee; font-size: 14px; } .text-link-list li { margin-bottom: 10px; word-break: break-all; /* 長いURLの折り返し */ line-height: 1.5; } .text-link-list li:last-child { margin-bottom: 0; } .text-link-list a { color: var(--theme-green); text-decoration: underline; font-weight: bold; } .text-link-list .sub-item { margin-left: 1.2em; font-size: 0.95em; color: #555; margin-bottom: 5px; } .text-link-list i { margin-right: 6px; color: var(--theme-green); } /* ========================================================================== レスポンシブ対応 ========================================================================== */ @media (min-width: 769px) { .side-nav { display: block; } } @media (max-width: 768px) { .page-title { font-size: 24px; } .pweb-section { padding: 30px 15px; } .flow-container { flex-direction: column; gap: 15px; } .flow-step { text-align: left; display: flex; align-items: center; gap: 15px; padding: 15px; } .flow-step::before { margin: 0; flex-shrink: 0; } .flow-step:not(:last-child)::after { content: "\f078"; /* chevron-down */ top: auto; bottom: -22px; right: 50%; transform: translateX(50%); width: 20px; height: 20px; line-height: 20px; background: transparent; color: #ccc; font-size: 14px; display: block; } .step-icon { font-size: 24px; margin-bottom: 0; width: 30px; text-align: center; } .btn-pweb-main { font-size: 18px; padding: 15px 20px; } .url-text { font-size: 11px; } .manual-label { font-size: 16px; } .manual-caption { font-size: 16px; } /* guide.html用スマホナビ */ .layout-wrapper { display: block; padding-top: 0; } .mobile-nav { /* WordPressのヘッダーの下に来るように調整が必要です */ position: sticky; top: 0; z-index: 99; background: rgba(255,255,255,0.98); border-bottom: 1px solid #eee; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; } .mobile-nav a { display: inline-block; padding: 6px 15px; margin: 0 4px; color: #555; text-decoration: none; border-radius: 20px; font-size: 13px; border: 1px solid #ddd; background: #fff; } .mobile-nav a.active { background: var(--theme-green); color: #fff; border-color: var(--theme-green); } }