/* =============================================
   雅ヘルスケアオフィス - Stylesheet
   Mobile First / Mincho + Blue
   ============================================= */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  line-height: 1.8;
  color: #333;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: #0a8a87;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   Header - Transparent → Glass on scroll
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  transition: background 0.6s ease, backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease, box-shadow 0.6s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo a {
  display: flex;
  flex-direction: column;
  color: #fff;
  transition: color 0.6s;
}

.logo-en {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.logo-ja {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-top: 2px;
}

.header.is-scrolled .header-logo a {
  color: #0a8a87;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, background 0.6s;
}

.header.is-scrolled .hamburger span {
  background: #333;
}

.hamburger.active span {
  background: #333;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Global Nav */
.gnav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding-top: 90px;
}

.gnav.open {
  display: block;
}

.gnav-list {
  text-align: center;
}

.gnav-list li {
  border-bottom: 1px solid #eee;
}

.gnav-list a {
  display: block;
  padding: 18px 20px;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
}

.gnav-list a::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 1px;
  background: #0abab5;
  transition: width 0.3s ease, left 0.3s ease;
}

.gnav-list a:hover {
  opacity: 1;
}

.gnav-list a:hover::after {
  width: 40%;
  left: 30%;
}

/* =============================================
   Hero / Main Visual - Full Viewport Slideshow
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide Background Images + Ken Burns zoom */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 0;
  transform: scale(1);
  will-change: transform;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Soft dissolve: outgoing slide dissolves via JS-driven gradient mask */
.hero-slide.is-leaving {
  z-index: 2;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  will-change: transform, opacity;
}

.hero-content.is-intro {
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-en {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-top: 20px;
}

.hero-catch {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.14em;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-sub {
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  opacity: 0.8;
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: heroFadeUp 1s ease 1.2s both;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.6);
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  min-width: 220px;
  letter-spacing: 0.08em;
}

.btn-primary {
  background: #fff;
  color: #0a8a87;
}

.btn-primary:hover {
  background: #e8f7f6;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.btn-blue {
  background: #0abab5;
  color: #fff;
}

.btn-blue:hover {
  background: #089290;
  opacity: 1;
}

/* =============================================
   Section Header (EN label + title)
   ============================================= */
.section-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #0abab5;
  display: block;
  margin-bottom: 8px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* Arrow link button */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0a8a87;
  letter-spacing: 0.06em;
  transition: gap 0.3s;
}

.btn-arrow::after {
  content: "→";
  font-size: 0.9em;
  transition: transform 0.3s;
}

.btn-arrow:hover {
  opacity: 1;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-arrow-sm {
  font-size: 0.78rem;
  color: #0abab5;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-arrow-sm::after {
  content: "→";
  font-size: 0.85em;
  transition: transform 0.3s;
}

/* =============================================
   Sections
   ============================================= */
.section {
  padding: 80px 0;
}

.section-gray {
  background: #f2fafa;
}

.section-blue {
  background: #0abab5;
  color: #fff;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  color: #0a8a87;
}

.section-blue .section-title {
  color: #fff;
}

.section-lead {
  text-align: center;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.8;
}

.section-blue .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   Card Grid
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0a8a87;
}

.card-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

/* =============================================
   Service Cards (image + text)
   ============================================= */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  color: #333;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 24px;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.service-card-text {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* =============================================
   Reason Section (full-width background)
   ============================================= */
.reason-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.reason-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.reason-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.reason-section .container {
  position: relative;
  z-index: 1;
}

.reason-header {
  text-align: center;
  margin-bottom: 48px;
}

.reason-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.reason-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.reason-card-v2 {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 32px 28px;
  transition: background 0.4s, border-color 0.4s;
}

.reason-card-v2:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.reason-card-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #0abab5;
  line-height: 1;
  display: block;
}

.reason-card-line {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 16px 0;
}

.reason-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.reason-card-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
}

/* =============================================
   News Grid (left header + right list)
   ============================================= */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-header .section-en {
  margin-bottom: 8px;
}

/* =============================================
   Scroll Fade-in
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =============================================
   About Section (Top) - 2 Column
   ============================================= */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-body .section-en {
  margin-bottom: 12px;
}

