/*
 * Makky☆Photo - WordPress additions.
 * Styles for the pages that did not exist in the static site:
 * NEWS / BLOG lists, articles, pagination and the inquiry form.
 * Uses the same colors, shadows and fonts as main.css.
 */

/* ---- anchors under the sticky header, and the WordPress admin bar ---- */
[id] { scroll-margin-top: 84px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 900px) {
  .admin-bar .global-nav { inset: 118px 14px auto; }
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- title band of the sub pages ---- */
.page-hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(30px, 4vw, 52px);
  background: linear-gradient(180deg, var(--color-pink) 0%, var(--color-ivory) 100%);
  text-align: center;
}
.page-hero__title { font-size: clamp(30px, 5vw, 48px); line-height: 1.45; }
.page-hero__lead { max-width: 34em; margin: 14px auto 0; }

.archive-section { padding-top: clamp(32px, 5vw, 56px); }
.empty-note {
  max-width: 40em;
  margin: 28px auto 0;
  padding: 22px 24px;
  border: 1px dashed rgba(185, 138, 107, .55);
  border-radius: 14px;
  background: var(--color-ivory);
  color: var(--color-brown);
  text-align: center;
}
.news-more, .archive-back { margin-top: 30px; text-align: center; }
.not-found { text-align: center; }

/* ---- NEWS list ---- */
.news-section { background: var(--color-ivory); }
.news-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.news-item__link {
  display: grid;
  grid-template-columns: 7.2em 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-item__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.news-item__date { color: var(--color-rose); font-family: var(--font-label); font-size: 19px; font-style: italic; font-weight: 600; }
.news-item__title { font-weight: 700; line-height: 1.6; }
.news-item__arrow { color: var(--color-rose); font-weight: 700; }
@media (max-width: 600px) {
  .news-item__link { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; }
  .news-item__date { grid-column: 1 / -1; }
}

/* ---- BLOG cards ---- */
.blog-section { background: #fff; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.blog-card__link { display: block; color: inherit; text-decoration: none; }
.blog-card__thumb {
  display: block;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border-width: 0 0 1px;
  box-shadow: none;
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__thumb .blog-card__noimage { width: 60%; height: auto; margin: auto; object-fit: contain; opacity: .85; }
.blog-card__thumb::after, .blog-card__thumb::before { display: none; }
.blog-card__body { display: block; padding: 18px 20px 22px; }
.blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--color-brown); }
.blog-card__meta time { font-family: var(--font-label); font-size: 18px; font-style: italic; font-weight: 600; color: var(--color-rose); }
.blog-card__cat {
  padding: 2px 12px;
  border: 1px solid rgba(185, 138, 107, .45);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}
.blog-card__title { display: block; margin-top: 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 1.55; color: var(--color-deep); text-wrap: balance; }
.blog-card__excerpt { display: block; margin-top: 8px; font-size: 16px; line-height: 1.8; color: var(--color-deep); }

/* ---- pagination ---- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fbf4ee);
  box-shadow: 0 6px 14px rgba(90, 70, 54, .1), 0 1px 0 #fff inset;
  color: var(--color-deep);
  font-weight: 700;
  text-decoration: none;
}
.pagination .page-numbers.current {
  border-color: rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, #c69b7e, var(--color-rose) 58%, #a87859);
  color: #fff;
}
.pagination .page-numbers.dots { border: 0; background: none; box-shadow: none; }

/* ---- article ---- */
.article-main { padding-top: 12px; }
.article { padding-top: clamp(40px, 6vw, 72px); }
.article__inner { width: min(100% - 36px, 780px); margin: 0 auto; }
.article__header { text-align: center; }
.article__title { font-size: clamp(26px, 4vw, 40px); line-height: 1.55; text-wrap: balance; }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--color-brown); }
.article__meta time { font-family: var(--font-label); font-size: 20px; font-style: italic; font-weight: 600; color: var(--color-rose); }
.article__cat { padding: 2px 14px; border: 1px solid rgba(185, 138, 107, .45); border-radius: 999px; background: #fff; font-size: 14px; text-decoration: none; }
.article__thumb { margin: 28px 0 0; aspect-ratio: 16 / 9; min-height: 0; }
.article__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article__thumb::after, .article__thumb::before { display: none; }

.entry-content { margin-top: 32px; font-size: 18px; line-height: 2; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  margin-top: 2.2em;
  padding: 10px 0 10px 16px;
  border-left: 4px solid var(--color-rose);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.5;
}
.entry-content h3 { margin-top: 1.9em; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.5; }
.entry-content h4 { margin-top: 1.6em; font-size: 19px; }
.entry-content a { color: var(--color-rose); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--color-rose);
  border-radius: 0 12px 12px 0;
  background: var(--color-ivory);
}
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { margin-top: 8px; font-size: 15px; color: var(--color-brown); text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--color-line); text-align: left; }
.entry-content th { background: var(--color-ivory); }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.entry-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-content::after { content: ""; display: block; clear: both; }
.page-links { font-weight: 700; }

