/* Base */
:root {
  --bg: #ffffff;
  --text: #15202b;
  --muted: #5b6b7a;
  /* Sea (teal) and Yuzu (gold) */
  --brand: #1f7a8c;
  --brand-2: #f2b705;
  --alt: #f7f8fa;
  --border: #e5e9ef;
  --shadow: 0 8px 32px rgba(0,0,0,.06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic",
    "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0.5rem 0 0; }
h1, h2, h3 { margin: 0; line-height: 1.3; }

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--alt); }
.section__title { font-size: clamp(1.25rem, 0.8rem + 2vw, 2rem); margin-bottom: 24px; }

.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus {
  left: 16px; top: 16px; background: #000; color: #fff; padding: 8px 12px; border-radius: 6px;
}

/* Header */
.topbar { background: var(--brand); color: #fff; font-size: 0.9rem; }
.topbar__note { margin: 0; padding: 8px 0; text-align: center; letter-spacing: .02em; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; }
.brand__link { display: inline-flex; align-items: center; gap: 8px; }
.brand__img { height: 44px; width: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.tel { font-weight: 600; color: var(--brand); }

.nav { position: relative; }
.nav__toggle { display: none; }
.nav__menu { display: flex; gap: 16px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav__menu a { padding: 8px 10px; border-radius: 8px; color: var(--text); }
.nav__menu a:hover { background: var(--alt); }
/* Ensure CTA button text is white in header menu */
.nav__menu a.btn--primary, .nav__menu a.btn--primary:visited { color: #fff; }

/* Hero */
.hero { position: relative; }
.hero__media {
  height: clamp(320px, 50vw, 520px);
  background-image: url('../img/tanakapic_converted/20250915115725-2_page-0001.jpg');
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #ffffff;
}
.hero__content { position: relative; margin-top: -96px; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { display: inline-block; background: var(--brand); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 10px; }
.lead { color: var(--muted); }
.hero__actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

@supports (background-image: image-set(url('../img/tanakapic_converted/20250915115725-2_page-0001.jpg') type('image/jpeg') 1x)) {
  .hero__media {
    background-image: image-set(
        url('../img/tanakapic_converted/20250915115725-2_page-0001.jpg') type('image/jpeg') 1x
      );
    background-position: center top;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #ffffff;
  }
}

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #216a79; }
.btn--ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--alt); }
.btn--call { background: var(--brand-2); color: #1f2937; }
.btn--call:hover { filter: brightness(0.95); }
.btn--sm { padding: 8px 12px; font-size: 0.95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; }
.feature picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.feature img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feature__body { padding: 14px; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.card picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.card picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--alt);
}
.card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card__img--shift-right { object-position: 60% center; }
.card__body { padding: 14px; }

/* Grid 2 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: center; }

/* Callout */
.callout { border: 1px solid var(--brand); border-radius: var(--radius); padding: 16px; background: #fff; }
.callout__title { margin: 0 0 2px; font-weight: 700; }
.callout__tel a { font-size: 1.6rem; color: var(--brand); font-weight: 700; }
.callout__note { color: var(--muted); }

/* Media frame */
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame picture { display: block; aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact__item { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.contact__item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.contact__tel a { font-size: 1.6rem; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }

/* Lists & text */
.list { margin: 12px 0 16px; padding-left: 1.1rem; }
.list li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 0.95rem; }
.link { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.def { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; }
.def dt { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* Access */
.map-placeholder { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg, #e8edf5, #f5f7fb); border: 1px solid var(--border); }
.map-embed { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer__row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 0; }
.footer__links { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }

/* Nav - mobile */
@media (max-width: 880px) {
  .nav__toggle { display: inline-block; border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; background: #fff; }
  .nav__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; padding: 12px; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); display: none; flex-direction: column; min-width: 220px; }
  .nav__menu.is-open { display: flex; }
  .header__row { grid-template-columns: 1fr auto; }
  .header__cta { display: none; }
  .brand__img { height: 40px; }
}

/* Layout - mobile */
@media (max-width: 920px) {
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .def { grid-template-columns: 1fr; }
  .hero__content { margin-top: -56px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
