/* ========================================
   安鍼灸治療院 - Main Stylesheet
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,400;0,500;1,400&family=Shippori+Mincho:wght@400;500&family=Noto+Sans+JP:wght@400;500&display=swap');

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
  /* Colors */
  --color-primary: #BAA48C;
  --color-primary-40: rgba(186, 164, 140, 0.4);
  --color-text: #333333;
  --color-text-light: rgba(0, 0, 0, 0.4);
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* Fonts */
  --font-heading: 'Cormorant Infant', serif;
  --font-body: 'Shippori Mincho', serif;
  --font-sans: 'Noto Sans JP', sans-serif;

  /* Font Sizes */
  --fs-hero: 64px;
  --fs-h1: 64px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-nav: 15px;
  --fs-nav-jp: 11px;

  /* Line Heights */
  --lh-hero: 128px;
  --lh-h2: 44px;
  --lh-body: 28px;
  --lh-small: 20.8px;

  /* Letter Spacing */
  --ls-wide: 3.3px;
  --ls-normal: 2.1px;
  --ls-small: 1.95px;
  --ls-tight: 0.65px;

  /* Spacing */
  --spacing-section: 120px;
  --spacing-large: 80px;
  --spacing-medium: 40px;
  --spacing-small: 20px;
  --spacing-xs: 10px;

  /* Layout */
  --max-width: 1280px;
  --content-width: 1040px;
  --header-height: 128px;

  /* Border Radius */
  --radius-default: 16px;
  --radius-round: 25px;

  /* Shadows */
  --shadow-card: -2px 2px 5px 0px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0px 3px 20px 0px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-section);
}

.content-container {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ========================================
   Typography
   ======================================== */
.heading-section {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  line-height: var(--lh-hero);
  color: var(--color-primary);
  text-align: center;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 1px;
}

.heading-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--color-text);
  text-align: center;
  letter-spacing: var(--ls-tight);
  margin-top: 31px;
}

.heading-h2 {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-wide);
  color: var(--color-text);
}

.text-primary {
  color: var(--color-primary);
}

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

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 48px 0 48px;
}

.header-logo {
  padding-bottom: 3px;
}

.header-logo img {
  height: 70px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 20px;
  padding: 24px 48px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 25px 3px;
  border-bottom: 1px solid transparent;
  opacity: 0.7;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.nav-item:hover {
  opacity: 1;
  border-bottom-color: var(--color-black);
}

.nav-item.active {
  opacity: 1;
}

.nav-item.active .nav-item-jp {
  font-weight: 500;
}

.nav-item-en {
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  line-height: 21px;
  color: var(--color-black);
}

.nav-item-jp {
  font-family: var(--font-body);
  font-size: var(--fs-nav-jp);
  line-height: 15.4px;
  color: var(--color-black);
  padding-top: 0;
  padding-bottom: 4px;
}

/* ========================================
   Hero / Slide
   ======================================== */
.hero {
  position: relative;
  height: 800px;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
/*
.hero-text p {
  font-family: var(--font-body);
  font-size: 42px;
  line-height: 50px;
  letter-spacing: var(--ls-wide);
}
*/
.hero-text-main {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
}

.hero-text-sub {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  margin-top: 16px;
}

/* ========================================
   Section Common
   ======================================== */
.section {
  padding: var(--spacing-section) 0;
  max-width: 1000px;
  margin: 0 auto;
  
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-large);
}

/* ========================================
   Gallery Grid
   ======================================== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  padding: var(--spacing-large) 0;
}

.gallery-item {
  width: calc(33.333% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
}

.gallery-image {
  width: 320px;
  height: 183px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-default);
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--color-black);
  text-align: center;
}

/* ========================================
   Service Section
   ======================================== */
.service-content {
  display: flex;
  gap: var(--spacing-medium);
  padding-top: var(--spacing-large);
}

.service-text {
  flex: 0 0 416px;
  padding-top: 99px;
}

.service-title {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-wide);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--spacing-large);
}

.service-description {
  text-align: center;
  line-height: 35px;
}

.service-images {
  flex: 1;
  position: relative;
  min-height: 672px;
}

.service-card {
  background: var(--color-white);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.service-card img {
  width: 100%;
  height: auto;
}

.service-card-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 12px;
  line-height: 16.8px;
  letter-spacing: 1.2px;
  color: var(--color-text);
  margin-top: 8px;
}

