/*
 * Components Styles - New Kumehome Theme
 * パーツ（タイトル装飾、ボタン、ウィジェット）
 */

/* Heading Styles */
.site-main h3,
.home #top_fbox h3,
.home #fudo_top_r-3 h3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 0 0 25px;
  letter-spacing: normal;
  color: inherit;
}

/* h3をsection-titleとして使う場合 */
h3.section-title,
.site-main h3.section-title,
.home #top_fbox h3.section-title,
.home #fudo_top_r-3 h3.section-title {
  font-size: var(--font-size-section-title);
  color: #3e5463;
}

.home .widget_fudo_top_r>h3 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: #3e5463;
  margin: 0 0 25px;
}

/* Home Page Specific */
.home #top_fbox ul.grid-content,
.home #fudo_top_r-3 ul.grid-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home .custom-html-widget img[alt="友だち追加"] {
  height: auto !important;
  width: auto;
  max-width: 100%;
  display: inline-block;
}

/* ミンサー装飾付きタイトル（共通スタイル） */
.home .widget_fudo_top_r>h3,
.widget_custom_html > h3,
.widget_text > h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-section-title);
  line-height: 1.2;
  color: #3e5463;
  padding: 6px 0;
  margin: 0 0 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-left: 40px;
  padding-right: 30px;
}

.home .widget_fudo_top_r>h3::before,
.home .widget_fudo_top_r>h3::after,
.widget_custom_html > h3::before,
.widget_custom_html > h3::after,
.widget_text > h3::before,
.widget_text > h3::after {
  content: "";
  width: auto;
  height: 20px;
  flex-grow: 1;
  background-image: url('../images/buleline2.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 20px;
  opacity: 0.95;
}

.home .widget_fudo_top_r>h3::before,
.widget_custom_html > h3::before,
.widget_text > h3::before {
  margin-left: 10px;
}

.home .widget_fudo_top_r>h3::after,
.widget_custom_html > h3::after,
.widget_text > h3::after {
  margin-right: 10px;
}

/* Sidebar Widgets */
.site-sidebar .sidebar-widgets {
  padding: 0 min(2vw, 50px);
  margin-top: auto;
  margin-bottom: min(2vh, 20px);
}

.site-sidebar .sidebar-widgets .widget {
  background: transparent;
  padding: 16px 0;
  margin-bottom: 16px;
  box-shadow: none;
}

.site-sidebar .sidebar-widgets .widget-title {
  margin-top: 0;
  font-size: var(--font-size-widget-title);
  border-bottom: 1px solid #02358f;
  padding-bottom: 8px;
  font-weight: 500;
  color: #000;
}

.site-sidebar .widget.widget_media_image,
.site-sidebar .widget .sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-sidebar .widget.widget_media_image>*:first-child,
.site-sidebar .widget .sidebar-logo>*:first-child {
  margin: clamp(24px, 4vh, 40px) auto 0;
}

.site-sidebar .widget.widget_media_image img,
.site-sidebar .widget .sidebar-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 260px);
  max-height: min(26vh, 260px);
  height: auto;
}

/* Section Title Styles */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-section-title);
  line-height: 1.2;
  color: #3e5463;
  padding: 6px 0;
  margin: 0 0 24px;
  text-align: center;
  position: relative;
}

/* Section Title with Lines (ミンサー装飾) */
.section-title.is-lined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-left: 40px;
  padding-right: 30px;
}

.section-title.is-lined::before,
.section-title.is-lined::after {
  content: "";
  position: static;
  transform: none;
  top: auto;
  width: auto;
  height: 20px;
  flex-grow: 1;
  background: url('../images/buleline2.png') repeat-x center / auto 20px;
  opacity: 0.95;
}

.section-title.is-lined::before {
  margin-left: 10px;
}

.section-title.is-lined::after {
  margin-right: 10px;
}

/* Widget Title Variations */
.widget_fudo_top_r > .section-title {
  margin-bottom: 32px;
}

/* Post Entry */
.post-entry {
  background-color: #ffffff;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-entry h2 {
  margin-top: 0;
}

.post-meta {
  font-size: var(--font-size-post-meta);
  color: #666666;
  margin-bottom: 12px;
}

/* Button Styles */
button.box1low {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none !important;
  border-radius: 20px !important;
  background-color: #87ceeb !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

button.box1low a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.5vw, 13px) clamp(12px, 1.8vw, 14px);
  color: #ffffff !important;
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  line-height: 1;
  text-decoration: none;
}

button.box1low:hover,
button.box1low:focus-visible {
  background-color: #6ec0e1 !important;
}

button.box1low:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

button.box1low a:focus-visible {
  outline: none;
}

/* ======= Hero Tagline (共通スタイル) ======= */

.page-hero {
  width: min(1100px, calc(100% - 40px));
  margin: clamp(8px, 12vh, 160px) auto 40px;
  text-align: center;
  pointer-events: none;
}

.hero-tagline {
  display: inline-block;
  color: rgba(255,255,255,0.98);
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1.3;
  font-size: var(--font-size-hero);
  text-shadow: 0 2px 12px rgba(0,0,0,0.28);
  margin: 0;
  padding: 6px 10px;
  white-space: nowrap;
}

.hero-tagline .dash {
  opacity: .95;
  margin: 0 .35em;
}

/* Hero tagline responsive - mobile */
@media (max-width: 768px) {
  .page-hero {
    margin-top: clamp(8px, 8vh, 80px);
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: var(--font-size-hero-mobile);
    letter-spacing: .1em;
    white-space: normal;
  }

  .hero-tagline .dash {
    display: none;
  }
}
