/*
Theme Name: あおの整骨院
Description: あおの整骨院の公式サイト用オリジナルテーマ。トップページ、予約・施術メニュー・アクセスの固定ページ、お知らせ（標準投稿）で構成しています。
Version: 1.0.6
Author: あおの整骨院
Text Domain: aono-seikotsu
Requires PHP: 7.4
*/

:root {
  --ink: #181952;
  --muted: #5c607a;
  --paper: #fbfaf5;
  --paper-strong: #fffefa;
  --line: #dddff0;
  --aono: #181952;
  --aono-deep: #10123f;
  --aono-soft: #e9eafa;
  --mint: #c9cbed;
  --leaf: #686ca4;
  --cream: #fff4dc;
  --sun: #f4b95f;
  --salmon: #df826f;
  --shadow: 0 22px 70px rgba(24, 25, 82, 0.16);
  --small-shadow: 0 10px 26px rgba(24, 25, 82, 0.12);
  --hero-photo-fit: cover;
  --hero-photo-position: center center;
  --radius: 8px;
  --font-jp: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media query{
	
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 203, 237, 0.42), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(244, 185, 95, 0.24), transparent 24%),
    linear-gradient(135deg, #f6f7ff 0%, #fffaf0 52%, #f0f1fb 100%);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.7;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 34px 34px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-link {
  color: var(--aono);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sketch-screen {
  width: min(1180px, calc(100% - 32px));
  height: calc(100svh - 16px);
  min-height: 720px;
  margin: 8px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  grid-template-areas:
    "logo side"
    "main side"
    "footer footer";
  grid-template-rows: 142px minmax(0, 1fr) 42px;
  gap: 10px 18px;
}

.sketch-logo,
.sketch-main,
.sketch-card,
.sketch-footer,
.subpage-header,
.subpage-panel,
.post-card {
  border: 1px solid rgba(24, 25, 82, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 254, 250, 0.86);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(14px);
}

.sketch-logo {
  grid-area: logo;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  position: relative;
  overflow: hidden;
}

.sketch-logo::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(24, 25, 82, 0.28);
  border-radius: 6px;
  pointer-events: none;
}

.logo-fallback {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.logo-display {
  position: relative;
  min-width: 0;
}

.logo-display img {
  width: min(620px, 100%);
  max-height: 118px;
  object-fit: contain;
  object-position: left center;
}

.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;
}

.logo-fallback strong,
.logo-fallback h1 {
  margin: 0;
  color: var(--aono-deep);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  word-break: keep-all;
}

.logo-fallback span {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.opening-ribbon {
  position: relative;
  width: min(260px, 100%);
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--aono) 0%, #2b2d78 72%, #55599d 100%);
  box-shadow: var(--small-shadow);
}

.opening-ribbon span,
.opening-ribbon small {
  display: block;
}

.opening-ribbon span {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.9;
}

.opening-ribbon strong {
  display: block;
  margin: 2px 0 4px;
  font-size: clamp(1.28rem, 2.7vw, 1.8rem);
  line-height: 1.2;
}

.opening-ribbon small {
  font-size: 0.76rem;
  line-height: 1.5;
  opacity: 0.92;
}

.sketch-main {
  grid-area: main;
  min-height: 0;
  padding: 12px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 86px;
  gap: 10px;
}

.sketch-photo-area {
  position: relative;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e5f3ed, #fff4dc);
}

.sketch-photo-area::after {
  content: none;
  display: none;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

.sketch-lead {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 4vw, 36px);
  right: clamp(18px, 4vw, 36px);
  bottom: clamp(14px, 3vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.7fr);
  gap: 20px;
  align-items: end;
  color: #fff;
}

.sketch-lead > * {
  min-width: 0;
}

