:root {
    --main-green: #37b36b;
    --perske-green: #708d62;
    --light-green: #eef9f2;
    --light-yellow: #fff9e8;
    --light-blue: #edf6ff;
    --border-color: #e5e7eb;
    --text-color: #333;
}

body {
    background: #f8fafb;
    color: var(--text-color);
    font-family: sans-serif;
}

header {
    margin-bottom: 24px;
}

header a {
    color: #222;
    text-decoration: none;
}

main {
    background: white;
    padding: 20px;
    border-radius: 12px;
}

button {
    background: #6f8f5f;
    color: white;

    border: 2px solid transparent;

    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}


li {
    margin-bottom: 16px;
}

a {
    text-decoration: none;
}

a button {
    text-decoration: none;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

.action-buttons form {
    display: inline;
}

.double-line {
    border: none;
    border-top: 3px double #999;
    margin: 24px 0;
}

.memo-text {
    white-space: pre-wrap;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.schedule-main {
    flex: 1;
}

.schedule-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
    margin-top: 8px;
}

.schedule-actions form {
    display: inline;
}

.schedule-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--main-green);
    text-decoration: none;
}

.schedule-edit-link svg {
    width: 16px;
    height: 16px;
}

.schedule-edit-link:hover {
    opacity: 0.7;
}

.small-button {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
}

.small-button:hover {
    color: var(--main-green);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination strong,
.pagination span {
    padding: 6px 10px;
    text-decoration: none;
}


input,
textarea,
select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
}

select {
    height: auto;
    line-height: 1.5;
    padding: 8px 10px;
}

.time-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-row select {
    width: auto;
    min-width: 72px;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 10px;
    padding-bottom: 10px;
    color: var(--perske-green);
    border-bottom: 1px solid #eeeeee;
    font-size: 20px;
}

.search-form {
    margin-bottom: 24px;
}

.search-button {
    margin-top: 12px;
    padding: 6px 18px;
    font-size: 17px;
    font-weight: 600;
}

.person-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 0;
    transition: transform 0.15s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    display:flex;
    flex-direction:column;
    overflow: hidden;
    border-left: 4px solid var(--perske-green);
}

.person-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);

    margin-bottom: 12px;
}

.person-card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}

.person-card:hover {
    transform: translateY(-2px);
}

.person-card-actions button {
    min-width: 42px;
}

.person-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    min-width: 0;
}

.person-info p {
    margin: 6px 0;
}

.person-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
}

@media (min-width: 700px) {
    .person-list {
        grid-template-columns: 1fr 1fr;
    }
}


.page-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.logo {
    text-align: center;
    margin: 10px 0 20px 0;
}

.logo img {
    width: 200px;
    display: block;
    margin: 0 auto;
    transition: opacity 0.2s;
}

.logo img:hover {
    opacity: 0.8;
}

.stars {
    margin-top: 10px;
    letter-spacing: 2px;
}

.home-item-card {
    background: var(--light-green);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
    border-left: 4px solid var(--main-green);
    cursor: pointer;
}

.home-item-card p {
    margin: 4px 0;
}

.home-item-title {
    display: flex;
    align-items: center;
    gap: 6px;

    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
}

.home-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-item-header .home-item-title {
    flex: 1;
    min-width: 0;
}

.home-item-title svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;

    position: relative;
    top: -1px;   /* ここで微調整 */
}

.home-item-sub {
    color: #666;
    font-size: 14px;
}

details.card summary {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-green);
    cursor: pointer;
    padding: 6px 0;
    border-left: 4px solid var(--main-green);
    padding-left: 10px;
}

details.card {
    background: white;
    border-left: none;
}

details.card form {
    margin-top: 16px;
}

.section-card {
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--perske-green);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.section-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}

.section-title {
    border-left: 4px solid var(--perske-green);
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
    font-size: 20px;
    color: var(--perske-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title svg{
    width:20px;
    height:20px;
    color:var(--perske-green);
    margin-right:8px;
    vertical-align:-4px;
    flex-shrink: 0;
}

svg{
    stroke: var(--perske-green);
}

.star-icon {
    width: 15px;
    height: 15px;
    color: #f7b500;
    fill: #f7b500;
}

.section-title svg,
.person-name svg {
    width: 20px;
    height: 20px;
    stroke: var(--perske-green);
    flex-shrink: 0;
}

.person-page-name svg {
    width: 32px;
    height: 32px;
    stroke: var(--perske-green);
    flex-shrink: 0;
}

.small-button svg{
    width:18px;
    height:18px;
}

.main-action-button svg,
button:not(.secondary-button):not(.small-button):not(.admin-action-button) svg{
    width:18px;
    height:18px;
    stroke: white;
    margin-right:6px;
    vertical-align:middle;

    stroke: white;
}

.back-link svg{
    width:16px;
    height:16px;
    margin-right:4px;
}

.search-input{
    display:flex;
    align-items:center;
    gap:10px;
}

.search-input svg{
    width:18px;
    height:18px;
    stroke:#888;
}

.person-profile {
    margin: 20px 0;
}

.person-profile p {
    margin: 10px 0;
    font-size: 17px;
}

.person-profile-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.person-profile p {
    margin: 10px 0;
    font-size: 17px;
}

.person-page-name {
    margin: 0 0 18px 0;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
}

.schedule-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px;
    margin: 12px 0;
}

.schedule-card p {
    margin: 6px 0;
}

.schedule-title {
    font-weight: bold;
    font-size: 16px;
}

.schedule-date {
    color: #666;
    font-size: 14px;
}

.schedule-memo {
    margin: 0;
    margin-top: 8px;
    padding: 8px 12px;
    background:#f7fbff;
    border-left:3px solid #b9d7ff;
    border-radius: 8px;
    white-space: pre-wrap;
}

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eeeeee;
}

.profile-actions form {
    display: inline;
}

@media (max-width: 699px) {
    .person-list {
        display: block;
    }

    .person-card {
        width: 100%;
        margin: 16px 0;
    }
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #444;
}

.form-group {
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.meeting-details {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin: 24px 0;
}

.meeting-details .relationship-icon {
    margin: 0;
}

.meeting-details .person-stars {
    margin: 0;
    margin-bottom: 18px;
}

.meeting-details .person-profile > * {
    margin-bottom: 12px;
}

.meeting-details .person-profile > *:last-child {
    margin-bottom: 0;
}

.meeting-details summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--main-green);
    border-left: 4px solid var(--main-green);
    padding: 8px 0 8px 10px;
}

.meeting-details summary {
    list-style: none;
}

.meeting-details summary::-webkit-details-marker {
    display: none;
}

.meeting-details summary::before {
    content: "▶ ";
}

.meeting-details[open] summary::before {
    content: "▼ ";
}

.back-link {
    color: #666;
    font-size: 14px;
}

