@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Old+Mincho:wght@500;700&family=Zen+Maru+Gothic:wght@500;700&display=swap');

/* ================================
   Reset & Base
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #fff8c7;
  --color-text: #5b5b5b;
  --color-text-dark: #16213e;
  --color-accent: #c9be4b;
  --color-gray-bg: #f5f5f5;
  --color-link: #0477a5;
  --color-header-contact-btn: #BA8809;

  --font-mincho: 'Zen Old Mincho', serif;
  --font-maru: 'Zen Maru Gothic', sans-serif;
  --font-noto: 'Noto Sans JP', sans-serif;

  --sp-side: 16px;
  --radius-card: 20px;
  --radius-btn: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-noto);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ================================
   Hamburger Nav Drawer (SP)
================================ */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 268px;
  height: 100%;
  background: #fff;
  z-index: 300;
  padding: 48px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--color-text);
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer-link {
  font-family: var(--font-noto);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.drawer-link:hover {
  background: #fafafa;
}

.drawer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-maru);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  text-decoration: none;
  width: 128px;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}

.drawer-overlay.is-open {
  display: block;
}

/* ================================
   Header
================================ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--sp-side);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-ja {
  font-family: var(--font-maru);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #fff8c7;
  letter-spacing: 0;
  transition: color 0.3s;
}

.logo-en {
  font-family: var(--font-noto);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #fff8c7;
  transition: color 0.3s;
}

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

.header-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
}

.header-mail img {
  width: 40px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hamburger img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.header-nav-pc {
  display: none;
}

/* Header light state (after scrolling past hero) */
.header.is-light {
  background: transparent;
}

.header.is-light .logo-ja,
.header.is-light .logo-en {
  color: var(--color-text);
}

.header.is-light .header-mail img,
.header.is-light .btn-hamburger img {
  filter: none;
}

.header.is-light .header-nav-pc a {
  color: var(--color-text);
}

.header.is-light .header-contact-btn {
  color: #fff;
}

/* ================================
   Hero
================================ */
.sec-hero {
  position: relative;
  height: 558px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-left: var(--sp-side);
  padding-right: var(--sp-side);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 292px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 5px 10px rgba(0,0,0,0.25);
  text-align: center;
}

/* ================================
   Section title共通
================================ */
.sec-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-text);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 4px 8px rgba(189,188,188,0.3);
  margin-bottom: 32px;
}

/* ================================
   Works section
================================ */
.sec-works {
  padding: 80px var(--sp-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.works-cat,
.works-banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
}

.works-cat-ttl {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-text);
  text-align: center;
  width: 100%;
}

.works-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Card */
.card-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.card-thumb {
  width: 320px;
  height: 560px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card-info {
  width: 100%;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.card-title {
  font-family: var(--font-noto);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text);
}

.card-tag {
  font-family: var(--font-noto);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Detail button */
.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-maru);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-btn);
  height: 48px;
  padding: 0 24px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-detail:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Banner */
.banner-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.banner-sq {
  width: 160px;
  height: 160px;
}

/* ================================
   Values section
================================ */
.sec-values {
  background: var(--color-gray-bg);
  padding: 80px var(--sp-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.values-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 80px 0;
  width: 200px;
}

.values-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  z-index: 1;
}

.values-item span {
  font-family: var(--font-noto);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-dark);
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.deco-circle {
  position: absolute;
  width: 320px;
  height: 200px;
  object-fit: contain;
  pointer-events: none;
}

.values-item--01 { z-index: 4; }
.values-item--02 { z-index: 3; }
.values-item--02 .deco-circle { top: -210px; left: -80px; }
.values-item--03 { z-index: 2; }
.values-item--03 .deco-circle { top: -212px; left: -60px; }

/* ================================
   Contact section
================================ */
.sec-contact {
  padding: 80px var(--sp-side);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.contact-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  width: 100%;
}

.contact-lead p {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
}

.contact-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.contact-title {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

.contact-arrows {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: invert(44%) sepia(60%) saturate(500%) hue-rotate(314deg) brightness(95%) contrast(90%);
}

.contact-mail-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mail-icon {
  width: 50px;
  height: 40px;
  object-fit: contain;
  filter: invert(36%) sepia(90%) saturate(500%) hue-rotate(172deg) brightness(90%) contrast(95%);
}

.mail-address {
  font-family: var(--font-noto);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  text-align: center;
}

.sp-only { display: inline; }

/* ================================
   Footer
================================ */
.footer {
  background: var(--color-gray-bg);
  padding: 80px var(--sp-side);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

.footer-logo-ja {
  font-family: var(--font-maru);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-text);
}

.footer-logo-en {
  font-family: var(--font-noto);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--color-text);
}

