:root {
  --iface-bg: #fff;
  --iface-cream: #fdf8f2;
  --iface-beige: #f4eadc;
  --iface-ink: #2b2620;
  --iface-ink-soft: #6b645b;
  --iface-faint: #a8a097;
  --iface-orange: #f08302;
  --iface-orange-deep: #bd6500;
  --iface-line: rgba(74, 52, 38, 0.14);
  --iface-shadow: 0 18px 50px rgba(70, 47, 27, 0.08);
  --iface-wrap: 1200px;
}

html { scroll-behavior: smooth; }

body.iface-wp-page {
  margin: 0;
  background: var(--iface-bg);
  color: var(--iface-ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.iface-wp-page *,
.iface-wp-page *::before,
.iface-wp-page *::after { box-sizing: border-box; }

.iface-wp-page img { max-width: 100%; height: auto; }
.iface-wp-page a { color: inherit; text-decoration: none; }
.iface-wp-page button,
.iface-wp-page input,
.iface-wp-page textarea,
.iface-wp-page select { font: inherit; }

.iface-wrap { width: 100%; max-width: var(--iface-wrap); margin-inline: auto; padding-inline: clamp(22px, 4vw, 54px); }
.iface-content-narrow { max-width: 1040px; }
.iface-article-width { max-width: 900px; }
.iface-form-width { max-width: 900px; }

.iface-header {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--iface-ink);
  box-shadow: 0 1px 0 var(--iface-line);
  backdrop-filter: blur(12px);
  transition: color .4s, background .4s, box-shadow .4s, backdrop-filter .4s, transform .3s cubic-bezier(.19,1,.22,1);
}

.admin-bar .iface-header { top: 32px; }
.iface-header.is-hidden { transform: translateY(-100%); }

.iface-nav { display: flex; height: 70px; align-items: center; justify-content: space-between; }
.iface-logo { position: relative; display: block; width: 120px; height: 48px; flex: 0 0 auto; }
.iface-logo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.iface-menu { display: flex; align-items: center; gap: 34px; }
.iface-menu > a:not(.iface-button) {
  position: relative;
  color: var(--iface-ink-soft);
  font-family: "Outfit", sans-serif;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
.iface-menu > a:not(.iface-button)::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--iface-orange);
  content: "";
  transition: width .3s cubic-bezier(.19,1,.22,1);
}
.iface-menu > a:not(.iface-button):hover,
.iface-menu > a:not(.iface-button):focus-visible { color: var(--iface-ink); }
.iface-menu > a:not(.iface-button):hover::after,
.iface-menu > a:not(.iface-button):focus-visible::after { width: 100%; }

.iface-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 13px 28px;
  border: 0;
  border-radius: 40px;
  background: var(--iface-orange);
  color: #fff !important;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(240,131,2,.24);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.iface-button:hover,
.iface-button:focus-visible { background: var(--iface-orange-deep); box-shadow: 0 14px 30px rgba(240,131,2,.32); transform: translateY(-2px); }
.iface-outline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid var(--iface-orange);
  border-radius: 999px;
  background: transparent;
  color: var(--iface-orange-deep) !important;
  font-weight: 700;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.iface-outline-button:hover,
.iface-outline-button:focus-visible { background: var(--iface-orange); color: #fff !important; transform: translateY(-2px); }

.iface-burger { display: none; flex-direction: column; gap: 6px; padding: 6px; border: 0; background: none; color: var(--iface-ink); cursor: pointer; }
.iface-burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.iface-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.iface-burger.is-open span:nth-child(2) { opacity: 0; }
.iface-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.iface-main { min-height: 70vh; padding-top: 70px; }
.iface-page-hero {
  overflow: hidden;
  padding: clamp(42px, 5.5vw, 68px) 0 clamp(36px, 4.5vw, 54px);
  background:
    radial-gradient(circle at 86% 16%, rgba(240, 131, 2, 0.18), transparent 26%),
    linear-gradient(140deg, var(--iface-cream), #fff 68%);
  border-bottom: 1px solid var(--iface-line);
}
.iface-page-hero .iface-wrap { position: relative; }
.iface-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--iface-orange-deep);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.iface-page-hero h1,
.iface-article-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--iface-ink);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.iface-page-hero h1::after {
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 24px;
  background: var(--iface-orange);
  content: "";
}
.iface-page-hero .iface-wrap > p:last-child,
.iface-archive-description { position: relative; z-index: 1; margin: 26px 0 0; color: var(--iface-ink-soft); }
.iface-content-section { padding: clamp(72px, 9vw, 120px) 0; }

.iface-footer { padding: 32px 0 18px; border-top: 1px solid rgba(255,255,255,.12); background: var(--iface-ink); color: rgba(255,255,255,.7); }
.iface-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 28px; row-gap: 12px; }
.iface-footer-logo { width: 120px; height: 48px; }
.iface-tagline { margin: 6px 0 0; color: var(--iface-orange); font-family: "Outfit", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; }
.iface-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; font-family: "Outfit", sans-serif; font-size: .75rem; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.iface-footer-nav a { color: rgba(255,255,255,.7); }
.iface-footer-nav a:hover,
.iface-footer-nav a:focus-visible { color: var(--iface-orange); }
.iface-copyright { width: 100%; margin: 0; color: rgba(255,255,255,.45); font-size: .6875rem; line-height: 1.4; letter-spacing: .04em; text-align: right; }

.iface-wp-page :focus-visible { outline: 3px solid rgba(240, 131, 2, .38); outline-offset: 4px; }
.iface-skip-link:focus { z-index: 2000; top: 10px; left: 10px; width: auto; height: auto; padding: 10px 16px; clip: auto; background: #fff; color: var(--iface-ink); }

@media (max-width: 900px) {
  .admin-bar .iface-header { top: 46px; }
  .iface-header { height: 70px; }
  .iface-main { padding-top: 70px; }
  .iface-nav { position: relative; width: auto; max-width: none; height: 70px; margin: 0; padding: 0 22px; }
  .iface-header .iface-logo { position: absolute; top: 50%; left: 22px; width: 120px; transform: translateY(-50%); }
  .iface-burger { position: absolute; z-index: 2; top: 50%; right: 22px; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; transform: translateY(-50%); }
  .iface-menu {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px clamp(22px,4vw,54px);
    border-top: 1px solid var(--iface-line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 34px rgba(74,52,38,.12);
    backdrop-filter: blur(12px);
  }
  .iface-menu.is-open { display: flex; }
  .iface-menu > a:not(.iface-button) { padding: 0; border: 0; font-size: .8125rem; }
}

@media (max-width: 782px) {
  .admin-bar .iface-header { top: 46px; }
}

@media (max-width: 480px) {
  .iface-page-hero { padding-block: 34px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iface-wp-page *, .iface-wp-page *::before, .iface-wp-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
