/* ============================================
   平岸ふたば内科クリニック - ティザーページ v2
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Olive palette */
  --olive-50: #fefff5;
  --olive-100: #f5f8ef;
  --olive-200: #d3e3c8;
  --olive-300: #b3c4a9;
  --olive-400: #adc8a2;
  --olive-500: #8a9a6e;
  --olive-cream: #fffff7;

  /* Greige palette */
  --greige-50: #fafcfa;
  --greige-100: #f3f4f1;
  --greige-200: #e8e9e4;
  --greige-300: #cbccca;
  --greige-400: #a8a9a3;
  --greige-500: #8a8c80;
  --greige-600: #6b6d62;
  --greige-700: #4a4c42;
  --greige-800: #302f28;
  --greige-olive: #cad1b4;

  /* Warm accent (for mail button) */
  --warm-300: #d4c5b0;
  --warm-400: #bfad94;
  --warm-500: #a69478;

  /* Semantic */
  --color-bg: #fafbf7;
  --color-text: var(--greige-700);
  --color-text-light: var(--greige-500);
  --color-text-heading: var(--greige-800);
  --color-border: #e6e8e0;
  --color-white: #ffffff;

  /* Typography */
  --font-sans: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  /* Sizing */
  --header-h: 56px;
  --max-width: 960px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.23,1,.32,1),
              transform 0.7s cubic-bezier(.23,1,.32,1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 251, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.header__nav {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__link {
  font-size: 13px;
  font-weight: 400;
  color: var(--greige-600);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--olive-400);
  transition: width 0.3s ease;
}

.header__link:hover {
  color: var(--greige-800);
}

.header__link:hover::after {
  width: 100%;
}

.header__separator {
  width: 1px;
  height: 14px;
  background: var(--greige-300);
}

.header__link--cta {
  background: var(--olive-400);
  color: var(--color-white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, transform 0.2s ease;
}

.header__link--cta::after { display: none; }

.header__link--cta:hover {
  background: var(--olive-500);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ============================================
   Page layout
   ============================================ */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: 16px;
}

.hero__visual {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8f3 0%, #eef1e8 40%, var(--olive-cream) 100%);
  aspect-ratio: 16 / 6.5;
  max-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__image {
  width: 45%;
  max-width: 340px;
  position: relative;
  z-index: 1;
}

.hero__plant-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Content Section
   ============================================ */
.content {
  text-align: center;
  padding: 56px 0 40px;
}

.content__inner {
  max-width: 560px;
  margin: 0 auto;
}

/* Clinic name - one line */
.content__clinic-name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-heading);
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: nowrap;
}

/* Catchcopy */
.content__catchcopy {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--olive-400);
  letter-spacing: 0.2em;
  margin-bottom: 48px;
  position: relative;
}

.content__catchcopy::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--olive-200);
  margin: 20px auto 0;
}

/* Description */
.content__announcement {
  margin-bottom: 40px;
}

.content__description {
  font-size: 14px;
  color: var(--color-text);
  line-height: 2.1;
  letter-spacing: 0.03em;
}

/* Opening badge */
.content__badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 32px;
  margin-bottom: 48px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.content__badge-year {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-heading);
  letter-spacing: 0.05em;
}

.content__badge-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

.content__badge-month {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--olive-500);
  letter-spacing: 0.02em;
}

.content__badge-month small {
  font-size: 14px;
  font-weight: 400;
  margin-left: 2px;
}

.content__badge-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
}

/* Info rows */
.content__info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.content__info-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.content__info-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  min-width: 100px;
  margin-right: 16px;
  flex-shrink: 0;
}