.secondary-button {
    background: white;
    color: var(--main-green);
    border: 2px solid var(--main-green);
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;

    font-size: 16px;
    font-weight: bold;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button svg {
    width: 18px;
    height: 18px;
}

.secondary-button:hover {
    background: var(--light-green);
}

.secondary-button svg {
    stroke: var(--main-green);
}

.home-layout {
    display: block;
}

.home-left,
.home-right {
    width: 100%;
}

.home-right {
    display: none;
}

@media (min-width: 900px) {

    .page-container {
        max-width: 1200px;
    }

    .home-layout {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 24px;
        align-items: start;
    }

    .home-left,
    .home-right {
        height: auto;
        overflow: visible;
    }

    .home-right {
        display: block;
    }
}

.person-card.selected {
    border: 2px solid var(--main-green);
}

.app-header {
    display: flex;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    padding: 16px 32px;

    background: #f8fafb;
    border-bottom: 1px solid var(--border-color);

    z-index: 1000;
}

.app-header .logo img {
    width: 170px;
}

.header-logo {
    width: 180px;
}

.main-action-button {
    background: var(--main-green);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-weight: bold;
    font-size: 16px;
    margin: 16px 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 16px 16px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.detail-header .person-page-name {
    margin: 0;
}

.detail-link {
    color: var(--perske-green);
    font-weight: bold;
    white-space: nowrap;
}

.detail-link:hover {
    text-decoration: underline;
}

.sub-title {
    margin: 24px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--perske-green)
}

.relationship-icon {
    margin: 0 0 18px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.relationship-icon svg{
    width: 20px;
    height: 20px;
    stroke: var(--perske-green);
    flex-shrink: 0;
}

.card-map-icon {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    margin: 0 0 0 0;
    word-break: break-word;
    align-items: center;
}

.person-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.person-relationship {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4d5c47;
    margin-bottom: 2px;
}

.person-place {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4d5c47;
    min-width: 0;
    width: 100%;
}

.person-place span {
    display: block;
    min-width: 0;
    width: calc(100% - 32px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.person-relationship i,
.person-place i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    color: #6d8d62;
}

.header-tabs {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.header-tab {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--perske-green);
    font-weight: bold;
    text-decoration: none;
}

.header-tab:hover {
    background: var(--light-green);
}

.header-tab.active {
    background: var(--perske-green);
    color: white;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.calendar-grid {
    gap: 8px;
}

.calendar-day {
    min-width: 0;
    min-height: 110px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    background: white;
    box-sizing: border-box;
}

.calendar-day.empty {
    background: #f8fafb;
    border: none;
}

.calendar-date {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    background: var(--light-green);
    border-radius: 999px;
    padding: 4px 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-event-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-event.event-work {
    background: var(--light-green);
    color: #2f5f3f;
}

.calendar-event.event-friend {
    background: #edf6ff;
    color: #24577a;
}

.calendar-event.event-family {
    background: #fff9e8;
    color: #7a5a1f;
}

.calendar-event.event-other {
    background: #f3f4f6;
    color: #555;
}

.calendar-event.event-work .calendar-event-dot {
    background: var(--main-green);
}

.calendar-event.event-friend .calendar-event-dot {
    background: #5aa7d8;
}

.calendar-event.event-family .calendar-event-dot {
    background: #e6b84a;
}

.calendar-event.event-other .calendar-event-dot {
    background: #9ca3af;
}

.calendar-event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--main-green);
    flex-shrink: 0;
}

.calendar-event:hover {
    filter: brightness(0.96);
    transform: scale(1.02);
    transition: all 0.15s ease;
}

.calendar-more {
    font-size: 12px;
    color: #666;
    padding-left: 4px;
}

.person-organization {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4d5c47;
    min-width: 0;
}

.person-organization span {
    display: block;
    min-width: 0;
    width: calc(100% - 32px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.person-organization i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.calendar-day.today {
    border: 2px solid var(--main-green);
    background: white;
}

.calendar-day.today .calendar-date {
    color: var(--main-green);
}

@media (max-width: 699px) {
    .app-header {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-logo {
        width: 120px;
    }

    .header-tabs {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .header-tab {
        padding: 6px 12px;
        font-size: 14px;
    }

    .app-header .secondary-button {
        padding: 7px 10px;
        font-size: 13px;
    }

    .page-container {
        padding: 55px 0px 0px;
    }

    .card {
        padding: 14px;
        border-radius: 16px;
    }

    .calendar-weekdays,
    .calendar-grid {
        grid-template-columns: repeat(7, minmax(42px, 1fr));
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day {
        min-height: 78px;
        padding: 5px;
        border-radius: 8px;
    }

    .calendar-date {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .calendar-event {
        font-size: 11px;
        padding: 3px 5px;
        gap: 4px;
    }

    .calendar-event-dot {
        width: 6px;
        height: 6px;
    }

    .calendar-weekdays {
        font-size: 12px;
    }

        .calendar-month-header {
        gap: 6px;
    }

    .calendar-title {
        font-size: 16px;
        padding-left: 6px;
    }

    .calendar-nav-button {
        font-size: 12px;
        padding: 6px 8px;
    }

}

.calendar-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-title {
    margin-bottom: 0;
    flex: 1;
    justify-content: center;

    border-left: none;
    padding-left: 0;
}

.calendar-nav-button {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--perske-green);
    font-weight: bold;
    background: var(--light-green);
    white-space: nowrap;
}

.calendar-nav-button:hover {
    background: #e1f3e8;
}

.monthly-schedule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.monthly-schedule-content {
    flex: 1;
    min-width: 0;
}

.monthly-schedule-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 6px 0;
}

.monthly-schedule-person{
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0;

    font-size: 0.9rem;
    color: #6b7280;
}

.monthly-schedule-edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #789665;
    text-decoration: none;
    border-radius: 8px;
}

.monthly-schedule-edit svg {
    width: 18px;
    height: 18px;
}

.monthly-schedule-edit:hover {
    background-color: #f0f6ed;
}

.home-schedule-card,
.monthly-schedule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-schedule-content,
.monthly-schedule-content {
    flex: 1;
    min-width: 0;
}

.home-schedule-title,
.monthly-schedule-title {
    margin-bottom: 0;
}

.home-schedule-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.home-schedule-actions form {
    margin: 0;
}

.home-schedule-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #789665;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.home-schedule-action svg {
    width: 17px;
    height: 17px;
    margin-right: 0;
}

.home-schedule-action:hover {
    background-color: #f0f6ed;
}

.schedule-delete-form {
    display: flex;
    margin: 0;
}

.delete-schedule-button {
    color: var(--perske-green);
}

.delete-schedule-button:hover {
    background-color: #f0f6ed;
}

.monthly-date-group {
    margin-top: 20px;
}

.monthly-date-group:first-child {
    margin-top: 0;
}

.monthly-date-heading {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #555;
}

.delete-schedule-button svg {
    stroke: var(--perske-green) !important;
    color: var(--perske-green) !important;
}

/* これからの予定 */

.future-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.future-schedule-card {
    margin: 0;
}

.future-schedule-card .home-schedule-title {
    font-weight: 400;
    font-size: 16px;
}

.future-add-schedule-button {
    margin-top: 2px;
}

.future-add-schedule-button svg {
    width: 18px;
    height: 18px;
    stroke: var(--main-green);
}

.person-profile-card + .section-title {
    margin-top: 28px;
}

.section-card .future-schedule-list {
    margin-top: 12px;
    margin-bottom: 24px;
}

.section-card .future-schedule-card {
    margin: 0;
}

.section-card .action-buttons {
    margin-top: 22px;
}

/* =========================
   スマホ版カレンダーを横に広くする
========================= */

@media (max-width: 699px) {

    /* 外側の余白を縮める */
    .calendar-card {
        width: auto;
        margin-left: -10px;
        margin-right: -10px;
        padding-left: 2px;
        padding-right: 2px;
    }

    /* 曜日と日付マスを横幅いっぱい使う */
    .calendar-weekdays,
    .calendar-grid {
        width: 100%;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .calendar-weekdays {
        padding-left: 2px;
        padding-right: 2px;
    }

    /* マス同士の余白を縮める */
    .calendar-grid {
        gap: 0px;
    }

    /* 各日の内側余白を縮める */
    .calendar-day {
        min-width: 0;
        padding: 3px 2px;
        border-radius: 5px;
    }

    /* 日付の位置を少しだけ詰める */
    .calendar-date {
        margin-bottom: 3px;
        padding-left: 1px;
    }

    /* 予定一覧も横幅いっぱい使う */
    .calendar-events {
        width: 100%;
        min-width: 0;
        gap: 3px;
    }

    /* 予定チップの余白を最小限にする */
    .calendar-event {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;

        padding: 3px 2px;
        gap: 0;

        font-size: 11px;
        line-height: 1.2;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* 色付きの丸は非表示 */
    .calendar-event-dot {
        display: none;
    }
}

/* =========================
   会う前モード
========================= */

.before-meeting-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.ai-topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 12px 0 24px;
    padding: 16px;

    background: #f7fbff;
    border-left: 3px solid #b9d7ff;
    border-radius: 10px;
}

.ai-topic-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    line-height: 1.6;
}

.ai-topic-item svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    stroke: var(--perske-green);
}

/* AI話題の再生成ボタン */

.regenerate-topics-form {
    margin: 16px 0 24px;
}

.regenerate-topics-button {
    gap: 8px;
}

.regenerate-topics-button svg {
    width: 18px;
    height: 18px;
    stroke: var(--main-green);
}

/* =========================
   AIおすすめ話題
========================= */

.ai-topics-section {
    margin-top: 28px;
}

.ai-topic-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin: 14px 0 10px;
    padding: 16px;

    background-color: #f5faf7;
    border: 1px solid #dfeade;
    border-left: 4px solid var(--perske-green);
    border-radius: 14px;
}

.ai-topic-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;

    padding: 14px;

    background-color: #ffffff;
    border: 1px solid #e4ebe3;
    border-radius: 12px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

.ai-topic-item:hover {
    background-color: #fbfdfb;
    border-color: #cdddc9;
    transform: translateY(-1px);
}

/* 共通inputのwidth:100%を解除 */
.ai-topic-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
}

.ai-topic-checkmark {
    grid-column: 1;
    grid-row: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    margin-top: 1px;

    color: transparent;
    background-color: #ffffff;
    border: 2px solid #a9b7a4;
    border-radius: 6px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.ai-topic-checkmark svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 3;
}

.ai-topic-text {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;

    color: #293128;
    font-size: 16px;
    line-height: 1.7;
}

.ai-topic-checkbox:checked + .ai-topic-checkmark {
    color: #ffffff;
    background-color: var(--perske-green);
    border-color: var(--perske-green);
}

.ai-topic-checkbox:checked
    + .ai-topic-checkmark
    + .ai-topic-text {
    color: #71806d;
    text-decoration: line-through;
}

.ai-topic-checkbox:focus-visible
    + .ai-topic-checkmark {
    outline: 3px solid rgba(55, 179, 107, 0.2);
    outline-offset: 2px;
}

.ai-save-status {
    min-height: 22px;
    margin: 6px 0 12px;

    font-size: 13px;
}

.ai-save-status.saving {
    color: #777777;
}

.ai-save-status.saved {
    color: var(--main-green);
}

.ai-save-status.error {
    color: #b54747;
}

.regenerate-topics-form {
    margin: 4px 0 26px;
}

.regenerate-topics-button svg {
    stroke: var(--main-green);
}

@media (max-width: 699px) {

    .ai-topic-list {
        gap: 10px;
        padding: 10px;
    }

    .ai-topic-item {
        padding: 12px 10px;
        column-gap: 10px;
    }

    .ai-topic-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

.ai-topics-note {
    margin: -6px 0 14px;

    color: #7a8777;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================
   人物詳細のプロフィール項目
========================= */

.person-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0;
}

.profile-info-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;

    min-height: 26px;
}

.profile-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    min-width: 32px;
}

.profile-info-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--perske-green);
}