.service-card-main {
  position: absolute;
  top: -2px;
  left: 93px;
  width: 440px;
}

.service-card-main img {
  height: 304px;
  object-fit: cover;
}

.service-card-small {
  position: absolute;
  bottom: 0;
  width: 234px;
}

.service-card-small:first-of-type {
  left: 63px;
}

.service-card-small:last-of-type {
  left: 316px;
}

.service-card-small img {
  height: 250px;
  object-fit: cover;
}

/* ========================================
   Charge Section (Footer)
   ======================================== */
.charge-section {
  padding: var(--spacing-medium) var(--spacing-section);
}

.charge-menu {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-large) 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
}

.charge-frame {
  width: 640px;
  margin: 0 auto;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.charge-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.charge-title {
  font-size: var(--fs-body);
  letter-spacing: var(--ls-normal);
}

.charge-cost {
  text-align: right;
}

.charge-note {
  font-size: var(--fs-body);
  color: var(--color-text);
  text-align: right;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  padding: var(--spacing-large) var(--spacing-section);
  text-align: center;
}

.contact-message {
  margin-bottom: var(--spacing-medium);
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-large);
  padding-top: 32px;
}

.contact-cta {
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-default);
  padding: 12px 20px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-h2);
  transition: all 0.3s ease;
}

.contact-cta:hover {
  background: var(--color-primary);
  color: var(--color-white);
  opacity: 1;
}

.contact-sns {
  display: flex;
  gap: var(--spacing-large);
}

.contact-sns img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-default);
}

/* ========================================
   Review Section
   ======================================== */
.review-section {
  /* padding: var(--spacing-medium) var(--spacing-section); */
  padding: 40px 0;
}

.review-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0;
  flex-wrap: wrap;
}

/* Review Card Styles */
.review-card {
  width: 320px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-sans);
}

.review-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.4;
}

.review-date {
  font-size: 12px;
  color: #666;
  font-family: var(--font-sans);
}

.review-google-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-stars {
  margin-bottom: 12px;
}

.review-stars .star {
  color: #FBBC05;
  font-size: 16px;
  margin-right: 2px;
}

.review-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  font-family: var(--font-sans);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-readmore {
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
}

.review-readmore:hover {
  text-decoration: underline;
}

/* ========================================
   Info Section (Footer Map Area)
   ======================================== */
.info-section {
  position: relative;
  padding: var(--spacing-large) var(--spacing-section);
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/5972ff5ba3fcc1c05bafdd53df7e5395327084f6.png');
  background-size: cover;
  background-position: center;
  opacity: 0.65;
  z-index: -1;
}

.info-logo {
  margin-bottom: var(--spacing-medium);
}

.info-logo img {
  height: 70px;
  width: auto;
}

.info-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 300px;
}

.info-map {
  width: 460px;
  height: 300px;
  border: 1px solid var(--color-primary-40);
  border-radius: var(--radius-default);
  overflow: hidden;
}

.info-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.info-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 20px;
  height: 20px;
}

.info-text {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding-bottom: var(--spacing-large);
}

/* ========================================
   Reservation Form
   ======================================== */
.reservation-form-container {
  width: 640px;
  margin: var(--spacing-large) auto;
  border: 1px solid var(--color-primary);
  padding: 40px 41px 42px;
}

.reservation-title {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 35px;
  letter-spacing: var(--ls-normal);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 25px;
}

.reservation-intro {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--color-text);
  margin-bottom: 25px;
}

.reservation-divider {
  height: 1px;
  background: var(--color-primary);
  margin-bottom: 25px;
}

.form-list {
  display: flex;
  flex-direction: column;
}

.form-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--color-primary-40);
}

.form-label {
  width: 130px;
  flex-shrink: 0;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
}

.form-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-height: 80px;
  resize: vertical;
}

.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-radio-group {
  display: flex;
  gap: var(--spacing-small);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.form-radio input {
  accent-color: var(--color-primary);
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 49px;
}

.form-submit {
  width: 250px;
  height: 40px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  line-height: 21px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   About Page
   ======================================== */
.about-profile {
  display: flex;
  gap: var(--spacing-medium);
  padding: var(--spacing-section) var(--spacing-section);
}

.about-image {
  width: 312px;
  height: 459px;
  margin-left: 118px;
  border: 1px solid var(--color-primary-40);
  position: relative;
  z-index: 2;
  margin-right: -60px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1;
  padding: 40px 0 0 0;
  /* padding: var(--spacing-large) 0; */
  /* border-left: 1px solid var(--color-primary-40); */
  /* border: 1px solid var(--color-primary-40); */
  padding-left: 121px;
}

.about-label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text);
  margin-bottom: var(--spacing-small);
}

