.teatime-page-content {
    background: #fff;
    font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: #333;
    line-height: 1.8;
}

/* =========================================
   Layout: Sidebar Navigation
   ========================================= */

.teatime-sidebar {
    width: 100%;
    /* Will fill the sideWrap container natively */
    background: #f1f1f1;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.teatime-sidebar-title {
    background-color: #f1f1f1;
    color: #333;
    padding: 20px 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 2px dotted #ccc;
    text-align: center;
}

.teatime-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teatime-sidebar-nav li {
    border-bottom: 1px dotted #ccc;
}

.teatime-sidebar-nav a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

/* Active State & Hover representing the red menu item */
.teatime-sidebar-nav a:hover,
.teatime-sidebar-nav li.active a {
    background-color: #e60012;
    /* JRC Red */
    color: #fff;
    font-weight: bold;
}

.teatime-sidebar-nav li.active a::before,
.teatime-sidebar-nav a:hover::before {
    content: "→ ";
}

.teatime-main-content {
    flex: 1;
    min-width: 0;
    /* Prevents flex children from pushing bounds natively */
}

/* =========================================
   Typography
   ========================================= */
.teatime-page-content h1 {
    font-size: 24px;
    color: #fff;
    background-color: #e02121;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.teatime-publication-info {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: -20px;
    margin-bottom: 30px;
}

.teatime-lead-highlight {
    color: #e02121;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
    font-size: 1.7rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.2);
}

.teatime-question {
    font-weight: bold;
    color: #e02121;
}

