
@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Noto+Sans+JP:wght@400;700&display=swap');

/* --- Global Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family-base); font-size: var(--font-size-body); line-height: var(--line-height-base); color: var(--color-text); background-color: var(--color-background); -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-family-heading); font-weight: 700; line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: var(--font-size-h1); margin-bottom: 0.8em; }
h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px; /* h2とtableの間の余白を調整 */
  text-align: center;
}
p { margin-bottom: 1em; }
h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}
table {
  margin-bottom: 30px;
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--layout-max-width); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sample-site-banner {
  position: sticky;
  top: 0;
  z-index: 101;
  background-color: #f8d7da;
  color: #721c24;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* --- Header & Footer --- */
.site-header { position: sticky; background-color: var(--color-background); box-shadow: var(--card-box-shadow); z-index: 100; padding: 15px 0;}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-family-heading); font-size: 24px; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.global-nav ul { display: flex; align-items: center; list-style: none; gap: 20px; }
.site-footer { background-color: #f8f9fa; text-align: center; padding: 40px 0; margin-top: 60px; }

/* --- Page Specific & Sections --- */
.page-content { padding-top: 40px; }
.page-section + .page-section { margin-top: 60px; }
.breadcrumb { margin-bottom: 20px; font-size: 14px; color: #666; }
.breadcrumb a { color: var(--color-primary); }

.c-hero {
    position: relative;
    height: 500px; /* or a specific height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.c-hero .container {
    position: relative;
    z-index: 2;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.c-hero h1 { color: white; font-size: 40px; }
.c-hero p { font-size: 18px; margin-bottom: 30px; }
.home-section { margin-top: 80px; text-align: center; }
.home-section h2 { margin-bottom: 40px; }

/* --- Components --- */
.c-btn { display: inline-block; padding: 12px 24px; border-radius: var(--card-border-radius); font-weight: 700; text-align: center; cursor: pointer; transition: background-color 0.2s ease; border: none; text-decoration: none; }
.c-btn--primary { background-color: var(--button-primary-bg); color: var(--button-primary-text); }
.c-btn--primary:hover { background-color: #E69A46; text-decoration: none; }
.c-card { background-color: var(--color-background); border-radius: var(--card-border-radius); padding: var(--card-padding); box-shadow: var(--card-box-shadow); text-align: left; }

/* Profile & Staff */
.profile-card { display: flex; gap: 30px; align-items: center; }
.profile-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; flex-shrink: 0;}
.profile-body ul { padding-left: 20px; }
.c-card-staff { text-align: center; }
.c-card-staff img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; }

/* Reserve Page */
.c-card-option { text-align: center; }
.phone-number { font-size: 22px; font-weight: 700; color: var(--color-primary); margin: 20px 0; }
.c-form { max-width: 700px; margin: 40px auto 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--color-neutral); border-radius: 4px; font-size: 16px; }

/* Treatment Page (Tabs & Table) */
.c-tabs .tab-buttons { display: flex; border-bottom: 2px solid var(--color-neutral); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 15px 20px; cursor: pointer; font-size: 18px; font-weight: 700; color: #888; border-bottom: 4px solid transparent; }
.tab-btn.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tab-content { display: none; }
.tab-content.is-active { display: block; animation: fade-up 0.5s; }
.c-table-price { width: 100%; border-collapse: collapse; margin-top: 20px; }
.c-table-price th, .c-table-price td { border: 1px solid var(--color-neutral); padding: 12px; text-align: left; }
.c-table-price th { background-color: #f8f9fa; }

.img-case {
  margin-bottom: 24px;
}

/* Services Page (Accordion) */
.c-accordion .accordion-item + .accordion-item { border-top: 1px solid var(--color-neutral); }
.accordion-header { background: none; border: none; width: 100%; text-align: left; padding: 20px 0; cursor: pointer; font-size: 20px; display: flex; justify-content: space-between; align-items: center;}
.accordion-header::after { content: '+'; font-size: 24px; color: var(--color-primary); transition: transform 0.3s; }
.accordion-header.is-open::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content p { padding: 0 20px 20px; }

/* Access Page */
.c-map { margin-bottom: 20px; }
.access-info p { margin-bottom: 0.5em; }
.c-table-hours { width: 100%; border-collapse: collapse; text-align: center; }
.c-table-hours th, .c-table-hours td { border: 1px solid var(--color-neutral); padding: 12px; }
.c-table-hours th { background-color: #f8f9fa; }
.c-table-hours td:first-child { font-weight: 700; }
.table-note { margin-top: 10px; font-size: 14px; text-align: right; }

/* News Page */
.news-list-container { display: grid; grid-template-columns: 1fr; gap: 30px; }
.c-card-news { display: block; color: var(--color-text); text-decoration: none; box-shadow: var(--card-box-shadow); border-radius: var(--card-border-radius); overflow: hidden; transition: box-shadow 0.3s; }
.c-card-news:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.c-card-news a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;}
.card-news-body { padding: 20px; }
.card-news-body time { font-size: 14px; color: #666; }
.card-news-body h3 { margin: 10px 0; }

/* --- Animations --- */
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fade-up 0.8s ease-out forwards; }

/* --- Mobile Styles --- */
.mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1001; width: 30px; height: 21px; position: relative; }
.mobile-nav-toggle span { display: block; width: 100%; height: 3px; background-color: var(--color-primary); position: absolute; transition: transform 0.3s, opacity 0.3s; }
.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { bottom: 0; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .grid-3 { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; text-align: center; }
  .c-tabs .tab-buttons { flex-wrap: wrap; }
  .tab-btn { font-size: 16px; padding: 12px 15px; }
  .global-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.98); flex-direction: column; justify-content: center; align-items: center; }
  .global-nav.is-open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 30px; text-align: center; }
  .mobile-nav-toggle { display: block; }
}
