/*
 * Layout Styles - New Kumehome Theme
 * レイアウト全般（header, sidebar, footer, main）
 */

/* Site Layout */
.site-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  box-shadow: 12px 0 24px rgba(0, 0, 0, 0.06);
}

/* Sidebar */
.site-sidebar {
  flex: 0 0 min(20vw, 384px);
  width: min(20vw, 384px);
  max-width: 384px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  min-height: 100dvh;
}

.site-sidebar .logo {
  display: block;
  width: auto;
  height: min(26vh, 260px);
  margin: min(4vh, 40px) auto 0 auto;
}

.site-sidebar .logo img,
.site-sidebar .logo a {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-sidebar .logo a {
  transition: opacity 0.3s;
}

.site-sidebar .logo a:hover {
  opacity: 0.8;
}

.site-sidebar .sidebar-navigation {
  padding: 0 min(2vw, 50px);
  position: relative;
  z-index: 10;
  padding-bottom: min(7.8%, 30px);
}

.site-sidebar .link {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-sidebar .link li {
  border-bottom: #02358f 1px solid;
  font-size: var(--font-size-base);
  line-height: 1.6em;
  letter-spacing: 0.1em;
}

.site-sidebar .link li a {
  display: block;
  padding: min(6%, 15px) 7px;
  font-family: var(--font-base) !important;
  font-weight: 400 !important;
  font-size: var(--font-size-sidebar-nav) !important;
  line-height: 1.8 !important;
  letter-spacing: 0.02em;
  color: #000;
  text-decoration: none;
}

.site-sidebar .link li:first-child a {
  padding-top: 0;
}

.site-sidebar .link li a:hover {
  background-color: rgba(2, 53, 143, 0.05);
  text-decoration: none;
}

.site-sidebar .copy {
  margin-top: auto;
  text-align: center;
  font-size: var(--font-size-sidebar-copy);
  line-height: 1.7em;
  margin-bottom: 0;
  padding: 0 min(2vw, 50px);
  font-family: var(--font-base);
  color: #686868;
}

/* Main Content Shell */
.site-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 24px;
  min-height: 100%;
  min-width: 0;
}

.site-main {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 24px;
  flex: 1;
}

.site-main #top_fbox,
.site-main #top_fbox.top-featured {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

.site-main #top_fbox>.widget {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

/* Header */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
  width: 100%;
}

.site-header-top .site-branding {
  flex: 1 1 240px;
}

.site-header-top nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .site-title {
  margin: 0;
}

.site-header .site-title a {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: #3e5463;
}

.site-header .site-description {
  margin: 7px 0 0;
  font-size: var(--font-size-sm);
  color: #686868;
}

/* Hero */
.site-hero {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.site-hero .widget {
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.site-hero .widget .widget-title {
  display: none;
}

.site-hero img,
.site-hero picture,
.site-hero video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Footer */
.site-footer {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
  color: #686868;
}

.site-footer .site-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: var(--font-size-sm);
  color: inherit;
}

.site-footer .site-info .site-title a,
.site-footer .site-info .imprint {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  font-weight: 400;
}

.site-footer .site-info .site-title a:hover,
.site-footer .site-info .imprint:hover,
.site-footer .site-info .site-title a:focus-visible,
.site-footer .site-info .imprint:focus-visible {
  text-decoration: underline;
}

.site-footer .site-info .sep {
  color: inherit;
  opacity: 0.75;
}

/* Navigation */
.site-navigation .menu,
.primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-navigation .menu li,
.primary-menu li {
  margin: 0;
}