.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; font-size: 16px; }
.article__nav a { color: var(--color-deep); text-decoration: none; font-weight: 700; }
.article__nav a:hover { color: var(--color-rose); }
.article__nav-next { text-align: right; }
@media (max-width: 600px) { .article__nav { grid-template-columns: 1fr; } .article__nav-next { text-align: left; } }
.article__back { margin-top: 36px; text-align: center; }
.article__cta {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: var(--shadow);
  text-align: center;
}
.article__cta p { margin: 0 0 16px; font-family: var(--font-heading); font-size: 19px; font-weight: 600; }

/* ---- inquiry form ---- */
.inquiry {
  max-width: 760px;
  margin: 56px auto 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fffaf6);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.inquiry__title { margin: 0; text-align: center; font-size: clamp(24px, 3.4vw, 30px); }
.inquiry__lead { margin: 12px 0 26px; text-align: center; }
.inquiry__notice {
  display: grid;
  gap: 6px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 14px;
  line-height: 1.8;
}
.inquiry__notice ul { margin: 4px 0 0; padding-left: 1.3em; }
.inquiry__notice--ok { border: 1px solid #9bb89b; background: #eef6ee; color: #2f4a2f; }
.inquiry__notice--error { border: 1px solid #d9a0a0; background: #fdeeee; color: #6b2a2a; }

.inquiry-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-form__row { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.inquiry-form__row > label, .inquiry-form__row > legend { display: block; margin: 0 0 8px; padding: 0; font-weight: 700; }
.inquiry-form__req, .inquiry-form__opt {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.inquiry-form__req { background: var(--color-rose); color: #fff; }
.inquiry-form__opt { border: 1px solid var(--color-line); background: #fff; color: var(--color-brown); }
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(142, 123, 106, .4);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(90, 70, 54, .06) inset;
  color: var(--color-deep);
  font: inherit;
  font-size: 17px;
  line-height: 1.7;
}
.inquiry-form textarea { min-height: 170px; resize: vertical; }
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 3px solid rgba(185, 138, 107, .35);
  outline-offset: 1px;
  border-color: var(--color-rose);
}
.inquiry-form__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.inquiry-form__chip { position: relative; display: inline-block; margin: 0; font-weight: 700; cursor: pointer; }
.inquiry-form__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inquiry-form__chip span {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(185, 138, 107, .45);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fbefe9);
  box-shadow: 0 6px 12px rgba(90, 70, 54, .1), 0 1px 0 #fff inset;
  transition: transform .15s ease;
}
.inquiry-form__chip:hover span { transform: translateY(-2px); }
.inquiry-form__chip input:checked + span {
  border-color: rgba(255, 255, 255, .8);
  background: linear-gradient(180deg, #c69b7e, var(--color-rose) 58%, #a87859);
  color: #fff;
}
.inquiry-form__chip input:focus-visible + span { outline: 3px solid rgba(185, 138, 107, .45); outline-offset: 2px; }
.inquiry-form__consent label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 500; cursor: pointer; }
.inquiry-form__consent input { flex: none; width: 22px; height: 22px; margin-top: 4px; accent-color: var(--color-rose); }
.inquiry-form__consent a { color: var(--color-rose); text-decoration: underline; }
.inquiry-form__actions { margin-top: 28px; text-align: center; }
.inquiry-form__submit { min-width: 240px; min-height: 56px; border: 1px solid rgba(255, 255, 255, .78); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.inquiry-form__submit[disabled] { opacity: .7; cursor: wait; }
@media (max-width: 520px) {
  .inquiry-form__submit { width: 100%; min-width: 0; }
}

/* cards without a featured image: logo centered in the frame */
.blog-card__thumb { display: grid; place-items: center; }
.blog-card__thumb .blog-card__noimage { position: static; width: 56%; max-width: 280px; height: auto; margin: 0; }

/* form notices: calm, left-aligned text that breaks only between phrases */
@media (max-width: 600px) {
  .inquiry { padding: 24px 16px; }
  .inquiry__notice { padding: 16px 14px; }
  .inquiry__notice strong { text-wrap: balance; }
  .inquiry__notice ul { padding-left: 1.2em; }
  .inquiry__notice li { margin-top: .35em; }
  .inquiry-form__consent label > span { line-height: 1.8; }
}
