/* ========================================
   おゆわり ポートフォリオLP
   ======================================== */

:root {
  --black: #111;
  --white: #fff;
  --gray: #555;
  --gray-light: #999;
  --bg: #fff;
  --bg-alt: #f8f8f8;
  --border: #e5e5e5;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--black);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--black);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 160px 0 120px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 44px;
  max-width: 460px;
}

.hero-photo {
  flex-shrink: 0;
  width: 400px;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 18px 52px;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.7;
}

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-line {
  background: #06C755;
  color: #fff;
}

.btn-line-dark {
  background: #06C755;
  color: #fff;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-cta .cta-buttons {
  justify-content: center;
}

/* ---- Sections ---- */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 72px;
}

.section-cta {
  text-align: center;
  margin-top: 72px;
}

/* ---- Service ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.9;
}

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

.work-card {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.work-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.work-thumb {
  width: 140px;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.work-icon {
  font-size: 2rem;
  line-height: 1;
}

.work-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gray-light);
  text-transform: uppercase;
}

/* Works thumbnail colors */
.work-thumb[data-type="app"]    { background: #f0ecff; color: #6D28D9; }
.work-thumb[data-type="design"] { background: #fef7e0; color: #B45309; }
.work-thumb[data-type="tool"]   { background: #e8f5e9; color: #2E7D32; }
.work-thumb[data-type="gas"]    { background: #e0f2fe; color: #0369A1; }
.work-thumb[data-type="system"] { background: #fce8e8; color: #C62828; }
.work-thumb[data-type="game"]   { background: #fef3e0; color: #E65100; }
.work-thumb[data-type="web"]    { background: #111; color: #fff; }

.work-body {
  padding: 28px 24px;
  flex: 1;
}

.work-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.work-body p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.8;
}

.work-note {
  font-size: 0.72rem;
  color: var(--gray-light);
  margin-top: 8px;
  display: inline-block;
}

.work-private {
  cursor: default;
}

/* ---- Profile ---- */
.profile-inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.profile-text {
  flex: 1;
}

.profile-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 28px;
}

.profile-text p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 16px;
}

.profile-text p:last-of-type {
  margin-bottom: 0;
}

.profile-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  flex-shrink: 0;
  width: 320px;
}

.number-item {
  text-align: center;
}

.number-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.number-label {
  font-size: 0.72rem;
  color: var(--gray-light);
  line-height: 1.5;
}

/* ---- Contact ---- */
.contact-inner {
  text-align: center;
  padding: 0;
}

.contact-inner h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-inner p {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 44px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--gray-light);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

.footer small {
  font-size: 0.72rem;
  color: var(--gray-light);
}

/* ---- Scroll Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 8px 0;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    width: 240px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section-cta {
    margin-top: 48px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    flex-direction: column;
  }

  .work-thumb {
    width: 100%;
    height: 72px;
  }

  .profile-inner {
    flex-direction: column;
    gap: 40px;
  }

  .profile-numbers {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}
