/* Philosophy / vision page (基本理念・ビジョン, Figma 4059:41695).
   Layout: clip-path 3-layer pyramid on the left + numbered items on the right. */

.pv-title-band-wrap {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 40px;
}

/* Header/breadcrumb/body share the same horizontal grid. */
.sn-breadcrumb-wrap,
.ab-body-layout {
    padding-right: 40px;
    padding-left: 40px;
}
.pv-title-band {
    display: inline-block;
    background: #4DB1AF;
    color: #fff;
    font-size: 26px; font-weight: 700;
    line-height: 1;
    padding: 18px 48px 18px 28px;
    margin: 0;
}

.pv-section { margin-bottom: 64px; }
.pv-section-title {
    display: flex; align-items: center; gap: 24px;
    font-size: 22px; font-weight: 700; color: #008F8D;
    text-align: center;
    margin: 0 0 40px;
}
.pv-section-title::before,
.pv-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #008F8D;
}

.pv-layout {
    display: flex;
    gap: 44px;
    align-items: stretch; /* pyramid matches the right column height */
}

.pv-pyramid {
    flex: 0 0 400px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}
.pv-pyr-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
}
/* Apex at (50%,0), base at (0..100%,100%); layer breaks at 31% / 61% height. */
.pv-pyr-top {
    flex: 0 0 31%;
    background: #E4B29F;
    clip-path: polygon(50% 0%, 65.5% 100%, 34.5% 100%);
}
.pv-pyr-top span { margin-top: 28%; }
.pv-pyr-mid {
    flex: 0 0 30%;
    background: #F9E3CF;
    clip-path: polygon(34.5% 0%, 65.5% 0%, 80.5% 100%, 19.5% 100%);
}
.pv-pyr-bot {
    flex: 1 1 auto;
    background: #A9C7E1;
    clip-path: polygon(19.5% 0%, 80.5% 0%, 100% 100%, 0% 100%);
}

.pv-items {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 44px;
    min-width: 0;
}
.pv-item-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.pv-item-badge {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px; font-weight: 700;
    color: #006A62;
}
.pv-badge-1 { background: #E4B29F; }
.pv-badge-2 { background: #F9E3CF; }
.pv-badge-3 { background: #A9C7E1; }
.pv-item-heading {
    font-size: 20px; font-weight: 700;
    color: #006A62;
    margin: 0;
}

.pv-item-card {
    margin-left: 56px;
    background: #fff;
    border: 1px solid #E2E6EB;
    border-left: 5px solid #006A62;
    border-radius: 4px;
    padding: 26px 28px;
}
/* Lead paragraph is larger for hierarchy. Bold is content-driven via <strong>/<b>. */
.pv-item-lead { font-weight: 700; }
.pv-item-card > p:first-of-type {
    font-size: 17px;
    color: #061C3D;
    line-height: 1.7;
    margin: 0;
}
.pv-item-text,
.pv-item-card > p:not(:first-of-type) {
    font-size: 15px;
    color: #061C3D;
    line-height: 1.8;
    margin: 6px 0 0;
}

/* Support Gutenberg RichText lists/paragraphs. */
.pv-item-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pv-item-card li {
    margin-bottom: 18px;
}
.pv-item-card li:last-child {
    margin-bottom: 0;
}
.pv-item-card li strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #061C3D;
    margin: 0 0 4px;
}
.pv-item-card li strong::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='8' stroke='%23008F8D' stroke-width='1.5'/%3E%3Cpath d='M5.5 9.2L8 11.5L12.5 6.5' stroke='%23008F8D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.pv-item-card li p,
.pv-item-card li span {
    display: block;
    font-size: 14px;
    color: #061C3D;
    line-height: 1.8;
    margin: 0 0 0 26px;
}


/* Policy checklist card gets tighter left padding (1/3 of the regular card). */
.pv-item:last-child .pv-item-card { padding-left: 9px; }
.pv-policy { margin-bottom: 18px; }
.pv-policy:last-child { margin-bottom: 0; }
.pv-policy-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px; font-weight: 700;
    color: #061C3D;
    margin: 0 0 4px;
}
.pv-policy-check { flex-shrink: 0; }
.pv-policy-text {
    font-size: 14px;
    color: #061C3D;
    line-height: 1.8;
    margin: 0 0 0 26px;
}

@media (max-width: 1100px) {
    .pv-layout { gap: 32px; }
    .pv-pyramid { flex-basis: 340px; min-height: 560px; }
}

/* Sidebar collapses at 960px (page-about.css). Match title-band scale here. */
@media (max-width: 960px) {
    .pv-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 20px;
        padding-left: 20px;
    }
    .pv-title-band { font-size: 24px; padding: 17px 44px 17px 26px; }
    .pv-section { margin-bottom: 56px; }
    .pv-section-title { font-size: 21px; margin-bottom: 32px; }
    .pv-pyramid { flex-basis: 300px; min-height: 520px; }
    .pv-items { gap: 36px; }
}

@media (max-width: 900px) {
    .pv-layout { flex-direction: column; gap: 32px; align-items: stretch; }
    .pv-pyramid {
        flex: none; flex-basis: auto;
        width: 100%; max-width: 340px;
        margin: 0 auto;
        min-height: 0; height: 460px;
    }
    .pv-item-card { margin-left: 0; }
}

