/* =============================================
   Ouchi Medical — メインスタイル
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-main:    #00A17E;
  --color-main-dk: #008f6e;
  --color-sub:     #A5D6CE;
  --color-accent1: #007BAF;
  --color-accent2: #2DB2D3;
  --color-text:    #3D3D3D;
  --color-bg:      #F7F9F9;
  --color-white:   #FFFFFF;
  --radius:        12px;
  --font-ja:       'Noto Sans JP', sans-serif;
  --font-en:       'Montserrat', sans-serif;
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
}

a { color: var(--color-accent1); text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; display: block; height: auto; }

/* ===== LAYOUT ===== */
section { padding: 80px 0; }
.inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.section-label {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 48px;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary { background: var(--color-main); color: var(--color-white); }
.btn-primary:hover { background: var(--color-main-dk); color: var(--color-white); opacity: 1; }
.btn-outline { border: 2px solid var(--color-main); color: var(--color-main); background: transparent; box-shadow: none; }
.btn-outline:hover { background: var(--color-main); color: var(--color-white); opacity: 1; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-arrow::after { content: " →"; font-size: 16px; display: inline-block; transition: transform .2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ===== HEADER ===== */
.site-header {
  background: var(--color-main);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 4px;
}
.logo-text {
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
  letter-spacing: .03em;
}
.header-right { display: flex; align-items: center; gap: 24px; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color .2s;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--color-white); opacity: 1; }
.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 48px;
  padding-left: 48px;
  border-left: 1px solid rgba(255,255,255,.3);
}
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: .05em;
  white-space: nowrap;
  text-decoration: none;
}
.header-tel:hover { opacity: .85; color: var(--color-white); }
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--color-white);
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-contact:hover { background: #f0faf7; transform: translateY(-1px); color: var(--color-main); opacity: 1; }

/* ハンバーガーボタン（SP用） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background-image: url('../../assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 120px;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.hero-text { max-width: 600px; }
.hero-catch {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}
.hero-catch em {
  font-style: normal;
  color: var(--color-main);
}

/* ===== STRENGTHS ===== */
.strengths { background: var(--color-white); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.card p  { font-size: 14px; color: #5a6a65; line-height: 1.8; }

/* ===== SERVICES ===== */
.services { background: var(--color-white); }
.cards-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 40px 32px 44px;
  border-top: 4px solid var(--color-main);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,161,126,.12);
}
.service-card .num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: .15em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card .num::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-main);
  flex-shrink: 0;
}
.service-card h3 { font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.service-card p { font-size: 14px; color: #5a6a65; line-height: 1.9; }

/* ===== RESULTS ===== */
.results { background: var(--color-main); }
.results-header { margin-bottom: 48px; }
.results-header .section-title { margin-bottom: 32px; }
.results .section-title { color: var(--color-white); }
.results .section-label { color: rgba(255,255,255,.7); }
.results-link { display: inline-flex; align-items: center; gap: 8px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  background: rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
}
.stat-headline {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 16px;
  white-space: nowrap;
}
.stat-suffix {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ja);
  color: rgba(255,255,255,.9);
  margin-left: 2px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.7; }

/* ===== LABO ===== */
.labo {
  position: relative;
  overflow: hidden;
  background: #1a3a30;
  aspect-ratio: 1920 / 600;
  display: flex;
  align-items: center;
  padding: 0;
}
.labo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.labo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  z-index: 1;
}
.labo .inner {
  position: relative;
  z-index: 2;
}
.labo-content { width: 100%; }
.labo-cols {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.labo .section-label { color: rgba(255,255,255,.65); }
.labo .section-title { color: var(--color-white); margin-bottom: 28px; }
.labo-catch {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--color-white);
  white-space: nowrap;
}
.labo-catch em { font-style: normal; color: var(--color-white); }
.labo-desc {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  margin-bottom: 28px;
  line-height: 1.9;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tag {
  background: rgba(0,161,126,.25);
  border: 1.5px solid rgba(165,214,206,.75);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: .02em;
}

/* ===== NEWS ===== */
.news { background: var(--color-bg); }
.news-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}
.news-header .section-title { margin-bottom: 32px; }
.news-header .news-footer { margin-top: 40px; }
.news-list { list-style: none; }
.news-item { border-bottom: 1px solid #dde8e5; }
.news-item a {
  display: grid;
  grid-template-columns: 20px 112px 88px 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  color: var(--color-text);
  text-decoration: none;
  transition: color .2s;
}
.news-item a:hover { color: var(--color-main); opacity: 1; }
.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-main);
  justify-self: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.news-item a:hover .news-dot { transform: scale(1.4); }
