@charset "UTF-8";

/*
Theme Name: DSB Theme
Theme URI: https://example.com/
Author: Your Name
Description: 同志社学生放送局用テーマ
Version: 1.0.0
*/

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  font-weight: 500;
  color: #111;
  background: #f5f5f5;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

body.is-menu-open {
  overflow: hidden;
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 4px solid #6a1b9a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.logo {
  margin: 0;
}

.logo a {
  display: block;
}

.logo-icon {
  width: 170px;
  height: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-btn,
.toggle-menu-button {
  min-height: 52px;
  padding: 10px 16px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
  font-weight: 700;
}

.contact-btn:hover,
.toggle-menu-button:hover {
  background: #111;
  color: #fff;
}

.contact-icon,
.menu-icon {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.contact-label,
.menu-text {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* オーバーレイメニュー */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}

.overlay-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-menu::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #ffffff;
  transform: translateX(100%);
  transition: 0.25s ease;
}

.overlay-menu.is-open::before {
  transform: translateX(0);
}

.overlay-top,
.overlay-nav {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin-left: auto;
  background: transparent;
}

.overlay-top {
  min-height: 88px;
  padding: 24px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-brand {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #6a1b9a;
  letter-spacing: 0.02em;
}

.overlay-close {
  width: 48px;
  height: 48px;
  border: 2px solid #111;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
  font-weight: 700;
}

.overlay-close:hover {
  background: #111;
  color: #fff;
}

.overlay-nav {
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-item {
  width: 100%;
  min-height: 72px;
  padding: 0 18px;
  border: 2px solid #111;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.2s ease;
}

.overlay-item:hover {
  background: #6a1b9a;
  border-color: #6a1b9a;
  color: #fff;
}

.overlay-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.overlay-plus {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.overlay-sns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin-left: auto;
}

.overlay-sns img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* スライダー */
.photo-slider {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 16px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

/* 紹介文 */
.intro-text {
  max-width: 700px;
  margin: 60px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.intro-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.intro-text p {
  font-size: 16px;
  line-height: 1.9;
}

/* カード */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 750px;
  margin: 60px auto;
  padding: 0 16px;
}

.menu-card {
  background: #355f7b;
  color: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.2s;
}

.menu-card img {
  width: 150px;
  height: auto;
  margin-bottom: 5px;
}

.menu-card span {
  font-weight: 700;
  font-size: 16px;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* フッター */
.footer {
  margin-top: 80px;
  padding: 32px 20px 40px;
  background: #111;
  color: #fff;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 8px;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

.footer-sns a {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-sns img {
  width: 20px;
  height: 20px;
}

.footer-sns a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* お問い合わせページ */
.contact-page-main {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 20px 80px;
}

.contact-page {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-page-title {
  margin: 0 0 12px;
  font-size: 2.2rem;
  font-weight: 700;
  color: #111;
}

.contact-page-lead {
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.contact-form {
  width: 100%;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8d8d8;
}

.contact-table th,
.contact-table td {
  border: 1px solid #d8d8d8;
  padding: 24px 20px;
  vertical-align: middle;
}

.contact-item {
  width: 32%;
  background: #f3f3f3;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
  color: #111;
}

.contact-item small {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.7;
  color: #444;
}

.contact-body {
  width: 68%;
  background: #fff;
}

.required {
  color: #d93025;
  margin-left: 4px;
  font-weight: 700;
}

.form-text,
.form-textarea {
  width: 100%;
  max-width: 560px;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font: inherit;
  line-height: 1.6;
  appearance: none;
}

.form-text:focus,
.form-textarea:focus {
  outline: none;
  border-color: #6a1b9a;
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.12);
}

.form-textarea {
  max-width: 100%;
  min-height: 220px;
  resize: vertical;
}

.form-date,
.form-time {
  max-width: 220px;
}

.form-text-inline {
  max-width: 340px;
}

.contact-check,
.contact-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: #111;
}

.contact-check:last-child,
.contact-radio:last-child {
  margin-bottom: 0;
}

.contact-check input[type="checkbox"],
.contact-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.contact-other-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.contact-other-row:last-child {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-submit {
  min-width: 240px;
  min-height: 56px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-submit:hover {
  background: #111;
  transform: translateY(-1px);
}

.contact-submit:active {
  transform: translateY(0);
}

/* トップページ投稿欄 */
.front-page-content {
  width: 100%;
  padding: 60px 20px 80px;
}

.content-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-sizing: border-box;
}

.content-inner img {
  max-width: 100%;
  height: auto;
}

.content-inner p {
  line-height: 1.9;
}

.front-posts-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.front-posts-list {
  display: grid;
  gap: 24px;
}

.front-post-card {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 24px;
}

.front-post-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.front-post-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.front-post-thumb img {
  width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.front-post-text {
  flex: 1;
}

.front-post-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.front-post-name {
  font-size: 22px;
  margin-bottom: 12px;
}

.front-post-excerpt {
  line-height: 1.8;
}

.front-no-posts {
  text-align: center;
  color: #666;
}

/* 放送後記 */
.broadcast-posts {
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px 80px;
}

.broadcast-posts-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.broadcast-posts-list {
  display: grid;
  gap: 24px;
}

.broadcast-post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.broadcast-post-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.broadcast-post-thumb img {
  width: 240px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.broadcast-post-text {
  flex: 1;
}

.broadcast-post-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.broadcast-post-name {
  font-size: 22px;
  margin-bottom: 12px;
}

.broadcast-post-excerpt {
  line-height: 1.8;
}

.broadcast-no-posts {
  text-align: center;
  color: #666;
}

.broadcast-pagination {
  margin-top: 40px;
  text-align: center;
}

.broadcast-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f3f3;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.broadcast-pagination .page-numbers.current {
  background: #222;
  color: #fff;
}

.broadcast-pagination .page-numbers:hover {
  background: #ddd;
}

/* BOXトーク */
.box-talk-posts {
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px 80px;
}

.box-talk-posts-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.box-talk-posts-list {
  display: grid;
  gap: 24px;
}

.box-talk-post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.box-talk-post-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.box-talk-post-thumb img {
  width: 240px;
  height: auto;
  display: block;
  border-radius: 12px;
}

.box-talk-post-text {
  flex: 1;
}

.box-talk-post-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.box-talk-post-name {
  font-size: 22px;
  margin-bottom: 12px;
}

.box-talk-post-excerpt {
  line-height: 1.8;
}

.box-talk-no-posts {
  text-align: center;
  color: #666;
}

.box-talk-pagination {
  margin-top: 40px;
  text-align: center;
}

.box-talk-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f3f3;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.box-talk-pagination .page-numbers.current {
  background: #222;
  color: #fff;
}

.box-talk-pagination .page-numbers:hover {
  background: #ddd;
}

/* スマホ */
@media (max-width: 767px) {
  .header {
    padding: 14px 14px;
  }

  .logo-icon {
    width: 130px;
  }

  .header-actions {
    gap: 8px;
  }

  .contact-btn,
  .toggle-menu-button {
    min-height: 44px;
    padding: 8px 12px;
  }

  .contact-label,
  .menu-text {
    display: none;
  }

  .overlay-top {
    min-height: 76px;
    padding: 18px 14px 12px;
  }

  .overlay-nav {
    padding: 8px 14px 20px;
  }

  .overlay-item {
    min-height: 62px;
    padding: 0 14px;
  }

  .overlay-text {
    font-size: 1rem;
  }

  .photo-slider {
    margin: 24px auto;
    padding: 0 16px;
  }

  .slider-wrapper {
    border-radius: 16px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

  .intro-text {
    max-width: 100%;
    margin: 36px auto 32px;
    padding: 0 20px;
  }

  .intro-text h2 {
    font-size: 1.8rem;
  }

  .intro-text p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 100%;
    margin: 40px auto;
    padding: 0 16px;
  }

  .menu-card {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 12px;
  }

  .menu-card img {
    width: 150px;
    max-width: none;
    margin-bottom: 0;
  }

  .footer {
    margin-top: 56px;
    padding: 28px 16px 32px;
  }

  .contact-page-main {
    margin-top: 24px;
    padding: 0 16px 56px;
  }

  .contact-page-title {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  .contact-page-lead {
    margin-bottom: 24px;
    font-size: 0.95rem;
  }

  .contact-table,
  .contact-table tbody,
  .contact-table tr,
  .contact-table th,
  .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-table {
    border: none;
    background: transparent;
  }

  .contact-table tr {
    margin-bottom: 18px;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }

  .contact-table th,
  .contact-table td {
    border: none;
    padding: 16px 14px;
  }

  .contact-item {
    background: #f3f3f3;
    font-size: 1rem;
  }

  .contact-body {
    background: #fff;
  }

  .form-text,
  .form-textarea,
  .form-text-inline,
  .form-date,
  .form-time {
    max-width: 100%;
  }

  .form-textarea {
    min-height: 180px;
  }

  .contact-check,
  .contact-radio {
    margin-bottom: 14px;
    font-size: 0.96rem;
  }

  .contact-other-row {
    display: block;
  }

  .contact-other-row .form-text-inline {
    margin-top: 10px;
  }

  .contact-submit {
    width: 100%;
    min-width: 0;
  }

  .content-inner {
    padding: 24px;
    border-radius: 16px;
  }

  .front-post-link,
  .broadcast-post-link,
  .box-talk-post-link {
    flex-direction: column;
  }

  .front-post-thumb img,
  .broadcast-post-thumb img,
  .box-talk-post-thumb img {
    width: 100%;
  }

  .front-post-name,
  .broadcast-post-name,
  .box-talk-post-name {
    font-size: 20px;
  }

  .front-page-content,
  .broadcast-posts,
  .box-talk-posts {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.front-pagination {
  margin-top: 40px;
  text-align: center;
}

.front-pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f3f3f3;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.front-pagination .page-numbers.current {
  background: #222;
  color: #fff;
}

.front-pagination .page-numbers:hover {
  background: #ddd;
}