.teatime-page-content h2 {
    font-size: 22px;
    color: #e02121;
    border-bottom: 2px solid #e02121;
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.teatime-page-content h3 {
    font-size: 20px;
    color: #444;
    border-left: 5px solid #e02121;
    padding-left: 12px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

/* =========================================
   Component: Image & Text Split Layouts
   ========================================= */
   /* Base column layout */

.teatime-page-content img {
    max-width: 100%;
}

   .teatime-split {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    min-width: 0;
}

/* Modifier: Image on the Right (Default) */
.teatime-split--img-right {
    flex-direction: row;
}

/* Modifier: Image on the Left */
.teatime-split--img-left {
    flex-direction: row-reverse;
}

@media (max-width: 767px) {

    /* SP: 確実に縦1カラムへ */
    .teatime-split,
    .teatime-split--img-left,
    .teatime-split--img-right {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    /* SP: 縦積み時の余白を縮小 */
    .teatime-split {
        gap: 15px;
        margin-bottom: 20px;
    }

    .teatime-flow__content .teatime-split {
        margin-bottom: 0;
    }

    .teatime-flow {
        margin: 15px 0 30px;
    }

    .teatime-flow__item {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .teatime-flow__content {
        padding: 0 15px;
    }

    .teatime-layout-column {
        gap: 15px;
        margin-bottom: 20px;
    }
}

/* Text and Image Columns */
.teatime-split__text,
.teatime-split-text {
    flex: 1 1 400px;
    min-width: 0;
}

.teatime-split__img,
.teatime-split-img {
    flex: 0 1 400px;
    min-width: 0;
}

/* SP: ベーススタイルより後に記述して確実に上書き */
@media (max-width: 767px) {
    .teatime-split__text,
    .teatime-split-text,
    .teatime-split__img,
    .teatime-split-img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

.teatime-split__img img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.teatime-caption {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    text-align: left;
    line-height: 1.5;
}

/* =========================================
   Component: Image Grids (2 or 3 columns)
   ========================================= */
.teatime-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.teatime-grid__item {
    flex: 1 1 300px;
}

.teatime-grid__item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.teatime-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.teatime-card h3 {
    margin-top: 0;
    color: #b32126;
    border-left: none;
    padding-left: 0;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.teatime-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.teatime-caption {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* =========================================
   Component: Profile / Doctor Card
   ========================================= */
.teatime-profile {
    display: flex;
    align-items: flex-start;
    background: #fdfdfd;
    padding: 25px;
    border-left: 4px solid #b32126;
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-left: 4px solid #b32126;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 575px) {
    .teatime-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .teatime-profile__img {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

.teatime-profile__img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 25px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.teatime-profile__info {
    flex: 1;
}

.teatime-profile__name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.teatime-profile__title {
    font-size: 14px;
    color: #555;

    font-weight: bold;
}

.teatime-profile__text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* =========================================
   Component: Callout / Notice Box
   ========================================= */
.teatime-callout {
    background-color: #fff4cc;
    border: 1px solid #fadbdc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.teatime-callout p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* =========================================
   Component: Award List (医療安全 表彰)
   ========================================= */
.teatime-award-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.teatime-award-list li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.teatime-award-label {
    display: inline-block;
    background: #888;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 8px;
}

/* 院長賞を少し強調 */
.teatime-award-list li.is-top {
    background: #fff4cc;
    border-left: 4px solid #e02121;
    padding: 12px 14px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 16px;
}

.teatime-award-list li.is-top .teatime-award-label {
    background: #e02121;
}

/* =========================================
   Component: Figure (section photo)
   ========================================= */
.teatime-figure {
    margin: 0 0 28px;
    text-align: center;
}

.teatime-figure img {
    border-radius: 4px;
}

.teatime-figure figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* =========================================
   Component: Flow Steps
   ========================================= */
.teatime-flow {
    margin: 30px 0 50px;
    position: relative;
}

.teatime-flow__item {
    background: #fff;
    border: 2px solid #a4c2e6;
    /* Based on the reference design */
    border-radius: 8px;
    margin-bottom: 40px;
    padding: 0 0 25px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.teatime-flow__item::before {
    content: "▼";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: #4766a5;
    font-size: 24px;
}

.teatime-flow__item:last-child::before,
.teatime-flow__item:last-child {
    margin-bottom: 0;
}

.teatime-flow__item:last-child::before {
    display: none;
}

.teatime-flow__badge {
    display: inline-block;
    background: #4766a5;
    color: #fff;
    padding: 10px 24px;
    border-radius: 0 0 10px 0;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 16px;
}

.teatime-flow__content {
    padding: 0 25px;
}

.teatime-split__img-group {
    display: flex;
    gap: 15px;
}

.teatime-split__img-group img {
    flex: 1;
    min-width: 0;
}

/* =========================================
   Component: Doctor Introduction (Partner Clinics)
   ========================================= */
.teatime-doctor-entry {
    margin-bottom: 80px;
    position: relative;
}

.teatime-doctor-title {
    color: #0068b7;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    border-left: none !important;
    padding-left: 0 !important;
}

.teatime-doctor-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.teatime-doctor-sidebar {
    flex: 0 1 340px;
}

.teatime-doctor-main {
    flex: 1 1 400px;
}

.teatime-doctor-photo {
    text-align: center;
    margin-bottom: 20px;
}

.teatime-doctor-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.teatime-doctor-name {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 25px;
}

.teatime-doctor-name span {
    font-size: 18px;
}

.teatime-doctor-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teatime-doctor-info-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dotted #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.teatime-doctor-info-item:last-child {
    border-bottom: 1px dotted #ccc;
}

.teatime-doctor-badge {
    background-color: #008031;
    color: #fff;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    height: fit-content;
}

.teatime-doctor-subtext {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.teatime-doctor-main-h {
    color: #0068b7;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.teatime-doctor-desc {
    margin-bottom: 25px;
    font-size: 15px;
}

/* Character Box with brackets */
.teatime-doctor-message-box {
    position: relative;
    padding: 30px 40px;
    background-color: #f0f7ff;
    margin-top: 30px;
}

.teatime-doctor-message-box::before,
.teatime-doctor-message-box::after,
.teatime-doctor-message-box>span::before,
.teatime-doctor-message-box>span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #0068b7;
}

/* Top Left */
.teatime-doctor-message-box::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

/* Top Right */
.teatime-doctor-message-box::after {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

/* Bottom Left */
.teatime-doctor-message-box>span::before {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
}

/* Bottom Right */
.teatime-doctor-message-box>span::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.teatime-doctor-message-title {
    color: #0068b7;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    display: block;
}

.teatime-doctor-divider {
    margin: 60px 0;
    height: 1px;
    background: #008031;
    position: relative;
}

.teatime-doctor-divider::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #008031;
    border-radius: 50%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .teatime-doctor-layout {
        flex-direction: column;
    }

    .teatime-doctor-sidebar {
        flex: 1 1 100%;
    }
}

/* =========================================
   Legacy/Misc (Table of Contents, Hero, etc.)
   ========================================= */
.teatime-toc {
    background: #fef4f4;
    padding: 20px 30px;
    border-radius: 8px;
    margin: 30px 0;
    border-top: 4px solid #b32126;
}

.teatime-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teatime-toc li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.teatime-toc li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.teatime-toc a {
    color: #b32126;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: block;
    transition: color 0.2s;
}

.teatime-toc a:hover {
    color: #d13a40;
}

.teatime-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .teatime-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.teatime-table th,
.teatime-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.teatime-table th {
    background-color: #b32126;
    color: #fff;
    font-weight: 500;
}

.teatime-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

.teatime-cover-hero {
    text-align: center;
    margin: 40px 0;
}

.teatime-cover-hero img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* For backwards compatibility with the previous build script */
.teatime-layout-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.teatime-text-col {
    flex: 1 1 500px;
}

.teatime-img-col {
    flex: 0 1 350px;
    text-align: center;
}

.teatime-img-wrap {
    margin-bottom: 20px;
}

.teatime-img-wrap img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.teatime-img-full {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* =========================================
   Recipe Page Styles (Refined for page_11 design)
   ========================================= */
.teatime-recipe-container {
    padding: 20px 0;
}

.teatime-recipe-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.teatime-recipe-pot-illustration {
    flex: 0 0 160px;
    text-align: center;
}

.teatime-recipe-pot-illustration img {
    max-width: 100%;
}

.teatime-recipe-header-text {
    flex: 1;
}

.teatime-recipe-dish-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 3px dotted #f39800;
    display: inline-block;
}

.teatime-publication-info.recipe-right {
    text-align: right;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.teatime-recipe-intro {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #444;
}

.teatime-recipe-main-grid {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.teatime-recipe-col-left {
    flex: 0 0 280px;
}

.teatime-recipe-col-right {
    flex: 1;
}

.teatime-recipe-orange-label {
    background-color: #f39800;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 15px;
}

.teatime-recipe-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.teatime-recipe-list li {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.teatime-recipe-list li .dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 8px;
    position: relative;
    top: -4px;
}

/* Ingredient group with "A" bracket label */
.teatime-recipe-ingredient-group {
    display: flex;
    align-items: stretch;
    margin-bottom: 8px;
}

.teatime-recipe-ingredient-group__label {
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-right: 2px;
    flex-shrink: 0;
    min-width: 1em;
}

.teatime-recipe-ingredient-group__brace {
    width: 7px;
    margin-right: 8px;
    flex-shrink: 0;
    border-top: 1.5px solid #555;
    border-right: 1.5px solid #555;
    border-bottom: 1.5px solid #555;
}

.teatime-recipe-ingredient-group__items {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.teatime-recipe-ingredient-group__items li {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.teatime-recipe-ingredient-group__items li .dots {
    flex: 1;
    border-bottom: 1px dotted #ccc;
    margin: 0 8px;
    position: relative;
    top: -4px;
}

.teatime-recipe-method-steps {
    padding-left: 0;
    list-style: none;
}

.teatime-recipe-method-steps li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.teatime-recipe-method-steps li::before {
    content: counter(step) "";
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #f39800;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.teatime-recipe-photo-area {
    float: right;
    margin: 0 0 20px 20px;
    width: 280px;
    position: relative;
}

.teatime-recipe-photo-wrap img {
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teatime-recipe-speech-bubble {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    border: 2px dashed #f39800;
    border-radius: 15px;
    padding: 10px 15px;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    font-weight: bold;
    max-width: 140px;
    z-index: 2;
}

.teatime-recipe-speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20%;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: #fff transparent transparent;
}

/* Bottom Profile Section */
.teatime-recipe-profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.teatime-recipe-effect-dotted-box {
    flex: 1;
    border: 2px dotted #f39800;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    background: #fff;
}

.teatime-recipe-effect-dotted-box h4 {
    color: #333;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.teatime-recipe-effect-dotted-box p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.teatime-recipe-arrow-right {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #f39800;
}

.teatime-recipe-arrow-right::after {
    content: "";
    position: absolute;
    right: 2px;
    top: -20px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 20px solid #fff;
}

.teatime-recipe-staff-profile {
    flex: 0 0 150px;
    text-align: center;
}

.teatime-recipe-staff-profile p {
    margin-bottom: 0;
    padding-bottom: 0;
}


.teatime-recipe-staff-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.teatime-recipe-staff-title {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.teatime-recipe-staff-name {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
}

.teatime-recipe-staff-en {
    font-size: 11px;
    color: #999;
}

@media (max-width: 900px) {

    .teatime-recipe-main-grid,
    .teatime-recipe-profile-section {
        flex-direction: column;
    }

    .teatime-recipe-col-left,
    .teatime-recipe-col-right,
    .teatime-recipe-staff-profile {
        width: 100%;
        flex: none;
    }

    .teatime-recipe-photo-area {
        float: none;
        width: 100%;
        margin: 0 0 30px 0;
    }

    .teatime-recipe-arrow-right {
        display: none;
    }
}