*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #0e5a4a;
  --background: #faf7f0;
  --ink: #2b2b2b;
  --accent: #c8a96a;
  --border: #e9e2d6;
  --shadow: 0 16px 30px rgba(24, 24, 24, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Hiragino Sans", "Noto Sans JP", "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.brand-mark {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  color: #5c5c5c;
}

.header-nav {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.header-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.header-nav a:hover {
  background: rgba(14, 90, 74, 0.12);
}

/* ===== COMMON ===== */
.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.15;
}

.hand {
  font-family: "Caveat", "Comic Sans MS", cursive;
  color: var(--accent);
  font-size: 1.1em;
}

section {
  padding: 72px 0;
}

.section-lead {
  margin: 0 0 32px;
  color: #555;
}

.hide-sp {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(14, 90, 74, 0.2);
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(14, 90, 74, 0.16);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  padding: 64px 0 80px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-text {
  display: grid;
  gap: 24px;
}

.subhead {
  font-size: 1.05rem;
  color: #444;
  margin: 18px 0 24px;
}

.hero-meta .subhead {
  margin-top: 0;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-screenshot {
  max-width: 220px;
  margin: 0 auto;
}

.hero-screenshot img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.philosophy-inner {
  max-width: 680px;
}

.philosophy h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 24px;
}

.philosophy .hand {
  color: var(--accent);
}

.philosophy p {
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.92;
  margin: 0 0 16px;
}

.philosophy p:last-child {
  margin-bottom: 0;
}

/* ===== PERSONA ===== */
.persona {
  background: #fffdf8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.persona h2 {
  text-align: center;
  margin-bottom: 32px;
}

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

.persona-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(14, 90, 74, 0.06);
}

.persona-icon {
  font-size: 2rem;
  margin: 0 0 10px;
}

.persona-card > p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== SCREENSHOTS CAROUSEL ===== */
.screenshots-section {
  padding-bottom: 56px;
}

.screenshots-section h2 {
  margin-bottom: 32px;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 max(16px, calc((100vw - 1100px) / 2 + 4%));
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 180px;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide img:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(24, 24, 24, 0.2);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ===== FREE FEATURES ===== */
.free-features {
  background: #fffdf8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 14px 24px rgba(14, 90, 74, 0.08);
}

.feature-num {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: #555;
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* ===== PREMIUM ===== */
.premium {
  padding: 72px 0;
}

.premium-grid {
  display: grid;
  gap: 18px;
}

.premium-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 10px 20px rgba(14, 90, 74, 0.06);
}

.premium-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.premium-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.premium-card li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.premium-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.premium-card li strong {
  color: var(--primary);
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-inner {
  max-width: 600px;
}

.cta-lead {
  font-size: 1rem;
  color: #666;
  margin: 0 0 12px;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 28px;
}

/* ===== COMPANY ===== */
.company {
  padding-top: 60px;
}

.company-grid {
  display: grid;
  gap: 18px;
}

.company-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.company-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: #f7f1e6;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  margin: 0 0 6px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-badges a {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.footer-badges a:hover {
  opacity: 0.8;
}

.footer-badges img,
.footer-badges svg {
  display: block;
  border-radius: 0;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .hide-sp {
    display: inline;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-screenshot {
    max-width: 260px;
  }

  .persona-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-slide {
    width: 200px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-links {
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding-top: 90px;
  }

  .carousel-slide {
    width: 220px;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ----- お問い合わせページ ----- */
.page-hero {
  padding: 56px 0 32px;
}

.page-hero .eyebrow {
  margin-bottom: 6px;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero .section-lead {
  margin-bottom: 0;
  max-width: 42em;
  line-height: 1.75;
}

.contact-section {
  padding: 32px 0 64px;
}

.contact-grid {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 14px 24px rgba(14, 90, 74, 0.08);
}

.contact-card h2 {
  font-size: 1.15rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.contact-form .form-row {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 5px;
}

.contact-form .required {
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .form-actions {
  margin-top: 20px;
  margin-bottom: 0;
}

.contact-form .form-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: #555;
  padding: 14px 16px;
  background: #fffaf2;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555;
  margin-top: 12px;
  margin-bottom: 2px;
}

.contact-dl dt:first-of-type {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-info-card a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-info-card a:hover {
  color: #0b4a99;
}

.contact-hours {
  margin-top: 18px;
  font-size: 0.875rem;
  color: #555;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .contact-section .container {
    max-width: min(900px, 92%);
  }

  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 32px;
  }

  .contact-card {
    padding: 28px;
  }

  .contact-form-card {
    min-width: 0;
  }
}

/* ----- 利用規約・プライバシーポリシーページ ----- */
.legal-section {
  padding: 32px 0 64px;
}

.legal-content {
  max-width: 42em;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-updated {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 28px;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content ol,
.legal-content ul {
  margin: 8px 0 12px;
  padding-left: 1.5em;
}

.legal-content li {
  margin-bottom: 4px;
}

.legal-content a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #0b4a99;
}

.legal-contact {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 12px;
}

.legal-contact li {
  margin-bottom: 4px;
}

.legal-end {
  margin-top: 32px;
  text-align: right;
  font-weight: 600;
}

/* ----- 特定商取引法テーブル ----- */
.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.tokushoho-table th,
.tokushoho-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.tokushoho-table th {
  width: 200px;
  font-weight: 600;
  color: var(--ink);
  background: #fffdf8;
  white-space: nowrap;
}

.tokushoho-table td p {
  margin: 0 0 8px;
}

.tokushoho-table td p:last-child {
  margin-bottom: 0;
}

.tokushoho-table a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tokushoho-table a:hover {
  color: #0b4a99;
}

@media (max-width: 767px) {
  .tokushoho-table,
  .tokushoho-table tbody,
  .tokushoho-table tr,
  .tokushoho-table th,
  .tokushoho-table td {
    display: block;
    width: 100%;
  }

  .tokushoho-table th {
    padding-bottom: 4px;
    border-bottom: none;
    background: transparent;
    font-size: 0.8125rem;
    color: var(--primary);
  }

  .tokushoho-table td {
    padding-top: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
}