.content__info-value {
  font-size: 14px;
  color: var(--color-text-heading);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.content__info-link {
  color: var(--olive-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content__info-link:hover {
  color: var(--greige-800);
  text-decoration: underline;
}

/* ============================================
   CTA Buttons
   ============================================ */
.cta {
  padding: 32px 0 48px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all 0.3s cubic-bezier(.23,1,.32,1);
  cursor: pointer;
  border: none;
  min-width: 200px;
  justify-content: center;
}

.cta__btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta__btn--phone {
  background: var(--olive-400);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(173, 200, 162, 0.3);
}

.cta__btn--phone:hover {
  background: var(--olive-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(173, 200, 162, 0.4);
}

.cta__btn--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  position: relative;
}

.cta__btn--disabled:hover {
  transform: none;
}

.cta__btn-note {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.cta__btn--mail {
  background: var(--warm-400);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(191, 173, 148, 0.3);
}

.cta__btn--mail:hover {
  background: var(--warm-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(191, 173, 148, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--greige-100);
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 24px 20px;
}

.footer__copy {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.footer__links {
  margin-top: 6px;
}

.footer__links a {
  font-size: 11px;
  color: var(--greige-400);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--greige-600);
}

/* ============================================
   Responsive - PC wide
   ============================================ */
@media (min-width: 769px) {
  .hero__visual {
    aspect-ratio: 16 / 5;
  }
}

/* ============================================
   Responsive - Tablet & below
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-h: 50px;
  }

  .header__links {
    gap: 16px;
  }

  .header__link {
    font-size: 12px;
  }

  .header__link--cta {
    padding: 5px 14px;
    font-size: 11px;
  }

  .hero__visual {
    aspect-ratio: 16 / 8;
    border-radius: 12px;
  }

  .hero__image {
    width: 50%;
  }

  .content {
    padding: 40px 0 32px;
  }

  .content__clinic-name {
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 480px) {
  .page {
    padding: 0 16px;
  }

  .header__nav {
    padding: 0 16px;
  }

  .header__links {
    gap: 12px;
  }

  .header__link {
    font-size: 11px;
  }

  .header__separator {
    display: none;
  }

  .hero__visual {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .hero__image {
    width: 55%;
  }

  .content {
    padding: 32px 0 24px;
  }

  .content__clinic-name {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }

  .content__catchcopy {
    font-size: 12px;
    margin-bottom: 36px;
  }

  .content__badge {
    padding: 12px 20px;
    gap: 12px;
  }

  .content__badge-year {
    font-size: 18px;
  }

  .content__badge-month {
    font-size: 24px;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta__btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  padding: 20px 0 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-light);
}

.breadcrumb__item a {
  color: var(--olive-500);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '>';
  margin-right: 8px;
  color: var(--greige-300);
}

/* ============================================
   Entry (Single Post)
   ============================================ */
.entry {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 48px;
}

.entry__header {
  margin-bottom: 32px;
  text-align: center;
}

.entry__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-heading);
  line-height: 1.5;
  margin: 0 0 12px;
}

.entry__date {
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.entry__thumbnail {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}

.entry__thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

.entry__content {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.entry__content h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-heading);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--olive-200);
}

.entry__content h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-heading);
  margin: 32px 0 12px;
}

.entry__content p {
  margin: 0 0 20px;
}

.entry__content ul,
.entry__content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.entry__content li {
  margin-bottom: 8px;
}

.entry__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}

.entry__content th,
.entry__content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry__content th {
  background: var(--olive-100);
  font-weight: 500;
  color: var(--color-text-heading);
  white-space: nowrap;
  min-width: 100px;
}

.entry__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry__content a {
  color: var(--olive-500);
  text-decoration: underline;
}

.entry__content a:hover {
  color: var(--greige-800);
}

.entry__back {
  text-align: center;
  padding: 0 0 56px;
}

.entry__back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--olive-500);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--olive-200);
  border-radius: 24px;
  transition: all 0.2s ease;
}

.entry__back-link:hover {
  background: var(--olive-100);
  color: var(--greige-800);
}

/* ============================================
   Archive (Post List)
   ============================================ */
.archive {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 0 32px;
}

.archive__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-heading);
  text-align: center;
  margin: 0 0 32px;
}

.archive__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive__card {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.archive__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.archive__card-thumb {
  width: 140px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.archive__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive__card-body {
  flex: 1;
  min-width: 0;
}

.archive__card-date {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
}

.archive__card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-heading);
  margin: 6px 0 8px;
  line-height: 1.5;
}

.archive__card-excerpt {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive__pagination {
  margin-top: 40px;
  text-align: center;
}

.archive__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.archive__pagination .page-numbers.current {
  background: var(--olive-400);
  color: var(--color-white);
  border-color: var(--olive-400);
}

.archive__pagination .page-numbers:hover:not(.current) {
  background: var(--olive-100);
}

.archive__empty {
  text-align: center;
  color: var(--color-text-light);
  padding: 48px 0;
  font-size: 14px;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
