/* psyllium story layout */
.story-container {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    background: #f7f7f7;
    padding-bottom: 60px;
}
.story-hero {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}
.story-hero h1 {
    color: #669999;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 500;
}
.story-hero p.sub {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}
.story-hero img {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.story-agenda {
    background: #fff;
    padding: 40px 20px 80px;
}
.story-agenda-inner {
    max-width: 700px;
    margin: 0 auto;
}
.story-agenda h3 {
    color: #669999;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
}
.story-agenda ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.story-agenda li {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px dashed #ccc;
    display: flex;
    align-items: center;
}
.story-agenda li span.num {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #669999;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    margin-right: 15px;
    font-weight: bold;
}
.story-divider {
    background: #669999;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.story-divider span.en {
    display: block;
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.story-divider h2 {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 3px;
}
.story-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}
.story-section h3.sec-title {
    color: #669999;
    font-size: 24px;
    border-bottom: 2px solid #669999;
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

.story-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}
.story-grid > img, .story-grid > div {
    border-radius: 4px;
    object-fit: cover;
    aspect-ratio: 4/3;
    width: 100%;
}
.story-grid.col-2 > img, .story-grid.col-2 > div {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
}
.story-grid.col-3 > img, .story-grid.col-3 > div {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}
.story-grid.col-4 > img, .story-grid.col-4 > div {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
}
.story-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
    .story-hero h1 { font-size: 24px; }
    .story-hero img { width: 250px; height: 250px; aspect-ratio: 1/1; }
    .story-divider h2 { font-size: 28px; }
    .story-grid.col-4 > img, .story-grid.col-4 > div,
    .story-grid.col-3 > img, .story-grid.col-3 > div,
    .story-grid.col-2 > img, .story-grid.col-2 > div {
        flex: 1 1 100%;
        max-width: 100%;
        aspect-ratio: auto; /* let mobile dictate height */
    }
}


.story-step {
    text-align: center;
}
.story-step img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain; /* changed from cover to contain to prevent cropping essential text in diagrams */
    background: #fff;
    border: 1px solid #eee;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 4px;
}
.story-step p {
    font-size: 15px;
    font-weight: bold;
    color: #444;
    line-height: 1.4;
    margin: 0;
}
.story-step p span {
    font-size: 13px;
    font-weight: normal;
    color: #666;
    display: block;
    margin-top: 4px;
}
.story-arrow-container {
    text-align: center;
    font-size: 32px;
    color: #669999;
    margin: 20px 0;
}
.story-inline-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.story-inline-grid .story-step {
    flex: 1;
    min-width: 0;
}
.story-inline-grid .story-arrow {
    font-size: 24px;
    color: #669999;
    flex-shrink: 0;
}
.story-circle-img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    shape-outside: circle();
    float: right;
    margin-left: 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.story-col-row {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
}
.story-col-row > div {
     flex: 1;
}
.story-side-col img:not(.story-circle-img) {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    margin-bottom: 5px;
}
.harvest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}
.harvest-grid > img:nth-of-type(1),
.harvest-grid > img:nth-of-type(2) {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
}
.harvest-grid > p {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 10px 0 !important;
    text-align: left !important;
}
.harvest-grid > img:nth-of-type(3),
.harvest-grid > img:nth-of-type(4) {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
}
@media screen and (max-width: 768px) {
    .story-inline-grid {
        flex-direction: column;
    }
    .story-circle-img {
        float: none;
        display: block;
        margin: 20px auto;
    }
    .story-col-row {
        flex-direction: column;
    }
    .story-inline-grid .story-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .harvest-grid > img, .harvest-grid > p {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
}
