/*
Theme Name: Hinode Medical Management Group
Theme URI: https://www.z-hinode.or.jp/
Author: Hinode Team
Description: Custom original theme for Hinode Medical Management Group.
Version: 1.0.0
Text Domain: hinode-theme
*/

/* Base reset (minimal) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #005a8d;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.l-container {
  width: min(1080px, 92%);
  margin-inline: auto;
}

.page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-primary);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 42, 74, 0.85) 0%, rgba(26, 42, 74, 0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 64px;
  width: 100%;
}

.page-hero-en {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 10px;
}

.page-hero-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.page-hero-lead {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 64px;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}

.breadcrumb-sep {
  color: var(--color-border);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b8963e;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  text-decoration: none;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--gold {
  background: #b8963e;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--line {
  background: var(--color-line);
  color: #fff;
}

.btn--line:hover,
.btn--line:focus {
  background: #05b34c;
  color: #fff;
}

/* hionode モックの .btn--accent（style.css にのみ未登録だった） */
.btn--accent {
  background: var(--color-accent, #c41a1a);
  color: #fff;
}

.btn--accent:hover,
.btn--accent:focus {
  background: var(--color-accent-hover, #a31515);
  color: #fff;
}

.cta-banner {
  background: var(--color-primary);
  padding: 64px;
  text-align: center;
}

.cta-banner-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #b8963e;
  display: block;
  margin-bottom: 16px;
}

.cta-banner-title {
  font-size: 28px;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.cta-banner-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.p-front-page__intro,
.p-front-page__tabs {
  padding: 2rem 0;
}

.p-front-page__title,
.p-front-page__section-title {
  margin: 0 0 0.75rem;
}

.c-entry {
  padding: 2rem 0;
}

.c-entry__title {
  margin: 0 0 1rem;
}

.c-page-header {
  margin-bottom: 1rem;
}

.c-page-header__title {
  margin: 0;
}

.c-page-nav {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #d9d9d9;
  background: #fafafa;
}

.c-page-nav__list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.c-page-nav__parent-link {
  margin: 0;
}

.c-page-nav__item + .c-page-nav__item {
  margin-top: 0.4rem;
}

.c-page-nav__link.is-current {
  font-weight: 700;
  text-decoration: underline;
}

.c-news-tabs {
  margin-top: 1rem;
}

.c-news-tabs__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.c-news-tabs__tab {
  border: 1px solid #005a8d;
  background: #fff;
  color: #005a8d;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.c-news-tabs__tab[aria-selected="true"] {
  background: #005a8d;
  color: #fff;
}

.c-news-tabs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-news-tabs__item + .c-news-tabs__item {
  margin-top: 0.5rem;
}

.c-news-tabs__link {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.c-news-tabs__date {
  min-width: 6.5rem;
  color: #666;
  font-size: 0.9rem;
}

.c-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.c-pagination a,
.c-pagination span {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 0.3rem 0.65rem;
}

.c-pagination .current {
  border-color: #005a8d;
  background: #005a8d;
  color: #fff;
}

.c-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}

.c-related-news {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.c-related-news__title {
  margin: 0 0 1rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Existing design oriented layout */
:root {
  --color-primary: #1a2a4a;
  --color-bg-light: #f8f7f5;
  --color-border: #e0ddd8;
  --color-border-light: #f0ede8;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --sidebar-width: 240px;
  --color-line: #06c755;
}

.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-logo .logo-en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.sidebar-logo .logo-ja {
  display: block;
  width: 100%;
  font-size: 13px;
  color: var(--color-primary);
  line-height: 1.6;
}

.sidebar-logo .logo-branch {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 6px;
  line-height: 1.45;
}

.sidebar-nav {
  padding: 20px 0;
  flex: 1;
}

.sidebar-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  border-left: 2px solid transparent;
}

.sidebar-nav a::after {
  content: attr(data-ja);
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: var(--color-bg-light);
}

.sidebar-contact {
  padding: 12px 12px 16px;
  border-top: 1px solid var(--color-border-light);
}

.sidebar-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 200px;
  margin-inline: auto;
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
  width: 200px;
  height: 150px;
  padding: 10px 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.sidebar-cta:hover {
  opacity: 0.92;
  filter: brightness(1.06);
  text-decoration: none;
}

.sidebar-cta--tel {
  background: #000;
  color: #fff;
}

.sidebar-cta-tel-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

.sidebar-cta-tel-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.sidebar-cta--line {
  background: #333;
}

.sidebar-cta-line-img {
  max-width: 62%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sidebar-cta--contact {
  background: #666;
  color: #fff;
  gap: 8px;
}

.sidebar-cta-mail-img {
  flex-shrink: 0;
  max-width: 30%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sidebar-cta-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sidebar-cta--blog {
  background: #b30000;
  color: #fff;
  gap: 4px;
}

.sidebar-cta-blog-en {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.sidebar-cta-blog-ja {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.l-header {
  border-bottom: 1px solid var(--color-border-light);
  background: #fff;
}

.l-header__inner {
  padding: 14px 0;
}

.l-footer {
  margin-top: 40px;
  border-top: 1px solid var(--color-border-light);
  background: #fff;
  padding: 24px 0;
}

/* 左ナビドロワー・オーバーレイ・1024px レイアウト: kasou-common.css に統一 */
