@charset "utf-8";

/* ============================================
   Global Site Styles
   /global 配下の英語ページ専用
   既存の日本語サイトには影響しない
   ============================================ */

/* --- Reset & Base --- */
.global-site {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Global a11y: focus visible outline --- */
.global-site :focus-visible {
  outline: 3px solid #004366;
  outline-offset: 2px;
}
.global-site a {
  color: #004366;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.global-site a:hover {
  color: #002a40;
  text-decoration-thickness: 2px;
}

/* --- Skip Link (a11y) --- */
.global-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 12px 24px;
  background: #004366;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.global-skip-link:focus {
  top: 0;
}

/* ============================================
   Header
   ============================================ */
.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.global-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.global-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.global-header__logo img {
  height: 32px;
  width: auto;
  /* Logo is white-on-transparent; invert for light header */
  filter: brightness(0);
}

.global-header__nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-header__nav-link {
  display: block;
  padding: 8px 16px;
  color: #111;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}
.global-header__nav-link:hover,
.global-header__nav-link:focus {
  background: #f0f4f7;
  color: #004366;
  text-decoration: none;
}
.global-header__nav-link.is-active {
  color: #004366;
  background: #e8f0f5;
  border-bottom: 2px solid #004366;
}

/* Mobile menu button */
.global-header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.global-header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}
.global-header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.global-header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.global-header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Main Content
   ============================================ */
#global-container {
  min-height: 100vh;
}

#global-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Sections --- */
.global-section {
  padding: 80px 0;
}
.global-section--gray {
  background: #f7f7f7;
}
.global-section--dark {
  background: #1a1a1a;
  color: #fff;
}

.global-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.global-section__title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.global-section__subtitle {
  font-size: 21px;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin: 0 0 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Full-width sections (break out of #global-main max-width) --- */
.global-section--full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Two-column layout --- */
.global-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.global-two-col--reverse {
  direction: rtl;
}
.global-two-col--reverse > * {
  direction: ltr;
}
.global-two-col__image {
  width: 100%;
  border-radius: 12px;
}
.global-two-col__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* --- Hero --- */
.global-hero {
  position: relative;
  padding: 100px 0 72px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}
.global-hero__image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.global-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}
.global-hero__tagline {
  font-size: 26px;
  color: #222;
  margin: 0 0 32px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.global-hero__title {
  font-size: 40px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}
.global-hero__description {
  font-size: 20px;
  max-width: 720px;
  margin: 0 auto 32px;
  color: #333;
  line-height: 1.8;
}

/* --- Buttons --- */
.global-btn {
  display: inline-block;
  padding: 18px 48px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.global-btn:hover {
  text-decoration: none;
}
.global-btn:active {
  transform: scale(0.97);
}
.global-btn--primary {
  background: #e85d26;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 38, 0.25);
}
.global-btn--primary:hover,
.global-btn--primary:focus {
  background: #d04e1c;
  box-shadow: 0 6px 20px rgba(232, 93, 38, 0.35);
  text-decoration: none;
}
.global-btn--outline {
  background: transparent;
  color: #004366;
  border: 2px solid #004366;
}
.global-btn--outline:hover,
.global-btn--outline:focus {
  background: #004366;
  color: #fff;
}

/* --- YouTube Embed --- */
.global-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 8px;
}
.global-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Business Details Table --- */
.global-details-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
}
.global-details-table th,
.global-details-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 17px;
  vertical-align: top;
}
.global-details-table th {
  font-weight: 600;
  color: #004366;
  width: 35%;
  white-space: nowrap;
}

/* --- Steps --- */
.global-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.global-steps__item {
  padding: 32px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}
.global-steps__item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.global-steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #004366;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.global-steps__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.global-steps__text {
  font-size: 18px;
  color: #333;
}

/* --- FAQ Link Section --- */
.global-faq-link {
  text-align: center;
  padding: 48px 0;
}

/* --- Distributors --- */
.global-distributors {
  text-align: center;
}
.global-distributors__region {
  margin-bottom: 24px;
}
.global-distributors__country {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}
.global-distributors__name a {
  color: #004366;
  text-decoration: underline;
  font-size: 18px;
}

/* --- User Guide Links --- */
.global-guide-list {
  max-width: 720px;
  margin: 0 auto;
}
.global-guide-list h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #004366;
}
.global-guide-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.global-guide-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e8eef2;
}
.global-guide-list li a {
  color: #004366;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}
.global-guide-list li a:hover {
  text-decoration: underline;
  padding-left: 4px;
}
.global-guide-list ol {
  padding-left: 20px;
  margin: 0 0 24px;
}
.global-guide-list ol li {
  padding: 6px 0;
  border-bottom: none;
  list-style: decimal;
}

/* --- News List --- */
.global-news-list {
  max-width: 800px;
  margin: 0 auto;
}
.global-news-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}
.global-news-item:hover {
  background: #f9f9f9;
}
.global-news-item__date {
  color: #666;
  font-size: 16px;
  white-space: nowrap;
  min-width: 110px;
}
.global-news-item__title {
  font-size: 18px;
  font-weight: 500;
}