.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: #8a9d99;
  white-space: nowrap;
}
.news-cat {
  background: var(--color-sub);
  color: var(--color-main);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.news-title { font-size: 15px; line-height: 1.6; }
.news-footer { display: flex; justify-content: flex-start; }
.news-more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}
.news-more-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background .25s, color .25s, transform .2s;
}
.news-more:hover .news-more-circle {
  background: var(--color-main);
  color: var(--color-white);
  transform: scale(1.06);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, #e8f7f3 0%, #daf0f8 100%);
  text-align: center;
}
.cta-title { font-size: 38px; font-weight: 700; margin-bottom: 12px; }
.cta-desc { font-size: 16px; color: #5a6a65; margin-bottom: 40px; }
.cta-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: .05em;
  text-decoration: none;
}
.cta-tel:hover { opacity: .8; color: var(--color-main); }
.cta-time { font-size: 16px; color: #8a9d99; margin-top: 20px; }

/* ===== ABOUT ===== */
.about { background: var(--color-bg); }
.about-intro-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
  min-height: 260px;
}
.about-intro-left {
  background: var(--color-main);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-intro-left::after {
  content: 'ABOUT';
  position: absolute;
  bottom: -16px; right: -8px;
  font-family: var(--font-en);
  font-size: 80px;
  font-weight: 700;
  color: rgba(255,255,255,.06);
  line-height: 1;
  pointer-events: none;
}
.about-intro-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.about-intro-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.5;
}
.about-intro-right {
  background: var(--color-white);
  padding: 52px 64px;
  display: flex;
  align-items: center;
}
.about-intro {
  font-size: 18px;
  line-height: 2.2;
  color: var(--color-text);
}
.about-message {
  padding-top: 56px;
  border-top: 1px solid #e0ecea;
}
.about-message-heading { margin-bottom: 40px; }
.about-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 10px;
}
.about-sub {
  font-size: 13px;
  color: var(--color-main);
  font-weight: 700;
  letter-spacing: .1em;
}
.about-body {
  font-size: 16px;
  line-height: 2.1;
  color: var(--color-text);
}
.about-body p { margin-bottom: 20px; break-inside: avoid; }
.about-body p:last-child { margin-bottom: 0; }
.tel-icon { flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a2e28;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 40px 48px;
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.6;
}
.footer-tel, .footer-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-tel:hover, .footer-mail:hover { color: var(--color-white); opacity: 1; }
.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav-list a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-list a:hover { color: var(--color-white); opacity: 1; }
.footer-nav-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 0;
}
.footer-nav-inline a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-inline a:hover { color: var(--color-white); opacity: 1; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 0;
}
.footer-copy-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
}
.footer-copy { font-size: 12px; text-align: center; color: rgba(255,255,255,.4); }

/* ===== PAGE COMMON ===== */
.page-hero {
  background: linear-gradient(135deg, #e8f7f3 0%, #daf0f8 100%);
  padding: 80px 0 72px;
  text-align: center;
  margin-top: 0;
}
.page-hero .inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.page-hero .section-label { display: block; margin-bottom: 12px; }
.page-hero-title { font-size: 40px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.page-hero-desc { font-size: 16px; color: #5a6a65; line-height: 1.9; }
.page-hero--narrow { padding: 56px 0 48px; }

/* ===== PRICING ===== */
.pricing { background: var(--color-bg); }

/* ===== COMPANY INFO ===== */
.company-info { background: var(--color-white); }

/* ===== NEWS ARCHIVE ===== */
.news-archive { background: var(--color-bg); }
.no-posts { font-size: 16px; color: #8a9d99; padding: 40px 0; }

/* ===== PAGINATION ===== */
.archive-pagination { margin-top: 56px; }
.archive-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  border: 1px solid #dde8e5;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: var(--color-main);
  color: var(--color-white);
  border-color: var(--color-main);
  opacity: 1;
}
.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  width: auto;
  padding: 0 20px;
  border-radius: 50px;
}

/* ===== SINGLE ARTICLE ===== */
.single-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
}
.single-header { margin-bottom: 48px; border-bottom: 2px solid var(--color-main); padding-bottom: 32px; }
.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.single-title { font-size: 28px; font-weight: 700; line-height: 1.5; color: var(--color-text); }
.entry-content { font-size: 16px; line-height: 2.1; color: var(--color-text); }
.entry-content h2 { font-size: 22px; font-weight: 700; margin: 48px 0 16px; padding-left: 16px; border-left: 4px solid var(--color-main); }
.entry-content h3 { font-size: 18px; font-weight: 700; margin: 36px 0 12px; }
.entry-content p { margin-bottom: 24px; }
.entry-content img { border-radius: var(--radius); margin: 32px 0; }
.single-footer { margin-top: 64px; padding-top: 40px; border-top: 1px solid #dde8e5; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-main);
  text-decoration: none;
  transition: opacity .2s;
}
.back-link:hover { opacity: .7; }

/* ===== PRICING / COMPANY TABLE ===== */
.price-table,
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.price-table th,
.price-table td,
.company-table th,
.company-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #dde8e5;
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}
.price-table th,
.company-table th {
  width: 200px;
  font-weight: 700;
  color: var(--color-main);
  white-space: nowrap;
}
.price-note { font-size: 13px; color: #8a9d99; margin-top: 8px; }
.about-mission-title { font-size: 20px; font-weight: 700; margin: 60px 0 16px; }
.mission-quote {
  border-left: 4px solid var(--color-main);
  padding: 20px 24px;
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-family: var(--font-en); font-size: 80px; font-weight: 700; color: var(--color-main); line-height: 1; margin-bottom: 16px; }
.not-found p { font-size: 16px; color: #5a6a65; margin-bottom: 40px; }