.about-name-en {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 40px;
  color: var(--color-text);
}

.about-name-jp {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  margin-bottom: var(--spacing-medium);
}

.about-history-title {
  font-size: var(--fs-body);
  margin-bottom: var(--spacing-small);
}

.about-history-divider {
  height: 1px;
  background: var(--color-primary-40);
  margin-bottom: var(--spacing-medium);
}

.about-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.about-history-item {
  display: flex;
  gap: 8px;
}

.about-history-year {
  width: 48px;
  font-size: var(--fs-body);
}

.about-history-text {
  flex: 1;
  font-size: var(--fs-body);
}

/* Episode Section */
.episode-section {
  padding: var(--spacing-large) var(--spacing-section);
}

.episode-story {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-medium) 0;
}

.episode-item {
  margin-bottom: var(--spacing-medium);
}

.episode-title {
  font-size: var(--fs-body);
  font-weight: 500;
  margin-bottom: var(--spacing-small);
}

.episode-content {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* Master Section */
.master-section {
  display: flex;
  gap: var(--spacing-medium);
  padding: var(--spacing-section) 160px;
}

.master-image {
  width: 459px;
  height: 300px;
}

.master-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-default);
}

.master-content {
  flex: 1;
  padding-top: 92px;
}

.master-name {
  font-size: 24px;
  line-height: 35px;
  margin-bottom: var(--spacing-small);
}

.master-description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ========================================
   Service Page
   ======================================== */
.service-detail {
  padding: 0;
}

.service-detail-item.service-detail-bg {
  background-color: var(--color-primary-40);
}

.service-detail-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 40px;
}

.service-detail-item:nth-child(even) .service-detail-inner {
  flex-direction: row-reverse;
}

/* 텍스트 영역 */
.service-detail-content {
  flex: 0 0 auto;
  max-width: 450px;
  padding: 80px 0;
}

/* 번호 */
.service-detail-number {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

/* 영문 타이틀 */
.service-detail-title-en {
  font-family: var(--font-heading);
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 4px;
}

/* 일본어 서브타이틀 */
.service-detail-title-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* 일본어 메인 타이틀 */
.service-detail-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 24px;
}

.service-detail-text {
  font-size: var(--fs-body);
  line-height: 28px;
  color: var(--color-text);
}

.service-detail-text p {
  margin-bottom: 16px;
}

.service-detail-text p:last-child {
  margin-bottom: 0;
}

.service-detail-note {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 24px;
}

/* 이미지 영역 */
.service-detail-image {
  flex: 0 0 320px;
  height: 480px;
  /* border-radius: var(--radius-default); */
  overflow: hidden;
}

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

/* ========================================
   Utility Classes
   ======================================== */
.mt-section { margin-top: var(--spacing-section); }
.mb-section { margin-bottom: var(--spacing-section); }
.mt-large { margin-top: var(--spacing-large); }
.mb-large { margin-bottom: var(--spacing-large); }
.mt-medium { margin-top: var(--spacing-medium); }
.mb-medium { margin-bottom: var(--spacing-medium); }

.pt-header { padding-top: 0; }

/* ========================================
   Alert Messages
   ======================================== */
.alert {
  padding: var(--spacing-small) var(--spacing-medium);
  margin-bottom: var(--spacing-medium);
  border-radius: 4px;
  text-align: center;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========================================
   Contact Page - Reservation Form
   ======================================== */
.reservation-section {
  padding: 0 0 var(--spacing-section);
}

.reservation-form-wrapper {
  width: 640px;
  margin: 0 auto;
  border: 1px solid var(--color-primary);
  padding: 40px 41px 42px;
}

.reservation-title {
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 35px;
  letter-spacing: var(--ls-normal);
  color: var(--color-primary);
  text-align: center;
}

.reservation-description {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--color-text);
  text-align: left;
  padding-top: 25px;
}

.reservation-divider {
  height: 1px;
  background: var(--color-primary);
  margin-top: 25px;
}