/* ============================================
   WordPress Block Compatibility
   標準ブロックに変換されたコンテンツ用
   既存クラスとの後方互換性を維持
   ============================================ */

/* --- Block resets (within .global-site scope only) --- */
.global-site .is-layout-flow > * {
  margin-left: unset;
  margin-right: unset;
}
.global-site .wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.global-site .wp-block-group__inner-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

.global-site .wp-block-heading {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  max-width: none;
}

.global-site .wp-block-image {
  margin-top: 0;
  margin-bottom: 0;
}

.global-site .wp-block-image img {
  height: auto;
}

/* --- Sections via wp-block-group --- */
.global-site .wp-block-group.global-section {
  padding: 80px 0;
}

.global-site .wp-block-group.global-section--gray {
  background: #f7f7f7;
}

.global-site .wp-block-group.global-section--dark {
  background: #1a1a1a;
  color: #fff;
}
.global-site .wp-block-group.global-section--dark p,
.global-site .wp-block-group.global-section--dark h2,
.global-site .wp-block-group.global-section--dark h3,
.global-site .wp-block-group.global-section--dark .wp-block-heading {
  color: #fff;
}
.global-site .wp-block-group.global-section--dark a {
  color: #fff;
}

.global-site .wp-block-group.global-section--full {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 24px;
  padding-right: 24px;
}

.global-site .wp-block-group.global-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section titles via wp-block-heading */
.global-site .wp-block-heading.global-section__title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 28px;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.global-site .wp-block-heading.global-section__subtitle,
.global-site p.global-section__subtitle {
  font-size: 21px;
  font-weight: 400;
  color: #333;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}

/* --- Two-column layout via wp-block-columns --- */
.global-site .wp-block-columns.global-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  flex-wrap: nowrap;
}

.global-site .wp-block-columns.global-two-col--reverse {
  direction: rtl;
}

.global-site .wp-block-columns.global-two-col--reverse > * {
  direction: ltr;
}

.global-site .wp-block-columns.global-two-col .wp-block-column {
  flex-basis: auto !important;
  flex-grow: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.global-site .wp-block-columns.global-two-col .wp-block-column.global-two-col__image {
  display: block;
}

/* --- YouTube embed via wp-block-embed --- */
.global-site .wp-block-embed.is-provider-youtube,
.global-site .wp-block-embed.global-video {
  max-width: 800px;
  margin: 0 auto;
}

.global-site .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper,
.global-site .wp-block-embed.global-video .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.global-site .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper iframe,
.global-site .wp-block-embed.global-video .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Buttons via wp-block-buttons / wp-block-button --- */
.global-site .wp-block-buttons {
  margin: 0;
  gap: 16px;
}

.global-site .wp-block-button .wp-block-button__link {
  display: inline-block;
  padding: 18px 48px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  text-align: center;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.global-site .wp-block-button .wp-block-button__link:active {
  transform: scale(0.98);
}

.global-site .wp-block-button .wp-block-button__link.global-btn--primary,
.global-site .wp-block-button.global-btn--primary .wp-block-button__link {
  background: #e85d26;
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 38, 0.25);
}

.global-site .wp-block-button .wp-block-button__link.global-btn--primary:hover,
.global-site .wp-block-button .wp-block-button__link.global-btn--primary:focus,
.global-site .wp-block-button.global-btn--primary .wp-block-button__link:hover,
.global-site .wp-block-button.global-btn--primary .wp-block-button__link:focus {
  background: #d04e1c;
  box-shadow: 0 6px 20px rgba(232, 93, 38, 0.35);
  text-decoration: none;
}

.global-site .wp-block-button .wp-block-button__link.global-btn--outline,
.global-site .wp-block-button.global-btn--outline .wp-block-button__link {
  background: transparent;
  color: #004366;
  border: 2px solid #004366;
}

.global-site .wp-block-button .wp-block-button__link.global-btn--outline:hover,
.global-site .wp-block-button .wp-block-button__link.global-btn--outline:focus,
.global-site .wp-block-button.global-btn--outline .wp-block-button__link:hover,
.global-site .wp-block-button.global-btn--outline .wp-block-button__link:focus {
  background: #004366;
  color: #fff;
}

/* --- Table via wp-block-table --- */
.global-site .wp-block-table.global-details-table {
  margin: 0 auto;
  max-width: 720px;
}

.global-site .wp-block-table.global-details-table table {
  width: 100%;
  border-collapse: collapse;
}

.global-site .wp-block-table.global-details-table th,
.global-site .wp-block-table.global-details-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 17px;
  vertical-align: top;
}

.global-site .wp-block-table.global-details-table th {
  font-weight: 600;
  color: #004366;
  width: 35%;
  white-space: nowrap;
}

