/* ========================================
   CINESCO フロントエンド統合CSS
   ======================================== */

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
}

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

a img {
  border: none;
}

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

ul {
  list-style: none;
}

.mb-2 {
  margin-bottom: 2rem !important;
}
.mb-3 {
  margin-bottom: 3rem !important;
}
.mb-4 {
  margin-bottom: 4rem !important;
}

.social-links.sp-only {
  display: none;
}

.social-links.pc-only {
  display: flex;
}
/* ========================================
   ヘッダー
   ======================================== */
.header {
  position: relative;
  margin: 4.8rem 0;
}

@media (max-width: 767px) {
  .header {
    margin: 2rem 0;
  }
}

.header-inner {
  margin: 0 auto;
  padding: 0 1rem;
}

/* モバイル：ロゴ中央、ハンバーガー右 */
@media (max-width: 767px) {
  .header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 3.5rem;
  }
}

/* PC：ロゴとメニューを縦並び */
@media (min-width: 768px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}

.header-logo {
  flex-shrink: 0;
}

.logo-image {
  height: 50px;
  width: auto;
}

.header-logo .logo-text {
  display: block;
  text-align: center;
}

.logo-line {
  display: block;
  width: 150px;
  height: 2px;
  background: #000;
  margin: 0 auto;
}

.logo-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 0.5rem 0;
}

/* PC用ナビゲーション */
.desktop-nav {
  display: none;
  margin-bottom: 3.2rem;
}

.desktop-nav .nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.desktop-nav .nav-list a {
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s;
  white-space: nowrap;
}

.desktop-nav .nav-list a:hover {
  opacity: 0.6;
}

.desktop-nav .nav-list .shop-link {
  color: #999;
  font-weight: bold;
}