.about-heading {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  line-height: 1.9;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

.about-line {
  width: 40px;
  height: 1px;
  background: #0abab5;
  margin: 24px 0;
}

.about-text {
  font-size: 0.88rem;
  line-height: 2.2;
  color: #555;
  margin-bottom: 12px;
}

.about-text:last-of-type {
  margin-bottom: 28px;
}

.about-photo {
  overflow: hidden;
  border-radius: 4px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-photo:hover img {
  transform: scale(1.03);
}

/* =============================================
   News List
   ============================================= */
.news-list {
  border-top: 1px solid #e0e4e8;
}

.news-item {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #e0e4e8;
}

.news-item:hover {
  opacity: 0.7;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.news-date {
  font-size: 0.78rem;
  color: #888;
}

.news-cat {
  font-size: 0.68rem;
  background: #0abab5;
  color: #fff;
  padding: 2px 10px;
  border-radius: 2px;
}

.news-title {
  font-size: 0.88rem;
  color: #333;
}

/* =============================================
   CTA Section
   ============================================= */
.cta {
  text-align: center;
  padding: 64px 20px;
  background: #0abab5;
  color: #fff;
}

.cta-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.cta-text {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.8;
}

/* =============================================
   Page Header
   ============================================= */
.page-header {
  background: #0abab5;
  color: #fff;
  text-align: center;
  padding: 100px 20px 48px;
}

.page-header-title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.page-header-lead {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 14px;
  line-height: 1.8;
}

/* =============================================
   Content Blocks
   ============================================= */
.content-block {
  padding: 48px 0;
  border-bottom: 1px solid #eee;
}

.content-block:last-child {
  border-bottom: none;
}

.content-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a8a87;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #0abab5;
}

.content-text {
  font-size: 0.9rem;
  line-height: 2;
  color: #555;
  margin-bottom: 16px;
}

.content-text:last-child {
  margin-bottom: 0;
}

/* Check List */
.check-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.88rem;
  color: #555;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0a8a87;
  font-weight: 700;
}

/* Dot List */
.dot-list li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 0.88rem;
  color: #555;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  background: #0abab5;
  border-radius: 50%;
}

/* =============================================
   Table
   ============================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 12px;
  font-size: 0.85rem;
  border-bottom: 1px solid #e0e4e8;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 120px;
  font-weight: 600;
  color: #0a8a87;
  background: #f2fafa;
  white-space: nowrap;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #0abab5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.faq-answer {
  padding: 0 24px 20px 62px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

/* =============================================
   Contact Form
   ============================================= */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-label .required {
  display: inline-block;
  font-size: 0.68rem;
  background: #c0392b;
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: 400;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.88rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #0a8a87;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 32px auto 0;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #0abab5;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 0.1em;
}

.form-submit:hover {
  background: #089290;
}

/* =============================================
   Reason Cards (numbered)
   ============================================= */
.reason-card {
  background: #fff;
  border-radius: 6px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.reason-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #0abab5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.reason-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0a8a87;
  margin-bottom: 10px;
}

.reason-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

/* =============================================
   News Page
   ============================================= */
.news-page-list .news-item {
  padding: 20px 0;
}

.news-page-cat {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 2px;
  margin-bottom: 4px;
}

/* =============================================
   Subpage: About - Greeting Grid
   ============================================= */
.greeting-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.greeting-photo {
  overflow: hidden;
  border-radius: 4px;
}

.greeting-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Philosophy */
.philosophy-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  line-height: 2;
  letter-spacing: 0.06em;
}

/* Vision */
.vision-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.vision-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e8e8e8;
}

.vision-item:last-child {
  border-bottom: none;
}

.vision-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: #0abab5;
  min-width: 40px;
}

.vision-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* =============================================
   Subpage: Services - Detail Layout
   ============================================= */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-detail-body .section-en {
  margin-bottom: 10px;
}

.service-detail-body .content-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.sub-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a8a87;
  margin: 28px 0 12px;
}

.service-detail-photo {
  overflow: hidden;
  border-radius: 4px;
}

.service-detail-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* =============================================
   Subpage: Reasons - Detail Layout
   ============================================= */
.reason-detail {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.reason-detail-num {
  min-width: 60px;
}

.reason-detail-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 300;
  color: #0abab5;
  line-height: 1;
  display: block;
  margin-top: 4px;
}

.reason-detail-body {
  flex: 1;
}

.reason-detail-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* =============================================
   Subpage: News - Page List
   ============================================= */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.news-filter-btn {
  padding: 6px 16px;
  font-size: 0.78rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 50px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all 0.3s;
}