/* --- List via wp-block-list --- */
.global-site .wp-block-list {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 0;
}

.global-site .wp-block-list li {
  margin-bottom: 8px;
}

/* --- Subpage headings (User Guide, FAQ, Important etc.) --- */
.global-site .global-section h2.wp-block-heading:not(.global-section__title) {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #004366;
  line-height: 1.4;
}
.global-site .global-section h3.wp-block-heading {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin: 40px 0 16px;
  line-height: 1.4;
}
.global-site .global-section h2.wp-block-heading:not(.global-section__title):first-of-type {
  margin-top: 32px;
}

/* --- FAQ Q&A styling --- */
.global-site .global-section h3.wp-block-heading:has(+ p) {
  margin-bottom: 8px;
}
.global-site .global-section h3.wp-block-heading + p {
  margin-top: 0;
}

/* --- Paragraph spacing --- */
.global-site .global-section p:not(.global-section__subtitle) {
  margin: 0 0 20px;
  line-height: 1.85;
}
.global-site .global-section .wp-block-list {
  margin-bottom: 20px;
}
.global-site .global-section .wp-block-list li {
  margin-bottom: 10px;
  line-height: 1.75;
}

/* --- Company page: tighter spacing --- */
.global-site .page-company .global-section {
  padding: 48px 0;
}
.global-site .page-company .global-hero {
  padding: 80px 0 40px;
}
.global-site .page-company .wp-block-group.global-section {
  padding: 48px 0;
}

/* --- Table of Contents (User Guide subpages) --- */
.global-toc {
  background: #f8fafb;
  border: 1px solid #d8e4ec;
  border-left: 4px solid #004366;
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 32px 0 48px;
  max-width: 720px;
}
.global-toc__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}
.global-toc__list {
  margin: 0;
  padding-left: 20px;
}
.global-toc__list ol {
  padding-left: 20px;
  margin: 4px 0;
}
.global-toc__list li {
  padding: 4px 0;
  font-size: 18px;
  line-height: 1.6;
}
.global-toc__list a {
  color: #004366;
  text-decoration: none;
  font-weight: 500;
}
.global-toc__list a:hover {
  text-decoration: underline;
}

/* --- Contact Form (Google Form embed) --- */
.global-contact-form {
  max-width: 720px;
  margin: 32px auto 0;
}
.global-contact-form iframe {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: none;
  border-radius: 8px;
}

/* ============================================
   Footer
   ============================================ */
.global-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 64px 0 32px;
}

.global-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.global-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.global-footer__nav-title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 16px;
}

.global-footer__nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-footer__nav-group li {
  margin-bottom: 8px;
}
.global-footer__nav-group a {
  color: #bbb;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}
.global-footer__nav-group a:hover {
  color: #fff;
}

.global-footer__social-list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.global-footer__social-list a {
  color: #aaa;
  text-decoration: none;
  font-size: 15px;
}
.global-footer__social-list a:hover {
  color: #fff;
}
.global-footer__social-list img {
  display: none;
}

.global-footer__bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.global-footer__bottom-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-footer__bottom-nav a {
  color: #999;
  text-decoration: none;
  font-size: 16px;
}
.global-footer__bottom-nav a:hover {
  color: #fff;
}

.global-footer__copyright {
  color: #888;
  font-size: 16px;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .global-header__menu-btn {
    display: flex;
  }
  .global-header__nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
  }
  .global-header__nav.is-open {
    display: block;
  }
  .global-header__nav-list {
    flex-direction: column;
    gap: 0;
  }
  .global-header__nav-link {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    border-radius: 0;
  }
  .global-header__nav-link.is-active {
    border-bottom: 1px solid #004366;
  }

  /* Content */
  .global-hero {
    padding: 80px 0 48px;
  }
  .global-hero__title {
    font-size: 30px;
  }
  .global-hero__description {
    font-size: 18px;
  }

  .global-section {
    padding: 48px 0;
  }
  .global-section__title {
    font-size: 28px;
  }

  .global-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .global-two-col--reverse {
    direction: ltr;
  }

  .global-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .global-details-table th {
    width: auto;
    display: block;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .global-details-table td {
    display: block;
    padding-top: 0;
  }

  /* WordPress Block Compatibility */
  .global-site .wp-block-group.global-section {
    padding: 48px 0;
  }
  .global-site .wp-block-heading.global-section__title {
    font-size: 28px;
  }
  .global-site .wp-block-columns.global-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .global-site .wp-block-columns.global-two-col--reverse {
    direction: ltr;
  }
  .global-site .wp-block-table.global-details-table th {
    width: auto;
    display: block;
    padding-bottom: 4px;
    border-bottom: none;
  }
  .global-site .wp-block-table.global-details-table td {
    display: block;
    padding-top: 0;
  }

  /* Footer */
  .global-footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .global-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
