/* ============================
   style.css — 新川ソフト
   ============================ */

/* === CSS Variables === */
:root {
  --bg: #F0FAFA;
  --bg-white: #FFFFFF;
  --color-main: #82deff;
  --color-sub: #74c7e5;
  --color-accent: #FF6E6E;
  --color-text: #2A2A2A;
  --color-text-muted: #6B7B7A;
  --font: 'Noto Sans JP', sans-serif;
  --radius-card: 1.25rem;
  --radius-full: 9999px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.25s ease;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-white);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* === Layout === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header / Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--color-main);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

/* === Hamburger (mobile only) === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Section Common === */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  /* 背景色はフォールバック。画像を置く場合は background-image を追加してください */
  background-color: var(--color-main);
  /* background-image: url('/hero-bg.jpg'); */
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  width: 100%;
}

.hero-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(42, 42, 42, 0.6);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}

.hero-scroll-btn {
  margin-bottom: 3rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(42, 42, 42, 0.25);
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

/* CSS で描いたシェブロン（下向き ∨） */
.hero-scroll-btn::after {
  content: '';
  display: block;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  border-radius: 1px;
  transform: rotate(45deg) translate(-2px, -2px);
}

.hero-scroll-btn:hover {
  background: rgba(42, 42, 42, 0.08);
  border-color: rgba(42, 42, 42, 0.4);
  transform: translateY(3px);
}

/* === About (新川ソフトについて) === */
.about {
  background-color: var(--bg-white);
}

.about-inner {
  text-align: center;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 2.1;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* === Works (つくったもの) === */
.works {
  background-color: var(--bg);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.works-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  box-shadow: var(--shadow-card);
}

.works-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #D8D8D8;
  flex-shrink: 0;
}

.works-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.works-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.works-tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background-color: var(--color-sub);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* === Services (できること) === */
.services {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 2px solid var(--color-main);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  background-color: var(--bg-white);
  transition: background var(--transition);
}

.service-card:hover {
  background-color: #F5FFFD;
}

.service-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* === Contact (お問い合わせ) === */
.contact {
  background-color: var(--color-sub);
  padding: 6rem 0;
}

.contact-inner {
  text-align: center;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.contact-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-mail-img {
  margin: 0 auto;
  max-height: 40px;
}

/* === Footer === */
.site-footer {
  background-color: var(--color-text);
  padding: 1.75rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-privacy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-privacy:hover {
  color: #FFFFFF;
}

/* === Privacy Page === */
.page-header {
  padding: calc(var(--header-height) + 4rem) 1.5rem 2.5rem;
  text-align: center;
  background-color: var(--bg-white);
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.page-header p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.page-content section {
  margin-bottom: 3rem;
}

.page-content h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-main);
  color: var(--color-text);
}

.page-content p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
}

.page-content p + p {
  margin-top: 0.75rem;
}

.page-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.page-content li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.85;
  margin-bottom: 0.35rem;
}

/* 事業者情報テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.info-table th {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  width: 7rem;
}

.info-table td {
  color: var(--color-text-muted);
}

.info-table img {
  max-height: 28px;
  display: inline-block;
}

.inline-img {
  display: inline-block;
  max-height: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-sub);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
  transition: opacity var(--transition);
}

.back-link:hover {
  opacity: 0.7;
}

/* === Responsive: Mobile (〜767px) === */
@media (max-width: 767px) {
  /* ハンバーガー表示 */
  .hamburger {
    display: flex;
  }

  /* モバイルナビドロワー */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg-white);
    border-bottom: 2px solid var(--color-main);
    padding: 0.5rem 0 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* セクション余白縮小 */
  .section {
    padding: 4rem 0;
  }

  /* カード縦1列 */
  .works-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* コンタクト */
  .contact {
    padding: 4rem 0;
  }

  /* テーブルレスポンシブ */
  .info-table th {
    width: 5.5rem;
  }
}
