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

* {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #111111;
  color: #cccccc;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.ph { font-variant-emoji: text; color: #ffffff; }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  width: 100%;
  padding: 0.9rem 20px;
  box-sizing: border-box;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  min-height: 60px;
}

.nav-logo {
  flex: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: #cccccc; }

.nav-phone {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
}
.nav-phone:hover { opacity: 1; }

#hamburger {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .nav-phone { display: none; }
}

#mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  padding: 20px;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mobile-menu a {
  display: block;
  color: #cccccc;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans JP', sans-serif;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: #aaaaaa; }

/* ─── PORTFOLIO PAGE ──────────────────────────── */
.portfolio-page {
  padding: 100px 20px 60px;
  text-align: center;
  background: #111111;
  min-height: 100vh;
  color: #ffffff;
}

.portfolio-section {
  margin: 3rem -20px 0;
}

.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cccccc;
  margin-bottom: 0.6rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px auto;
  max-width: 700px;
  padding: 0 16px;
  box-sizing: border-box;
}

.gallery-item {
  position: relative;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
}
.photo-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background: transparent;
  display: block;
  vertical-align: top;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 1 !important;
  filter: none !important;
}
.photo-tag {
  position: static;
  display: block;
  width: 100%;
  background: #1a1a1a;
  color: #cccccc;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  box-sizing: border-box;
  margin: 0;
}

.back-link-wrap { margin-top: 40px; }

.portfolio-link {
  position: relative;
  z-index: 10;
  display: inline-block;
  margin-top: 28px;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  border-bottom: 2px solid #ffffff !important;
  padding-bottom: 4px;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer;
}
.portfolio-link:hover { border-bottom-color: rgba(255,255,255,0.6) !important; }

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: #0a0a0a;
  color: #cccccc;
  padding: 3.5rem 2rem 0;
}
.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ft-brand .ft-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: .4rem;
}
.ft-brand .ft-logo span { color: #cccccc; }
.ft-brand p { color: #cccccc; font-size: .85rem; }
.ft-contact { text-align: right; }
.ft-phone {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.ft-phone a { color: #ffffff; text-decoration: none; }
.ft-phone a:hover { color: #888888; }
.ft-insta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #cccccc !important;
  text-decoration: none;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border: 1px solid #222222;
  transition: all .3s;
}
.ft-insta a:hover { color: #ffffff; border-color: #ffffff; }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 0;
  text-align: center;
  font-size: .78rem;
  color: #cccccc;
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ft-brand {
    text-align: center;
    width: 100%;
  }
  .ft-contact {
    text-align: center;
    width: 100%;
  }
  .ft-phone {
    justify-content: center;
    font-size: 1.5rem;
  }
  .ft-insta {
    display: flex;
    justify-content: center;
  }
  .ft-insta a {
    justify-content: center;
  }
  .footer-bottom {
    text-align: center;
  }
}

.floating-back-btn {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 2000;
  background: rgba(26,26,26,0.95);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}
.floating-back-btn:visited {
  color: #ffffff !important;
}
.floating-back-btn:hover {
  border-color: rgba(255,255,255,0.7);
}

/* ── Strengths section ── */
.strength-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  transition: none;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.strength-card:hover {
  border-color: rgba(255,255,255,0.08);
}
.strength-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.strength-desc {
  font-size: 0.92rem;
  color: #cccccc;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
