/*
 * DAISEN 特設サイト スタイルシート
 * daisen-dedicated/daisen-dedicated.css
 */

/* ========== リセット & ベース ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color:    #00b4d8;
  --color-dk: color-mix(in srgb, var(--color) 70%, #000);
  --color-lt: color-mix(in srgb, var(--color) 30%, #fff);
  --black:    #08080f;
  --dark:     #111120;
  --surface:  #1a1a2e;
  --border:   #2a2a42;
  --white:    #ffffff;
  --off-w:    #e8e8f4;
  --muted:    #8888aa;
  --font-d:   'Montserrat', sans-serif;
  --font-b:   'Noto Sans JP', sans-serif;
  --ease:     cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }

body.daisen-dedicated {
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  background: #f5f5fa;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ========== HEADER ========== */
.dd-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,8,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.dd-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.dd-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-decoration: none;
  flex-shrink: 0;
}
.dd-header__logo-mark {
  width: 32px; height: 32px;
  background: var(--color);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .9rem;
  font-weight: 900;
  color: var(--black);
}
.dd-header__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.dd-header__nav a {
  color: var(--muted);
  font-family: var(--font-d);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .3s, background .3s;
  white-space: nowrap;
}
.dd-header__nav a:hover,
.dd-header__nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.dd-header__nav a.active { color: var(--color); }
.dd-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.dd-header__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
  border-radius: 1px;
}

/* ========== HERO ========== */
.dd-hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  max-height: 900px;
  background-color: var(--dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,15,.3) 0%,
    rgba(8,8,15,.5) 60%,
    rgba(8,8,15,.85) 100%
  );
}
.dd-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.dd-hero__label {
  font-family: var(--font-d);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--color);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: ddFadeUp .8s var(--ease) .3s forwards;
}
.dd-hero__title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: ddFadeUp .9s var(--ease) .5s forwards;
}
.dd-hero__tagline {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.75);
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(20px);
  animation: ddFadeUp .8s var(--ease) .7s forwards;
}
.dd-hero__line {
  width: 48px; height: 3px;
  background: var(--color);
  margin: 24px auto 0;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  animation: ddLineIn .6s var(--ease) .9s forwards;
}
.dd-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.dd-scroll-indicator {
  cursor: pointer;
  display: block;
  animation: ddScrollBlink 2s ease-in-out infinite;
}
.dd-scroll-dot { animation: ddScrollDot 2s ease-in-out infinite; }

@keyframes ddFadeUp   { to { opacity:1; transform:translateY(0); } }
@keyframes ddLineIn   { to { opacity:1; transform:scaleX(1); } }
@keyframes ddScrollBlink { 0%,100%{opacity:.5} 50%{opacity:1} }
@keyframes ddScrollDot {
  0%,100% { transform:translateY(0); opacity:1; }
  80%      { transform:translateY(12px); opacity:0; }
}

/* ========== LAYOUT ========== */
.dd-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ========== POSTS HEADER ========== */
.dd-posts-header { margin-bottom: 40px; }
.dd-section-title {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 900;
  color: var(--black);
  letter-spacing: .1em;
  line-height: 1;
}
.dd-section-sub {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .2em;
  font-family: var(--font-d);
  font-weight: 500;
}
.dd-section-title::after {
  content: '';
  display: block;
  width: 36px; height: 3px;
  background: var(--color);
  margin-top: 10px;
  border-radius: 2px;
}

/* ========== CARD GRID ========== */
.dd-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.dd-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.dd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.dd-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.dd-card__thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface);
  overflow: hidden;
}
.dd-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.dd-card:hover .dd-card__thumb img { transform: scale(1.05); }
.dd-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.55) 100%);
  opacity: 0;
  transition: opacity .35s;
}
.dd-card:hover .dd-card__overlay { opacity: 1; }
.dd-card__thumb-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface), var(--border));
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color);
}
.dd-card__body {
  padding: 14px 16px 18px;
}
.dd-card__title {
  font-family: var(--font-b);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dd-card__excerpt {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.dd-card__more {
  font-family: var(--font-d);
  font-size: .72rem;
  font-weight: 700;
  color: var(--color);
  letter-spacing: .06em;
  display: block;
}

.dd-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--muted);
}

/* ========== SIDEBAR ========== */
.dd-sidebar { display: flex; flex-direction: column; gap: 32px; }

.dd-sidebar__image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: transform .35s var(--ease);
}
.dd-sidebar__image-wrap:hover { transform: translateY(-4px); }
.dd-sidebar__image { width: 100%; display: block; }

.dd-sidebar__form {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  border-top: 3px solid var(--color);
}
.dd-sidebar__heading {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  letter-spacing: .06em;
}

/* CF7 フォームスタイル補正 */
.dd-sidebar__form .wpcf7-form-control {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1.5px solid #ddd !important;
  border-radius: 8px !important;
  font-family: var(--font-b) !important;
  font-size: .875rem !important;
  transition: border-color .3s !important;
  background: #fafafc !important;
}
.dd-sidebar__form .wpcf7-form-control:focus {
  border-color: var(--color) !important;
  outline: none !important;
  background: #fff !important;
}
.dd-sidebar__form .wpcf7-submit {
  background: var(--color) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: opacity .3s !important;
  width: 100% !important;
  margin-top: 8px !important;
}
.dd-sidebar__form .wpcf7-submit:hover { opacity: .85 !important; }

.dd-sidebar__profile {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex;
  gap: 16px;
  align-items: center;
}
.dd-sidebar__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color);
}
.dd-sidebar__admin-name {
  display: block;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .95rem;
  color: var(--black);
  text-decoration: none;
  transition: color .3s;
}
a.dd-sidebar__admin-name:hover { color: var(--color); }
.dd-sidebar__admin-role {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ========== FOOTER ========== */
.dd-footer {
  background: var(--black);
  color: var(--off-w);
  padding: 56px 0 32px;
  font-family: var(--font-d);
}
.dd-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.dd-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 40px;
}
.dd-footer__nav a {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  transition: color .3s;
}
.dd-footer__nav a:hover { color: var(--white); }
.dd-footer__copy {
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.dd-footer__copy a { color: var(--off-w); font-weight: 700; transition: color .3s; }
.dd-footer__copy a:hover { color: var(--color); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .dd-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .dd-layout { grid-template-columns: 1fr; }
  .dd-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .dd-sidebar__form,
  .dd-sidebar__profile { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .dd-grid { grid-template-columns: repeat(3, 1fr); }
  .dd-header__nav { display: none; }
  .dd-header__toggle { display: flex; }
  .dd-header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,8,15,.97);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .dd-header__nav.is-open a { padding: 12px 16px; font-size: .9rem; }
  .dd-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dd-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dd-layout { padding: 48px 16px 48px; gap: 32px; }
  .dd-hero__title { font-size: clamp(1.6rem, 8vw, 2.8rem); }
}

@media (max-width: 400px) {
  .dd-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dd-card__body { padding: 10px 12px 14px; }
  .dd-card__title { font-size: .8rem; }
}
