/* ==========================================================
   オフィス井上友里 公式サイト スタイルシート
   ========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-text: #222222;
  --color-text-sub: #555555;
  --color-border: #e3e3e0;
  --color-accent: #2f2f2f;

  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Segoe UI", Roboto, sans-serif;

  --max-width: 1080px;
  --max-width-narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ==========================================================
   Header
   ========================================================== */

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.header__nav-list a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
  transition: color 0.2s ease;
}

.header__nav-list a:hover {
  color: var(--color-text);
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  padding: 120px 24px;
  text-align: center;
}

.hero__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.hero__text {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2.1;
}

/* ==========================================================
   Section common
   ========================================================== */

.section {
  padding: 100px 24px;
}

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

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--max-width-narrow);
}

.section__label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-text-sub);
  text-align: center;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

/* ==========================================================
   Service
   ========================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  padding: 32px 28px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}

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

.service-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.service-card__text {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.9;
}

/* ==========================================================
   About / info table
   ========================================================== */

.info-table {
  border-top: 1px solid var(--color-border);
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table th,
.info-table td {
  padding: 20px 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  color: var(--color-text-sub);
  font-weight: 600;
  white-space: nowrap;
}

.info-table--compact th,
.info-table--compact td {
  padding: 16px;
  font-size: 14px;
}

/* ==========================================================
   Contact
   ========================================================== */

#contact .section__inner {
  max-width: var(--max-width-narrow);
  text-align: center;
}

.contact__text {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 28px;
}

.contact__email {
  font-size: 18px;
}

.email-link {
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
  word-break: break-all;
  transition: opacity 0.2s ease;
}

.email-link:hover {
  opacity: 0.6;
}

/* ==========================================================
   Privacy Policy
   ========================================================== */

.policy p {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 22px;
}

.policy .info-table {
  margin-top: 32px;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 0.05em;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (min-width: 769px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header__nav.is-open {
    max-height: 320px;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
  }

  .header__nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-list li:last-child {
    border-bottom: none;
  }

  .header__nav-list a {
    display: block;
    padding: 16px 0;
    font-size: 14px;
  }

  .hero {
    padding: 80px 20px;
  }

  .section {
    padding: 72px 20px;
  }

  .info-table th {
    width: 110px;
    padding: 16px 8px;
    font-size: 13px;
  }

  .info-table td {
    padding: 16px 8px;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .info-table td {
    padding-top: 0;
  }
}
