/* ========== HERO ========== */
.hero {
  background: #F5F2ED;
  height: calc(100vh - 80px);
  min-height: 420px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}
/* canvas: アスペクト比 2:1 を保ちながら hero に収まる最大サイズ */
.hero-canvas {
  position: relative;
  width: min(100cqw, calc(100cqh * 2));
  aspect-ratio: 2 / 1;
  container-type: size;
}
.hero-cat {
  position: absolute;
  left: 15%;
  bottom: 0;
  height: 100%;
  width: auto;
}
.bubble-wrap {
  position: absolute;
  top: 5%;
  left: 34%;
  width: 26%;
  z-index: 2;
}
.bubble-img {
  width: 100%;
  display: block;
  filter:
    drop-shadow(2px 0 0 #C8C4BB)
    drop-shadow(-2px 0 0 #C8C4BB)
    drop-shadow(0 2px 0 #C8C4BB)
    drop-shadow(0 -2px 0 #C8C4BB);
}
.bubble-text {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  font-size: 1.5cqw;
  font-weight: 500;
  white-space: nowrap;
  color: #555;
}
.hero-text {
  position: absolute;
  left: 52%;
  top: 58%;
  right: 4%;
  transform: translateY(-50%);
  z-index: 2;
}
.hero h1 {
  font-size: 3.8cqw;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -1px;
}

/* ========== SECTIONS ========== */
.sec { padding: 120px 0; border-top: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 72px; }
.sec-en {
  font-family: 'Lora', serif;
  font-size: 32px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 4px;
}
.sec-jp { font-size: 32px; font-weight: 700; color: #505050; }
.inner { max-width: none; margin: 0 auto; padding: 0 180px; }
.about .inner { padding: 0 80px; }
.about .about-grid { padding-left: 170px; padding-right: 160px; }
.inner-wide { max-width: 100%; padding: 0 80px; }

/* ========== ABOUT ========== */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 365px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo { width: 365px; height: 365px; overflow: visible; flex-shrink: 0; border-radius: 0 !important; background: none !important; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.about-name { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.about-name-en { font-family: 'Lora', serif; font-size: 28px; font-weight: 700; color: var(--terra); }
.about-name-jp { font-size: 18px; font-weight: 700; color: #505050; }
.about-body { font-size: 15px; line-height: 2.1; color: #505050; }
.about-sns { margin-top: 32px; }
.about-sns-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #505050; text-decoration: none; transition: color 0.2s; }
.about-sns-link:hover { color: #000; }

/* ========== WORKS ========== */
.works { background: var(--white); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.work-card { }
.work-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #F7F6F3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.work-thumb img { max-width: 85%; max-height: 85%; width: auto !important; height: auto !important; object-fit: contain !important; }
.work-thumb--banner img { max-width: 55% !important; max-height: 55% !important; }
.work-client { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.work-title { font-size: 16px; font-weight: 700; color: #505050; margin-bottom: 6px; }
.work-label {
  display: inline-block;
  font-size: 16px;
  color: #E2750F;
  background: #FFFBF1;
  padding: 0 13px;
  border-radius: 8px;
  line-height: 30px;
}
.works-more { margin-top: 56px; text-align: center; }
.btn-outline {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--terra);
  border: 1px solid var(--terra);
  padding: 15px 49px;
  border-radius: 30px;
}
.btn-outline:hover { background: var(--terra); color: #fff; transition: 0.2s; }

/* ========== SERVICES ========== */
.services { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}
.svc-thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg); overflow: hidden; flex-shrink: 0; }
.svc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.svc-title { font-size: 22px; font-weight: 700; color: var(--text); text-align: center; width: 100%; }
.svc-body { font-size: 14px; line-height: 2; color: var(--muted); width: 100%; flex: 1; }
.svc-price-wrap {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.svc-price-label { font-size: 13px; color: var(--muted); }
.svc-price { font-size: 32px; font-weight: 700; color: var(--terra); }
.svc-price-sub { font-size: 24px; font-weight: 700; color: var(--terra); }

/* ========== BLOG ========== */
.blog { background: var(--white); }
.blog-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: calc(33.333% - 22px);
  min-width: 260px;
  max-width: 360px;
}
.blog-thumb { height: 200px; background: var(--bg); overflow: hidden; padding: 20px; }
.blog-thumb img { width: 100%; height: 100%; object-fit: contain; }
.blog-info { padding: 24px; }
.blog-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--terra);
  background: var(--terra-pale);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.blog-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.7; margin-bottom: 12px; }
.blog-date { font-size: 12px; color: var(--muted); }
.blog-more { margin-top: 56px; text-align: center; }

/* ========== CONTACT ========== */
.contact { background: var(--green); padding: 120px 0; }
.contact .sec-en { color: var(--white); }
.contact .sec-jp { color: var(--white); }
.contact-wrap {
  max-width: 750px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 56px 72px 12px;
}
.form-row { margin-bottom: 24px; }
.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.req { font-size: 11px; color: #fff; background: var(--terra); padding: 4px 10px; border-radius: 4px; font-weight: 700; }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  background: #EBEBEB;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #AEAEAE; }
.form-row textarea { height: 160px; resize: vertical; }
.submit-btn {
  width: 100%;
  padding: 22px 20px;
  background: var(--terra);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
}
.submit-btn:hover { opacity: 0.9; }

/* ========== CONTACT FORM 7 ========== */
.contact-wrap .wpcf7 p { margin-bottom: 24px; }
.contact-wrap .wpcf7 label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.contact-wrap .wpcf7 input[type="text"],
.contact-wrap .wpcf7 input[type="email"],
.contact-wrap .wpcf7 input[type="tel"],
.contact-wrap .wpcf7 textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 14px;
  background: #EBEBEB;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  outline: none;
}
.contact-wrap .wpcf7 textarea { height: 160px; resize: vertical; }
.contact-wrap .wpcf7 input[type="submit"] {
  width: 100%;
  padding: 22px 20px;
  background: var(--terra);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
}
.contact-wrap .wpcf7 input[type="submit"]:hover { opacity: 0.9; }
.contact-wrap .wpcf7-response-output { border: none !important; background: transparent; padding: 0; color: #c0392b; }
.contact-wrap .wpcf7-form.sent .wpcf7-response-output { color: var(--terra); }


/* ========== HEADER (index固有: sticky) ========== */
header { position: sticky; }

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #505050; border-radius: 2px; transition: 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .inner { padding: 0 120px; }
  .about .inner { padding: 0 160px; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 56px; }
  .about-photo { width: 280px; height: 280px; }
}
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about .about-grid { padding-left: 0; padding-right: 0; }
  .about-photo { width: 260px; height: 260px; margin: 0 auto; }
  .inner { padding: 0 80px; }
  .about .inner { padding: 0 80px; }
}
@media (max-width: 900px) and (min-width: 768px) {
  .hero { height: 480px; max-height: 480px; }
  .inner { padding: 0 60px; }
  .about .inner { padding: 0 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 240px; height: 240px; margin: 0 auto; }
  .sec-head { text-align: center; }
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc-grid { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin: 0 auto; }
  .blog-grid { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .header-inner { padding: 0 24px; }
  .logo { font-size: 22px; }
  .hamburger { display: flex; }
  #main-nav {
    display: none;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  #main-nav.open { display: flex; }
  #main-nav a { padding: 14px 0; font-size: 15px; width: 100%; text-align: center; }
  #main-nav a.nav-cta { margin: 12px auto 0; width: auto; padding: 12px 32px; }
  .hero { height: 360px; min-height: 0; max-height: none; }
  .hero-canvas { width: 100%; aspect-ratio: auto; height: 100%; }
  .hero-cat { left: 2%; height: 88%; bottom: 9%; }
  .bubble-wrap { left: 36%; top: 13%; width: 38%; }
  .bubble-text { font-size: 2.6cqw; }
  .hero-text { left: 50%; right: 3%; top: auto; bottom: 32%; transform: none; }
  .hero h1 { font-size: 5cqw; }
  .sec { padding: 60px 0; }
  .inner { padding: 0 24px; }
  .inner-wide { padding: 0 24px; }
  .about .inner { padding: 0 24px; }
  .sec-en { font-size: 22px; }
  .sec-jp { font-size: 22px; }
  .sec-head { margin-bottom: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 220px; height: 220px; margin: 0 auto; }
  .works-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-wrap { padding: 40px 24px; }
}
