/*
Theme Name: Honoca
Theme URI: https://www.ashitanota.net/
Author: あしたのたね
Description: 米ぬか発酵温浴ほのか専用テーマ
Version: 0.5.11
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: honoca
*/

:root {
  --ink: #253326;
  --muted: #6f776d;
  --paper: #fbfaf6;
  --white: #fff;
  --moss: #647157;
  --moss-dark: #3d4a38;
  --sand: #ded6c7;
  --line: rgba(47, 62, 45, .16);
  --accent: #ae0042;
  --content: 1090px;
  --reading: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: #f4f1e7;
  background-image: url("assets/images/washi-background.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "HGP教科書体", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: .045em;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; background: transparent; }
.header-inner { width: min(1100px, calc(100% - 40px)); margin: auto; padding: 42px 0 0; text-align: center; }
.site-branding { display: inline-block; text-decoration: none; }
.site-branding img { width: auto; max-width: min(300px, 82vw); margin: auto; image-rendering: auto; }
.site-title { margin: 0; font-weight: 400; font-size: clamp(25px, 4vw, 39px); letter-spacing: .14em; }
.site-description { margin: 4px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .18em; }
.menu-toggle { display: none; }
.primary-nav { margin-top: 38px; }
.primary-nav ul { display: flex; justify-content: center; gap: 38px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu-row + .menu-row { margin-top: 18px; }
.primary-nav li { flex: 0 0 auto; }
.primary-nav a { color: #8a7a6d; font-size: 18px; line-height: 1.6; letter-spacing: .035em; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); }

.site-main { min-height: 50vh; }
.page-shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 64px 0 110px; }
.home .page-shell { padding-top: 42px; }
.entry-header { max-width: var(--reading); margin: 0 auto 48px; text-align: center; }
.entry-title { margin: 0; color: var(--accent); font-size: clamp(24px, 4vw, 32px); font-weight: 400; line-height: 1.55; letter-spacing: .09em; }
.entry-content { max-width: var(--reading); margin: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1em; }
.entry-content .j-text p {
  margin: 0 0 .5em;
  font-family: "HGP教科書体", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
}
.entry-content .j-text p:not([style*="text-align: left"]) { text-align: center; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin: 2.8em 0 1.2em; color: var(--accent); font-weight: 400; line-height: 1.65; text-align: center; }
.entry-content h1 { font-size: clamp(22px, 3vw, 30px); }
.entry-content h2 { font-size: clamp(20px, 2.6vw, 26px); }
.entry-content h3 { font-size: 19px; }
.entry-content figure { margin: 36px auto; }
.entry-content .cc-m-image-align-3,
.entry-content .cc-m-image-align-3 img { margin-right: auto; margin-left: auto; }
.entry-content .j-imageSubtitle:has(img[data-src-width="2000"]) {
  width: min(var(--content), calc(100vw - 40px));
  max-width: none;
  margin-right: 0;
  margin-left: 50%;
  transform: translateX(-50%);
}
.entry-content .j-imageSubtitle:has(img[data-src-width="2000"]) figure,
.entry-content .j-imageSubtitle:has(img[data-src-width="2000"]) img { width: 100%; }

/* トップ下部の扉写真。Jimdoの固有IDを残している間は直接固定する。 */
#cc-m-11153083349 {
  width: min(1090px, calc(100vw - 40px)) !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
}
#cc-m-11153083349 figure,
#cc-m-11153083349 a,
#cc-m-imagesubtitle-image-11153083349 {
  display: block;
  width: 100% !important;
  max-width: none !important;
}

/* トップ最上部のメインビジュアル。 */
#cc-m-11144739849 {
  width: min(1090px, calc(100vw - 40px)) !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 50% !important;
  transform: translateX(-50%);
}
#cc-m-11144739849 figure,
#cc-m-imagesubtitle-image-11144739849 {
  display: block;
  width: 100% !important;
  max-width: none !important;
}
.entry-content .j-hgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; max-width: var(--content); margin: 36px calc((var(--reading) - var(--content)) / 2); }
.entry-content .cc-m-hgrid-column[style*="23.5%"] { width: auto !important; }
.entry-content .cc-m-hgrid-separator, .entry-content .cc-m-hgrid-overlay, .entry-content script, .entry-content .cc-clear { display: none !important; }
.entry-content [style*="font-family"] { font-family: inherit !important; }
.entry-content [style*="font-size: 1.6rem"] { font-size: 1rem !important; }
.entry-content .j-text a { color: var(--accent); }
.entry-content .faq { padding: .2em 0 .45em 1em; border-bottom: 1px solid #ddd; border-left: 3px solid var(--accent); font-weight: 700; text-align: left !important; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content td, .entry-content th { padding: 12px; border: 1px solid var(--line); }

/* トップの4案内から予約案内まで。Jimdo由来の空白とテーマ余白の重複を除く。 */
.home .entry-content .j-hgrid { margin-bottom: 0; }
.home .entry-content .j-hgrid + .j-spacing .cc-m-spacer { height: 34px !important; }
.home .entry-content .j-hgrid + .j-spacing { margin: 0; }

/* 初回予約案内：Jimdoの余白感に合わせ、見出し間の過剰な空間を抑える。 */
#cc-matrix-3024033749 > .j-header :is(h1, h2, h3) {
  margin: 2.1em 0 .8em;
}
#cc-matrix-3024033749 > #cc-m-11209821949 :is(h1, h2, h3) {
  margin-top: 50px;
}
#cc-matrix-3024033749 > #cc-m-13380598249 :is(h1, h2, h3) {
  margin-top: 2em;
  margin-bottom: 1em;
}
#cc-matrix-3024033749 > .j-text p {
  margin-bottom: .4em;
}