.profile-info-text {
    min-width: 0;

    font-size: 17px;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.profile-stars {
    grid-column: 1 / -1;

    justify-content: flex-start;
    gap: 5px;

    width: auto;
}

.profile-stars .star-icon {
    width: 17px;
    height: 17px;

    fill: #f7b500;
    stroke: var(--perske-green);
}

.schedule-actions a:first-child .small-button {
    background: #eef8f1;
}

.header-logout-form {
    margin: 0;
}

.app-footer {
    margin-top: 48px;
    padding: 24px 0;
    text-align: center;
}

.app-footer form {
    margin: 0;
}

.footer-logout-button {
    background: none;
    border: none;
    color: #2E7D32;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-logout-button svg {
    width: 18px;
    height: 18px;

    stroke: var(--perske-green) !important;
    color: var(--perske-green) !important;
}

.footer-logout-button:hover {
    color: #1B5E20;
}

.footer-logout-button:hover svg {
    stroke: var(--main-green) !important;
    color: var(--main-green) !important;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* =========================
   管理画面
========================= */

.admin-page {
    width: 100%;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.admin-label,
.admin-section-label {
    margin: 0 0 4px;
    color: var(--perske-green, #4f8f72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-title {
    margin: 0;
}

.admin-user {
    color: #666;
    font-size: 13px;
}

.admin-summary-section {
    margin-bottom: 32px;
}

.admin-summary-heading {
    margin-bottom: 12px;
}

.admin-section-title {
    margin: 0;
    font-size: 20px;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 16px;
}

.admin-summary-card {
    position: relative;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.admin-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    background: rgba(79, 143, 114, 0.12);
    border-radius: 10px;
    color: var(--perske-green, #4f8f72);
}

.admin-summary-icon svg {
    width: 19px;
    height: 19px;
}

.admin-summary-label {
    margin: 0 0 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.admin-summary-number {
    display: inline;
    margin: 0;
    color: #222;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.admin-summary-unit {
    display: inline;
    margin-left: 4px;
    color: #777;
    font-size: 13px;
}

.admin-users-section {
    margin-top: 40px;
}

.admin-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.admin-section-count {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.admin-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0ee;
    text-align: left;
    font-size: 13px;
}

.admin-table th {
    color: #666;
    background: #f8faf9;
    font-weight: 600;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-email-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-badge,
.admin-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.admin-badge-owner,
.admin-badge-premium {
    color: var(--perske-green, #4f8f72);
    background: rgba(79, 143, 114, 0.12);
}

.admin-badge-free {
    color: #666;
    background: #f0f1f0;
}

.admin-status-active {
    color: var(--perske-green, #4f8f72);
    background: rgba(79, 143, 114, 0.12);
}

.admin-status-inactive {
    color: #777;
    background: #ededed;
}

.admin-empty {
    padding: 32px !important;
    color: #777;
    text-align: center !important;
}

@media (max-width: 700px) {

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-summary-card {
        padding: 16px;
    }

    .admin-summary-number {
        font-size: 28px;
    }

}

@media (max-width: 430px) {

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   管理画面・ユーザー検索
========================= */

.admin-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-search-box {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #dfe5e1;
    border-radius: 12px;
}

.admin-search-box:focus-within {
    border-color: var(--perske-green, #4f8f72);
    box-shadow: 0 0 0 3px rgba(79, 143, 114, 0.1);
}

.admin-search-box svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #8a948e;
}

.admin-search-input {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
}

.admin-search-button {
    padding: 12px 18px;
    color: #fff;
    background: var(--perske-green, #4f8f72);
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.admin-search-button:hover {
    opacity: 0.9;
}

.admin-search-reset {
    color: var(--perske-green, #4f8f72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {

    .admin-search-form {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .admin-search-box {
        flex-basis: 100%;
    }

    .admin-search-button {
        flex: 1;
    }

    .admin-search-reset {
        display: flex;
        align-items: center;
        padding: 0 8px;
    }

}

/* =========================
   管理画面・ユーザー詳細
========================= */

.admin-user-link {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.admin-user-link:hover {
    color: var(--perske-green, #4f8f72);
    text-decoration: underline;
}

.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--perske-green, #4f8f72);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.admin-back-link:hover {
    opacity: 0.8;
}

.admin-back-link svg {
    width: 17px;
    height: 17px;
}

.admin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-detail-card {
    margin-bottom: 32px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.admin-detail-user-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.admin-detail-user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    color: var(--perske-green, #4f8f72);
    background: rgba(79, 143, 114, 0.12);
    border-radius: 14px;
}

.admin-detail-user-icon svg {
    width: 26px;
    height: 26px;
}

.admin-detail-email {
    margin: 0 0 8px;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    word-break: break-all;
}

.admin-detail-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 16px;
}

.admin-detail-info-item {
    padding: 16px;
    background: #f8faf9;
    border-radius: 12px;
}

.admin-detail-info-label {
    margin: 0 0 6px;
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.admin-detail-info-value {
    margin: 0;
    color: #222;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 600px) {

    .admin-detail-header {
        align-items: flex-start;
    }

    .admin-detail-card {
        padding: 18px;
    }

    .admin-detail-user-main {
        align-items: flex-start;
    }

    .admin-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .admin-detail-email {
        font-size: 17px;
    }

}

.admin-text-muted {
    color: #888;
    font-style: italic;
}

/* =========================
   管理画面・最終ログイン
========================= */

.admin-login-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-login-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: currentColor;
    border-radius: 50%;
}

/* 24時間以内 */

.admin-login-status-recent {
    color: #3f8f6b;
}

/* 7日以内 */

.admin-login-status-week {
    color: #a27a24;
}

/* 30日以内 */

.admin-login-status-month {
    color: #c06c2d;
}

/* 30日以上 */

.admin-login-status-inactive {
    color: #b55252;
}

/* 未ログイン */

.admin-login-status-never {
    color: #999;
}

/* 日付形式が想定外の場合 */

.admin-login-status-unknown {
    color: #777;
}

.admin-login-datetime {
    margin: 6px 0 0;
    color: #999;
    font-size: 11px;
}

/* =========================
   分析カード
========================= */

.admin-analytics-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap:20px;

    margin-top:20px;

}

.admin-analytics-card{

    background:#fff;

    border:1px solid #e7ece8;

    border-radius:18px;

    padding:24px;

    transition:.25s;

    box-shadow:
        0 5px 16px rgba(0,0,0,.04);

}

.admin-analytics-card:hover{

    transform:translateY(-4px);

    box-shadow:
        0 12px 24px rgba(0,0,0,.08);

}

.admin-analytics-icon{

    font-size:28px;

    margin-bottom:12px;

}

.admin-analytics-title{

    font-size:14px;

    color:#777;

}

.admin-analytics-value{

    display:flex;

    align-items:flex-end;

    gap:6px;

    font-weight:700;

    color:var(--perske-green);

}

.admin-analytics-number{

    font-size:36px;

    line-height:1;

}

.admin-analytics-unit{

    font-size:16px;

    color:#666;

    margin-bottom:3px;

}

.admin-analytics-caption{

    font-size:13px;

    color:#999;

}

/* =========================
   分析カードの状態バッジ
========================= */

.admin-analytics-card-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 12px;

}

.admin-analytics-card-header
.admin-analytics-icon {

    margin-bottom: 0;

}

.admin-analytics-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 26px;

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

}

.admin-analytics-badge.good {

    color: #237a4b;

    background: #e8f7ef;

}

.admin-analytics-badge.normal {

    color: #8a6912;

    background: #fff6d8;

}

.admin-analytics-badge.warning {

    color: #b04a45;

    background: #fdebea;

}

/* =========================
   管理者アクション
========================= */

.admin-user-action-card {

    margin-top: 24px;
    margin-bottom: 32px; 

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e3e9e4;

    border-radius: 18px;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .04);

}

.admin-user-action-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

}

.admin-user-action-label {

    margin: 0 0 6px;

    color: var(--perske-green);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .08em;

}

.admin-user-action-title {

    margin: 0;

    font-size: 18px;

}

.admin-user-action-description {

    margin: 8px 0 0;

    color: #777;

    font-size: 13px;

}

.admin-action-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-width: 150px;

    padding: 11px 16px;

    border: none;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.admin-action-button svg {

    width: 17px;

    height: 17px;

}

.admin-action-button.primary {

    color: #ffffff !important;
    background: var(--perske-green);

}

.admin-action-button.primary:hover {

    opacity: .88;

    transform: translateY(-1px);

}

.admin-action-button.primary svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.admin-action-button.secondary {

    color: #1d6b43;

    background: #edf4ef;

}

.admin-action-button.secondary:hover {

    background: #e2eee5;

}

.admin-action-button.secondary svg {

    color: #1d6b43;
    stroke: #1d6b43;
}

.admin-action-button.danger svg {

    color: #9d2d2d;
    stroke: #9d2d2d;

}

.admin-action-button.secondary svg,
.admin-action-button.danger svg {

    stroke-width: 2.5;

}

@media (max-width: 700px) {

    .admin-user-action-content {

        align-items: stretch;

        flex-direction: column;

    }

    .admin-action-button {

        width: 100%;

    }

}

/* =========================
   操作履歴
========================= */

.admin-log-section {

    margin-top: 32px;
    margin-bottom: 32px;

}

.admin-log-card {

    margin-top: 16px;

    padding: 8px 24px;

    background: #ffffff;

    border: 1px solid #e3e9e4;

    border-radius: 18px;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, .04);

}

.admin-log-item {

    display: flex;

    gap: 14px;

    padding: 18px 0;

    border-bottom: 1px solid #edf1ee;

}

.admin-log-item:last-child {

    border-bottom: none;

}

.admin-log-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 38px;

    height: 38px;

    color: var(--perske-green);

    background: #edf4ef;

    border-radius: 12px;

}

.admin-log-icon svg {

    width: 18px;

    height: 18px;

}

.admin-log-main {

    min-width: 0;

}

.admin-log-title {

    font-size: 14px;

    font-weight: 700;

}

.admin-log-detail {

    margin-top: 4px;

    color: #666;

    font-size: 13px;

}

.admin-log-meta {

    margin-top: 7px;

    color: #999;

    font-size: 12px;

}

.admin-log-empty {

    padding: 22px 0;

    color: #999;

    font-size: 13px;

    text-align: center;

}

.admin-action-button.danger {

    color: #9d2d2d;
    background: #fdebea;

}


.admin-action-button.danger:hover {

    background: #f9dddb;

    transform: translateY(-1px);

}

.app-footer {
    padding: 28px 16px;
    margin-top: 40px;
    background-color: #f7f9f7;
}

.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 40px;

    color: #356f3d;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.footer-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

.footer-item:hover {
    color: #24552b;
    opacity: 0.8;
}

.footer-divider {
    width: 1px;
    height: 28px;
    background-color: #d7ddd8;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 14px;

    color: #356f3d;
    background-color: #edf5ed;
    border: 1px solid #cfe0d0;
    border-radius: 999px;

    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .app-footer {
        padding: 24px 16px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }

    .footer-divider {
        display: none;
    }

    .footer-item,
    .footer-version {
        width: 100%;
        max-width: 240px;
    }
}

.section-title-row {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;

    margin-bottom: 20px;
    padding-bottom: 10px;

    border-bottom: 1px solid #eeeeee;
}

.section-title-row .section-title {
    flex: 1;

    margin: 0;
    padding-bottom: 0;

    /* 行全体で下線を引くので、見出し自身の下線は消す */
    border-bottom: none;
}

@media (max-width: 768px) {

    .section-title-row {
        flex-wrap: wrap;
        gap: 10px;
    }

}

.person-add-button {
    flex-shrink: 0;

    margin-top: -5px;

    padding: 8px 14px;

    background: var(--perske-green);
    color: white;
    border: none;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);

    transition:
        background-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.person-add-button svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.person-add-button:hover {
    background: #607A55;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.person-add-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 699px) {

    .schedule-row .schedule-actions,
    .home-schedule-actions {
        flex-direction: column;
        align-items: center;
    }

    .home-schedule-actions {
        width: 36px;
    }

    .person-avatar-placeholder {
        width: 68px;
        height: 68px;
    }

    .person-avatar-placeholder svg {
        width: 26px;
        height: 26px;
    }

}

.home-schedule-actions .delete-schedule-button svg {
    margin-right: 0 !important;
}

.person-search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.person-search-form .search-button {
    width: 100%;
    margin-top: 0;
}

.person-search-field {
    min-width: 0;
}

.person-search-field .form-label {
    margin-bottom: 6px;
}

.person-search-form .search-input,
.person-search-form select {
    width: 100%;
}

.person-search-form .search-button {
    margin-top: 0;
    white-space: nowrap;
}

.detail-link-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: fit-content;

    margin-top: 0px;
    margin-bottom: 4px;

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--primary-light);
    color: var(--primary-color);

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition: all .2s ease;
}

.detail-link-button:hover {
    background: var(--primary-color);
    color: white;
}

.person-summary-card {
    cursor: pointer;
}

.person-summary-card {
    transition: transform 0.15s ease;
}

.person-summary-card:hover {
    transform: translateY(-2px);
}

.attendee-candidate[hidden],
.attendee-picker[hidden] {
    display: none !important;
}

.attendee-title {
    margin-top: 28px;
}

.attendee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    margin-bottom: 12px;
    border: 1px solid #e5e5e5;
    border-left: 6px solid var(--perske-green);
    border-radius: 18px;
    background: white;
}

.attendee-link {

    text-decoration: none;

    color: inherit;

    flex: 1;

}

.attendee-info {

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 1.3rem;

    font-weight: 700;

}

.attendee-info svg {

    width: 34px;

    height: 34px;

    color: var(--perske-green);

}

.attendee-remove-form {
    margin: 0;
}

.attendee-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: var(--perske-green);

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.attendee-remove-button svg {
    width: 20px;
    height: 20px;
    margin: 0 !important;

    stroke: var(--perske-green) !important;
}

.attendee-remove-button:hover {
    background: var(--perske-green);
    color: white;
    opacity: 1;
    transform: scale(1.08);
}

.attendee-remove-button:hover svg {
    stroke: white !important;
}

.attendee-remove-button:active {
    transform: scale(0.94);
}

.attendee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendee-section {
    margin-top: 16px;
    padding-top: 0;
}

.attendee-add-button {
    margin-top: 12px;
}

.attendee-picker {
    margin-top: 14px;
}

.attendee-candidates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-attendees {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attendee-editor {
    margin-top: 0px;
    margin-bottom: 24px;
}

.attendee-editor .attendee-add-button {
    margin-top: 14px;
}

.attendee-editor .attendee-picker {
    margin-top: 14px;
}

.next-talk-action {
    margin-top: 12px;
}

.schedule-detail-header {
    margin-bottom: 24px;
}

.detail-person-card {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 12px;
    padding: 12px 16px;

    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.person-sub {
    font-size: 0.9rem;
    color: #777;
}

.detail-attendee-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-attendee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 22px;

    border: 1px solid #e5e5e5;
    border-left: 6px solid var(--perske-green);
    border-radius: 18px;

    background: white;
    color: inherit;
    text-decoration: none;

    transition: 0.15s;
}

.detail-attendee-card:hover {
    background: #f8fbf7;
}

.detail-attendee-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-attendee-name {
    font-weight: 600;
    color: #222;
}

.detail-attendee-arrow {
    color: #999;
}

.schedule-card-link {
    flex: 1;
    min-width: 0;

    color: inherit;
    text-decoration: none;
}

.schedule-card-link:hover .schedule-title {
    color: var(--perske-green);
}

.today-schedule-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 6px 0;
}

.today-schedule-person {
    display: flex;
    align-items: center;
    gap: 6px;

    margin: 0;

    font-size: 0.9rem;
    color: #6b7280;
}

.schedule-detail-delete-button {
    color: var(--main-green);
    background: white;
    border: 2px solid var(--main-green);
}

.schedule-detail-delete-button svg {
    stroke: var(--main-green) !important;
}

.schedule-detail-delete-button:hover {
    background: var(--light-green);
}

/* 人物詳細：名前と似顔絵 */
.person-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

/* 名前側が長くても、アバターを押し出さない */
.person-profile-header .person-page-name {
    min-width: 0;
    margin-right: auto;
}

/* 似顔絵枠のリンク */
.person-avatar-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

/* 似顔絵未設定時の＋枠 */
.person-avatar-placeholder {
    width: 80px;
    height: 80px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px dashed var(--perske-green);
    border-radius: 50%;

    color: var(--perske-green);
    background: #ffffff;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.person-avatar-placeholder svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
}

.person-avatar-link:hover .person-avatar-placeholder {
    background-color: rgba(63, 143, 108, 0.08);
    transform: scale(1.03);
}

.person-avatar-link:active .person-avatar-placeholder {
    transform: scale(0.97);
}

.avatar-prototype-area {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.avatar-prototype-face {
    position: sticky;
    top: 210px;

    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.avatar-prototype-face svg {
    width: 90px;
    height: 90px;
    stroke-width: 1.5;
}

/* 似顔絵SVGの表示エリア */
.avatar-prototype-face {
    width: 320px;
    height: 320px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    overflow: hidden;

    margin: 0 auto;
}

.perske-avatar {
    width: 100%;
    height: 100%;
    display: block;
    --avatar-outline-color: #3b302b;

    transform: scale(3.45);
    transform-origin: center;
}

/* 背景 */
.avatar-background {
    fill: #eef8f3;
    stroke: var(--perske-green);
    stroke-width: 2;
    opacity: 0.35;
}

/* 肌 */
.avatar-skin {
    fill: #f3c9a9;
    stroke: none;
}

/* 髪 */
.avatar-hair {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: var(--avatar-hair-color, #3b302b);

    stroke-width: 3;
    stroke-linejoin: round;
}

/* 服 */
.avatar-clothes {
    fill: var(--perske-green);
}

/* 輪郭線 */
.avatar-outline {
    stroke: var(--avatar-outline-color);
    stroke-width: 4;
    stroke-linejoin: round;
}

/* 眉・鼻・口 */
.avatar-line {
    fill: none;
    stroke: var(--avatar-outline-color);
    stroke-width: 4;
    stroke-linecap: round;
}

/* 鼻だけ少し控えめ */
.avatar-nose {
    stroke-width: 3;
    opacity: 0.6;
}

/* 目 */
.avatar-eye {
    fill: var(--avatar-outline-color);
    stroke: none;
}

@media (max-width: 768px) {

    /* PCの2カラムを、スマホでは縦並びに戻す */
    .avatar-prototype-area {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        width: 100%;
        min-width: 0;
    }

    /* プレビューは固定せず、画面幅に収める */
    .avatar-prototype-face {
        position: static;

        width: min(260px, 82vw);
        height: min(260px, 82vw);

        flex-shrink: 0;
        margin: 0 auto;
    }

    /* フォームが横にはみ出さないようにする */
    .avatar-editor-form {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .avatar-page-header {
        position: sticky;
        top: 0px;
        z-index: 90;

        background: white;
        padding: 10px 0 12px;
    }

    .avatar-page-header .person-page-name {
        margin-bottom: 8px;
        font-size: 23px;
    }

    .avatar-page-header .page-subtitle {
        margin: 0;
    }

    .avatar-page-header {
        position: sticky;
        top: 60px !important;
        z-index: 900;

        margin-top: -16px;
        padding-top: 8px;
        padding-bottom: 10px;

        background: #ffffff;
    }

}

/* 顔型は選択されたものだけ表示 */
.avatar-face-shape {
    display: none;
}

.avatar-editor-form {
    width: 100%;
    max-width: none;
}

.avatar-option-section {
    margin-top: 24px;
}

.avatar-option-section:first-child {
    margin-top: 0;
}

.avatar-option-list {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(150px, 1fr)
    );
    gap: 12px;
}

.avatar-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.avatar-option span {
    writing-mode: horizontal-tb;
    white-space: nowrap;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.avatar-option:has(input:checked) {
    color: var(--perske-green);
    border: 2px solid var(--perske-green);
    background: #eef8f3;

    box-shadow:
        0 3px 10px rgba(112, 141, 98, 0.14);
}

.avatar-option:hover {
    border-color: var(--perske-green);
    background: #f7fbf8;
    transform: translateY(-1px);
}

.avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {

    .avatar-option-list {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
        gap: 10px;
    }

    .avatar-option {
        min-height: 52px;
        padding: 10px 8px;
    }

    .avatar-option span {
        white-space: normal;
        overflow-wrap: anywhere;

        font-size: 14px;
    }

}

.avatar-editor-form .main-action-button {
    margin-top: 28px;
}

.avatar-glasses-style {
    display: none;
}

.avatar-glasses-line {
    fill: none;
    stroke: var(--avatar-outline-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-eye-shape {
    display: none;
}

.avatar-eye-part {
    fill: var(--avatar-outline-color);
    stroke: none;
}

.avatar-eye-size-group {
    transform: scale(
        var(--avatar-eye-scale, 1)
    );
}

.avatar-eyebrow-style {
    display: none;
}

.avatar-eyebrow-line {
    fill: none;
    stroke: var(--avatar-outline-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-nose-style {
    display: none;
}

.avatar-nose-line {
    fill: none;
    stroke: var(--avatar-outline-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.5;
}

.avatar-mouth-style {
    display: none;
}

.avatar-mouth-line {
    fill: none;
    stroke: var(--avatar-outline-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avatar-page-header {

    position: sticky;
    top: 90px;
    z-index: 100;

    background: white;

    padding-bottom: 16px;

    box-shadow: 0 2px 12px rgba(0,0,0,.06);

}

.avatar-option-summary {

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;

    list-style: none;

    padding: 10px 0;

}

.avatar-option-summary::-webkit-details-marker {
    display: none;
}

.avatar-option-section:not([open])
.avatar-option-summary
.avatar-chevron {

    transform: rotate(-90deg);

}

.avatar-option-title {

    font-size: 20px;
    font-weight: 700;

}

.avatar-selected-value {

    color: #777;

    font-size: 15px;
}

.avatar-chevron {

    width: 20px;
    height: 20px;

    color: var(--perske-green);

    transition: transform .2s ease;

    flex-shrink: 0;

}


.avatar-option-section {
    margin-top: 14px;
    border: 1px solid #e2e8e4;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.avatar-option-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 12px;

    padding: 16px 18px;

    cursor: pointer;
    list-style: none;
}

.avatar-option-summary::-webkit-details-marker {
    display: none;
}

.avatar-option-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-width: 0;

    color: var(--perske-green);
    font-size: 18px;
    font-weight: 700;
}

.avatar-option-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.avatar-selected-value {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.avatar-option-content {
    padding: 4px 18px 18px;
    border-top: 1px solid #edf0ee;
}

@media (max-width: 768px) {

    .avatar-option-summary {
        padding: 14px;
        gap: 8px;
    }

    .avatar-option-title {
        font-size: 17px;
    }

    .avatar-selected-value {
        max-width: 130px;
        font-size: 13px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .avatar-option-content {
        padding: 4px 14px 14px;
    }

}

.avatar-option-subtitle {
    margin: 20px 0 10px;
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

.avatar-option-subtitle:first-child {
    margin-top: 10px;
}

.avatar-hair-option {
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    min-height: 138px;
    padding: 12px 10px;
}

.avatar-hair-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 82px;
    height: 82px;
}

.avatar-hair-thumbnail svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hair-thumbnail-skin {
    fill: #f3c9a9;
}

.hair-thumbnail-outline {
    stroke: var(--avatar-outline-color, #3b302b);
    stroke-width: 3;
    stroke-linejoin: round;
}

.hair-thumbnail-hair {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: var(--avatar-hair-color, #3b302b);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.hair-thumbnail-dots {
    fill: rgba(59, 48, 43, 0.55);
    stroke: none;
}

.avatar-option-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.avatar-hair-option-list {
    grid-template-columns: repeat(
        auto-fit,
        minmax(130px, 1fr)
    );
}

.avatar-hair-option {
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    min-height: 142px;
    padding: 12px 8px;
}

.avatar-hair-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 84px;
    height: 84px;
}

.avatar-hair-thumbnail svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hair-thumbnail-skin {
    fill: #f3c9a9;
}

.hair-thumbnail-outline {
    stroke: var(--avatar-outline-color, #3b302b);
    stroke-width: 3;
    stroke-linejoin: round;
}

.hair-thumbnail-hair {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: var(--avatar-hair-color, #3b302b);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hair-thumbnail-hair-line {
    fill: none;
    stroke: var(--avatar-hair-color, #3b302b);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.hair-thumbnail-buzz-base {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: var(--avatar-hair-color, #3b302b);
    stroke-width: 2;
    opacity: 0.18;
}

.hair-thumbnail-buzz-dots {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: none;
    opacity: 0.8;
}

.avatar-option-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {

    .avatar-hair-option-list {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .avatar-hair-option {
        min-height: 128px;
        padding: 10px 5px;
    }

    .avatar-hair-thumbnail {
        width: 72px;
        height: 72px;
    }

    .avatar-option-label {
        font-size: 13px;
    }

}

/* =========================
   髪型カード
========================= */

.avatar-hair-option-list {
    grid-template-columns: repeat(
        auto-fit,
        minmax(130px, 1fr)
    );
}

.avatar-hair-option {
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    min-height: 142px;
    padding: 12px 8px;
}

.avatar-hair-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 92px;
    height: 100px;

    overflow: hidden;
}

.avatar-hair-thumbnail svg {
    display: block;
    width: 100%;
    height: 100%;
}

/*
カードの髪は常に表示する。
JavaScript切替対象の
.avatar-hair-styleとは別クラス。
*/
.avatar-hair-thumbnail-part {
    display: block;
}

/* 坊主 */
.avatar-buzz-base {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: none;
    opacity: 0.18;
}

.avatar-buzz-dots {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: none;
    opacity: 0.82;
}

.avatar-option-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {

    .avatar-hair-option-list {
        grid-template-columns: repeat(
            2,
            minmax(0, 1fr)
        );
    }

    .avatar-hair-option {
        min-height: 128px;
        padding: 10px 5px;
    }

    .avatar-hair-thumbnail {
        width: 78px;
        height: 86px;
    }

    .avatar-option-label {
        font-size: 13px;
    }

}

.avatar-hair {
    fill: var(--avatar-hair-color, #3b302b);
    stroke: var(--avatar-hair-color, #3b302b);
    stroke-width: 3;
    stroke-linejoin: round;
}

.hair-thumbnail-outline {
    stroke: var(--avatar-outline-color, #3b302b);
    stroke-width: 4;
    stroke-linejoin: round;
}

.hair-thumbnail-face-line {
    fill: none;
    stroke: var(--avatar-outline-color, #3b302b);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.avatar-buzz-face-outline {
    fill: none;
    stroke: var(--avatar-outline-color, #3b302b);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.duplicate-person-area {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #b8e6c8;
    border-radius: 10px;
    background: #f5fff8;
}

.duplicate-person-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2f855a;
}

.duplicate-person-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.duplicate-person-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #d8eede;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.duplicate-person-item:hover {
    background: #edf9f1;
    border-color: var(--primary-color);
}

.duplicate-person-item strong {
    display: block;
    margin-bottom: 4px;
}

.duplicate-person-item span {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.85rem;
    color: #666;
}

.duplicate-person-note {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: #666;
}


.header-navigation {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-settings-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.header-settings-button:hover,
.header-settings-button.active {
    color: var(--primary-color);
    background: #edf9f1;
}

.header-settings-button svg {
    width: 21px;
    height: 21px;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-section {
    padding: 0;
    overflow: hidden;
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}

.settings-section-title svg {
    width: 19px;
    height: 19px;
    color: var(--primary-color);
}

.settings-item {
    min-height: 58px;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s;
}

.settings-item-link:hover {
    background: #f7faf8;
}

.settings-item-link svg {
    width: 18px;
    height: 18px;
    color: #999;
}

.settings-item-label,
.settings-item-value,
.settings-item-note {
    display: block;
}

.settings-item-label {
    font-weight: 600;
}

.settings-item-value {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #666;
}

.settings-item-note {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #999;
}

.settings-item-disabled {
    background: #fafafa;
}

.settings-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 15px;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
}

.settings-logout-button:hover {
    background: #f7faf8;
    color: var(--primary-color);
}

.app-header {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    min-width: 0;
}

.header-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: initial;
    gap: 8px;
    min-width: 0;
}

.header-settings-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
}

.header-settings-button:hover,
.header-settings-button.active {
    color: var(--perske-green);
    background: var(--light-green);
}

.header-settings-button svg {
    width: 21px;
    height: 21px;
}

@media (max-width: 768px) {

    .app-header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 12px;
        gap: 8px;
    }

    .header-logo {
        width: 120px;
        max-width: 120px;
    }

    .header-navigation {
        margin-left: auto;
        gap: 2px;
        flex-shrink: 1;
    }

    .header-tabs {
        width: auto;
        flex-wrap: nowrap;
        gap: 2px;
        order: initial;
    }

    .header-tab {
        padding: 6px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .header-settings-button {
        order: initial;
        width: 34px;
        height: 34px;
    }

    .header-settings-button svg {
        width: 19px;
        height: 19px;
    }
}

/* =========================
   プライバシーポリシー・利用規約
========================= */

.legal-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.legal-card {
    padding: 28px 32px;
}

.legal-introduction {
    margin: 0 0 30px;
    color: #444;
    line-height: 1.8;
}

.legal-section {
    margin-top: 34px;
}

.legal-section:first-of-type {
    margin-top: 0;
}

.legal-section h3 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    color: var(--perske-green);
    font-size: 18px;
    border-bottom: 1px solid #e8ece9;
}

.legal-section p {
    margin: 10px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.9;
}

.legal-section ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}

.legal-contact-button {
    margin-top: 10px;
}

.legal-date {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #e8ece9;
    color: #777;
    font-size: 13px;
    text-align: right;
}

.legal-date p {
    margin: 0;
}

@media (max-width: 699px) {

    .legal-card {
        margin-top: 12px;
        padding: 20px 16px;
        border-radius: 12px;
    }

    .legal-section {
        margin-top: 28px;
    }

    .legal-section h3 {
        font-size: 16px;
        line-height: 1.5;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
        line-height: 1.8;
    }

}

/* =========================
   アカウント削除
========================= */

.settings-danger-link {
    color: #a94444;
}

.settings-danger-link:hover {
    background: #fff7f7;
}

.settings-danger-link
.settings-item-note {
    color: #aa6969;
}

.delete-account-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.delete-account-card {
    padding: 28px;
}

.delete-account-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: #fff7f7;
    border: 1px solid #efd2d2;
    border-radius: 14px;
}

.delete-account-warning > svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: #b24b4b;
}

.delete-account-warning h3 {
    margin: 0 0 8px;
    color: #8f3535;
    font-size: 17px;
}

.delete-account-warning p {
    margin: 0;
    color: #6f4d4d;
    font-size: 14px;
    line-height: 1.7;
}

.delete-account-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.delete-account-button {
    background: #b24b4b;
}

.delete-account-button:hover {
    background: #973d3d;
}

.delete-account-button:disabled {
    background: #c9c9c9;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width: 699px) {

    .delete-account-card {
        padding: 20px 16px;
    }

    .delete-account-warning {
        padding: 14px;
    }

    .delete-account-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .delete-account-actions
    .secondary-button,
    .delete-account-actions
    button {
        width: 100%;
        box-sizing: border-box;
    }

}

.ad-placeholder{

    margin-top:40px;

    padding:20px;

    border:1px dashed #cfd8dc;

    border-radius:12px;

    text-align:center;

    color:#888;

    background:#fafafa;

}

.ad-placeholder-title{

    font-weight:600;

    margin-bottom:10px;

}

.ad-placeholder-body{

    font-size:14px;

}

/* =========================
   パスワード変更
========================= */

.change-password-page{
    width:100%;
    max-width:720px;
    margin:0 auto;
}

.change-password-card{
    padding:28px;
}

.change-password-actions{

    display:flex;

    justify-content:center;

    gap:12px;

    margin-top:28px;

    flex-wrap:wrap;

}

.form-help{

    display:block;

    margin-top:6px;

    color:#777;

    font-size:13px;

}

@media(max-width:699px){

    .change-password-card{

        padding:20px 16px;

    }

    .change-password-actions{

        flex-direction:column-reverse;

        align-items:stretch;

    }

    .change-password-actions
    a,

    .change-password-actions
    button{

        width:100%;

        box-sizing:border-box;

    }

}

.forgot-password-link{

    margin-top:18px;

    text-align:center;

}

.forgot-password-link a{

    color:var(--perske-green);

    font-size:14px;

    text-decoration:none;

}

.forgot-password-link a:hover{

    text-decoration:underline;

}

.flash-messages {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 18px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.flash-success {
    color: #356044;
    background: #edf8f0;
    border: 1px solid #cfe6d5;
}

.flash-error {
    color: #8a3f3f;
    background: #fff2f2;
    border: 1px solid #efd0d0;
}

/* =========================
   初回利用ガイド
========================= */

.onboarding-page {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.onboarding-card {
    padding: 36px;
}


/* ヘッダー */

.onboarding-header {
    text-align: center;
    margin-bottom: 36px;
}

.onboarding-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin: 0 auto 18px;

    background: var(--light-green);
    border-radius: 20px;
}

.onboarding-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--perske-green);
}

.onboarding-header h1 {
    margin: 0 0 12px;
    color: #333;
    font-size: 28px;
}

.onboarding-header p {
    margin: 0;
    color: #667064;
    font-size: 16px;
    line-height: 1.7;
}


/* 3ステップ */

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.onboarding-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    align-items: center;

    padding: 18px;

    background: #f8faf9;
    border: 1px solid #e4ebe3;
    border-radius: 14px;
}

.onboarding-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    background: white;
    border-radius: 14px;
}

.onboarding-step-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--perske-green);
}

.onboarding-step h2 {
    margin: 0 0 5px;
    padding: 0;

    color: var(--perske-green);
    border: none;

    font-size: 17px;
}

.onboarding-step p {
    margin: 0;
    color: #667064;
    font-size: 14px;
    line-height: 1.6;
}


/* はじめるボタン */

.onboarding-card form {
    margin: 0;
    text-align: center;
}

.onboarding-start-button {
    min-width: 240px;
    padding: 14px 24px;

    background: var(--perske-green);
    color: white;

    border: none;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 700;
}

.onboarding-start-button svg {
    stroke: white;
}


/* スマホ */

@media (max-width: 699px) {

    .onboarding-page {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .onboarding-card {
        padding: 24px 18px;
        margin: 16px 0;
    }

    .onboarding-header {
        margin-bottom: 26px;
    }

    .onboarding-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .onboarding-icon svg {
        width: 27px;
        height: 27px;
    }

    .onboarding-header h1 {
        font-size: 23px;
    }

    .onboarding-header p {
        font-size: 14px;
    }

    .onboarding-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .onboarding-step-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .onboarding-step-icon svg {
        width: 21px;
        height: 21px;
    }

    .onboarding-step h2 {
        font-size: 16px;
    }

    .onboarding-step p {
        font-size: 13px;
    }

    .onboarding-start-button {
        width: 100%;
        min-width: 0;
    }
}

.onboarding-return-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: fit-content;
    min-width: 240px;
    margin: 0 auto;
    box-sizing: border-box;

    text-decoration: none;
}

.onboarding-return-button svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

@media (max-width: 699px) {

    .onboarding-return-button {
        width: 100%;
        min-width: 0;
    }
}

/* =========================
   Perskeについて
========================= */

.about-page {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    padding: 44px 36px;
}

.about-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;
    margin: 0 auto 20px;

    background: var(--light-green);
    border-radius: 20px;
}

.about-hero-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--perske-green);
}

.about-hero h1 {
    margin: 0 0 16px;
    font-size: 32px;
    color: #2f332f;
}

.about-hero-text {
    max-width: 560px;
    margin: 0 auto;
    color: #667064;
    font-size: 16px;
    line-height: 1.8;
}

.about-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.about-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 22px;

    background: var(--perske-green);
    color: white;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.about-primary-button:hover {
    opacity: 0.9;
}

.about-primary-button svg {
    width: 18px;
    height: 18px;
    stroke: white;
}


/* できること */

.about-section {
    margin: 36px 0;
}

.about-section-title {
    margin: 0 0 18px;
    padding: 0;

    color: var(--perske-green);
    border: none;

    font-size: 22px;
    text-align: center;
}

.about-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-feature {
    padding: 22px;

    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.about-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-bottom: 16px;

    background: var(--light-green);
    border-radius: 14px;
}

.about-feature-icon svg {
    width: 23px;
    height: 23px;
    stroke: var(--perske-green);
}

.about-feature h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 17px;
}

.about-feature p {
    margin: 0;
    color: #667064;
    font-size: 14px;
    line-height: 1.7;
}


/* メッセージ */

.about-message {
    margin-top: 38px;
    padding: 36px;
    text-align: center;
}

.about-message > svg {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    stroke: var(--perske-green);
}

.about-message h2 {
    margin: 0 0 14px;
    padding: 0;

    color: var(--perske-green);
    border: none;

    font-size: 22px;
}

.about-message p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: #667064;
    font-size: 15px;
    line-height: 1.8;
}


/* ログイン画面の「Perskeについて」 */

.auth-about-link {
    margin-top: 14px;
    text-align: center;
}

.auth-about-link a {
    color: var(--perske-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-about-link a:hover {
    text-decoration: underline;
}


/* スマホ */

@media (max-width: 699px) {

    .about-page {
        padding: 0 12px;
        box-sizing: border-box;
    }

    .about-hero {
        padding: 30px 20px;
    }

    .about-hero h1 {
        font-size: 26px;
    }

    .about-hero-text {
        font-size: 14px;
    }

    .about-feature-list {
        grid-template-columns: 1fr;
    }

    .about-feature {
        padding: 18px;
    }

    .about-message {
        padding: 28px 20px;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-primary-button,
    .about-actions .secondary-button {
        width: 100%;
        box-sizing: border-box;
    }
}