.news-filter-btn.is-active,
.news-filter-btn:hover {
  background: #0abab5;
  color: #fff;
  border-color: #0abab5;
}

.news-list-page {
  border-top: 1px solid #e0e4e8;
}

.news-item-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e4e8;
  color: #333;
  transition: background 0.3s;
}

.news-item-page:hover {
  background: #f2fafa;
  opacity: 1;
}

.news-item-date {
  font-size: 0.78rem;
  color: #888;
  min-width: 90px;
}

.news-item-title {
  font-size: 0.88rem;
  width: 100%;
}

/* =============================================
   Subpage: FAQ - Accordion
   ============================================= */
.faq-item-v2 {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #0abab5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
}

.faq-q-text {
  flex: 1;
}

.faq-toggle {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: #999;
  transition: transform 0.3s;
}

.faq-toggle::before {
  width: 16px;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-toggle::after {
  width: 1.5px;
  height: 16px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item-v2.is-open .faq-toggle::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px 0 66px;
}

.faq-item-v2.is-open .faq-a {
  max-height: 300px;
  padding: 0 24px 24px 66px;
}

.faq-a p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.9;
}

/* =============================================
   Subpage: Contact - Methods
   ============================================= */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.contact-method-divider {
  width: 60px;
  height: 1px;
  background: #ddd;
  margin: 0 auto;
}

.contact-method-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 8px 0 16px;
}

.contact-tel {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 400;
  color: #0a8a87;
  letter-spacing: 0.08em;
}

.contact-method-note {
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
}

.contact-method-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form .wpcf7-form p {
  margin-bottom: 24px;
}

.contact-form .wpcf7-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-form .wpcf7-text,
.contact-form .wpcf7-email,
.contact-form .wpcf7-tel,
.contact-form .wpcf7-select,
.contact-form .wpcf7-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.88rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.3s;
}

.contact-form .wpcf7-text:focus,
.contact-form .wpcf7-email:focus,
.contact-form .wpcf7-tel:focus,
.contact-form .wpcf7-select:focus,
.contact-form .wpcf7-textarea:focus {
  outline: none;
  border-color: #0a8a87;
}

.contact-form .wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 32px auto 0;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #0abab5;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
  letter-spacing: 0.1em;
}

.contact-form .wpcf7-submit:hover {
  background: #089290;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.78rem;
}

.contact-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 16px;
  font-size: 0.85rem;
}

/* =============================================
   WordPress Content
   ============================================= */
.miyabi-article {
  max-width: 800px;
  margin: 0 auto;
}

.miyabi-article-thumb {
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 4px;
}

.miyabi-article-thumb img {
  width: 100%;
}

.miyabi-article-content {
  font-size: 0.92rem;
  line-height: 2;
  color: #555;
}

.miyabi-article-content > * + * {
  margin-top: 1.4em;
}

.miyabi-article-content h2,
.miyabi-article-content h3 {
  color: #0a8a87;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 2em;
}

.miyabi-article-content h2 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #0abab5;
}

.miyabi-article-content h3 {
  font-size: 1.1rem;
}

.miyabi-article-content ul,
.miyabi-article-content ol {
  padding-left: 1.4em;
}

.miyabi-article-content ul {
  list-style: disc;
}

.miyabi-article-content ol {
  list-style: decimal;
}

.miyabi-article-back {
  margin-top: 40px;
}

.miyabi-loop-item {
  padding: 28px 0;
  border-bottom: 1px solid #e0e4e8;
}

.miyabi-loop-item:first-child {
  padding-top: 0;
}

.miyabi-pagination {
  margin-top: 36px;
  text-align: center;
}

.miyabi-pagination .nav-links,
.miyabi-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.miyabi-pagination a,
.miyabi-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d6e7e7;
  border-radius: 2px;
  font-size: 0.82rem;
  color: #0a8a87;
  background: #fff;
}

.miyabi-pagination .current {
  color: #fff;
  background: #0abab5;
  border-color: #0abab5;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  background: #0d3d3c;
  color: #ccc;
  padding: 40px 20px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-text {
  font-size: 0.76rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #999;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: #bbb;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.7rem;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 16px;
  text-align: center;
}

/* =============================================
   Fixed CTA
   ============================================= */
.fixed-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: none;
}

/* Before scroll: transparent */
.fixed-cta-tel {
  background: transparent;
}

.fixed-cta-mail {
  background: transparent;
}