.opening-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--aono-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.sketch-lead h2 {
  margin: 12px 0 0;
  font-size: clamp(1.9rem, 4.4vw, 3.45rem);
  line-height: 1.05;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.sketch-lead p {
  margin: 0;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.sketch-photo,
.photo-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.sketch-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: var(--hero-photo-fit);
  object-position: var(--hero-photo-position);
}

.photo-fallback {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.photo-fallback::before {
  content: "";
  width: min(420px, 68%);
  aspect-ratio: 1.45;
  border-radius: 8px;
  background:
    /*linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(90deg, rgba(24, 25, 82, 0.2) 0 2px, transparent 2px 16px);*/
  box-shadow: 0 28px 80px rgba(24, 25, 82, 0.22);
  transform: rotate(-2deg);
}

.photo-fallback span {
  position: absolute;
  inset: auto 28px 28px auto;
  /*color: rgba(24, 25, 82, 0.55);*/
  font-weight: 800;
}

.sketch-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sketch-menu a {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--small-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sketch-menu a:hover,
.sketch-menu a:focus-visible,
.subpage-nav a:hover,
.subpage-nav a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(24, 25, 82, 0.18);
  filter: saturate(1.06);
}

.sketch-menu b {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.sketch-menu span {
  font-size: 0.78rem;
  line-height: 1.45;
  opacity: 0.92;
}

.sketch-menu .reserve,
.subpage-nav .reserve {
  background: linear-gradient(135deg, #e28573, #d75f53);
}

.sketch-menu .menu,
.subpage-nav .menu {
  background: linear-gradient(135deg, #2b2d78, #181952);
}

.sketch-menu .access,
.subpage-nav .access {
  background: linear-gradient(135deg, #f0ad4f, #d8902a);
}

.sketch-menu .blog,
.subpage-nav .blog {
  background: linear-gradient(135deg, #575aa0, #343779);
}

.sketch-side {
  /* grid-area: side;
  display: grid;
  min-height: 0;
  grid-template-rows: 118px 172px minmax(0, 1fr) 78px;
  gap: 10px; */
  grid-template-rows: 118px 172px auto 78px;
}

.sketch-card {
  overflow: hidden;
}

.sketch-profile-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.sketch-profile-photo,
.portrait-fallback {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #dceee7, #fff4dc);
}

.sketch-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.portrait-fallback {
  display: grid;
  place-items: end center;
  position: relative;
}

.portrait-fallback::before {
  content: "";
  width: 54%;
  aspect-ratio: 1;
  margin-bottom: 18%;
  border-radius: 50% 50% 42% 42%;
  background: linear-gradient(135deg, #7a7db5, #181952);
  box-shadow: 0 34px 0 18px rgba(24, 25, 82, 0.22);
}

.sketch-profile-meta strong,
.sketch-profile-meta span {
  display: block;
}

.sketch-profile-meta strong {
  font-size: 1.16rem;
  line-height: 1.3;
}

.sketch-profile-meta span {
  margin-top: 2px;
  color: var(--aono);
  font-size: 0.85rem;
  font-weight: 800;
}

.sketch-profile-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.sketch-hours-card {
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.sketch-hours-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sketch-hours-card h2 {
  margin: 0;
  color: var(--aono-deep);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.25;
}

.sketch-hours-card .sketch-concept-label {
  min-height: 24px;
  padding: 2px 10px;
  font-size: 0.72rem;
}

.hours-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.hours-list div {
  min-height: 30px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hours-list dt,
.hours-list dd {
  margin: 0;
}

.hours-list dt {
  color: var(--aono-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.hours-list dd {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.sketch-concept {
  min-height: 0;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    linear-gradient(rgba(255, 254, 250, 0.9), rgba(255, 254, 250, 0.9)),
    linear-gradient(135deg, var(--aono-soft), var(--cream));

  }

.sketch-concept-label {
  justify-self: start;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--aono-deep);
  background: var(--aono-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.sketch-concept h2 {
  margin: 0;
  color: var(--aono-deep);
  font-size: clamp(1.75rem, 3.3vw, 2.55rem);
  line-height: 1.08;
  font-weight: 800;
}

.sketch-concept p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.sketch-concept-list {
  display: grid;
  gap: 6px;
}

.sketch-concept-list div {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.sketch-concept-list div::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}

.sketch-image-card {
  padding: 0;
  background: rgba(255, 254, 250, 0.94);
}

.sketch-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius);
}

.sketch-footer {
  grid-area: footer;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.subpage {
  width: min(1080px, calc(100% - 32px));
  margin: 16px auto 40px;
}

.subpage-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.subpage-title {
  margin: 0;
  color: var(--aono-deep);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
}

.subpage-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--aono-deep);
  background: var(--aono-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.subpage-lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.subpage-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.subpage-nav a {
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.subpage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 18px;
}

.subpage-panel {
  padding: clamp(20px, 3vw, 30px);
}

.subpage-panel h2,
.post-card h2 {
  margin: 0 0 12px;
  color: var(--aono-deep);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.28;
}

.subpage-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.info-list strong {
  color: var(--aono-deep);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.post-card time {
  color: var(--aono);
  font-size: 0.84rem;
  font-weight: 800;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.wire-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .sketch-screen {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "main"
      "side"
      "footer";
  }

  .sketch-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .sketch-concept {
    align-content: start;
  }

  .subpage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .sketch-screen,
  .subpage {
    width: min(100% - 20px, 560px);
    margin: 10px auto;
    gap: 12px;
  }

  .sketch-logo,
  .subpage-header {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .logo-display img {
    width: 100%;
    max-height: 120px;
    object-position: left center;
  }

  .opening-ribbon {
    width: 100%;
  }

  .sketch-main {
    min-height: auto;
  }

  .sketch-photo-area,
  .sketch-photo,
  .photo-fallback {
    min-height: 440px;
  }

  .sketch-lead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sketch-menu,
  .subpage-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sketch-menu a {
    min-height: 104px;
  }

  .sketch-side {
    grid-template-columns: 1fr;
  }

  .sketch-profile-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sketch-profile-photo,
  .portrait-fallback {
    width: 104px;
  }
}

@media (max-width: 430px) {
  .sketch-screen,
  .subpage {
    width: calc(100% - 14px);
    margin: 7px auto;
  }

  .sketch-logo,
  .sketch-main,
  .sketch-concept,
  .subpage-header,
  .subpage-panel {
    padding: 14px;
  }

  .sketch-photo-area,
  .sketch-photo,
  .photo-fallback {
    min-height: 410px;
  }

  .sketch-menu,
  .subpage-nav {
    gap: 8px;
  }

  .sketch-menu a {
    min-height: 96px;
    padding: 12px;
  }

  .sketch-lead h2 {
    font-size: 1.75rem;
    line-height: 1.16;
  }

  .sketch-lead p {
    font-size: 0.88rem;
  }

  .sketch-profile-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .sketch-profile-photo,
  .portrait-fallback {
    width: 88px;
  }
}

/* ===== WordPress化に伴う追加スタイル ===== */

.post-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card-link {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.post-card:hover,
.post-card:focus-within {
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.post-card-link h2 {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.post-card-link:hover h2,
.post-card-link:focus-visible h2 {
  text-decoration-color: currentColor;
}

.post-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.post-pagination .page-numbers.current {
  background: var(--aono);
  color: #fff;
  border-color: var(--aono);
}

.subpage-panel img {
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.subpage-panel a {
  color: var(--aono);
  font-weight: 700;
}

/* Mobile layout fixes - 2026-07-10 */
.sketch-side {
  grid-area: side;
  display: grid;
  min-height: 0;
  grid-template-rows: 118px 172px minmax(0, 1fr) 178px;
  gap: 10px;
}

.sketch-concept > .sketch-concept-label {
  display: none;
}

.sketch-concept h2 {
  font-size: clamp(1.42rem, 3.4vw, 1.85rem);
  line-height: 1.36;
}

.sketch-lead h2 {
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.46);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.32),
    1px 0 0 rgba(0, 0, 0, 0.32),
    -1px 0 0 rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(0, 0, 0, 0.28),
    0 -1px 0 rgba(0, 0, 0, 0.24);
}

@media (min-width: 981px) {
  .sketch-concept {
    padding: 12px 14px;
    gap: 8px;
  }

  .sketch-concept p {
    line-height: 1.5;
  }

  .sketch-concept-list {
    gap: 5px;
  }

  .sketch-concept-list div {
    padding: 5px 9px;
    line-height: 1.45;
  }

  .sketch-image-card {
    background: rgba(255, 254, 250, 0.96);
  }

  .sketch-image-card img {
    object-fit: contain;
    object-position: center center;
  }
}

@media (max-width: 980px) {
  .sketch-screen {
    height: auto;
    min-height: 0;
    grid-template-rows: auto;
  }

  .sketch-side {
    display: grid;
    grid-template-rows: auto;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .sketch-logo {
    align-items: stretch;
    overflow: visible;
  }

  .sketch-main {
    grid-template-rows: auto auto;
  }

  .opening-ribbon {
    width: 100%;
  }

  .sketch-concept h2 {
    font-size: 1.45rem;
    line-height: 1.42;
  }
}

/* PATCH START: profile auto-size and lead paragraph outline - 2026-07-10
   Rollback: remove this entire PATCH block to restore the previous layout. */
.sketch-profile-card {
  min-height: 118px;
  height: auto;
  align-items: start;
}

.sketch-profile-meta,
.sketch-profile-meta p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-email-link {
  display: inline-block;
  margin-top: 2px;
  color: var(--aono-deep);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  word-break: break-all;
}

.profile-email-link:hover,
.profile-email-link:focus-visible {
  color: var(--aono);
}

.sketch-lead p {
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.35),
    1px 0 0 rgba(0, 0, 0, 0.28),
    -1px 0 0 rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 -1px 0 rgba(0, 0, 0, 0.22);
}

@media (min-width: 981px) {
  .sketch-screen {
    height: auto;
    min-height: calc(100svh - 16px);
    grid-template-rows: 142px minmax(680px, auto) 42px;
  }

  .sketch-side {
    align-self: start;
    grid-template-rows: auto 172px auto 178px;
  }
}
/* PATCH END: profile auto-size and lead paragraph outline */
