/*
Theme Name: マスヤ専用テーマ
Theme URI: https://kouka-masuya.com/
Author: マスヤ
Description: 滋賀県甲賀市の駄菓子屋「マスヤ」のためのオリジナルWordPressテーマです。
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: masuya
*/

:root {
  --masuya-brown: #765137;
  --masuya-brown-dark: #51351f;
  --masuya-red: #cf6a6d;
  --masuya-red-dark: #b95057;
  --masuya-cream: #fffaf3;
  --masuya-gray: #f4f3f2;
  --masuya-text: #3f3a36;
  --masuya-line: #c8c3bd;
  --masuya-white: #fff;
  --masuya-wide: 1160px;
  --masuya-content: 1040px;
  --masuya-narrow: 880px;
  --masuya-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --masuya-sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--masuya-text);
  background: var(--masuya-white);
  font-family: var(--masuya-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-ribbon {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1769ff;
  outline-offset: 4px;
}

.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;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--masuya-brown-dark);
  background: var(--masuya-white);
  box-shadow: 0 0 0 3px var(--masuya-red);
}

.site-ribbon {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 20px;
  color: var(--masuya-white);
  background: var(--masuya-red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.site-ribbon__text {
  margin: 0;
}

.section-inner {
  width: min(calc(100% - 48px), var(--masuya-content));
  margin-inline: auto;
}

.section-inner--narrow {
  width: min(calc(100% - 48px), var(--masuya-narrow));
}

.section-title {
  margin: 0 0 56px;
  color: var(--masuya-brown);
  font-family: var(--masuya-serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-align: center;
}

.hero {
  min-height: clamp(560px, 59vw, 760px);
  display: grid;
  place-items: center;
  padding: 64px 24px;
  background-color: #eee8e1;
  background-image: url("assets/images/masuya_main.jpg");
  background-position: center;
  background-size: cover;
}

.hero__logo {
  width: min(370px, 76vw);
  filter: drop-shadow(0 3px 10px rgba(255, 255, 255, .55));
}

.intro {
  padding: clamp(72px, 9vw, 122px) 0 64px;
  background: var(--masuya-cream);
  text-align: center;
}

.intro__lead {
  margin: 0 0 48px;
  font-family: var(--masuya-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 2;
}

.intro__body {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
}

.intro__body + .intro__body {
  margin-top: 36px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform .2s ease, opacity .2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: .8;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  overflow: hidden;
  background: #eee;
}

.photo-strip__item {
  aspect-ratio: 1.47 / 1;
  min-width: 0;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about {
  padding: clamp(86px, 10vw, 148px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 92px 72px;
}

.about-card__image {
  aspect-ratio: 1.478 / 1;
  width: 100%;
  object-fit: cover;
}

.about-card__title {
  margin: 34px 0 18px;
  font-family: var(--masuya-serif);
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
}

.about-card__text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

.consultation {
  padding: clamp(90px, 10vw, 150px) 0;
  background: var(--masuya-cream);
  text-align: center;
}

.consultation .section-title {
  margin-bottom: 24px;
}

.consultation__intro {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin: 64px 0 76px;
}

.occasion-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.occasion-card__title {
  margin: 18px -12px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-call__label {
  margin: 0 0 4px;
  font-family: var(--masuya-serif);
  font-size: 20px;
  font-weight: 700;
}

.contact-call__phone {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--masuya-text);
  font-size: clamp(37px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.contact-call__phone::before {
  content: "☎";
  color: var(--masuya-red);
  font-size: .84em;
  line-height: 1;
}

.contact-call__hours {
  margin: 14px 0 28px;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 330px;
  min-height: 72px;
  padding: 18px 36px;
  border: 2px solid var(--masuya-red);
  color: var(--masuya-white);
  background: var(--masuya-red);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.button:hover {
  color: var(--masuya-red-dark);
  background: var(--masuya-white);
}

.access {
  padding: clamp(90px, 10vw, 150px) 0;
}

.access .section-title {
  margin-bottom: 52px;
}

.map-frame {
  aspect-ratio: 2.05 / 1;
  width: 100%;
  border: 0;
  background: var(--masuya-gray);
}

.shop-info {
  margin-top: 28px;
}

.shop-info__name {
  margin: 0 0 6px;
  font-family: var(--masuya-serif);
  font-size: 20px;
  font-weight: 700;
}

.shop-info p {
  margin: 2px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  margin-top: 42px;
}

.access-card {
  min-height: 186px;
  padding: 36px 38px;
  background: var(--masuya-gray);
}

.access-card__title {
  margin: 0 0 12px;
  font-family: var(--masuya-serif);
  font-size: 21px;
  font-weight: 700;
}

.access-card__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.news {
  padding: clamp(90px, 10vw, 145px) 0 clamp(120px, 13vw, 190px);
}

.news .section-title {
  margin-bottom: 50px;
}

.news-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--masuya-line);
  list-style: none;
}

.news-list__item {
  border-bottom: 1px solid var(--masuya-line);
}

.news-list__link {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 18px;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.news-list__link:hover {
  color: var(--masuya-red-dark);
  background: var(--masuya-cream);
}

.news-list__date,
.news-list__title {
  font-size: 14px;
  font-weight: 700;
}

.news-list__empty {
  padding: 28px 18px;
  border-bottom: 1px solid var(--masuya-line);
  text-align: center;
}

.site-footer {
  padding: 22px 0 0;
  background: var(--masuya-cream);
  text-align: center;
}

.site-footer__logo {
  width: 160px;
  margin: 0 auto;
}

.site-footer .social-links {
  margin: 18px 0 26px;
}

.site-footer .social-links a {
  width: 36px;
  height: 36px;
}

.site-footer__copyright {
  margin: 0;
  padding: 7px 20px;
  color: var(--masuya-white);
  background: var(--masuya-brown-dark);
  font-size: 11px;
  letter-spacing: .03em;
}

.content-page {
  width: min(calc(100% - 48px), var(--masuya-narrow));
  min-height: 65vh;
  margin-inline: auto;
  padding: 88px 0 120px;
}

.content-page__title {
  margin: 0 0 48px;
  color: var(--masuya-brown);
  font-family: var(--masuya-serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.5;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content img {
  height: auto;
}

.post-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--masuya-line);
  list-style: none;
}

.post-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--masuya-line);
}

.post-list a {
  font-weight: 700;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
}

@media (max-width: 782px) {
  body.admin-bar .site-ribbon {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .section-inner,
  .section-inner--narrow,
  .content-page {
    width: min(calc(100% - 36px), var(--masuya-content));
  }

  .section-title {
    margin-bottom: 38px;
    font-size: 27px;
  }

  .hero {
    min-height: 70vh;
    max-height: 720px;
    padding: 52px 20px;
    background-position: 50% center;
  }

  .hero__logo {
    width: min(310px, 82vw);
  }

  .intro {
    padding: 68px 0 50px;
  }

  .intro__lead {
    margin-bottom: 36px;
    font-size: 19px;
    line-height: 1.9;
  }

  .intro__body {
    font-size: 14px;
    line-height: 2;
  }

  .photo-strip {
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
  }

  .photo-strip__item {
    scroll-snap-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .about-card__title {
    margin-top: 24px;
  }

  .about-card__text {
    font-size: 14px;
  }

  .occasion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
    margin: 48px 0 62px;
  }

  .occasion-card__title {
    margin-inline: 0;
    font-size: 13px;
  }

  .contact-call__label {
    font-size: 18px;
  }

  .contact-call__phone {
    gap: 8px;
    font-size: clamp(30px, 10vw, 43px);
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .map-frame {
    aspect-ratio: 1 / .82;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .access-card {
    min-height: 0;
    padding: 28px 26px;
  }

  .news-list__link {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 20px 12px;
  }

  .site-footer__logo {
    width: 145px;
  }

  .post-navigation {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