/* After scroll: filled */
.fixed-cta.is-scrolled .fixed-cta-tel {
  background: #0abab5;
}

.fixed-cta.is-scrolled .fixed-cta-mail {
  background: #333;
}

.fixed-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s, background 0.5s ease, border-color 0.5s ease;
}

.fixed-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.fixed-cta-btn svg {
  flex-shrink: 0;
}

.fixed-cta-tel {
  background: #0abab5;
}

.fixed-cta-mail {
  background: #333;
}

/* Mobile: hide text, show icon-only circles */
@media (max-width: 767px) {
  .fixed-cta {
    flex-direction: row;
    bottom: 16px;
    right: 16px;
  }

  .fixed-cta-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .fixed-cta-btn span {
    display: none;
  }
}

/* =============================================
   Utilities
   ============================================= */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* =============================================
   PC (768px~)
   ============================================= */
@media (min-width: 768px) {
  /* Header */
  .hamburger {
    display: none;
  }

  .gnav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-top: 0;
  }

  .gnav-list {
    display: flex;
    gap: 4px;
  }

  .gnav-list li {
    border-bottom: none;
  }

  .gnav-list a {
    padding: 8px 14px;
    font-size: 0.8rem;
    color: #fff;
    letter-spacing: 0.08em;
  }

  .gnav-list a::after {
    bottom: 4px;
    background: #fff;
  }

  .gnav-list a:hover::after {
    width: 60%;
    left: 20%;
  }

  .header.is-scrolled .gnav-list a {
    color: #333;
  }

  .header.is-scrolled .gnav-list a::after {
    background: #0abab5;
  }

  /* Hero */
  .hero-catch {
    font-size: 2.8rem;
    letter-spacing: 0.18em;
    line-height: 1.8;
  }

  .hero-sub {
    font-size: 1rem;
    letter-spacing: 0.22em;
    margin-top: 4px;
  }

  /* About 2col */
  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }

  .about-body {
    flex: 1;
  }

  .about-photo {
    flex: 1;
    min-height: 380px;
  }

  .about-heading {
    font-size: 1.6rem;
  }

  /* Sections */
  .section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 16px;
  }

  .section-en {
    font-size: 0.9rem;
  }

  /* Service Grid */
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .service-card-img {
    height: 220px;
  }

  /* Reason */
  .reason-section {
    padding: 120px 0;
  }

  .reason-section-title {
    font-size: 1.8rem;
  }

  .reason-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .reason-card-v2 {
    padding: 36px 32px;
  }

  .reason-card-num {
    font-size: 2.2rem;
  }

  /* News Grid */
  .news-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }

  .news-header {
    min-width: 220px;
  }

  .news-body {
    flex: 1;
  }

  /* Card Grid */
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .card-grid.col-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Reason Grid (legacy) */
  .reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Page Header */
  .page-header {
    padding: 120px 20px 56px;
  }

  .page-header-title {
    font-size: 2rem;
  }

  /* Table */
  .info-table th {
    width: 160px;
  }

  /* Form */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* CTA */
  .cta-text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }

  /* Footer */
  .footer {
    padding: 48px 20px 24px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }

  /* Subpage: Greeting */
  .greeting-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .greeting-body {
    flex: 1.2;
  }

  .greeting-photo {
    flex: 0.8;
    min-height: 400px;
  }

  .greeting-photo img {
    height: 100%;
  }

  .philosophy-text {
    font-size: 1.3rem;
  }

  /* Subpage: Services detail */
  .service-detail {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
  }

  .service-detail.reverse {
    flex-direction: row-reverse;
  }

  .service-detail-body {
    flex: 1;
  }

  .service-detail-photo {
    flex: 0.8;
    min-height: 360px;
  }

  .service-detail-photo img {
    height: 100%;
  }

  /* Subpage: Reasons detail */
  .reason-detail {
    gap: 36px;
  }

  .reason-detail-number {
    font-size: 3.5rem;
  }

  .reason-detail-title {
    font-size: 1.3rem;
  }

  /* Subpage: News list */
  .news-item-page {
    flex-wrap: nowrap;
  }

  .news-item-title {
    width: auto;
    flex: 1;
  }

  /* Subpage: FAQ */
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  /* Subpage: Contact */
  .contact-methods {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .contact-method {
    flex: 1;
  }

  .contact-method-divider {
    width: 1px;
    height: 80px;
    margin: 0;
  }
}