/* Shop無効化スタイル */
.shop-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  color: #999 !important;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;
  top: 40px;
  right: 20px;
  z-index: 1100;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 40px;
  height: 1px;
  background: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle span:nth-child(1) {
  top: 12px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

/* ハンバーガー → × アニメーション */
.menu-toggle.active span:nth-child(1) {
  top: 20px;
  transform: translateX(-50%) rotate(30deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 20px;
  transform: translateX(-50%) rotate(-30deg);
}

/* モバイルナビゲーション */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
  transform: translateX(0);
}

.nav-close {
  display: none;
}

.nav-list {
  text-align: center;
}

.nav-list a {
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}
.nav-list span {
  font-size: 1.3rem;
}
/* モバイルナビ専用スタイル */
.mobile-nav .nav-list {
    padding: 15vh 2rem 2rem;
}

.mobile-nav .nav-list li {
  margin-bottom: 1.5rem;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.main-content {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 2rem 3rem;
}

/* ヒーロー画像 */
.hero-image {
  width: 100%;
  margin: 0 auto 2rem;
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* ヒーロー動画 */
.hero-video {
  width: 100%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* SNSアイコン */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 4.8rem 0;
}

/* indexページでは最初のSNSリンクを非表示 */
.page-index .main-content > .social-links:first-of-type {
  display: none;
}

.social-links a {
  font-size: 2rem;
  color: #000;
  transition: 0.3s;
}

.social-links a:hover {
  opacity: 0.6;
}

.social-links img {
  width: 50px;
  height: 50px;
}

/* セクションタイトル */
.section-title {
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3.2rem;
}

/* パンくずリスト */
.breadcrumb {
  display: none; /* モバイルでは非表示 */
  align-items: center;
  flex-wrap: wrap;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb-item {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item:hover {
  color: #000;
}

.breadcrumb-separator {
  color: #999;
  margin: 0 0.5rem;
  transform:scale(0.9);

}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* footerのSNSリンク（PC版のみ表示） */
.social-links-footer {
  display: none;
}

/* indexページではfooterのSNSリンクを非表示 */
.page-index .social-links-footer {
  display: none !important;
}

/* Newsセクション */

.news-section {
  max-width: 800px;
  margin: 0 auto;
}

.news-list {
  margin: 0 auto 3rem;
  padding: 2rem;
}

.news-item {
  display: flex;
  gap: 6rem;
  padding: 0.25rem 0;
  font-weight: 500;
  font-size: 1.3rem;
}

.news-title-link,
.news-title-nolink {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.news-title-link {
  transition: 0.3s;
}

.news-title-link:hover {
  opacity: 0.6;
}

.news-link {
  display: flex;
  gap: 4rem;
  padding: 0.25rem 0;
  transition: 0.3s;
}

.news-link:hover {
  opacity: 0.6;
}

.news-title {
  flex: 1;
  border-bottom: 1px solid #000;
}

/* Filmセクション */

.film-section .section-title {
  margin: 4rem auto;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6rem;
  margin-bottom: 3rem;
}

.film-item {
  position: relative;
}

.film-item img {
  width: 100%;
  height: auto;
  transition: 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.film-item a:hover img {
  opacity: 0.8;
}

/* ========================================
   フッター
   ======================================== */
.footer {
  text-align: center;
  padding: 3.2rem 1rem 4.8rem;
  font-size: 1.0rem;
}

/* ========================================
   ページコンテンツ
   ======================================== */
.page-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 1.8rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Screening タイプバッジ */
.screening-type {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.screening-type-news {
  background: #e3f2fd;
  color: #1976d2;
}

.screening-type-event {
  background: #fff3e0;
  color: #f57c00;
}

.article-content {
  margin: 0 auto;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin: 2rem 0;
  padding: 0.75rem 1.5rem;
  background: #f0f0f0;
  transition: 0.3s;
}

.back-link:hover {
  background: #e0e0e0;
}

/* データなし表示 */
.no-data {
  text-align: center;
  color: #999;
  padding: 3rem 0;
}

/* ========================================
   ニュース一覧ページ
   ======================================== */
.page-container {
  margin: 0 auto;
}

/* タグフィルター */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tag-filter-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.tag-filter-item:hover {
  background: #e0e0e0;
}

.tag-filter-item.active {
  background: #000;
  color: #fff;
}

/* ニュース・イベントカード */
.news-cards {
  margin: 0 auto;
}

.news-card {
  border-bottom: 1px solid #000;
  margin-bottom: 2.5rem;
  padding-bottom: 5rem;
}

.news-card-link {
  display: block;
  transition: opacity 0.3s;
}

.news-card-link:hover {
  opacity: 0.7;
}

.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.2rem;
}

.news-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.news-card-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: #18a5d0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
}

.news-card-tag:hover {
  background: #0096c7;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  color: #000;
}

.news-card-image {
  width: 100%;
  margin-bottom: 0.8rem;
}

.news-card-image img {
  width: 100%;
  height: auto;
}

.news-card-subtitle {
  line-height: 1.6;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.news-card-title,
.news-list,.news-card-meta,
.news-card-subtitle,
.news-card-content{
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.news-card-tags {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}
.news-card-tags a{
    padding:0.1rem .3rem;
}

.news-item-page {
  border-bottom: 1px solid #eee;
}

.news-link-page {
  display: block;
  padding: 1.5rem 0;
  transition: 0.3s;
}

.news-link-page:hover {
  opacity: 0.6;
}

.news-date-page {
  display: block;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.news-title-page {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Aboutページ */
.about-page {
  /* text-align継承を防ぐため、個別に指定 */
}

.about-page > h1.page-title {
  text-align: center;
}

.about-logo {
  margin: 6rem auto;
  max-width: 400px;
  text-align: center;
}

.about-logo-image {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.about-logo-line {
  height: 2px;
  background: #000;
  margin: 0 auto;
  width: 100%;
}

.about-logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 1.5rem 0;
}

.about-content {
  margin: 2.4rem auto 4rem;
  text-align: left;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

}

.about-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content p {
  line-height: 1.6;
  margin-bottom: 1.4rem;
  font-size: 1.0rem;
}

.about-info {
  margin: 3rem auto;
  font-weight: 600;
}

.about-company-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem !important;
  line-height: 1 !important;
}

.about-company-name-en {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0rem !important;
  line-height: 1 !important;
}

.about-business {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.about-email {
  font-size: 0.95rem;
}

.about-email a {
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
}

.about-email a:hover {
  opacity: 0.7;
}

.about-separator {
  border: none;
  border-top: 1px solid #000;
  margin: 3rem auto 2rem;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pagination-link,
.pagination-current,
.pagination-ellipsis {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  min-width: 32px;
  text-align: center;
  font-size: 0.95rem;
}

.pagination-link {
  color: #333;
  transition: color 0.2s;
}

.pagination-link:hover {
  color: #000;
  text-decoration: underline;
}

.pagination-current {
  color: #000;
  font-weight: 600;
}

.pagination-ellipsis {
  color: #999;
  pointer-events: none;
}

/* ========================================
   詳細記事ページ
   ======================================== */
.detail-article {
  margin: 0 auto;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.news-card-date {
  font-size: 1.1rem;
  font-weight: 500;
  flex-shrink: 0;
}

.detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #18a5d0;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s;
}

.detail-tag:hover {
  background: #2980b9;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.detail-image {
  margin: 2rem 0;
}

.detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.5rem 0;
  color: #333;
  line-height: 1.6;
}

/* Quillエディタのコンテンツスタイル */
.news-card-content .ql-align-center,
.article-content .ql-align-center,
.news-card-subtitle .ql-align-center {
  text-align: center !important;
}

.news-card-content .ql-align-center img,
.article-content .ql-align-center img,
.news-card-subtitle .ql-align-center img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.news-card-content .ql-align-right,
.article-content .ql-align-right,
.news-card-subtitle .ql-align-right {
  text-align: right !important;
}

.news-card-content .ql-align-right img,
.article-content .ql-align-right img,
.news-card-subtitle .ql-align-right img {
  display: block !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.news-card-content .ql-align-justify,
.article-content .ql-align-justify,
.news-card-subtitle .ql-align-justify {
  text-align: justify !important;
}

.detail-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-back:hover {
  background: #e0e0e0;
}

.btn-back i {
  font-size: 0.9rem;
}

/* ========================================
   レスポンシブ
   ======================================== */
/* スマホ */
@media (max-width: 767px) {
  .section-title {
    margin-bottom: 0;
  }
  .logo-image {
    height: 60px;
  }

  .film-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-item {
    font-size: 1rem;
    gap: 2rem;
  }

  .social-links {
    margin: 3rem 0;
  }

  .social-links img {
    width: 50px;
    height: 50px;
  }

  .tag-filter-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .news-card-tag {
    font-size: 1.1rem;
    padding: 0.1rem;
  }
}

@media (min-width: 768px) {
  .logo-image {
    height: 100px;
  }

  .logo-line {
    width: 200px;
  }

  .logo-name {
    font-size: 2rem;
  }

  .film-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
  }

  /* タブレット以上でPC用ナビゲーションを表示 */
  .desktop-nav {
    display: block;
  }

  .header-inner {
    padding: 0 2rem;
  }

  .menu-toggle {
    display: none !important;
  }

  .mobile-nav {
    display: none !important;
  }

  /* PC版でパンくずリストを表示 */
  .breadcrumb {
    display: flex;
  }

  /* PC版でheaderのSNSリンクを非表示 */
  .main-content > .social-links:first-of-type {
    display: none !important;
  }

  /* PC版でfooterのSNSリンクを表示 */
  .social-links-footer {
    display: flex;
  }
}

@media (min-width: 768px) {
  .film-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .desktop-nav .nav-list {
    gap: 2.5rem;
  }

  .desktop-nav .nav-list a {
    font-size: 1.6rem;
  }

  .desktop-nav .nav-list span {
    font-size: 1.6rem;
  }

  .detail-title {
    font-size: 1.7rem;
  }

  .detail-subtitle {
    font-size: 0.9rem;
  }

  .detail-content {
    font-size: 0.8rem;
  }
}

@media (min-width: 1200px) {
  .desktop-nav .nav-list {
    gap: 3rem;
  }
}
@media (max-width: 768px) {
  .social-links.sp-only {
    display: flex;
  }
  .social-links.pc-only {
    display: none;
  }
  .social-links {
    transform: scale(0.8);
    margin: 2rem 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .news-list {
    margin: 0 auto 3rem;
    padding: 2rem 2rem 0rem;
  }
  .page-title {
    font-size: 1.4rem;
  }
  .news-card-date {
    font-size: 0.8rem;
  }
  .news-card-tags a {
    font-size: 0.7rem;
  }
  .news-card-title {
    font-size: 1rem;
  }
  .news-card-image img {
    padding: 0 2rem 1.4rem !important;
  }
  .news-card-subtitle {
    font-size: 0.9rem;
  }
  .news-card-content * {
    font-size: 0.9rem;
  }
  .footer {
    font-size: 9px;
  }
  .news-card-meta {
    margin-bottom: 1.5rem;
  }
  .news-card {
    padding-bottom: 2rem;
  }
  .news-card-title {
    margin-bottom: 2rem;
  }

  .about-logo {
    margin: 3rem auto;
    max-width: 200px;
    text-align: center;
  }
  .about-content p {
    font-size: .9rem;
  }
  
  .about-content .sp-center {
    text-align: center;
    font-size: 1.2rem;
  }
  .menu-hidden {

  }
}
