:host { position: relative; display: block; min-height: 100vh; background: #f6f0e7; color: #2f2720; } .danka-edit-page { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 20px; padding: 0 38px 36px 0; background: #f6f0e7; } .danka-edit-main { min-width: 0; box-sizing: border-box; } .edit-panel { min-height: 760px; padding: 34px 42px 40px; background: #fffdf9; border: 2px solid #d8caba; border-radius: 64px; box-sizing: border-box; } .page-title-area { margin-bottom: 22px; } .page-title-area h1 { margin: 0; color: #2f2720; font-size: 34px; line-height: 1.1; font-weight: 800; } .edit-form { display: block; width: 100%; margin: 0; color: #2f2720; } .edit-form input, .edit-form select, .edit-form textarea, .edit-form button { font-family: inherit; } .edit-content { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; } .basic-edit-section, .family-tree-edit-section { overflow: hidden; padding: 0 22px 24px; border: 2px solid #d8caba; border-radius: 12px; background: #fffdf9; box-sizing: border-box; } .basic-edit-section h2, .family-tree-edit-section h2, .section-heading h2 { margin: 0 -22px 18px; padding: 12px 22px; background: #eadfce; border-bottom: 2px solid #d8caba; color: #2f2720; font-size: 22px; line-height: 1.3; font-weight: 800; } .section-heading { margin-bottom: 18px; } .section-heading p { margin: 3px 0 0; color: #7b6b5c; font-size: 14px; } .section-description { margin: 6px 0 0; color: #7b6b5c; font-size: 14px; line-height: 1.6; } .form-list { width: min(100%, 620px); margin-top: 14px; } .form-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; } .form-row label { color: #4b3c31; font-size: 15px; font-weight: 800; } .form-field { width: 100%; } .form-row input, .form-row select, .form-row textarea { width: 100%; border: 2px solid #d8caba; border-radius: 8px; background: #fffdf9; color: #2f2720; font-size: 16px; font-weight: 600; font-family: inherit; box-sizing: border-box; outline: none; } .form-row input, .form-row select { height: 46px; padding: 0 14px; } .form-row textarea { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.6; } .form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #8a6543; background: #ffffff; box-shadow: 0 0 0 3px rgba(138, 101, 67, 0.15); } .form-row input[readonly] { background: #f6efe6; color: #7b6b5c; } .error-message { margin: 6px 0 0; color: #9a3f32; font-size: 13px; font-weight: 700; } .form-row-heading { margin: 24px 0 14px; align-items: start; } .form-row-heading label { padding-top: 0; } .sub-section-title { margin: 0; color: #2f2720; font-size: 17px; font-weight: 800; } .sub-section-description { margin: 6px 0 0; color: #7b6b5c; font-size: 14px; line-height: 1.6; } .set-householder-button { width: auto; min-width: 170px; height: 46px; border: 2px solid #d8caba; border-radius: 6px; background: #ffffff; color: #2f2720; font-size: 16px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .set-householder-button:hover { background: #f6efe6; } .bottom-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 28px; } .delete-button, .cancel-button, .save-button { min-width: 116px; height: 46px; border-radius: 8px; font-size: 16px; font-weight: 800; cursor: pointer; box-sizing: border-box; } .delete-button, .cancel-button { border: 2px solid #d8caba; background: #ffffff; color: #2f2720; } .delete-button:hover { border-color: #9a3f32; color: #9a3f32; } .cancel-button:hover { background: #f6efe6; } .save-button { border: 2px solid #8a6543; background: #8a6543; color: #ffffff; } .save-button:hover { background: #765639; } .save-button:disabled { opacity: 0.5; cursor: not-allowed; } /* 画面幅が狭い場合 */ @media (max-width: 1100px) { .danka-edit-page { grid-template-columns: 1fr; padding: 0 24px 32px; } .edit-panel { min-height: auto; border-radius: 28px; padding: 28px 24px 32px; } .edit-content { grid-template-columns: 1fr; } } @media (max-width: 800px) { .page-title-area h1 { font-size: 26px; } .form-row { grid-template-columns: 1fr; row-gap: 6px; } .form-row label { padding-top: 0; } .bottom-actions { flex-direction: column; align-items: stretch; } .delete-button, .cancel-button, .save-button { width: 100%; } }