@media (max-width: 768px) {
    .pv-title-band { font-size: 20px; padding: 14px 32px 14px 20px; }
    .pv-section { margin-bottom: 48px; }
    .pv-section-title { font-size: 18px; gap: 14px; margin-bottom: 28px; }
    .pv-pyramid { max-width: 320px; height: 420px; }
    .pv-pyr-layer { font-size: 17px; }
    .pv-items { gap: 32px; }
    .pv-item-head { gap: 12px; margin-bottom: 12px; }
    .pv-item-badge { flex: 0 0 36px; width: 36px; height: 36px; font-size: 16px; }
    .pv-item-heading { font-size: 18px; }
    .pv-item-card { padding: 20px 18px; }
    .pv-item-card > p:first-of-type { font-size: 16px; }
    .pv-item:last-child .pv-item-card { padding-left: 12px; }
}

@media (max-width: 560px) {
    .pv-title-band-wrap,
    .sn-breadcrumb-wrap,
    .ab-body-layout {
        padding-right: 16px;
        padding-left: 16px;
    }
    .pv-title-band { font-size: 18px; padding: 12px 22px 12px 16px; line-height: 1.3; }
    .pv-section-title { font-size: 16px; gap: 12px; margin-bottom: 22px; }
    .pv-pyramid { max-width: 280px; height: 380px; }
    .pv-pyr-layer { font-size: 15px; line-height: 1.3; }
    .pv-items { gap: 28px; }
    .pv-item-heading { font-size: 17px; }
    .pv-item-card { padding: 18px 16px; border-left-width: 4px; }
    .pv-item-card > p:first-of-type { font-size: 15px; line-height: 1.65; }
    .pv-item-card li strong,
    .pv-policy-title { font-size: 14px; }
    .pv-item-card li p,
    .pv-item-card li span,
    .pv-policy-text { font-size: 13px; margin-left: 24px; }
    .pv-item:last-child .pv-item-card { padding-left: 8px; }
}

@media (max-width: 420px) {
    .pv-title-band { font-size: 17px; padding: 11px 18px 11px 14px; }
    .pv-section { margin-bottom: 40px; }
    .pv-section-title { font-size: 15px; gap: 10px; margin-bottom: 20px; }
    .pv-pyramid { max-width: 260px; height: 340px; }
    .pv-pyr-layer { font-size: 14px; }
    .pv-item-badge { flex: 0 0 32px; width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
    .pv-item-heading { font-size: 16px; }
    .pv-item-card { padding: 16px 14px; }
    .pv-item-card > p:first-of-type { font-size: 14.5px; }
}

/* iPhone SE 1st-gen and similar. */
@media (max-width: 359px) {
    .pv-title-band { font-size: 15px; padding: 10px 14px 10px 12px; }
    .pv-section-title { font-size: 14px; gap: 8px; }
    .pv-pyramid { max-width: 220px; height: 300px; }
    .pv-pyr-layer { font-size: 13px; }
    .pv-item-heading { font-size: 15px; }
    .pv-item-card { padding: 14px 12px; }
    .pv-item-card > p:first-of-type { font-size: 14px; }
}

/* Editor-only: Gutenberg block layout overrides inside wp-admin. Sidebar/main
   flex + inner-blocks fill are handled by assets/css/editor-philosophy-vision.css. */
.editor-styles-wrapper .wp-block[data-type="sunatec/pv-body"] {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
}

.editor-styles-wrapper .pv-layout > .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 44px !important;
    align-items: stretch !important;
}

.editor-styles-wrapper .wp-block[data-type="sunatec/pv-pyramid"] {
    flex: 0 0 400px !important;
    width: 400px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.editor-styles-wrapper .wp-block[data-type="sunatec/pv-pyramid"] > div {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.editor-styles-wrapper .wp-block[data-type="sunatec/pv-pyramid"] .pv-pyramid {
    flex: 1 1 auto !important;
    height: 100% !important;
}

.editor-styles-wrapper .wp-block[data-type="sunatec/pv-items-container"] {
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    max-width: none !important;
}

.editor-styles-wrapper .wp-block[data-type="sunatec/pv-item"] {
    margin: 0 0 44px 0 !important;
}
.editor-styles-wrapper .wp-block[data-type="sunatec/pv-item"]:last-child {
    margin: 0 !important;
}

.editor-styles-wrapper .block-editor-block-list__layout > .block-editor-block-list__block:not(:last-child) .pv-item-card {
    padding-left: 28px !important;
}

.editor-styles-wrapper .pv-item-card p,
.editor-styles-wrapper .pv-item-card .rich-text {
    color: #061C3D !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.8 !important;
    margin: 6px 0 0 0 !important;
}

.editor-styles-wrapper .pv-item-card p:first-of-type,
.editor-styles-wrapper .pv-item-card .rich-text:first-of-type {
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

.editor-styles-wrapper .pv-item-card-list-edit {
    background: #fdfdfd !important;
    border: 1px dashed #008F8D !important;
    border-radius: 4px !important;
    padding: 16px !important;
    margin-top: 8px !important;
}
.editor-styles-wrapper .pv-item-card-list-edit .components-base-control {
    margin-bottom: 12px !important;
}
.editor-styles-wrapper .pv-item-card-list-edit .components-base-control:last-child {
    margin-bottom: 0 !important;
}
.editor-styles-wrapper .pv-item-card-list-edit label {
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #006A62 !important;
    margin-bottom: 4px !important;
}
.editor-styles-wrapper .pv-item-card-list-edit input,
.editor-styles-wrapper .pv-item-card-list-edit textarea {
    border: 1px solid #ccd0d4 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    width: 100% !important;
}
