/*
Theme Name: NOTICEONE Child
Template: astra
Version: 1.0
*/

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* ===== Reset / Base ===== */
html {
  overflow-x: hidden;
}

:root {
  --color-dark:    #000000;
  --color-navy:    #111111;
  --color-ocean:   #0066CC;
  --color-wave:    #00A8E8;
  --color-accent:  #FF6B35;
  --color-light:   #F5F7FA;
  --color-white:   #FFFFFF;
  --color-text:    #333333;
  --color-muted:   #888888;
  --font-en:       'Oswald', sans-serif;
  --font-jp:       'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
}

/* ===== Header ===== */
.site-header,
.ast-primary-header-bar {
  background: var(--color-dark) !important;
  padding: 0 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  text-decoration: none;
}

.ast-site-identity .site-title a::before {
  content: '';
  display: block;
  background-image: url('https://www.noticeone.co.jp/contents/wp-content/uploads/2026/07/noticeonelogo.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  width: 200px;
  height: 55px;
}

.ast-site-identity .tagline,
.ast-site-identity .site-description {
  display: none !important;
}

/* ===== Navigation ===== */
.main-navigation,
#site-navigation,
.ast-nav-menu {
  background: transparent !important;
}

.ast-nav-menu > li > a,
.main-navigation ul li a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85) !important;
  padding: 22px 16px !important;
  transition: color 0.2s;
}

.ast-nav-menu > li > a:hover,
.main-navigation ul li a:hover {
  color: var(--color-wave) !important;
}

.ast-nav-menu > li.current-menu-item > a {
  color: var(--color-accent) !important;
  border-bottom: 2px solid var(--color-accent);
}

/* ===== Hero Slider ===== */
.home #primary,
.home .content-area,
.home .site-main,
.home .entry-content,
.home .ast-article-single {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: visible !important;
}

.home .site-content,
.home #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: visible !important;
}

/* スライダー全幅: overflow:hidden の親を上書き */
body.home,
.home .ast-container,
.home .entry-content,
.home .ast-article-single,
.home #primary,
.home .content-area,
.home .site-main,
.home #content,
.home .site-content {
  overflow: visible !important;
}

/* JS移動後: #content直下のスライダーは幅100%で自然に全幅 */
#content > .no-slider,
.site-content > .no-slider {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 読み込み前: 全画面黒 */
.no-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  background: var(--color-dark);
  isolation: isolate;
  margin: 0 !important;
  z-index: 50;
}

/* 読み込み後: 通常レイアウトに戻す */
.no-slider.ns-ready {
  position: relative;
  width: 100% !important;
  height: 150vh;
  min-height: 780px;
  z-index: auto;
}

.no-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,27,42,0.2) 0%,
    rgba(13,27,42,0.15) 40%,
    rgba(13,27,42,0.75) 100%
  );
  z-index: 1;
}

.no-slider img,
.no-slider video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.no-slider video.ns-active {
  opacity: 1;
}

/* Ken Burns */
@keyframes kenburns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

@keyframes kenburns-alt {
  0%   { transform: scale(1.1) translate(1%, 1%); }
  100% { transform: scale(1.0) translate(0, 0); }
}

.no-slider img.ns-active {
  opacity: 1;
  animation: kenburns 5s ease-out forwards;
}

.no-slider img.ns-active:nth-child(even) {
  animation-name: kenburns-alt;
}

/* Hero text fade-in */
@keyframes heroFadeIn {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.no-slider-text {
  position: absolute;
  top: 50vh;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
  animation: heroFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.no-slider-text .hero-brand {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.no-slider-text .hero-sub {
  display: block;
  font-family: var(--font-jp);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: rgba(255,255,255,0.82);
  margin-top: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.no-slider-text::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-wave);
  margin: 0 auto 24px;
}

/* Scroll arrow */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.8; }
  50%       { transform: translateY(10px); opacity: 1;   }
}

.no-slider-scroll {
  position: relative;
  margin-top: 24px;
  left: auto;
  z-index: 10;
  text-align: center;
  animation: scrollBounce 2s ease-in-out infinite;
  pointer-events: none;
}

.no-slider-scroll span {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
}

/* ===== Section Headings ===== */
.noticeone-section-title {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-dark);
  border-left: 5px solid var(--color-ocean);
  padding-left: 16px;
  margin-bottom: 40px;
  margin-top: 80px;
}

/* ===== Entry Content Spacing ===== */
.home .entry-content {
  padding-bottom: 80px;
}