.reservation-bar { position: fixed; right: 24px; bottom: 24px; z-index: 30; }
.reservation-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 28px; color: #fff; background: var(--moss-dark); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; box-shadow: 0 8px 28px rgba(28,39,27,.22); font-size: 15px; letter-spacing: .13em; text-decoration: none; }
.reservation-button:hover { background: var(--accent); }

.site-footer { color: #eff2eb; background: var(--moss-dark); }
.footer-inner { width: min(var(--content), calc(100% - 40px)); margin: auto; padding: 52px 0 30px; text-align: center; }
.footer-name { font-size: 18px; letter-spacing: .12em; }
.footer-name-prefix { display: block; margin-bottom: .25em; font-size: 13px; }
.footer-meta { margin: 10px 0 24px; font-size: 13px; line-height: 1.9; }
.footer-links { display: flex; justify-content: center; gap: 18px; font-size: 12px; }
.copyright { margin: 28px 0 0; opacity: .7; font-size: 11px; }

.reservation-calendar-page { width: min(1100px, calc(100% - 40px)); }
.reservation-calendar { width: 100%; overflow: hidden; background: rgba(255,255,255,.45); }
.reservation-calendar iframe { display: block; width: 100%; min-height: 1000px; border: 0; }
.page-template-page-reservation-calendar .reservation-bar { display: none; }
.airreserve-credit { margin: 16px 0 0; color: #555; font-family: sans-serif; font-size: 10px; line-height: 1.6; text-align: right; }
.airreserve-credit a { color: #555; text-decoration: underline; }
.airreserve-credit img { display: inline-block; width: 12px; height: 12px; margin: 2px 2px 4px; vertical-align: top; }

#cc-m-11144774349 {
  width: min(1090px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}
.honoca-map,
.honoca-map iframe { display: block; width: 100%; }
.honoca-map iframe { height: 480px; border: 0; }

#cc-m-11144778249 { display: none; }
.honoca-contact-form { width: min(1090px, 100%); margin: 0 auto; }
.contact-row { display: grid; grid-template-columns: 220px minmax(0, 425px); align-items: start; gap: 20px; margin-bottom: 12px; }
.contact-row-message { grid-template-columns: 220px minmax(0, 1fr); }
.contact-row label { padding-top: 7px; font-size: 16px; text-align: left; }
.contact-row label span, .contact-note span { color: #e54242; }
.contact-row input, .contact-row textarea { width: 100%; padding: 10px 12px; border: 1px solid #8fb99b; border-radius: 2px; background: #fff; color: var(--ink); }
.contact-row input { height: 67px; }
.contact-row textarea { min-height: 210px; resize: vertical; }
.contact-privacy { margin: 18px 0 20px 240px !important; text-align: left !important; }
.contact-privacy a { color: #8fc7a1 !important; }
.contact-submit { margin-left: 240px; padding: 13px 20px; border: 0; border-radius: 3px; background: #a6d1af; color: #fff; font-weight: 700; cursor: pointer; }
.contact-submit:hover { background: var(--moss); }
.contact-note { margin-top: 30px !important; text-align: left !important; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { padding: 12px 16px; border: 1px solid var(--line); text-align: center; }
.contact-notice.is-success { background: #edf6ef; }
.contact-notice.is-error { background: #f9eeee; color: #8b2e2e; }

/* 入酵の流れ：現行の小写真＋説明文の比率と間隔を再現する。 */
#cc-matrix-3011145549 > .j-hgrid {
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 36px;
  width: min(908px, calc(100vw - 40px));
  max-width: none;
  margin: 0 0 0 50%;
  transform: translateX(-50%);
  align-items: start;
}
#cc-matrix-3011145549 > .j-hgrid > .cc-m-hgrid-column { width: auto !important; }
#cc-matrix-3011145549 > .j-hgrid figure { margin: 0; }
#cc-matrix-3011145549 > .j-hgrid .j-text p { margin-bottom: .5em; }
#cc-matrix-3011145549 > .j-spacing { margin: 0; }
#cc-matrix-3011145549 > .j-spacing .cc-m-spacer { height: 48px !important; }

@media (min-width: 761px) {
  .entry-content .j-hgrid:has(.cc-m-hgrid-column[style*="23.5%"]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .top-title-phrase { white-space: nowrap; }
  #cc-m-13474207449 { margin-bottom: 1.8em !important; }
  body { font-family: "HGP教科書体", serif; font-size: 14px; line-height: 2; padding-bottom: 0; background-attachment: scroll; }
  .entry-content .j-text p { font-family: "HGP教科書体", serif; }
  .header-inner { width: min(100% - 50px, var(--content)); padding: 70px 0 45px; }
  .site-branding { display: block; width: max-content; margin: auto; line-height: 0; }
  .site-branding img { width: auto; max-width: min(206px, 70vw); }
  .menu-toggle {
    position: absolute;
    top: 0;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 47px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: rgba(120, 118, 105, .25);
    color: transparent;
    font-size: 0;
  }
  .menu-toggle::before { content: "☰"; color: #fff; font-family: sans-serif; font-size: 25px; line-height: 1; }
  .primary-nav { display: none; margin-top: 22px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; padding: 0; }
  .primary-nav .menu-row + .menu-row { margin-top: 0; }
  .primary-nav li { border-top: 1px solid var(--line); }
  .primary-nav a { display: block; padding: 10px 4px; font-size: 15px; }
  .page-shell { width: min(100% - 50px, var(--content)); padding: 25px 0 70px; }
  .home .page-shell { padding-top: 25px; }
  .entry-header { margin-bottom: 20px; }
  .entry-content h1, .entry-content h2, .entry-content h3 {
    margin: 0 0 20px;
    padding: 6px 0;
    font-family: "HGP教科書体", serif;
    line-height: 21px;
    letter-spacing: 0;
  }
  .entry-content .j-header { padding-top: 50px; }
  .entry-content .j-header > :is(h1, h2, h3) { margin-top: 0 !important; }
  .entry-content .j-header:has(+ .j-header) > :is(h1, h2, h3) { margin-bottom: 0; }
  .entry-content .j-spacing:has(+ .j-header) { margin: 0; }
  .entry-content .j-spacing:has(+ .j-header) .cc-m-spacer { height: 0 !important; }
  .entry-content .j-imageSubtitle:has(img) + .j-header { padding-top: 36px; }
  #cc-matrix-3024033749 > #cc-m-11209821949 { padding-top: 20px; }
  #cc-matrix-3024033749 > #cc-m-13380598249 { padding-top: 30px; }
  #cc-matrix-3011145549 > .j-header { padding-top: 20px; }
  #cc-m-11144753149,
  #cc-m-11144755649,
  #cc-m-11144758849 { padding-top: 30px; }
  #cc-m-12463663349 { padding-top: 20px; }
  #cc-matrix-3024033749 > .j-text p { margin-bottom: 0; }
  .home .entry-content .top-title { margin: 24px 0 8px; padding: 0; line-height: 1.4; }
  .home .entry-content .j-hgrid { margin-top: 10px; }
  #cc-m-11144774349 iframe { height: 400px; margin-top: 10px; }
  #cc-matrix-3024033749 .j-text p:has(span[style*="color: #660000"]),
  #cc-matrix-3024033749 .j-text p:has(span[style*="color:#660000"]) {
    text-align: center !important;
  }
  #cc-m-11209822049 p:nth-of-type(4) > span[style*="color: #660000"] {
    font-size: 16px !important;
    line-height: inherit;
  }
  #cc-m-11209822049 p:nth-of-type(17),
  #cc-m-13380599849,
  #cc-m-13380599449 {
    display: none !important;
  }
  #cc-m-11144757749 p:nth-last-child(-n+2),
  #cc-m-11144759049 p:last-child,
  #cc-m-11144761849 p:last-child {
    display: none !important;
  }
  #cc-m-13137134449 p:first-child > span:first-child br:nth-of-type(3) {
    display: block;
    margin-bottom: 28px;
    content: "";
  }
  #cc-m-13137134449 p:first-child { margin-bottom: 28px; }
  #cc-m-13137126049 { padding-top: 28px; }
  #cc-m-11144756749 p:nth-of-type(9),
  #cc-m-11144756749 p:nth-of-type(11),
  #cc-m-11144756749 p:nth-of-type(13),
  #cc-m-11144756749 p:nth-of-type(15) {
    text-align: center !important;
  }

  .entry-content figure { margin: 0 auto; line-height: 0; }
  .entry-content .j-hgrid { grid-template-columns: 1fr; gap: 20px; margin: 30px 0; }
  .entry-content .j-imageSubtitle:has(img[data-src-width="2000"]) { width: 100%; margin-left: 0; transform: none; }
  #cc-m-11153083349, #cc-m-11144739849 { width: 100% !important; margin-left: 0 !important; transform: none; }
  .entry-content .j-imageSubtitle img { margin-right: auto; margin-left: auto; }
  .entry-content .j-text p { margin-bottom: 0; font-size: 14px; line-height: 2; text-align: left !important; }
  .entry-content .j-text p[style*="text-align: center"] { text-align: center !important; }
  .reservation-bar { display: none; }
  .reservation-calendar-page { width: calc(100% - 20px); }
  .reservation-calendar iframe { min-height: 1100px; }
  #cc-m-11144774349 { width: 100%; }
  .honoca-map iframe { height: 380px; }
  .honoca-contact-form { width: 100%; }
  .contact-row, .contact-row-message { display: block; margin-bottom: 18px; }
  .contact-row label { display: block; padding: 0 0 5px; }
  .contact-row input { height: 52px; }
  .contact-privacy, .contact-submit { margin-left: 0 !important; }
  #cc-matrix-3011145549 > .j-hgrid {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  #cc-matrix-3011145549 > .j-hgrid > .cc-m-hgrid-column.last { margin-top: -14px; }
  #cc-matrix-3011145549 > .j-hgrid figure { margin: 0 auto; }
  #cc-matrix-3011145549 > .j-hgrid img { margin-right: auto; margin-left: auto; }
  #cc-matrix-3011145549 > .j-hgrid .j-text p { margin-bottom: 0; }
  #cc-matrix-3011145549 > .j-header :is(h1, h2, h3) { margin-top: 20px; }
  #cc-matrix-3011145549 > .j-header + .j-hgrid { margin-top: 29px; }
  #cc-matrix-3011145549 > .j-spacing .cc-m-spacer { height: 32px !important; }
}
