/*
Theme Name: Nagaokakyo Dental Clinic
Author: FeelSync System
Version: 1.0.0
*/

/*
 * WordPress-specific additions only.
 * All design CSS comes from the original static HTML files:
 *   settings.css, base.css, top.css (_top.css), sub_base.css, {page}/only.css
 */

/* Admin bar offset: shift header background when WP admin bar is visible */
.admin-bar #header {
	margin-top: 0;
}

/* Greeting: restore paragraph spacing inside wysiwyg output */
.greet_box .txt p {
	margin-bottom: 1.5em;
}
.greet_box .txt p:last-child {
	margin-bottom: 0;
}

/* WordPress image/iframe responsive */
iframe { width: 100%; max-width: 100%; }
img { max-width: 100%; height: auto; }
/* Table header images (e.g. age group icons) must not be constrained by the cell percentage width */
.ta01 th img { max-width: none; width: auto; height: auto; }

/* list_step step01: short description needs extra height to match step badge */
.list_step .step01 .wrap { min-height: 90px; }

/* Equal height for double-column box_mini rows (Stage cards) */
.box_mini_wrap:has(.box_mini.double) {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.box_mini_wrap:has(.box_mini.double) .box_mini {
    float: none;
    display: flex;
    flex-direction: column;
}
.box_mini_wrap:has(.box_mini.double) .box_mini_in {
    flex: 1;
}

/* WordPress alignment classes (wp-image output) */
.alignleft { float: left; padding: 5px 20px 20px 0; }
.alignright { float: right; padding: 5px 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto; }

/* WordPress widget */
.widget { margin-bottom: 30px; }
.widget li { padding: 10px 0 10px 20px; border-bottom: #e5c24e 1px solid; text-align: left; }

/* WordPress navigation */
.navigation { overflow: hidden; }

/* Blog/column styles - scoped to post templates only (body.single/.blog/.archive), not service pages (body.page) */
.ti_h4.blog { line-height: 1.7; padding-top: 4px; background-size: cover; min-height: 0; }
.post_date { font-size: 12px; }
.category { text-align: right; margin-top: 20px; }
.single .text_sub img,
.blog .text_sub img,
.archive .text_sub img { margin-top: 10px; margin-bottom: 15px; }
.single .text_sub > table, .single .text_sub > ol,
.blog .text_sub > table, .blog .text_sub > ol,
.archive .text_sub > table, .archive .text_sub > ol { margin: 20px 0; }
.single .text_sub > ol li:nth-child(n + 2),
.blog .text_sub > ol li:nth-child(n + 2),
.archive .text_sub > ol li:nth-child(n + 2) { margin-top: 5px; }

/* WordPress comment/calendar */
#wp-calendar { width: 80%; margin: 10px auto 0; text-align: center; }
td#prev { text-align: left; }
td#next { text-align: right; }
#respond { margin: 20px 0; }
#commentform label { display: block; }
.form-allowed-tags { display: none; }
.form-submit { margin: 10px 0 0 0; }
.form-submit input { padding: 10px; }

/* Mobile nav elements (hidden on desktop, activated in custom.css) */
.hamburger, .h_mobile_access, .gnav_meta { display: none; }
.text-danger { color: #c00; }

/* Responsive display utilities */
@media only screen and (max-width: 1023px) {
	.d-xsm-none { display: none !important; }
}
@media only screen and (min-width: 1024px) {
	.d-md-none { display: none !important; }
}