/* ===== Rider Blog Cards ===== */
.rider-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 20px 0 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e5ec;
}

.rider-blog-card {
  background: var(--color-white);
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rider-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.rider-blog-card a {
  display: block;
  padding: 24px;
  text-decoration: none;
  color: var(--color-text);
}

.rider-blog-card .rider-name {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 6px;
  text-align: center;
}

.rider-blog-card .rider-photo {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #ffffff;
  display: block;
  margin-bottom: 16px;
}

.rider-blog-card .rider-name-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
  text-align: center;
}

.rider-blog-card .rider-label {
  font-size: 0.78rem;
  color: var(--color-ocean);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-en);
  text-align: center;
}

/* ===== News Section ===== */
.noticeone-news-frame {
  border: none;
  width: 100%;
  min-height: 120px;
  background: var(--color-light);
  border-radius: 6px;
}

/* ===== Banner Grid ===== */
.noticeone-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 400px);
  gap: 20px;
  margin: 30px 0;
}

.noticeone-banner-grid figure {
  margin: 0;
  width: 400px;
}

.catalog-content .catalog-image {
  margin: 0;
  display: block;
  box-shadow: none;
}

.noticeone-banner-grid img {
  width: 400px;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.2s;
  display: block;
}

.noticeone-banner-grid a:hover img {
  opacity: 0.85;
}

/* ===== Footer: ボーダー削除 ===== */
.site-below-footer-wrap {
  border: none !important;
}

/* ===== Company Info ===== */
.noticeone-company {
  background: var(--color-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 24px;
  border-radius: 8px;
  margin: 40px 0;
  font-size: 0.9rem;
  line-height: 2;
}

.noticeone-company .company-name {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.noticeone-company a {
  color: var(--color-wave);
}

/* ===== Entry / Content ===== */
.entry-content,
.ast-container {
  max-width: 1100px;
  margin: 0 auto;
}

.single .entry-content,
.single .ast-container,
.single .site-content .ast-container,
.single .content-area,
.single .ast-article-single {
  max-width: 1400px !important;
  width: 100% !important;
}

.entry-content h2 {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-dark);
}

/* ===== Footer ===== */
.site-footer,
.ast-small-footer {
  background: transparent !important;
  font-size: 0.8rem;
  padding: 0 !important;
}

/* ===== Skip link 非表示 ===== */
.skip-link,
.ast-skip-link {
  display: none !important;
}

/* ===== Front page / Pages: hide title & header gap ===== */
.home .entry-title,
.home .ast-archive-title,
.page .entry-title,
.page .ast-archive-title {
  display: none !important;
}

.home .entry-header,
.page .entry-header {
  display: none !important;
}

.home #content,
.home .ast-container,
.home #primary,
.home #main,
.home .site-main,
.home .ast-article-single,
.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===== Footer: hide Astra credit ===== */
/* .ast-footer-copyright,
#ast-footer-copyright {
  display: none !important;
} */

/* ===== Dealers Table ===== */
.page-id-11 .wp-block-table table {
  table-layout: fixed;
  width: 100%;
}

.page-id-11 .wp-block-table table th:nth-child(1),
.page-id-11 .wp-block-table table td:nth-child(1) {
  width: 25%;
  text-align: center;
}

.page-id-11 .wp-block-table table th:nth-child(2),
.page-id-11 .wp-block-table table td:nth-child(2) {
  width: 35%;
}

.page-id-11 .wp-block-table table th:nth-child(3),
.page-id-11 .wp-block-table table td:nth-child(3) {
  width: 20%;
  text-align: center;
}

.page-id-11 .wp-block-table table th:nth-child(4),
.page-id-11 .wp-block-table table td:nth-child(4) {
  width: 20%;
}

@media (max-width: 768px) {
  .page-id-11 .wp-block-table table,
  .page-id-11 .wp-block-table thead,
  .page-id-11 .wp-block-table tbody,
  .page-id-11 .wp-block-table tr,
  .page-id-11 .wp-block-table td {
    display: block;
    width: 100%;
  }

  .page-id-11 .wp-block-table thead {
    display: none;
  }

  .page-id-11 .wp-block-table tbody tr {
    border: 1px solid #dde2ea;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .page-id-11 .wp-block-table td {
    padding: 4px 0;
    border: none;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .page-id-11 .wp-block-table td:nth-child(n+2) {
    display: flex !important;
    align-items: baseline;
    gap: 6px;
    width: 100% !important;
  }

  .page-id-11 .wp-block-table td:nth-child(n+2)::before {
    flex-shrink: 0;
    width: auto !important;
    font-weight: 700;
    color: var(--color-muted);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
  }

  .page-id-11 .wp-block-table td:nth-child(1) {
    width: 100% !important;
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 4px;
  }

  .page-id-11 .wp-block-table td:nth-child(2)::before { content: "住所 "; }
  .page-id-11 .wp-block-table td:nth-child(3)::before { content: "TEL  "; }
  .page-id-11 .wp-block-table td:nth-child(4)::before { content: "URL  "; }
}

/* ===== Catalog Category: タイトル非表示 ===== */
.category-catalog .ast-archive-title,
.category-catalog .page-title,
.category-catalog .archive-title {
  display: none !important;
}

/* ===== Catalog Category: アイキャッチ画像を元比率で表示 ===== */
.category-catalog .post-thumb-img-content {
  height: auto !important;
}

.category-catalog .post-thumb-img-content img {
  aspect-ratio: unset !important;
  height: auto !important;
  width: 100%;
  object-fit: unset !important;
  object-position: unset !important;
}

/* ===== News List ===== */
.noticeone-news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.noticeone-news-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e5ec;
}

.noticeone-news-list .news-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.noticeone-news-list .news-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.noticeone-news-list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.noticeone-news-list a:hover {
  color: var(--color-ocean);
}

/* ===== Mobile Menu ===== */
body #ast-mobile-header .ast-mobile-header-content,
body #ast-mobile-header #ast-hf-mobile-menu,
body #ast-mobile-header #ast-hf-mobile-menu ul,
body #ast-mobile-header #ast-hf-mobile-menu ul li,
body #ast-mobile-header .main-header-bar-navigation {
  background: #0D1B2A !important;
  background-color: #0D1B2A !important;
}

