/*
Theme Name: Sandairo
Description: さんだいろ（三田のYouTubeラジオ局）向けスマホファーストWordPressテーマ。
Version: 2.6.0
Requires PHP: 8.3
Text Domain: sandairo
*/

:root {
  --text: #24211f;
  --muted: #706b65;
  --red: #ff1515;
  --sky: #e8f0ff;
  --cream: #fff6df;
  --line: #eee9df;
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.82;
  letter-spacing: .02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(100% - 36px, var(--content)); margin-inline: auto; }

.site-header { padding: 18px 0 0; }
.site-header__inner, .site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: end;
  gap: 10px;
  text-decoration: none;
}
.brand__bars { display: flex; align-items: end; gap: 5px; height: 44px; }
.brand__bars span {
  width: 8px;
  height: var(--h);
  border-radius: 999px 999px 0 0;
  background: var(--bar);
}
.brand__text {
  display: block;
  font-size: clamp(28px, 5.4vw, 46px);
  font-weight: 800;
  line-height: 1;
}
.brand__sub {
  display: block;
  margin-top: 4px;
  color: #777;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.brand__logo { width: min(220px, 52vw); height: auto; }
.nav-links, .footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3d3935;
  font-size: 13px;
}
.nav-links a, .footer-links a, .icon-link {
  text-underline-offset: 4px;
}

.hero, .program-hero {
  display: grid;
  grid-template-columns: minmax(440px, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 54px;
  padding: 26px 0 46px;
}
.hero-copy-image {
  width: min(100%, 620px);
  margin: 0 0 26px;
}
.hero h1 {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: clamp(30px, 3.9vw, 48px);
  font-weight: 400;
  letter-spacing: .09em;
  line-height: 1.65;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero p, .program-hero__summary {
  margin: 0 0 24px;
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.9;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 21, 21, .14);
}
.button svg, .icon-link svg, .section-title svg { width: 22px; height: 22px; flex: 0 0 auto; }

.section { padding: 42px 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.section-title--image {
  display: block;
}
.section-title--image img {
  width: min(390px, 86vw);
  margin-bottom: 10px;
}
.section-title h1, .section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}
.section-title p { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.section-title--programs {
  gap: 18px;
  align-items: center;
}
.section-title--programs svg {
  width: 58px;
  height: 58px;
}
.section-title--programs h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: .08em;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 50px;
}
.program-card {
  position: relative;
  display: block;
  text-decoration: none;
}
.program-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #f8f5ee;
}
.program-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.stamp {
  position: absolute;
  z-index: 2;
  inset: auto 8% 20% 8%;
  display: grid;
  place-items: center;
  min-height: 54px;
  rotate: -12deg;
  border: 5px solid rgba(178, 65, 65, .75);
  color: rgba(178, 65, 65, .78);
  font-family: Arial, sans-serif;
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: .05em;
}
.program-card h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.55; }
.program-card p { margin: 0; color: #34302d; font-size: 13px; line-height: 1.62; letter-spacing: .01em; }
.meta-line { margin-top: 6px; color: #4c4741; font-size: 13px; font-weight: 500; }

.about-panel, .contact-panel {
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 48px);
}
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
  background: #d9d7d1;
}
.about-panel h2, .contact-panel h2 { margin: 0 0 22px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 500; letter-spacing: .08em; }
.about-panel h2 span {
  display: inline-block;
  margin-right: .28em;
  font-weight: 600;
}
.about-panel p, .contact-panel p { margin: 0 0 18px; font-weight: 500; line-height: 1.9; }
.about-panel__image { align-self: end; opacity: .62; }
.contact-panel { margin-top: 44px; background: var(--cream); text-align: center; }
.contact-panel p { margin-inline: auto; max-width: 680px; }

.program-hero {
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr);
  padding-top: 10px;
}
.program-hero__icon {
  width: min(100%, 270px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
}
.program-hero__title {
  margin: 18px 0 10px;
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 600;
  line-height: 1.38;
}
.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.button--sub {
  background: #1db954;
  box-shadow: none;
}

.sponsor-section {
  padding: 52px 0 22px;
  text-align: center;
}
.sponsor-section h2 {
  margin: 0 0 24px;
  color: #6b665f;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .18em;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  justify-content: center;
  gap: 20px 22px;
  max-width: 1240px;
  margin-inline: auto;
}
.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(150px, 13vw, 196px);
  padding: 8px 12px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  color: #918b84;
  text-decoration: none;
}
.sponsor-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
}
.sponsor-logo--empty {
  border: 1px solid #eee8dd;
  color: #b6afa7;
  font-size: 13px;
  letter-spacing: .12em;
}

.personality-section-title {
  margin-bottom: 18px;
}
.personality-section-title h2 {
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 600;
}
.personality-list { display: grid; gap: 24px; }
.personality-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--sky);
  padding: clamp(20px, 3.2vw, 30px);
}
.personality-card__media { display: flex; justify-content: center; }
.personality-card__photo {
  overflow: hidden;
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: #fff;
}
.personality-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.personality-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.personality-card__profile { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.85; }
.social-links { display: grid; gap: 10px; justify-content: start; }
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #383431;
  font-size: 14px;
}

.other-programs-section {
  padding-top: 64px;
}
.other-programs-title {
  margin-bottom: 20px;
}
.other-programs-title h2 {
  color: #4a4641;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
}
.other-programs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 30px;
}
.other-program-link {
  display: block;
  color: #4a4641;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
}
.other-program-link__image {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #f8f5ee;
}
.other-program-link__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.stamp--small {
  inset: auto 7% 25% 7%;
  min-height: 24px;
  border-width: 3px;
  font-size: 13px;
}

.site-footer { padding: 70px 0 28px; }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  color: #514d49;
  font-size: 13px;
}
.empty-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header__inner, .site-footer__top, .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero, .program-hero, .about-panel, .personality-card {
    grid-template-columns: 1fr;
  }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
  .other-programs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .personality-card__photo { width: min(150px, 56vw); }
  .social-links { grid-template-columns: repeat(2, minmax(0, max-content)); }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--content)); }
  .nav-links { display: none; }
  .brand__bars { height: 38px; }
  .brand__bars span { width: 7px; }
  .brand__text { font-size: 30px; }
  .hero-copy-image { width: 100%; max-width: 560px; }
  .hero h1 { font-size: 28px; letter-spacing: .04em; line-height: 1.7; }
  .hero h1 span { white-space: normal; }
  .program-grid { grid-template-columns: 1fr; }
  .program-hero { padding-top: 4px; }
  .program-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: start;
  }
  .program-card h3 { margin-top: 0; }
  .button { width: 100%; font-size: 15px; }
  .program-actions, .social-links { display: grid; grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; gap: 14px; }
  .sponsor-logo { width: 100%; max-width: 360px; min-height: 136px; margin-inline: auto; }
  .sponsor-logo img { max-height: 120px; }
  .other-programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .personality-card {
    gap: 18px;
    text-align: left;
  }
  .personality-card__media {
    justify-content: flex-start;
  }
  .personality-card h3 {
    font-size: 19px;
  }
}
