@charset "UTF-8";

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

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

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.75;
  color: #2c3e50;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #1e3a8a;
  text-decoration: none;
}

ul, ol {
  padding-left: 1.5rem;
}

/* =========================================
   Layout Container (Max 1000px)
   ========================================= */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

/* =========================================
   Header & Navigation (Common)
   ========================================= */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 16px 0;
}

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

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.site-title a {
  color: #0f172a;
  text-decoration: none;
}

.site-title a:hover {
  color: #1d4ed8;
}

.site-tagline {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.global-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  text-decoration: none;
}

.global-nav a:hover {
  background-color: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

/* =========================================
   Main Content Area
   ========================================= */
.site-main {
  flex: 1;
  padding: 32px 0 48px;
}

/* Hero / Intro Section */
.intro-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #1d4ed8;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.intro-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.intro-text {
  font-size: 0.95rem;
  color: #334155;
}

.intro-text p + p {
  margin-top: 10px;
}

/* Section Headings */
.section-block {
  margin-bottom: 44px;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #1d4ed8;
}

.sub-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #1d4ed8;
}

/* =========================================
   Blog Cards (3 Columns Horizontal on PC)
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: space-between;
  gap: 20px 10px;
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 320px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  border-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.card-thumb-link {
  display: block;
  width: 320px;
  background-color: #e2e8f0;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.card-thumb-link img {
  width: 320px;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.card-thumb-link:hover img {
  opacity: 0.9;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.card-title a {
  color: #1d4ed8;
  text-decoration: underline;
}

.card-title a:hover {
  color: #1e3a8a;
  text-decoration: none;
}

.card-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.card-action {
  margin-top: auto;
}

/* =========================================
   Buttons & Clear Link Styles
   ========================================= */
.btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border: 2px solid #1d4ed8;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  text-decoration: none;
}

.btn-large {
  width: auto;
  min-width: 280px;
  padding: 14px 28px;
  font-size: 1rem;
}

/* =========================================
   Content Box (SEO / Portal Guide Articles)
   ========================================= */
.content-panel {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 28px;
}

.content-panel p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #334155;
}

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

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: #475569;
}

.process-flow-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
}

.process-flow-table th,
.process-flow-table td {
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.process-flow-table th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  width: 28%;
}

.process-flow-table td {
  background-color: #ffffff;
  color: #334155;
}

/* =========================================
   Subpage Styles (Contact, Privacy, Disclaimer, Operator)
   ========================================= */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 10px;
  border-bottom: 2px solid #1d4ed8;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #1d4ed8;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.info-table th,
.info-table td {
  border: 1px solid #cbd5e1;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.95rem;
}

.info-table th {
  background-color: #f1f5f9;
  width: 30%;
  font-weight: 700;
  color: #0f172a;
}

.notice-box {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #475569;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: #334155;
}

.contact-action-area {
  text-align: center;
  padding: 24px 0 12px;
}

/* =========================================
   Footer (Common)
   ========================================= */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 32px 0 24px;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-nav {
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: underline;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-disclaimer {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.copyright {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* =========================================
   Responsive Queries (Tablet & Smartphone)
   ========================================= */
@media (max-width: 1000px) {
  .container {
    padding: 0 16px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 320px));
    justify-content: center;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .global-nav {
    width: 100%;
  }

  .global-nav ul {
    gap: 6px;
  }

  .global-nav a {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

  .intro-box,
  .content-panel {
    padding: 20px 16px;
  }

  .intro-title,
  .page-title {
    font-size: 1.25rem;
  }

  .section-heading {
    font-size: 1.2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .process-flow-table th,
  .process-flow-table td,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .process-flow-table th,
  .info-table th {
    border-bottom: none;
  }

  .btn-large {
    width: 100%;
    min-width: 0;
  }
}
