/* ryousyusyo.com - Receipt Organization Service */
/* Clean Japanese B2B aesthetic */

:root {
  --navy: #1a2744;
  --navy-light: #2a3f6b;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --gold: #d4a843;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #ffffff;
  --bg-grey: #f8f9fa;
  --bg-dark: #f0f2f5;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-lg: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

h1 { font-size: 1.75rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* ========== LAYOUT ========== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content {
  display: flex;
  gap: 40px;
  padding: 40px 0 60px;
}

.main-col {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-pale);
  color: var(--blue);
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-price {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 32px;
  border-radius: var(--radius-lg);
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-price .price-num {
  font-size: 2.2rem;
  color: var(--gold);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0;
}

.page-hero p {
  opacity: 0.85;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-lighter);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ========== SECTION ========== */
.section {
  padding: 50px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  margin-top: 8px;
}

/* ========== PRICING TABLE ========== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table thead {
  background: var(--navy);
  color: var(--white);
}

.pricing-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.pricing-table tbody tr:hover {
  background: var(--blue-pale);
}

.pricing-table .price-cell {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.pricing-table .highlight-row {
  background: var(--blue-pale);
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 30px 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.card h3 {
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ========== STEP FLOW ========== */
.step-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -14px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--blue);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.step-item:last-child::after {
  display: none;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: 100%;
}

.faq-category {
  margin-bottom: 30px;
}

.faq-category-title {
  font-size: 1.1rem;
  color: var(--navy);
  padding: 10px 16px;
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  margin-bottom: 12px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  text-align: left;
  padding: 16px 48px 16px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.6;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-grey);
}

.faq-question::before {
  content: "Q.";
  color: var(--blue);
  font-weight: 700;
  margin-right: 8px;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px 44px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer::before {
  content: "A.";
  color: var(--gold);
  font-weight: 700;
  margin-right: 8px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========== SIDEBAR ========== */
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.sidebar-box h3 {
  font-size: 0.95rem;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 14px;
}

.sidebar-box p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box ul li {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-box ul li:last-child {
  border-bottom: none;
}

.sidebar-box ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text);
}

.sidebar-box ul li a:hover {
  color: var(--blue);
}

.sidebar-company {
  text-align: center;
}

.sidebar-company .company-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  max-width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #dc2626;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

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

.btn-white:hover {
  background: var(--bg-grey);
  color: var(--navy);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 1.05rem;
}

/* ========== BLOG LIST ========== */
.blog-list {
  list-style: none;
}

.blog-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.blog-item:first-child {
  padding-top: 0;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 4px;
}

.blog-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.blog-item h3 a {
  color: var(--navy);
}

.blog-item h3 a:hover {
  color: var(--blue);
}

.blog-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ========== COMPANY TABLE ========== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.company-table th {
  background: var(--bg-grey);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  width: 30%;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.company-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

/* ========== FEATURE LIST ========== */
.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 50%;
}

.feature-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
}

/* ========== NOTES / INFO BOX ========== */
.info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 0.9rem;
}

.info-box p {
  margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .page-content {
    flex-direction: column;
    padding: 24px 0 40px;
  }

  .sidebar {
    width: 100%;
  }

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

  .step-flow {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .step-item::after {
    display: none;
  }

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

@media (max-width: 640px) {
  html { font-size: 15px; }

  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 8px 16px;
  }

  .main-nav a {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
  }

  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero-price { font-size: 1rem; padding: 10px 20px; }
  .hero-price .price-num { font-size: 1.8rem; }

  .step-flow {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.25rem; }

  .pricing-table {
    display: block;
    overflow-x: auto;
  }

  .btn-lg {
    width: 100%;
    display: block;
  }

  /* Mobile stacked pricing cards */
  .pricing-cards-mobile .pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
  }

  .pricing-cards-mobile .pricing-card .card-label {
    font-size: 0.85rem;
    color: var(--text-light);
  }

  .pricing-cards-mobile .pricing-card .card-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
  }
}