.reservation-form {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: flex;
  align-items: flex-start;
  padding: 15px 0 17px;
  border-bottom: 1px solid var(--color-primary-40);
}

.form-label {
  width: 130px;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
  padding-top: 0;
}

.form-input-wrapper {
  flex: 1;
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-radio-group {
  display: flex;
  gap: var(--spacing-medium);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  color: var(--color-text-light);
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
  color: var(--color-text);
}

.form-submit-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 49px;
}

.form-submit-btn {
  width: 250px;
  height: 40px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-nav);
  line-height: 21px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-message {
  margin-top: var(--spacing-medium);
  padding: var(--spacing-small);
  text-align: center;
  border-radius: 4px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========================================
   Contact Page - Clinic Info Section
   ======================================== */
.clinic-section {
  padding: var(--spacing-section) 0;
  text-align: center;
}

.clinic-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.clinic-divider {
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  margin-bottom: 40px;
}

.clinic-subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-light);
  margin-bottom: 60px;
}

.clinic-main-image {
  max-width: 560px;
  margin: 0 auto 60px;
}

.clinic-main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-primary-40);
}

.clinic-caption {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: 16px;
}

.clinic-gallery {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.clinic-gallery-item {
  flex: 0 0 auto;
  width: 240px;
}

.clinic-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--color-primary-40);
}

.clinic-gallery-caption {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--color-text-light);
  margin-top: 12px;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (1024px 이하) */
@media (max-width: 1024px) {
  :root {
    --spacing-section: 60px;
  }

  .container {
    padding: 0 24px;
  }

  /* Header */
  .header {
    padding: 0 24px;
  }

  .nav-item {
    padding: 0 15px 3px;
  }

  /* Hero */
  .hero-text-main {
    font-size: 20px;
  }

  .hero-text-sub {
    font-size: 24px;
    margin-top: 12px;
  }

  /* Gallery */
  .gallery-grid {
    gap: 6px;
  }

  .gallery-item {
    width: calc(50% - 4px);
  }

  .gallery-image {
    width: 100%;
    height: 160px;
  }

  /* Service (index.php) */
  .service-content {
    flex-direction: column;
    gap: 40px;
  }

  .service-text {
    flex: none;
    width: 100%;
  }

  .service-images {
    position: relative;
    width: 100%;
    min-height: 400px;
  }

  .service-card-main {
    width: 300px;
    height: 200px;
    left: 50%;
    transform: translateX(-50%);
  }

  .service-card-small {
    width: 140px;
    height: 100px;
  }

  /* Service Detail (service.php) */
  .service-detail-inner {
    padding: 0 24px;
    gap: 40px;
  }

  .service-detail-content {
    max-width: 400px;
    padding: 60px 0;
  }

  .service-detail-image {
    flex: 0 0 280px;
    height: 400px;
  }

  .service-detail-title-en {
    font-size: 24px;
  }

  /* About */
  .about-profile {
    padding: var(--spacing-section) 24px;
  }

  .about-image {
    width: 260px;
    height: 380px;
    margin-left: 40px;
    margin-right: -40px;
  }

  .about-content {
    padding-left: 80px;
    padding-top: 60px;
  }

  /* Episode */
  .episode-section {
    padding: var(--spacing-large) 24px;
  }

  /* Master */
  .master-section {
    padding: var(--spacing-section) 24px;
    gap: 40px;
  }

  .master-image {
    width: 350px;
    height: 230px;
  }

  .master-content {
    padding-top: 40px;
  }

  /* Clinic */
  .clinic-section {
    padding: var(--spacing-section) 24px;
  }

  .clinic-gallery {
    gap: 24px;
  }

  .clinic-gallery-item {
    width: 200px;
  }

  .clinic-gallery-item img {
    height: 170px;
  }
}

