:host { position: relative; display: block; min-height: 100vh; background: #f4eee4; color: #2f2720; } .danka-detail-page { display: flex; align-items: flex-start; gap: 8px; background: #f4eee4; } .danka-detail-main { flex: 1; padding-right: 34px; box-sizing: border-box; } .detail-panel { min-height: 650px; padding: 26px 34px 36px; background: #ffffff; border: 2px solid #d8caba; border-radius: 76px; box-sizing: border-box; } .page-title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; } .page-title-row h1 { margin: 0 0 8px; color: #2f2720; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: 0.02em; } .tab-list { display: flex; align-items: center; gap: 8px; } .tab-button { width: 150px; height: 42px; border: 2px solid #d8caba; border-radius: 6px; background: #f1e7d8; color: #2f2720; font-size: 16px; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .tab-button.active { background: #8a6543; border-color: #8a6543; color: #ffffff; } .tab-button:hover { background: #eadfce; } .tab-button.active:hover { background: #765639; } .edit-button { width: 140px; height: 46px; margin-top: 36px; border: 2px solid #8a6543; border-radius: 6px; background: #ffffff; color: #8a6543; font-size: 18px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .edit-button:hover { background: #f6efe6; } .family-summary { min-height: 64px; margin-bottom: 28px; padding: 12px 22px; border: 2px solid #d8caba; border-radius: 14px; background: #eadfce; display: flex; align-items: center; box-sizing: border-box; } .family-name-area { display: flex; align-items: baseline; gap: 18px; } .family-name { margin: 0; color: #2f2720; font-size: 28px; font-weight: 800; line-height: 1.1; } .family-head { margin: 0; color: #6f6257; font-size: 16px; } .family-address p { margin: 2px 0; color: #2f2720; font-size: 16px; } .memo-button { width: 150px; height: 40px; border: 2px solid #d8caba; border-radius: 6px; background: #ffffff; color: #2f2720; font-size: 16px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .memo-button:hover { background: #f6efe6; } .add-button { width: 140px; height: 46px; margin-top: 36px; border: 2px solid #8a6543; border-radius: 6px; background: #ffffff; color: #8a6543; font-size: 18px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .add-button:hover { background: #f6efe6; } .family-page-add-button { width: 140px; height: 46px; margin-top: 36px; border: 2px solid #8a6543; border-radius: 6px; background: #ffffff; color: #8a6543; font-size: 18px; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .family-page-add-button:hover { background: #f6efe6; } .detail-content { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; align-items: start; } .basic-info-section { padding-left: 0; } .section-heading { margin-bottom: 8px; } .section-heading h2 { margin: 0; color: #2f2720; font-size: 22px; font-weight: 800; } .section-heading p { margin: 3px 0 0; color: #7b6b5c; font-size: 14px; } .info-form { width: 100%; } .info-pair-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; } .info-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; margin-top: 0; } .info-form > .info-row { margin-top: 10px; } .info-label { color: #4b3c31; font-size: 17px; font-weight: 800; } .info-value { min-height: 40px; padding: 8px 12px; border: 2px solid #d8caba; border-radius: 6px; background: #fffdf9; color: #2f2720; font-size: 17px; box-sizing: border-box; display: flex; align-items: center; } .phone-row { align-items: start; } .phone-row .info-label { padding-top: 8px; } .phone-table { width: 100%; } .phone-header, .phone-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; } .phone-header { min-height: 36px; padding: 0 10px; border: 2px solid #d8caba; border-radius: 6px; background: #eadfce; color: #5a4a3c; font-size: 15px; font-weight: 800; box-sizing: border-box; } .phone-item { min-height: 52px; margin-top: 4px; padding: 0 10px; border: 2px solid #d8caba; border-radius: 8px; background: #fffdf9; color: #2f2720; font-size: 16px; box-sizing: border-box; } .status-panel { min-height: 382px; padding: 24px 22px 22px; border: 2px solid #d8caba; border-radius: 62px; background: #fffdf9; box-sizing: border-box; } .status-panel h2 { margin: 0 0 18px; color: #2f2720; font-size: 22px; font-weight: 800; } .status-card-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; } .status-card { min-height: 104px; padding: 14px 18px; border: 2px solid #d8caba; border-radius: 14px; background: #ffffff; color: #2f2720; text-decoration: none; box-sizing: border-box; } .status-card:hover { background: #f6efe6; } .status-label { margin: 0; color: #7b6b5c; font-size: 16px; } .status-count { margin: 2px 0 0; color: #2f2720; font-size: 32px; font-weight: 800; line-height: 1.1; } .status-link { margin: 4px 0 0; color: #7b6b5c; font-size: 14px; } .next-memorial { margin-bottom: 20px; } .next-memorial h3 { margin: 0 0 8px; color: #4b3c31; font-size: 17px; font-weight: 800; } .memorial-card { min-height: 72px; padding: 14px 20px; border: 2px solid #d8caba; border-radius: 10px; background: #ffffff; box-sizing: border-box; } .memorial-title { margin: 0; color: #2f2720; font-size: 16px; font-weight: 800; } .memorial-text { margin: 4px 0 0; color: #7b6b5c; font-size: 14px; } .status-button-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .status-button { height: 48px; border: 2px solid #d8caba; border-radius: 8px; background: #ffffff; color: #2f2720; font-size: 16px; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .status-button:hover { background: #f6efe6; } .bottom-note { width: 700px; margin: 18px 0 22px 36px; padding: 4px 12px; border: 2px solid #d8caba; border-radius: 4px; background: #eadfce; color: #7b6b5c; font-size: 14px; box-sizing: border-box; } /* ========================= 家族タブ ========================= */ .family-tab-content { margin-top: 24px; } .family-tab-content .section-heading { margin-bottom: 16px; h2 { margin: 0; font-size: 20px; font-weight: 700; } } .family-list-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 20px; background: #efe4d6; border: 2px solid #d8c2aa; border-radius: 12px; } .family-search-box { flex: 1; min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; } .family-search-label { color: #4b3c31; font-size: 16px; font-weight: 800; } .family-search-box input { width: 100%; height: 42px; padding: 0 14px; border: 2px solid #d8c2aa; border-radius: 8px; background: #fffdf9; color: #2f2720; font-size: 15px; font-weight: 700; box-sizing: border-box; } .family-table-section { margin-top: 16px; } .family-table { display: grid; gap: 8px; } .family-table-header, .family-table-row { display: grid; grid-template-columns: 1.1fr 1.1fr 0.8fr 0.6fr 1fr 1.2fr 80px; gap: 10px; align-items: center; } .family-table-action { display: flex; justify-content: center; align-items: center; } .family-edit-link { width: 64px; height: 34px; border: 2px solid #8a6543; border-radius: 6px; background: #ffffff; color: #8a6543; font-size: 14px; font-weight: 800; text-decoration: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .family-edit-link:hover { background: #f6efe6; } .event-status-select { width: 84px; height: 34px; padding: 0 8px; border: 2px solid #d8c2aa; border-radius: 6px; background: #ffffff; color: #6f6256; font-size: 13px; font-weight: 800; cursor: pointer; box-sizing: border-box; outline: none; } .event-status-select.sent { border-color: #8a6543; background: #f1e7d8; color: #8a6543; } .event-status-select:focus { border-color: #8a6543; box-shadow: 0 0 0 3px rgba(138, 101, 67, 0.15); } .family-table-header { padding: 12px 14px; background: #efe4d6; border: 2px solid #d8c2aa; border-radius: 10px; font-size: 14px; font-weight: 700; color: #111111; } .family-table-row { min-height: 56px; padding: 12px 14px; background: #fffaf3; border: 2px solid #d8c2aa; border-radius: 10px; font-size: 15px; color: #111111; } .family-table-row:hover { background: #fff4e8; } /* 既存の .family-name と名前がかぶるので、家族表の中だけに効かせる */ .family-table-row .family-person-name { margin: 0; font-size: 15px; font-weight: 700; color: #111111; } .family-member-table { gap: 0; border: 2px solid #d8c2aa; border-radius: 8px; overflow: hidden; } .family-member-table .family-table-header, .family-member-table .family-table-row { grid-template-columns: 1.35fr 0.75fr 1.05fr 1fr 1.2fr 168px; gap: 12px; border: 0; border-radius: 0; } .family-member-table .family-table-header { min-height: 46px; padding: 0 14px; background: #efe4d6; } .family-member-table .family-table-row { min-height: 78px; padding: 10px 14px; background: #fffdf9; border-top: 1px solid #d8c2aa; } .family-member-table .family-table-row:hover { background: #fff8ee; } .family-person-sub, .family-person-date { margin: 0; } .family-person-sub { margin-top: 4px; color: #111111; font-size: 13px; line-height: 1.35; } .family-person-date { color: #111111; font-size: 15px; } .family-member-table .family-table-action { justify-content: center; gap: 8px; } .family-member-table .family-table-header > div:last-child { text-align: center; } .family-member-table .family-edit-link { width: 74px; } .kakocho-member-table .family-table-header, .kakocho-member-table .family-table-row { grid-template-columns: 1.25fr 1.15fr 1.05fr 0.65fr 0.6fr 1.1fr 82px; } .event-member-table .family-table-header, .event-member-table .family-table-row { grid-template-columns: 1.35fr 1fr 0.75fr 1.05fr 0.95fr 96px; } .event-member-table .event-status-select { width: 90px; } .event-member-table .family-table-header > div:last-child, .event-member-table .family-table-row > div:last-child { text-align: center; } .empty-family-message { padding: 20px; background: #fffaf3; border: 2px solid #d8c2aa; border-radius: 12px; color: #6f6256; font-weight: 700; } .family-support-area { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; } .support-card { padding: 18px 20px; background: #fffaf3; border: 2px solid #d8c2aa; border-radius: 14px; h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: #5d3b24; } p { margin: 0; font-size: 14px; color: #6f6256; line-height: 1.7; } } .coming-soon-section { margin-top: 24px; } .coming-soon-section .section-heading { margin-bottom: 16px; h2 { margin: 0; font-size: 20px; font-weight: 700; } } /* ========================= 家系図タブ ========================= */ .family-tree-tab-content { margin-top: 24px; } .family-tree-tab-content .section-heading { margin-bottom: 16px; } .family-tree-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; } .family-tree-area { min-height: 460px; padding: 22px; background: #fffaf3; border: 2px solid #d8c2aa; border-radius: 18px; box-sizing: border-box; } .family-tree-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; } .family-tree-title { margin: 0; color: #2f2720; font-size: 20px; font-weight: 800; } .family-tree-caption { margin: 4px 0 0; color: #7b6b5c; font-size: 14px; line-height: 1.6; } .family-tree-action-list { display: flex; gap: 10px; flex-shrink: 0; } .tree-action-button { min-width: 112px; height: 38px; padding: 0 14px; border: 2px solid #d8caba; border-radius: 6px; background: #ffffff; color: #2f2720; font-size: 14px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .tree-action-button:hover { background: #f6efe6; } .family-tree-card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; } .family-tree-card { min-height: 112px; padding: 16px 18px; border: 2px solid #d8c2aa; border-radius: 14px; background: #ffffff; color: #2f2720; text-align: left; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; } .family-tree-card:hover { background: #f6efe6; } .family-tree-card.active { border-color: #8a6543; background: #eadfce; box-shadow: 0 0 0 3px rgba(138, 101, 67, 0.16); } .tree-card-name { color: #5d3b24; font-size: 18px; font-weight: 800; } .tree-card-relationship { color: #2f2720; font-size: 14px; font-weight: 700; } .tree-card-birth { color: #7b6b5c; font-size: 13px; } .family-tree-side-panel { min-height: 460px; padding: 24px 22px; background: #fffdf9; border: 2px solid #d8caba; border-radius: 36px; box-sizing: border-box; } .family-tree-side-panel h3 { margin: 0 0 16px; color: #2f2720; font-size: 20px; font-weight: 800; } .selected-person-card { margin-bottom: 18px; padding: 16px 18px; background: #eadfce; border: 2px solid #d8caba; border-radius: 14px; box-sizing: border-box; } .selected-person-name { margin: 0; color: #2f2720; font-size: 22px; font-weight: 800; line-height: 1.2; } .selected-person-sub { margin: 4px 0 0; color: #7b6b5c; font-size: 14px; } .selected-info-list { display: grid; gap: 10px; } .selected-info-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: #ffffff; border: 2px solid #d8caba; border-radius: 8px; box-sizing: border-box; } .selected-info-row span { color: #7b6b5c; font-size: 14px; font-weight: 700; } .selected-info-row strong { color: #2f2720; font-size: 15px; font-weight: 800; line-height: 1.6; } .children-row strong { display: flex; flex-wrap: wrap; gap: 6px; } .child-name { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border-radius: 999px; background: #f1e7d8; color: #5d3b24; font-size: 13px; font-weight: 800; } .marriage-summary-panel { margin-top: 18px; padding: 14px 16px; background: #fffaf3; border: 2px solid #d8caba; border-radius: 12px; box-sizing: border-box; } .marriage-summary-panel h4 { margin: 0 0 12px; color: #2f2720; font-size: 16px; font-weight: 800; } .marriage-summary-block + .marriage-summary-block { margin-top: 14px; } .marriage-summary-label { margin: 0 0 8px; color: #7b6b5c; font-size: 13px; font-weight: 800; } .marriage-history-list { display: grid; gap: 8px; } .marriage-person-button { width: 100%; min-height: 40px; padding: 8px 10px; border: 2px solid #8a6543; border-radius: 8px; background: #ffffff; color: #2f2720; font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; } .marriage-person-button:hover { background: #f6efe6; } .marriage-person-button small { color: #7b6b5c; font-size: 12px; font-weight: 800; } .marriage-person-button.secondary { border-color: #d8caba; } .marriage-empty-text { margin: 0; color: #7b6b5c; font-size: 14px; font-weight: 700; } .selected-person-actions { display: grid; gap: 10px; margin-top: 18px; } .selected-person-button { min-height: 42px; border: 2px solid #8a6543; border-radius: 6px; background: #8a6543; color: #ffffff; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-sizing: border-box; } .selected-person-button:hover { background: #765639; } .selected-person-button.secondary { background: #ffffff; color: #8a6543; } .selected-person-button.secondary:hover { background: #f6efe6; } /* ========================= 家系図 図式レイアウト ========================= */ .family-tree-diagram { min-height: 330px; padding: 28px 18px; background: #fffdf9; border: 2px dashed #d8c2aa; border-radius: 18px; box-sizing: border-box; display: grid; gap: 34px; } .tree-generation { display: flex; justify-content: center; align-items: center; gap: 18px; position: relative; } .parent-generation { padding-bottom: 8px; } .main-generation { padding: 8px 0; } .child-generation { padding-top: 8px; flex-wrap: wrap; } .family-tree-card.small { min-height: 86px; max-width: 180px; } .family-tree-card.main-person { min-width: 210px; } .family-tree-card.spouse-person { min-width: 190px; } /* 本人と配偶者の間の線 */ .main-generation .main-person::after { content: ""; position: absolute; top: 50%; right: -20px; width: 20px; height: 2px; background: #8a6543; } /* カードを線の基準にする */ .main-generation .family-tree-card { position: relative; } /* 親世代から本人世代への縦線 */ .parent-generation::after { content: ""; position: absolute; bottom: -28px; left: 50%; width: 2px; height: 28px; background: #d8c2aa; transform: translateX(-50%); } /* 本人世代から子世代への縦線 */ .main-generation::after { content: ""; position: absolute; bottom: -30px; left: 50%; width: 2px; height: 30px; background: #d8c2aa; transform: translateX(-50%); } /* 子どもがいない場合の文言 */ .tree-empty-text { margin: 0; padding: 12px 18px; background: #ffffff; border: 2px solid #d8c2aa; border-radius: 10px; color: #7b6b5c; font-size: 14px; font-weight: 700; } .family-tree-member-list { margin-top: 18px; padding: 16px 18px; background: #ffffff; border: 2px solid #d8c2aa; border-radius: 14px; box-sizing: border-box; } .member-list-title { margin: 0 0 10px; color: #5d3b24; font-size: 15px; font-weight: 800; } .member-chip-list { display: flex; flex-wrap: wrap; gap: 8px; } .member-chip { min-height: 34px; padding: 6px 12px; border: 2px solid #d8caba; border-radius: 999px; background: #fffdf9; color: #2f2720; font-size: 14px; font-weight: 700; cursor: pointer; } .member-chip:hover { background: #f6efe6; } .member-chip.active { border-color: #8a6543; background: #8a6543; color: #ffffff; } /* 家族表が狭い画面では横スクロール */ @media (max-width: 800px) { .family-list-summary { align-items: flex-start; flex-direction: column; } .family-search-box { width: 100%; grid-template-columns: 1fr; } .family-table { overflow-x: auto; } .family-table-header, .family-table-row { min-width: 880px; } .family-support-area { grid-template-columns: 1fr; } //家系図タブ .family-tree-layout { grid-template-columns: 1fr; } .family-tree-toolbar { flex-direction: column; } .family-tree-action-list { width: 100%; flex-direction: column; } .tree-action-button { width: 100%; } .family-tree-side-panel { border-radius: 28px; } .selected-info-row { grid-template-columns: 1fr; gap: 4px; } .family-tree-diagram { padding: 22px 12px; gap: 26px; } .tree-generation { flex-direction: column; gap: 12px; } .family-tree-card.small, .family-tree-card.main-person, .family-tree-card.spouse-person { width: 100%; max-width: none; min-width: 0; } .main-generation .main-person::after { display: none; } .parent-generation::after, .main-generation::after { height: 20px; bottom: -22px; } } .family-tree-svg-container { width: 100%; height: 700px; overflow: auto; border: 1px solid #ddd; } .family-tree-svg-container { width: 100%; height: 700px; overflow: hidden; border: 1px solid #ddd; } .family-node { cursor: pointer; } .family-text { cursor: pointer; } .family-tree-svg-container svg { width: 100%; height: 100%; } .family-text { writing-mode: vertical-rl; text-orientation: upright; }