/* LUCAS DESIGN — portfolio + contact */
:root {
  --bg: #f8fafc;
  --bg-hero: linear-gradient(135deg, #eef6ff 0%, #f5f7fb 45%, #e8f0fa 100%);
  --text: #1F2A24;
  --text-muted: #5c6478;
  --gold: #b8956c;
  --gold-soft: #c9a77a;
  --accent-blue: #7eb8e8;
  --footer-bg: #1c1f26;
  --footer-text: #c5cad4;
  --required: #c94c4c;
  --input-border: #d4dbe5;
  --max-w: 1120px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "Cormorant Garamond", "Shippori Mincho", "Yu Mincho", YuMincho, serif;
  --font-script: "Great Vibes", "Allura", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  opacity: 0.85;
}

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 219, 229, 0.5);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1rem 0;
}

/* 1行目: ロゴ + ハンバーガー（モバイルは両端配置） */
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  gap: 0.75rem;
}

.logo {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  width: 222px;
  height: 50px;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  font-family: "Shippori Mincho", serif;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.nav a:hover {
  color: #b8956c;
}

/* ハンバーガー（768px 以下） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: 4px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.is-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* 上段: 左ロゴ / 右ハンバーガー、下段: ナビ */
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
    gap: 0.75rem;
  }

  .site-header .logo {
    display: block;
    flex: 0 0 50%; /* 親要素に対して「きっちり50%占領してね」という指示 */
    width: 50%;
    max-width: none;
    height: auto;
  }
  
  .site-header .logo img {
    display: block;
    width: 100% !important; /* 親の50%幅いっぱいに広げる */
    height: auto !important; /* 比率を保つ */
    max-height: none;        /* ←ここが重要！48pxの制限を解除するよ */
    object-fit: contain;
    object-position: left center;
  }
  .nav-toggle {
    display: flex;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .nav {
    display: none;
    width: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0.5rem 0 1rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(212, 219, 229, 0.8);
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 219, 229, 0.5);
  }

  .nav a:last-child {
    border-bottom: none;
  }
}


@media (min-width: 769px) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
  }

  .site-header__bar {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

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

  .nav {
    display: flex !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 6rem;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url(../img/fv.png) no-repeat center center / cover;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 640px;
  text-align: center;
}

.hero__en {
  font-family: "Cormorant Garamond", Helvetica;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 100;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color:#666
}

.hero__ja {
  font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 400;
  color: #666666;
  margin: 5rem 0;
  line-height: 2;
}

.hero__tags {
  font-size: 0.8rem;
  font-family: "Cormorant Garamond", Helvetica;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555555;
}

/* アニメーション */

/* 最初は透明にして、少し下に下げておく */
.hero, .hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s, transform 1.5s;
}

/* このクラスがついたら現れる */
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: #fff;
}

.section__title {
  font-family: "Antro Vectra", Helvetica;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  color: var(--gold);
  text-align: center;
  margin: 0 0 3rem;
  line-height: 1.2;
}

.concept__body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.concept__body p {
  font-family: "Shippori Mincho", serif;
  margin: 0 0 1.5rem;
}

.concept__body p:last-child {
  margin-bottom: 0;
}

/* Services */
#service {
  background-image: url(../img/service_bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

.service-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.service-card__circle {
  width: 280px;
  height: 280px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(212, 219, 229, 0.8);
  box-shadow: 0 12px 40px rgba(28, 31, 38, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.service-card__circle span {
  font-family: 'cormorant garamond', Helvetica;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--text);
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  font-family: "Shippori Mincho", serif;
}

/* Works */
.works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .works__grid {
    grid-template-columns: 1fr;
  }
}

.work-card {
  background: #fff;
  border: 1px solid rgba(212, 219, 229, 0.6);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.work-card:hover {
  box-shadow: 0 20px 50px rgba(28, 31, 38, 0.08);
}

.work-card__thumb {
  aspect-ratio: 16 / 10; /* ここで枠の形を決める */
  background: #e8edf4;
  overflow: hidden;
  width: 100%; /* 親のカード幅に合わせる */
}

.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいに広げて切り抜く */
  object-position: center top; /* 上端を基準にする（これであってる！） */
  display: block; /* 余計な隙間を消すため */
}

.work-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.work-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* About */
#about {
  background-image: url(../img/about_bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about__lead {
  font-family: "Shippori Mincho", serif;
  text-align: center;
  color: var(--text-muted);
  margin: -1.5rem 0 2.5rem;
  font-size: 0.95rem;
}

.about__grid {
  display: grid;
  width: 70%;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: top;
  margin:0 auto
}

.about__text p {
  font-family: "Shippori Mincho", serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

@media (max-width: 800px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

.about__photo {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 31, 38, 0.12);
}

.about__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about__text p {
  margin: 0 0 1.25rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* Contact */
.section--contact {
  padding-bottom: 6rem;
}

.contact__lead {
  font-family: "Shippori Mincho", serif;
  text-align: center;
  color: var(--text-muted);
  margin: -1.5rem 0 2.5rem;
  font-size: 0.95rem;
}

.contact-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.form-errors {
  background: #fff5f5;
  border: 1px solid #f0caca;
  color: #8b2e2e;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

.field {
  margin-bottom: 1.75rem;
}

.field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.badge-required {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: var(--required);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1px solid var(--input-border);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-soft);
}

textarea {
  min-height: 160px;
  resize: vertical;
  padding-top: 0.5rem;
}

.field--error input,
.field--error textarea {
  border-bottom-color: var(--required);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.form-actions--row {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.9rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--footer-bg);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--input-border);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
}

/* Confirm */
.confirm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--input-border);
}

.confirm-list > li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--input-border);
}

.confirm-list__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.confirm-list__value {
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.complete-message {
  text-align: center;
  padding: 2rem 0;
}

.complete-message p {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0;
  width: 100%;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
  flex-direction: column; /* 縦に並べる */
  align-items: center;    /* 中央揃え */
  justify-content: center; /* 念のため中央 */
}

.site-footer .nav a {
  color: var(--footer-text);
}

.site-footer .nav a:hover {
  color: #fff;
}

.site-footer .logo {
  color: #e8eaef;
}

.copyright {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin: 0;
}




/* サブページ（work1.php 等）：ヘッダーは index と共通、本文は白ベース */
body.page-sub {
  background: #fff;
  color: #262626;
}

/* 作品ページのスクショ枠（flex 子だと min-height:auto で画像高さに引っ張られるため、専用セクション推奨） */
.works-pc-section {
  box-sizing: border-box;
  width: 100%;
  padding: 0 24px;
}

/* 作品スクショ枠（1000:741、上基準で下をカット。padding-top 比率 + 絶対配置で Tailwind とも干渉しにくい） */
.works-pc-shot {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  border: 0.5px solid #999;
  line-height: 0;
}

.works-pc-shot::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: calc(741 / 1000 * 100%);
}

.works-pc-shot > img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
}
