
/* ==========================================
   DAISUKE HASEGAWA OFFICIAL WEBSITE
   STYLE.CSS - COMPLETE
========================================== */

/* 01. FONTS & VARIABLES
------------------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800;900&family=Noto+Sans+JP:wght@400;600&display=swap');

:root {
  --bg: #08080c;
  --fg: #f5f5f7;
  --muted: #a3a3b2;
  --accent: #b38aff;
  --surface: #101017;
  --card: #1b1b26;
  --input: #15151d;
  --border: #343440;
}


/* 02. GLOBAL
------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
}

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

section {
  padding: 110px 8%;
}

.section-title {
  margin: 0 0 50px;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.section-title span {
  color: var(--accent);
}


/* 03. HEADER & NAVIGATION
------------------------------------------ */

header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  letter-spacing: .15em;
}

.logo img {
  display: block;
  width: 50px;
  height: auto;
  min-height: 40px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 12px;
  letter-spacing: .15em;
  transition: color .3s;
}

nav a:hover {
  color: var(--accent);
}


/* 04. HERO
------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100svh;
  padding: 120px 8% 10%;

  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 12, .75),
      transparent 90%
    ),
    linear-gradient(
      0deg,
      var(--bg),
      transparent 75%
    ),
    url('images/pic_DH_main_01.jpg')
      center 30% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .35em;
}

h1 {
  margin: 25px 0;
  font-size: clamp(54px, 10vw, 160px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.065em;
}

.hero p {
  color: #ddd;
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: .15em;
}


/* 05. ABOUT
------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
}

.about p {
  color: var(--muted);
  font-size: 15px;
  line-height: 2.2;
}

.about p[lang="ja"] {
  margin-bottom: 8px;
}

.about p[lang="en"] {
  margin-top: 0;
  margin-bottom: 35px;
}


/* 06. SELECTED WORKS
------------------------------------------ */

.works {
  background: var(--surface);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: block;
  min-width: 0;
  min-height: 220px;
  padding: 35px 28px;
  overflow: hidden;

  background: var(--card);
  border: 1px solid #30303e;
  color: inherit;
  text-decoration: none;

  transition:
    transform .3s ease,
    border-color .3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.work-card small {
  color: var(--accent);
  letter-spacing: .15em;
}

.work-card h3 {
  margin: 25px 0 10px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.work-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Artwork / Thumbnail */

.work-artwork {
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 8px;

  background: linear-gradient(
    135deg,
    #29203e,
    #100d19
  );

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.work-artwork span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: .18em;
}

.work-artwork strong {
  color: #fff;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nhk-artwork {
  background: linear-gradient(
    135deg,
    #20304a,
    #0d1422
  );
}

/* Work Links */

.work-cta {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.work-card:hover .work-cta {
  color: #fff;
}


/* 07. WORLDWIDE / LIVE
------------------------------------------ */

.live {
  background: linear-gradient(
    120deg,
    #161020,
    var(--bg)
  );
}

.live p {
  color: var(--muted);
  line-height: 2;
}

.countries {
  max-width: 900px;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.7;
}

.about p[lang="en"],
.live p[lang="en"] {
  color: #8f8f9e;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .015em;
}


/* 08. ORIGINAL SONGS
------------------------------------------ */

.original-songs {
  padding: 100px 6%;
  text-align: center;
  background: var(--bg);
}

.original-songs h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: .12em;
}

.original-songs p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

/* YouTube Playlist */

.youtube-playlist {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #16121f;
}

.youtube-playlist iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* YouTube Button */

.youtube-more {
  display: inline-block;
  margin-top: 35px;
  padding: 15px 32px;

  border: 1px solid var(--accent);
  border-radius: 30px;

  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;

  transition:
    background .3s,
    color .3s;
}

.youtube-more:hover {
  background: var(--accent);
  color: var(--bg);
}


/* 09. SNS
------------------------------------------ */

#sns {
  padding: 100px 6%;
  background: var(--bg);
  text-align: center;
}

#sns h2 {
  margin: 0 0 20px;
  color: var(--fg);
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -.03em;
}

#sns h2 span {
  color: var(--accent);
}

.sns-description {
  margin-bottom: 50px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: .08em;
}

.sns-links {
  max-width: 650px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sns-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 26px 30px;

  background: #14141c;
  border: 1px solid #30303d;
  border-radius: 12px;

  color: #fff;
  text-decoration: none;

  transition:
    background .3s ease,
    border-color .3s ease,
    transform .3s ease;
}

.sns-card:hover {
  border-color: var(--accent);
  background: #1e182a;
  transform: translateY(-3px);
}

.sns-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.sns-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sns-account {
  color: var(--muted);
  font-size: 13px;
}

.sns-arrow {
  color: var(--accent);
  font-size: 28px;
}


/* 10. CONTACT
------------------------------------------ */

.contact {
  background: var(--bg);
  text-align: center;
}

.contact > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .08em;
}


/* 11. CONTACT FORM
------------------------------------------ */

.contact-form {
  max-width: 650px;
  margin: 55px auto 0;
  text-align: left;
}

/* Labels */

.contact-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
}

/* Fields */

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  padding: 18px 20px;

  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0;

  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;

  outline: none;

  transition:
    border-color .3s,
    background .3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--card);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777783;
}

/* Select */

.contact-form select {
  appearance: none;
  cursor: pointer;
  padding-right: 45px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b38aff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 20px center;
}

/* Textarea */

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

/* Submit Button */

.contact-submit {
  display: block;
  width: 100%;
  padding: 20px 30px;

  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;

  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2em;

  cursor: pointer;

  transition:
    background .3s,
    color .3s;
}

.contact-submit:hover {
  background: var(--accent);
  color: var(--bg);
}

.contact-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Honeypot Spam Protection */

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* 12. FOOTER
------------------------------------------ */

footer {
  padding: 35px 8%;
  border-top: 1px solid #252530;
  color: #777;
  font-size: 11px;
  text-align: center;
}


/* 13. RESPONSIVE / TABLET
------------------------------------------ */

@media (min-width: 701px) and (max-width: 1050px) {

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    gap: 40px;
  }

}


/* 14. RESPONSIVE / MOBILE
------------------------------------------ */

@media (max-width: 700px) {

  /* Header */

  header {
    padding: 20px 6%;
  }

  .logo {
    font-size: 11px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 10px;
  }

  /* Hero */

  .hero {
    background-position: 60% center;
  }

  /* Sections */

  section {
    padding: 75px 7%;
  }

  /* About */

  .about {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Selected Works */

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding: 25px 22px;
  }

  .work-artwork {
    padding: 18px;
  }

  .work-artwork strong {
    font-size: 24px;
  }

  /* Original Songs */

  .original-songs {
    padding: 80px 6%;
  }

  .youtube-playlist {
    border-radius: 8px;
  }

  /* SNS */

  #sns {
    padding: 80px 6%;
  }

  .sns-card {
    padding: 22px;
  }

  .sns-name {
    font-size: 16px;
  }

  /* Contact Form */

  .contact-form {
    margin-top: 35px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 16px;
    margin-bottom: 24px;
    font-size: 16px;
  }

  .contact-submit {
    padding: 19px;
    font-size: 12px;
  }

}


/* 15. ACCESSIBILITY
------------------------------------------ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* SELECTED WORKS - YouTube Thumbnails */

.work-artwork:has(img) {
  padding: 0;
  overflow: hidden;
}

.work-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.work-card:hover .work-artwork img {
  transform: scale(1.05);
}