/* Tablet Small / Mobile Large (768px 이하) */
@media (max-width: 768px) {
  /* Utility - Hide on Mobile */
  .hide-mobile {
    display: none;
  }

  :root {
    --spacing-section: 48px;
    --header-height: auto;
  }

  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }

  .header-logo img {
    height: 40px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 0;
    gap: 4px;
  }

  .nav-item {
    padding: 4px 12px;
  }

  .nav-item-en {
    font-size: 12px;
  }

  .nav-item-jp {
    font-size: 10px;
  }

  /* Hero */
  .hero {
    height: 540px;
  }

  .hero-text-main {
    font-size: 18px;
  }

  .hero-text-sub {
    font-size: 20px;
    margin-top: 10px;
  }

  /* Section */
  .section {
    padding: var(--spacing-section) 16px;
  }

  .heading-section {
    font-size: 28px;
  }

  .heading-subtitle {
    font-size: 13px;
  }

  /* Gallery */
  .gallery-grid {
    padding: 0 16px;
  }

  .gallery-item {
    width: 100%;
  }

  .gallery-image {
    width: 100%;
    height: 200px;
  }

  .gallery-title {
    font-size: 13px;
  }

  /* Service (index.php) */
  .service-title {
    font-size: 18px;
  }

  .service-images {
    min-height: 350px;
  }

  /* Service Images - 세로 배열 */
  .service-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: auto;
  }

  .service-card {
    position: static;
    width: 100%;
    max-width: 300px;
  }

  .service-card-main {
    position: static;
    width: 100%;
    max-width: 300px;
    height: auto;
    transform: none;
  }

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

  .service-card-small {
    position: static;
    width: 100%;
    max-width: 300px;
    height: auto;
  }

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

  .service-card-label {
    margin-top: 8px;
  }

  /* Service Detail (service.php) */
  .service-detail-inner {
    flex-direction: column !important;
    padding: 40px 24px;
    gap: 32px;
  }

  .service-detail-content {
    max-width: 100%;
    padding: 0;
    order: 2;
  }

  .service-detail-image {
    flex: none;
    width: 100%;
    height: 300px;
    order: 1;
  }

  .service-detail-title-en {
    font-size: 22px;
  }

  .service-detail-title {
    font-size: 16px;
  }

  .service-detail-text {
    font-size: 14px;
    line-height: 24px;
  }

  /* Flow Section */
  .content-container {
    padding: 40px 0 !important;
  }

  .content-container.text-center {
    text-align: left;
  }

  /* About */
  .about-profile {
    flex-direction: column;
    padding: var(--spacing-section) 16px;
    align-items: center;
  }

  .about-image {
    width: 250px;
    height: 360px;
    margin: 0 0 -40px 0;
    z-index: 2;
  }

  .about-content {
    padding: 60px 12px 24px;
    /* border: 1px solid var(--color-primary-40); */
    text-align: center;
  }

  .about-name-en {
    font-size: 24px;
  }

  .about-history-list {
    align-items: center;
  }

  /* Episode */
  .episode-section {
    padding: var(--spacing-section) 16px;
  }

  .episode-title {
    font-size: 15px;
  }

  .episode-content {
    font-size: 14px;
    line-height: 24px;
  }

  /* Master */
  .master-section {
    flex-direction: column;
    padding: var(--spacing-section) 16px;
    align-items: center;
    text-align: center;
  }

  .master-image {
    width: 100%;
    max-width: 350px;
    height: 230px;
  }

  .master-content {
    padding-top: 24px;
  }

  /* Reservation Form */
  .reservation-section {
    padding: 0 16px var(--spacing-section);
  }

  .reservation-form-wrapper {
    width: 100%;
    padding: 24px 20px;
  }

  .reservation-title {
    font-size: 20px;
  }

  .reservation-description {
    font-size: 13px;
    text-align: left;
  }

  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .form-input-wrapper {
    width: 100%;
  }

  .form-label {
    width: 100%;
    font-size: 13px;
  }

  .form-input,
  .form-textarea {
    font-size: 14px;
  }

  .form-submit-btn {
    width: 200px;
  }

  /* Clinic */
  .clinic-section {
    padding: var(--spacing-section) 16px;
  }

  .clinic-title {
    font-size: 32px;
  }

  .clinic-main-image {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .clinic-gallery {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .clinic-gallery-item {
    width: 100%;
    max-width: 280px;
  }

  .clinic-gallery-item img {
    height: 180px;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-medium) 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }

  /* Charge Section */
  .charge-section {
    padding: var(--spacing-medium) 0px;
  }

  .charge-menu {
    padding: var(--spacing-medium) 0;
  }

  .charge-frame {
    width: 100%;
  }

  .charge-row {
    flex-direction: column;
    gap: 4px;
  }

  .charge-cost {
    text-align: left;
  }

  .charge-note {
    text-align: left;
  }

  /* Contact Section */
  .contact-section {
    padding: var(--spacing-medium) 0px;
  }

  .contact-message {
    font-size: 14px;
    line-height: 24px;
    text-align: left;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .contact-cta {
    font-size: 14px;
    padding: 12px 16px;
  }

  .contact-sns {
    gap: 24px;
  }

  .contact-sns img {
    width: 70px;
    height: 70px;
  }

  /* Review Section */
  .review-section {
    padding: var(--spacing-medium) 0px;
  }

  .review-grid {
    flex-direction: column;
    align-items: center;
    padding: 0px 0px;
    gap: 20px;
  }

  .review-card {
    width: 100%;
    max-width: 320px;
    max-height: 320px;
  }

  /* Info Section */
  .info-section {
    padding: var(--spacing-section) 0px;
  }

  .info-logo {
    text-align: center;
  }

  .info-logo img {
    margin: 0 auto;
    height: 50px;
  }

  .info-content {
    flex-direction: column;
    height: auto;
    gap: 40px;
  }

  .info-map {
    width: 100%;
    height: 250px;
  }

  .info-details {
    width: 100%;
  }

  .info-item {
    justify-content: flex-start;
  }

  .info-icon {
    width: 40px;
    height: 40px;
  }

  .info-icon img {
    width: 16px;
    height: 16px;
  }

  .info-text {
    font-size: 13px;
  }
}

/* Mobile (480px 이하) */
@media (max-width: 480px) {
  :root {
    --spacing-section: 40px;
  }

  /* Header */
  .header {
    padding: 10px 12px;
  }

  .header-logo img {
    height: 36px;
  }

  .nav-item {
    padding: 4px 8px;
  }

  .nav-item-en {
    font-size: 13px;
  }

  .nav-item-jp {
    font-size: 11px;
  }

  /* Hero */
  .hero {
    height: 540px;
  }

  .hero-text-main {
    font-size: 16px;
  }

  .hero-text-sub {
    font-size: 18px;
    margin-top: 8px;
  }

  /* Section */
  .heading-section {
    font-size: 24px;
  }

  .heading-subtitle {
    font-size: 12px;
  }

  /* Gallery */
  .gallery-image {
    height: 160px;
  }

  /* Service Images */
  .service-card-main img,
  .service-card-small img {
    height: 180px;
  }

  /* Service Detail */
  .service-detail-image {
    height: 240px;
  }

  .service-detail-title-en {
    font-size: 20px;
  }

  .service-detail-title-sub {
    margin-bottom: 24px;
  }

  /* About */
  .about-image {
    width: 200px;
    height: 290px;
  }

  .about-name-en {
    font-size: 20px;
  }

  .about-name-jp {
    font-size: 36px;
  }

  /* Master */
  .master-image {
    height: 200px;
    padding: 24px;
  }

  .master-name {
    font-size: 18px;
  }

  .master-description {
    font-size: 13px;
    padding: 24px;
    text-align: left
  }

  /* Reservation Form */
  .reservation-form-wrapper {
    padding: 20px 16px;
  }

  .reservation-title {
    font-size: 18px;
  }

  .form-submit-wrapper {
    padding-top: 32px;
  }

  .form-submit-btn {
    width: 100%;
    max-width: 200px;
  }

  /* Clinic */
  .clinic-title {
    font-size: 28px;
  }

  .clinic-subtitle {
    margin-bottom: 40px;
  }

  .clinic-gallery-item {
    max-width: 100%;
  }

  .clinic-gallery-item img {
    height: 160px;
  }

  /* Flow Section */
  .content-container > div > div {
    gap: 20px !important;
  }

  .content-container > div > div > div:first-child {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }

  .content-container h4 {
    font-size: 16px !important;
  }

  /* Charge Section */
  .charge-title {
    font-size: 13px;
  }

  .charge-cost {
    font-size: 13px;
  }

  .charge-note {
    font-size: 12px;
  }

  /* Contact Section */
  .contact-cta {
    font-size: 14px;
    padding: 16px 12px;
  }

  .contact-sns img {
    width: 60px;
    height: 60px;
  }

  /* Review Section */
  .review-card {
    padding: 16px;
  }

  .review-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .review-name {
    font-size: 13px;
  }

  .review-date {
    font-size: 11px;
  }

  .review-content {
    font-size: 13px;
  }

  /* Info Section */
  .info-map {
    height: 200px;
  }

  .info-text {
    font-size: 12px;
  }

  .info-text p {
    line-height: 1.6;
  }
}
