:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --panel: #eee8d9;
  --ink: #25241d;
  --muted: #58574b;
  --line: #d8d0bd;
  --green: #e5ef81;
  --dark-green: #3e4d2a;
  --gutter: clamp(20px, 4.2vw, 72px);
  --section-space: clamp(58px, 8vw, 110px);
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.home-page {
  --home-gold: #b0905c;
  --home-gold-light: #d8c294;
  --home-rule: #c9b789;
  --home-flourish: url("./assets/mucha-header-flourish.webp");
  --home-display: "Cormorant Garamond", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
img { display: block; max-width: 100%; height: auto; }
figure, dl, dd { margin: 0; }
p { margin-block: 0; line-height: 1.85; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #58793a; outline-offset: 5px; }

.wrap { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.skip-link { position: absolute; inset: 12px auto auto 12px; z-index: 2; background: var(--ink); color: white; padding: 12px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.home-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 87px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.home-brand img { width: 65px; }
.home-brand span { display: grid; gap: 4px; }
.home-brand strong { font-size: .94rem; line-height: 1; font-weight: 850; letter-spacing: .03em; }
.home-brand small { font-size: .66rem; letter-spacing: .075em; }
.company-brand .company-brand-emblem { width: clamp(65px, 7.2vw, 96px); }
.company-brand .company-brand-wordmark { width: clamp(118px, 13vw, 164px); }
.header-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 42px); font-weight: 700; }
.header-nav { margin-inline-start: auto; }
.header-nav a, .footer-inner nav a { text-decoration: none; font-size: .86rem; }
.header-nav a:hover, .footer-inner nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.button-row { display: flex; flex-wrap: wrap; gap: 16px 23px; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 52px;
  padding: 11px 19px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.3;
}
.button:hover { background: var(--ink); color: white; }
.button span { font-size: 1.14em; }
.button-small { min-height: 40px; padding: 9px 12px; gap: 12px; }
.button-primary { background: var(--green); }
.button-plain { border-color: #f0ebdb; color: #f8f4e8; }
.button-plain:hover { background: #f8f4e8; color: var(--ink); }
.text-link { display: inline-flex; align-items: baseline; gap: .65em; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 4.2vw, 68px);
  padding-block: clamp(44px, 6vw, 92px);
}
.hero-copy { padding-block-end: 19px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--dark-green); font-weight: 750; font-size: .84rem; letter-spacing: .08em; }
.eyebrow span { width: 17px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; }
h1 { margin-block-start: 18px; font-size: clamp(1.72rem, 3.75vw, 3.7rem); font-weight: 850; letter-spacing: -.065em; line-height: 1.22; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.1rem); font-weight: 820; letter-spacing: -.045em; line-height: 1.25; }
h3 { font-size: 1.17rem; line-height: 1.55; }
.hero-description { color: var(--muted); max-width: 32em; margin-block: 23px 26px; }
.hero-photo img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 42%; border-radius: 3px; background: #d1be9d; }
.hero-photo figcaption { margin-block-start: 6px; color: var(--muted); font-size: .73rem; text-align: right; }
.home-hero {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  column-gap: clamp(26px, 7vw, 96px);
  row-gap: 22px;
}
.home-hero h1 {
  margin-block-start: 0;
  font-family: var(--home-display);
  font-size: clamp(1.95rem, 4vw, 4rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.24;
}
.home-hero .hero-description { max-width: 31em; margin-block: 20px 22px; }
.hero-locations { text-decoration: underline var(--home-gold) .08em; text-underline-offset: .23em; }
.home-hero .button-row .text-link { font-size: .88rem; }
.home-hero .hero-photo { position: relative; isolation: isolate; width: min(100%, 400px); justify-self: center; }
.home-hero .hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px 9px 23px -8px;
  border: 1px solid var(--home-gold);
  border-radius: 20px 5px 20px 5px;
  pointer-events: none;
}
.home-hero .hero-photo img { aspect-ratio: 4 / 5; object-position: center 42%; border-radius: 16px 4px 16px 4px; }
.home-hero .hero-photo figcaption { text-align: start; }
.home-hero .hero-photo figcaption a { text-underline-offset: .19em; }

@media (min-width: 1000px) {
  .home-hero {
    --hero-cream: #f6f1e3;
    --hero-accent: #d7e3b4;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(32px, 5vw, 72px);
    margin-block: clamp(24px, 2.7vw, 42px) clamp(30px, 4vw, 60px);
    padding: clamp(36px, 4.4vw, 64px) clamp(36px, 4.6vw, 70px);
    background: linear-gradient(120deg, #252e24, #374333);
    position: relative;
    isolation: isolate;
    border-radius: 30px 9px 30px 9px;
    color: var(--hero-cream);
  }
  .home-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 9px;
    border: 1px solid #c5a972;
    border-radius: 23px 5px 23px 5px;
    box-shadow: inset 0 0 0 3px #374333, inset 0 0 0 4px #b69b624d;
    pointer-events: none;
  }
  .home-hero .hero-copy { padding-block-end: 0; }
  .home-hero h1 { font-size: clamp(2.45rem, 3.7vw, 3.85rem); }
  .home-hero h1 span { color: var(--hero-accent); }
  .home-hero .hero-description {
    margin-block: 25px 26px;
    padding-block-start: 19px;
    border-block-start: 1px solid #b69b6280;
    color: #e7e8d9;
  }
  .home-hero .button { border-color: var(--hero-accent); background: var(--hero-accent); color: #252e24; }
  .home-hero .button:hover { border-color: var(--hero-cream); background: var(--hero-cream); }
  .home-hero a:focus-visible { outline-color: var(--hero-accent); }
  .home-hero .hero-photo {
    width: min(100%, 360px);
    justify-self: end;
    margin-inline-end: clamp(0px, 2vw, 28px);
  }
  .home-hero .hero-photo::before {
    inset: -16px 22px 35px -19px;
    border-color: #c5a972;
  }
  .home-hero .hero-photo figcaption { color: #e7e8d9; }
}

.home-posts-section { padding-block: clamp(48px, 6vw, 80px); }
.home-hero + .home-posts-section { border-block-start: 1px solid var(--home-rule); }
.home-posts-section + .home-posts-section { padding-block-start: 0; }
.home-posts-section .section-heading, .home-post-list,
.home-videos .section-heading, .home-videos .video-grid { max-width: 62rem; }
.home-posts-section h2, .home-school h2, .home-contact h2 {
  font-family: var(--home-display);
  font-weight: 650;
  letter-spacing: -.02em;
}
.home-posts-section .section-heading, .home-videos .section-heading {
  margin-block-end: 16px;
  padding-block-end: 13px;
  border-block-end: 1px solid var(--home-rule);
  background: linear-gradient(var(--home-gold), var(--home-gold)) left bottom / 54px 2px no-repeat;
}
.home-post-list { margin: 0; padding: 0; list-style: none; }
.home-post-list-latest { border-block-start: 1px solid var(--line); }
.home-post-list-latest li { border-block-end: 1px solid var(--line); }
.home-post-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
.home-post-card:hover { background: var(--panel); }
.home-post-card:hover .home-post-title { text-decoration: underline; text-underline-offset: .22em; }
.home-post-title { min-width: 0; line-height: 1.55; overflow-wrap: anywhere; }
.home-post-list-latest .home-post-card { padding: 13px 8px; }
.home-post-list-latest .home-post-copy { display: grid; grid-template-columns: 6.8rem 3.1rem minmax(0, 1fr); gap: 4px 12px; align-items: baseline; }
.home-post-list time { color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-post-new { justify-self: start; padding: 2px 5px; border-radius: 2px; background: var(--green); color: var(--ink); font-size: .65rem; font-weight: 800; }
.home-post-list-latest .home-post-title { grid-column: 3; }
.home-post-list-popular { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); }
.home-post-list-popular .home-post-card { display: flex; height: 100%; flex-direction: column; border: 1px solid #d9c8a6; border-radius: 15px 5px 15px 5px; background: #fbf7ea; }
.home-post-list-popular .home-post-card:hover { background: #f0e6d1; }
.home-post-list-popular .home-post-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px 4px 0 0; background: var(--panel); }
.home-post-list-popular .home-post-copy { padding: clamp(10px, 1.2vw, 16px); font-size: .92rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; align-items: baseline; margin-block-end: 27px; }

.home-videos { padding-block: clamp(35px, 5.3vw, 72px) clamp(48px, 6vw, 82px); border-color: var(--home-rule); }
.home-videos h2 { font: 650 clamp(1.8rem, 3.5vw, 3.1rem)/1.25 var(--home-display); letter-spacing: -.02em; }
.home-videos .video-grid { margin-block-start: 0; gap: clamp(14px, 2vw, 22px); }
.home-videos .video-card { border: 1px solid #d9c8a6; border-radius: 15px 5px 15px 5px; background: #fbf7ea; }
.home-videos .video-frame { border-radius: 14px 4px 0 0; }
.home-videos .video-play-icon {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background-color: #ead7b0ed;
}
.home-videos .video-play-icon-corner { inset: auto 12px 12px auto; transform: none; }
.home-video-copy { padding: 11px 13px 14px; }
.home-video-duration { margin-block-start: 4px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.practical { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: 38px clamp(34px, 7.5vw, 110px); }
.practical p { color: var(--muted); }
.practical h2, .contact-section h2 { margin-block-end: 12px; }
.practical .text-link { margin-block-start: 12px; }

.school { padding-block: clamp(28px, 4vw, 54px); background: #e9e4d1; }
.school-inner { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(20px, 5vw, 72px); align-items: center; }
.school img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 55%; border-radius: 3px; background: #d4be93; }
.school h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); }
.school p { margin-block: 12px; color: var(--muted); }
.home-school { background: linear-gradient(110deg, #ece0c2, #f8f0db 72%); border-block: 1px solid var(--home-rule); }
.home-school img {
  border: 1px solid var(--home-gold);
  border-radius: 19px 5px 19px 5px;
  box-shadow: -4px -4px #f5ebd2, -5px -5px var(--home-gold-light);
}
.home-school .school-inner > div { position: relative; }
.home-school .school-inner > div::before,
.home-school .school-inner > div::after {
  content: "";
  width: clamp(108px, 13vw, 163px);
  aspect-ratio: 3;
  background: var(--home-flourish) center / contain no-repeat;
  pointer-events: none;
}
.home-school .school-inner > div::before { display: block; margin-block-end: 8px; transform: scaleX(-1); }
.home-school .school-inner > div::after { position: absolute; inset: 0 0 auto auto; }

.contact-section { background: #302f25; color: #f8f4e8; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .77fr); gap: 39px clamp(28px, 6vw, 92px); }
.contact-inner .button-row { margin-block: 22px 10px; }
.contact-section .button-primary { border-color: var(--green); }
.contact-section .button-primary:hover { background: #f8f4e8; color: var(--ink); }
.telephone { font-size: .85rem; }
.telephone a { font-variant-numeric: tabular-nums; text-underline-offset: .2em; }
.request-flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.request-flow li { position: relative; counter-increment: flow; border-block-start: 1px solid #77735d; padding: 10px 0 10px 38px; }
.request-flow li:last-child { border-block-end: 1px solid #77735d; }
.request-flow li::before { content: counter(flow); position: absolute; inset: 12px auto auto 4px; color: var(--green); font-variant-numeric: tabular-nums; font-weight: 700; }
.request-flow p { color: #e5dfcd; font-size: .86rem; }
.home-contact { background: linear-gradient(118deg, #302f25, #373b2b); }
.home-contact .request-flow li { border-color: #8e7d55; }
.home-contact .request-flow li::before { color: #f0d99d; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; padding-block: 27px; }
.footer-inner nav { flex-wrap: wrap; gap: 11px 26px; }
.footer-inner nav a:last-child span { margin-inline-start: .4em; }
.home-footer {
  position: relative;
  isolation: isolate;
  background: linear-gradient(109deg, #eee0bc, #f8efd9 35% 75%, #efe2bf);
  color: #253b2d;
  border-block: 1px solid var(--home-gold);
}
.home-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px solid var(--home-gold);
  border-radius: 28px 10px 28px 10px;
  box-shadow: inset 0 0 0 4px #fcf5df9c, inset 0 0 0 5px #ccb37caa;
  pointer-events: none;
}
.footer-flourish {
  position: absolute;
  z-index: -1;
  inset: auto 18px 13px auto;
  width: clamp(100px, 12vw, 149px);
  aspect-ratio: 3;
  background: var(--home-flourish) center / contain no-repeat;
  opacity: .82;
  pointer-events: none;
}
.footer-flourish-start { inset-inline: 18px auto; transform: scaleX(-1); }
.home-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(140px, 186px) minmax(0, 1fr);
  gap: 20px clamp(30px, 4vw, 62px);
  padding-block: clamp(33px, 4vw, 51px) clamp(58px, 5vw, 70px);
}
.home-footer .company-brand .company-brand-emblem { width: 100%; }
.footer-brand { display: grid; justify-items: center; gap: 5px; }
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 600;
  text-decoration-color: var(--home-rule);
  text-underline-offset: .25em;
}
.footer-instagram:hover { text-decoration-color: currentColor; }
.footer-instagram svg { flex: none; }
.home-footer .footer-inner nav { justify-content: flex-end; gap: 4px clamp(14px, 2vw, 26px); font-weight: 600; }
.home-footer .footer-inner nav > a,
.home-footer .online-menu summary { display: inline-flex; align-items: center; min-height: 38px; }
.home-footer .footer-inner nav a { overflow-wrap: anywhere; }
.home-footer .footer-inner nav :is(a, summary):focus-visible { outline-width: 2px; outline-offset: 2px; }
.home-footer .online-menu { position: relative; }
.home-footer .online-menu summary::after { transform: translateY(.12em) rotate(225deg); }
.home-footer .online-menu[open] summary::after { transform: translateY(-.12em) rotate(45deg); }
.home-footer .online-menu-links {
  inset-block: auto calc(100% + 8px);
  border-color: var(--home-rule);
  background: #f8efd9;
  text-align: start;
}
.home-footer .online-menu-links a { display: flex; align-items: center; min-height: 44px; }

@media (max-width: 940px) {
  .header-inner { flex-wrap: wrap; min-height: auto; gap: 12px 24px; padding-block: 14px; }
  .header-nav { position: relative; flex: 1 0 100%; order: 3; margin: 0; gap: 12px 23px; flex-wrap: wrap; }
  .home-post-list-popular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 38px 30px; }
  .hero-copy { padding: 0; }
  .hero-photo img { aspect-ratio: 16 / 10; object-position: center 41%; }
  .home-hero .hero-photo img { aspect-ratio: 1; object-position: center 39%; }
  .desktop-break { display: none; }
  .contact-inner, .practical { grid-template-columns: minmax(0,1fr); }
  .school-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .home-footer .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 32px 53px; }
  .home-footer .company-brand .company-brand-emblem { width: 165px; }
  .home-footer .footer-inner nav { position: relative; width: 100%; justify-content: center; text-align: center; }
  .home-footer .online-menu { position: static; }
  .home-footer .online-menu-links { inset-inline: 50% auto; width: min(18rem, 100%); transform: translateX(-50%); }
  .footer-flourish { width: min(27vw, 105px); }
}

@media (max-width: 600px) {
  .home-post-list-latest .home-post-copy { grid-template-columns: auto minmax(0, 1fr); }
  .home-post-list-latest .home-post-title { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .header-inner { column-gap: 10px; }
  .home-brand { gap: 7px; }
  .home-brand img { width: 42px; }
  .home-brand strong { font-size: .71rem; }
  .home-brand small { font-size: .61rem; }
  .home-brand.company-brand { gap: 4px; }
  .company-brand .company-brand-emblem { width: 54px; }
  .company-brand .company-brand-wordmark { width: 110px; }
  .header-nav a { font-size: .78rem; }
  .hero .button-row { column-gap: 15px; }
  .school-inner { grid-template-columns: minmax(0, 1fr); }
  .school img { aspect-ratio: 16 / 9; }
}