body #ast-mobile-header #ast-hf-mobile-menu ul li a,
body #ast-mobile-header #ast-hf-mobile-menu ul li a:visited {
  color: rgba(255,255,255,0.85) !important;
}

body #ast-mobile-header #ast-hf-mobile-menu ul li a:hover {
  color: #00A8E8 !important;
  background-color: rgba(255,255,255,0.05) !important;
}

/* Astra モバイルメニュー（ハンバーガー展開後）追加セレクター */
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .main-header-bar-navigation ul,
.ast-header-break-point .main-header-bar-navigation ul li,
.ast-header-break-point #site-navigation,
.ast-header-break-point #site-navigation ul,
.ast-header-break-point #site-navigation ul li,
.ast-header-break-point .ast-nav-menu,
.ast-header-break-point .ast-nav-menu li,
.ast-mobile-menu-open .main-header-bar-navigation,
.ast-mobile-menu-open #site-navigation,
.ast-mobile-menu-open .ast-nav-menu {
  background: #0D1B2A !important;
  background-color: #0D1B2A !important;
}

.ast-header-break-point .main-header-bar-navigation ul li a,
.ast-header-break-point #site-navigation ul li a,
.ast-header-break-point .ast-nav-menu li a,
.ast-header-break-point .ast-nav-menu > li > a {
  color: rgba(255,255,255,0.85) !important;
  background: transparent !important;
}

.ast-header-break-point .main-header-bar-navigation ul li a:hover,
.ast-header-break-point #site-navigation ul li a:hover,
.ast-header-break-point .ast-nav-menu li a:hover {
  color: #00A8E8 !important;
  background-color: rgba(255,255,255,0.05) !important;
}

/* ===== PICKUP グリッド ===== */
.no-pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.no-pickup-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .no-pickup-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .noticeone-banner-grid {
    grid-template-columns: 1fr;
  }
  .noticeone-banner-grid figure {
    width: 100%;
  }
  .noticeone-banner-grid img {
    width: 100%;
  }
  .rider-blog-grid {
    grid-template-columns: 1fr;
  }
  .no-slider {
    height: 150svh;
    min-height: 600px;
  }

  .no-slider-text {
    display: block !important;
    visibility: visible !important;
    z-index: 10 !important;
  }

  .no-slider-text .hero-brand {
    letter-spacing: 0.15em;
  }

  .noticeone-section-title {
    margin-top: 50px;
  }

  .noticeone-news-list li {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
  }

  .noticeone-news-list .news-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .noticeone-news-list .news-date {
    grid-column: 2;
    grid-row: 1;
  }

  .noticeone-news-list a {
    grid-column: 2;
    grid-row: 2;
  }
}
