/* ========== Reset & Base ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s, box-shadow 0.4s;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.12em;
}

.logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.3s;
}

.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5b9a8b;
  transition: width 0.3s;
}

.nav a:not(.nav-cta):hover {
  color: #5b9a8b;
}

.nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  padding: 10px 28px;
  background: #5b9a8b;
  color: #fff !important;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.3s, transform 0.3s;
}

.nav-cta:hover {
  background: #4a8577;
  transform: translateY(-1px);
}

/* ========== Hamburger ========== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #333;
  position: absolute;
  left: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url('images/hero-bg.jpg') center/cover no-repeat, linear-gradient(135deg, #e8f0ec 0%, #d4e4db 30%, #c5d9cd 60%, #b8d0c2 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(245, 243, 240, 0.95) 0%,
    rgba(245, 243, 240, 0.85) 45%,
    rgba(245, 243, 240, 0.4) 70%,
    rgba(245, 243, 240, 0) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 40px;
  max-width: 600px;
  margin-left: 8%;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.hero-content.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #5b9a8b;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  color: #2a2a2a;
}

.hero-desc {
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 2.2;
  margin-bottom: 40px;
  color: #666;
}

/* Hero Gallery — 右→左 無限スクロール */
.hero-gallery {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease 0.8s;
}

.hero-gallery.is-active {
  opacity: 1;
}

.hero-gallery-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: gallery-scroll 25s linear infinite;
}

.hero-gallery-item {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: #d4e4db;
}

.hero-gallery-item--lg {
  width: 260px;
  height: 180px;
}

.hero-gallery-item--sm {
  width: 200px;
  height: 150px;
  margin-top: 20px;
}

.hero-gallery-item--xl {
  width: 300px;
  height: 200px;
  margin-top: -10px;
}

.hero-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes gallery-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #999;
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: #bbb;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== Button ========== */
.btn-primary {
  display: inline-block;
  padding: 16px 44px;
  background: #5b9a8b;
  color: #fff;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(91, 154, 139, 0.25);
}

.btn-primary:hover {
  background: #4a8577;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 154, 139, 0.35);
}

/* ========== Section Common ========== */
.section {
  padding: 120px 0;
}

.section--white {
  background: #fff;
}

.section--cream {
  background: #f8f6f3;
}

.section--green {
  background: #e8f2ed;
}

.section--white-to-green {
  background: linear-gradient(to bottom, #ffffff 0%, #f6faf3 45%, #ecf5e6 100%);
}

.section--teal {
  background: linear-gradient(160deg, #6bb38e 0%, #7ec9a3 50%, #6fb896 100%);
  color: #fff;
}

.section--compact {
  padding: 72px 0;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5b9a8b;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-label--left {
  text-align: left;
}

.section-label--white {
  color: rgba(255, 255, 255, 0.7);
}

.section-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #2a2a2a;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.section-heading--left {
  text-align: left;
}

.section-heading--white {
  color: #fff;
}

/* ========== Thought (想い) ========== */
.thought-row {
  display: flex;
  align-items: stretch;
  gap: 56px;
  margin-bottom: 0;
}

.thought-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thought-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.7;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.thought-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 2.1;
  margin-bottom: 16px;
}

.thought-text:last-child {
  margin-bottom: 0;
}

.thought-img {
  flex: 0 0 400px;
  min-height: 340px;
  border-radius: 16px;
  overflow: hidden;
}

.thought-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ========== Service ========== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 56px;
}

.service-item--reverse {
  flex-direction: row-reverse;
}

.service-item-img {
  flex: 0 0 440px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #e8ede9;
}

.service-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-item:hover .service-item-img img {
  transform: scale(1.03);
}

.service-item-body {
  flex: 1;
}

.service-item-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #5b9a8b;
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.service-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.service-item-text {
  font-size: 0.88rem;
  color: #666;
  line-height: 2;
  margin-bottom: 24px;
}

.service-item-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5b9a8b;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.service-item-link:hover {
  border-bottom-color: #5b9a8b;
}

/* ========== Profile ========== */
.profile-row {
  display: flex;
  align-items: center;
  gap: 64px;
}

.profile-body {
  flex: 1;
}

.profile-img {
  flex: 0 0 360px;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8ede9;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: #999;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.profile-role {
  font-size: 0.85rem;
  color: #5b9a8b;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.profile-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 2.1;
}


/* ========== Contact ========== */
.contact-lead {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 28px 48px;
  transition: all 0.3s;
  min-width: 260px;
  color: #fff;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  margin-bottom: 12px;
  opacity: 0.8;
}

.contact-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ========== Footer ========== */
.footer {
  padding: 48px 0 32px;
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
}

.footer-logo-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
}

.footer-nav {
  display: flex;
  gap: 28px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.7rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ========== Page Top ========== */
.to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5b9a8b;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 999;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: #4a8577;
  transform: translateY(-2px);
}

/* ========== Nav Overlay ========== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ========== Scroll Animation ========== */
.js-fadeup {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-fadeup.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .service-item {
    flex-direction: column;
    gap: 32px;
  }

  .service-item--reverse {
    flex-direction: column;
  }

  .service-item-img {
    flex: none;
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-inner {
    padding: 0 20px;
    height: 64px;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav.is-open {
    right: 0;
  }

  .nav a {
    font-size: 0.95rem;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-cta {
    margin-top: 20px;
    text-align: center;
    border-bottom: none !important;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
  }

  .hero-content {
    margin-left: 0;
    padding: 0 24px;
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-label {
    font-size: 0.78rem;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  .hero-gallery {
    bottom: 6%;
  }

  .hero-gallery-track {
    gap: 16px;
    animation-duration: 18s;
  }

  .hero-gallery-item--lg {
    width: 160px;
    height: 110px;
  }

  .hero-gallery-item--sm {
    width: 130px;
    height: 95px;
    margin-top: 10px;
  }

  .hero-gallery-item--xl {
    width: 180px;
    height: 125px;
    margin-top: -5px;
  }

  .hero-gallery-item {
    border-radius: 8px;
  }

  .hero-scroll {
    display: none;
  }

  .btn-primary {
    padding: 14px 36px;
    font-size: 0.85rem;
  }

  /* Sections */
  .section {
    padding: 80px 0;
  }

  .section-heading {
    font-size: 1.3rem;
    margin-bottom: 40px;
  }

  /* Thought */
  .thought-row {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 48px;
  }

  .thought-heading {
    font-size: 1.5rem;
    text-align: center;
  }

  .thought-body .section-label {
    text-align: center;
  }

  .thought-text {
    font-size: 0.85rem;
  }

  .thought-img {
    flex: none;
    width: 100%;
    max-width: 320px;
    height: 300px;
    margin: 0 auto;
  }

  /* Service */
  .service-list {
    gap: 48px;
  }

  .service-item {
    flex-direction: column;
    gap: 24px;
  }

  .service-item--reverse {
    flex-direction: column;
  }

  .service-item-img {
    flex: none;
    width: 100%;
  }

  .service-item-num {
    font-size: 2rem;
  }

  /* Profile */
  .profile-row {
    flex-direction: column;
    gap: 36px;
  }

  .profile-body {
    order: 2;
  }

  .profile-img {
    order: 1;
    flex: none;
    width: 100%;
    max-width: 280px;
    height: 340px;
    margin: 0 auto;
  }

  .profile-body .section-label,
  .profile-body .section-heading {
    text-align: center;
  }

  .profile-name-en,
  .profile-name,
  .profile-role {
    text-align: center;
  }

  /* Contact */
  .contact-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
    padding: 28px 24px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
