:root {
  color: #293a40;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --line: #ded6ca;
  --sage: #8bbda3;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #355b50; outline-offset: 4px; }
header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid #eee9e2;
}
header .inner {
  width: min(1450px, calc(100% - 44px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.omiya-logo { display: grid; justify-items: center; gap: 5px; width: 154px; }
.omiya-logo span { display: block; overflow: hidden; width: 100%; }
.omiya-logo .omiya-logo-mark { width: 88%; aspect-ratio: 400 / 94; }
.omiya-logo .omiya-logo-tag { aspect-ratio: 400 / 15; }
.omiya-logo img { display: block; width: 100%; height: auto; }
.omiya-logo-tag img { transform: translateY(-86.73%); }
#gnav, #gnav ul { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 22px); }
#gnav li a { font-size: 13px; text-decoration: none; white-space: nowrap; }
#gnav li a:hover, #gnav [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
#gnav .original-line-banner { display: block; width: clamp(230px, 19vw, 300px); height: auto; }
#gnav > p + p img { display: block; width: 22px; height: auto; }
.omiya-header-line, #hamburger { display: none; }

.contact-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 56px 20px;
  text-align: center;
  background: #f4f4f3;
}
.contact-title h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: .06em; }
.contact-title p {
  padding: 3px 31px;
  color: #465257;
  background: #e6e6e4;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  font-size: 14px;
  letter-spacing: .08em;
}
.contact-section {
  width: min(660px, calc(100% - 36px));
  margin-inline: auto;
  padding: 42px 0;
  text-align: center;
  line-height: 1.8;
}
.contact-section:first-of-type { padding-top: 64px; }
.contact-section + .contact-section { border-top: 1px solid var(--line); }
.contact-section:last-of-type { padding-bottom: 76px; }
.contact-section h2 { margin-bottom: 22px; font-size: 22px; font-weight: 500; }
.contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.5;
}
.contact-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-section .contact-line {
  box-sizing: border-box;
  width: min(100%, 352px);
  min-height: 56px;
  padding: 0;
  border-radius: 0;
}
.contact-section .contact-line img { display: block; width: 100%; height: auto; }
.contact-section .contact-line:hover img { opacity: .88; }
.contact-mail { margin-top: 16px; border: 1px solid #82958a; }
.contact-hours { width: min(420px, 100%); margin-inline: auto; text-align: left; }
.contact-hours > div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding: 10px 0; }
.contact-hours > div + div { border-top: 1px solid var(--line); }
.contact-hours dt { color: #536166; }

footer { padding: 32px 0 20px; color: #fff; background: #293b43; }
footer .inner {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}
footer .omiya-logo { filter: brightness(0) invert(1); }
footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 17px; }
footer nav a { font-size: 13px; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer nav + p img { display: block; width: 25px; height: auto; }
footer small { display: block; margin-top: 24px; text-align: center; }

@media (max-width: 1040px) {
  header .inner { min-height: 68px; gap: 10px; }
  .omiya-header-line {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 11px;
    border-radius: 2px;
    background: var(--sage);
    color: #20372d;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
  }
  #gnav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 70px);
    overflow: auto;
    padding: 8px 22px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  #gnav.on, #gnav ul { display: block; }
  #gnav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  #gnav > p { margin-top: 12px; }
  #hamburger {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    cursor: pointer;
  }
  #hamburger span { width: 20px; height: 2px; background: currentColor; }
}
@media (max-width: 600px) {
  header .inner { width: calc(100% - 28px); }
  .contact-title { padding-block: 40px; }
  .contact-section:first-of-type { padding-top: 42px; }
  .contact-section:last-of-type { padding-bottom: 48px; }
  footer .inner { grid-template-columns: 1fr auto; }
  footer nav { grid-column: 1 / -1; grid-row: 2; }
  footer nav + p { grid-column: 2; grid-row: 1; }
}

.contact-section #mailcontact form { margin-top: 1.5rem; }
.contact-section #mailcontact table { width: 100%; border-collapse: collapse; }
.contact-section #mailcontact th, .contact-section #mailcontact td { padding: .65rem; text-align: left; }
.contact-section #mailcontact input:not([type=checkbox]):not([type=submit]),
.contact-section #mailcontact textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.contact-section #mailcontact input[type=submit] { cursor: pointer; padding: .7rem 1.1rem; }
@media (max-width: 600px) {
  .contact-section #mailcontact tr, .contact-section #mailcontact th, .contact-section #mailcontact td { display: block; }
  .contact-section #mailcontact th, .contact-section #mailcontact td { padding: .35rem 0; }
}