.footer-nav {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.footer-nav a {
  font-family: var(--font-noto);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: var(--color-text);
  text-decoration: none;
  padding: 16px;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-family: var(--font-noto);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.3;
  color: var(--color-text);
  text-align: center;
}

/* ================================
   PC Layout (≥1024px)
================================ */
@media (min-width: 1024px) {

  /* Header PC */
  .header {
    padding: 20px 64px;
    background: transparent;
  }

  .logo-ja { font-size: 24px; }
  .logo-en { font-size: 16px; }

  .header-actions {
    display: none;
  }

  .header-nav-pc {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-nav-pc a {
    font-family: var(--font-noto);
    font-weight: 400;
    font-size: 16px;
    color: #fff8c7;
    text-decoration: none;
    padding: 12px 16px;
    transition: opacity 0.2s, color 0.3s;
  }

  .header-nav-pc a:hover {
    opacity: 0.7;
  }

  .header-contact-btn {
    background: var(--color-header-contact-btn);
    color: #fff !important;
    border-radius: var(--radius-btn);
    padding: 12px 20px !important;
    font-weight: 500 !important;
    text-align: center;
    line-height: 1.4;
    transition: opacity 0.2s, transform 0.2s !important;
  }

  .header-contact-btn:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px);
  }

  .logo-ja { font-size: 24px; }
  .logo-en { font-size: 16px; }

  /* Hero PC */
  .sec-hero {
    height: 760px;
    padding-bottom: 120px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .hero-inner {
    max-width: 700px;
  }

  .hero-title {
    font-size: 46px;
    letter-spacing: -1px;
  }

  /* Works PC */
  .sec-works {
    padding: 120px 64px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
  }

  .sec-title {
    font-size: 36px;
  }

  .works-cat-ttl {
    font-size: 36px;
  }

  .works-list {
    display: grid;
    grid-template-columns: repeat(2, 560px);
    gap: 40px 76px;
    justify-content: center;
  }

  .card-work {
    width: 560px;
  }

  .card-thumb {
    width: 560px;
    height: 328px;
  }

  .card-thumb img {
    object-position: top;
  }

  .card-info {
    min-height: 188px;
  }

  .card-title {
    font-size: 20px;
    min-height: 100px;
  }

  .card-tag {
    font-size: 16px;
  }

  .btn-detail {
    height: 56px;
    padding: 0 32px;
    font-size: 18px;
  }

  /* Banner PC */
  .banner-list {
    max-width: 1440px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: stretch;
  }

  .banner-sq {
    width: auto;
    height: auto;
    aspect-ratio: 1;
  }

  .banner-item img {
    border-radius: 0;
  }

  /* Values PC */
  .sec-values {
    padding: 120px 64px;
  }

  .values-group {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 120px 0;
    width: 600px;
    height: 788px;
  }

  .values-item {
    position: absolute;
    padding: 132px 0;
  }

  .values-item--01 {
    left: 220px;
    top: 132px;
  }

  .values-item--01 .deco-circle {
    display: none;
  }

  .values-item--02 {
    left: 0;
    top: 400px;
  }

  .values-item--02 .deco-circle {
    top: -40px;
    left: -160px;
    width: 480px;
    height: 348px;
  }

  .values-item--03 {
    left: 400px;
    top: 400px;
  }

  .values-item--03 .deco-circle {
    top: -40px;
    left: -140px;
    width: 480px;
    height: 348px;
  }

  /* Contact PC */
  .sec-contact {
    padding: 120px 64px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-lead p {
    font-size: 20px;
  }

  .contact-title {
    font-size: 36px;
  }

  .mail-address {
    font-size: 20px;
  }

  .sp-only { display: none; }

  /* Footer PC */
  .footer {
    padding: 80px 64px;
  }

  .footer-inner {
    gap: 24px;
  }

  .footer-logo-ja { font-size: 24px; }
}

@media (min-width: 1440px) {
  .sec-works,
  .sec-contact {
    padding-left: calc((100% - 1312px) / 2);
    padding-right: calc((100% - 1312px) / 2);
  }
}
