/* ==============================================
   柊オフィス — Modern Minimal Redesign
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=BIZ+UDGothic:wght@400;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Primary — deep sophisticated green */
  --primary: #2c6e5a;
  --primary-dark: #1e4d3e;
  --primary-light: #3d8b6f;
  --primary-surface: #f4f9f7;
  --primary-surface-hover: #eaf3ef;

  /* Neutrals — warm grey palette */
  --grey-950: #1a1d1c;
  --grey-800: #33403b;
  --grey-600: #5f6e68;
  --grey-400: #94a39c;
  --grey-200: #d4ddd8;
  --grey-100: #e8edea;
  --grey-50: #f5f7f6;

  /* Backgrounds */
  --bg: #fafbfa;
  --bg-white: #ffffff;
  --bg-elevated: #ffffff;

  /* Text */
  --text: #1a1d1c;
  --text-secondary: #5f6e68;
  --text-tertiary: #94a39c;

  /* Borders & Shadows */
  --border: #e8edea;
  --border-hover: #d4ddd8;
  --shadow-xs: 0 1px 2px rgba(26,29,28,0.04);
  --shadow-sm: 0 1px 3px rgba(26,29,28,0.06), 0 1px 2px rgba(26,29,28,0.04);
  --shadow-md: 0 4px 6px -1px rgba(26,29,28,0.06), 0 2px 4px -2px rgba(26,29,28,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(26,29,28,0.06), 0 4px 6px -4px rgba(26,29,28,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(26,29,28,0.06), 0 8px 10px -6px rgba(26,29,28,0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);

  /* Layout */
  --container-max: 1080px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--text);
  background-color: var(--bg);
  font-family: "BIZ UDGothic", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Meiryo", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  min-height: 101vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

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

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

ul, ol {
  list-style: none;
}

.sp-only {
  display: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ==============================================
   HEADER
   ============================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 250, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-icon {
  height: 2.25em;
  width: auto;
  vertical-align: middle;
}

.logo h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: opacity 0.2s var(--ease);
}

.logo a:hover {
  opacity: 0.7;
}

/* --- Navigation --- */
.global-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.global-nav a {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  position: relative;
}

.global-nav a:hover {
  color: var(--primary);
  background-color: var(--primary-surface);
}

.global-nav [aria-current="page"] {
  color: var(--primary);
  background-color: var(--primary-surface);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  padding: 120px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle geometric decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(44,110,90,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(44,110,90,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.main-copy {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0 0 28px 0;
}

.sub-copy {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
}

/* ==============================================
   NEWS
   ============================================== */
.news-section {
  padding: 56px 0;
  background-color: var(--grey-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.news-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

.news-list {
  margin: 0;
  padding: 0;
}

.news-item {
  border-bottom: 1px solid var(--border);
}

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

.news-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 12px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin: 0 -12px;
  transition: background-color 0.2s var(--ease);
}

.news-link:hover {
  background-color: var(--bg-white);
}

.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 88px;
  font-variant-numeric: tabular-nums;
}

.news-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid var(--grey-200);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 100px;
  flex-shrink: 0;
  background: var(--bg-white);
}

.news-title {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

.news-link:hover .news-title {
  color: var(--text);
}

/* ==============================================
   SECTION COMMON
   ============================================== */
section {
  padding: 80px 0;
}

.section-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 48px 0 12px 0;
  display: block;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.section-description {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.section-description p {
  margin-bottom: 24px;
}

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

/* ==============================================
   CARDS
   ============================================== */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

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

@media (hover: none) and (pointer: coarse) {
  .card:hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
  }
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

/* Card Link wrapper */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.card-link .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.card-link:hover .card {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-link:active .card {
  transform: scale(0.99);
  box-shadow: var(--shadow-sm);
  transition-duration: 0.1s;
}

/* Card "More" button */
.card-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  transition: color 0.2s var(--ease);
}

.card-link:hover .card-more {
  color: var(--primary-dark);
}

@media (hover: none) and (pointer: coarse) {
  .card-link:hover .card {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
  }
  .card-link:active .card {
    border-color: var(--primary);
    background-color: var(--primary-surface);
    transform: scale(0.99);
    transition-duration: 0.1s;
  }
}

/* ==============================================
   LIST ITEMS
   ============================================== */
.list-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.list-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px 0;
}

.list-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

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

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

/* ==============================================
   FORMS
   ============================================== */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,110,90,0.1);
}

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

/* ==============================================
   TABLE
   ============================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-white);
}

th {
  background: var(--grey-50);
  color: var(--text);
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  min-width: 100px;
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

tr:last-child td {
  border-bottom: none;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  background: var(--grey-50);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ==============================================
   LOADING SCREEN
   ============================================== */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOutContainer 0.6s ease 2.5s forwards;
}

.loading-logo {
  width: 72px;
  height: auto;
  opacity: 0;
  animation: bounceInOut 2s ease 0.5s forwards;
}

@keyframes bounceInOut {
  0% { opacity: 0; transform: scale(0.3) rotate(-10deg); }
  40% { opacity: 1; transform: scale(1.1) rotate(5deg); }
  60% { opacity: 1; transform: scale(0.95) rotate(-3deg); }
  80% { opacity: 1; transform: scale(1.02) rotate(2deg); }
  100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
}

@keyframes fadeOutContainer {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* ==============================================
   HAMBURGER MENU
   ============================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--text);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

.hamburger-line:nth-child(1) {
  transform: translateY(-6px);
}

.hamburger-line:nth-child(3) {
  transform: translateY(6px);
}

.hamburger-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 29, 28, 0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-intro {
  background-color: var(--primary-surface);
  padding: 32px;
  border-radius: var(--radius-md);
  margin-bottom: 48px;
  border: 1px solid rgba(44,110,90,0.08);
}

.contact-intro p {
  margin: 0 0 12px 0;
  line-height: 1.8;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-intro p:last-child {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-button-area {
  text-align: center;
  padding: 56px 32px;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-button-area .btn {
  background: var(--primary);
  color: #fff;
  border: none;
}

.contact-button-area .btn:hover {
  background: var(--primary-dark);
}

.contact-notice {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-tertiary);
}

/* ==============================================
   POLICY PAGE
   ============================================== */
.security-intro {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.policy-nav {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-bottom: 56px;
}

.policy-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-nav a {
  display: inline-block;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--grey-50);
  transition: all 0.2s var(--ease);
}

.policy-nav a:hover {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.policy-section {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}

.policy-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.policy-content p {
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.policy-content strong {
  color: var(--text);
  font-weight: 700;
}

.policy-content ul,
.policy-list {
  margin: 0 0 20px 0;
  padding: 0;
}

.policy-content li,
.policy-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.policy-content li:last-child,
.policy-list li:last-child {
  border-bottom: none;
}

.contact-box {
  background-color: var(--grey-50);
  padding: 28px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.contact-box a {
  color: var(--primary);
  font-weight: 700;
  transition: opacity 0.2s var(--ease);
}

.contact-box a:hover {
  opacity: 0.7;
}

.signature {
  margin-top: 80px;
  text-align: right;
  color: var(--text-tertiary);
  line-height: 1.8;
  font-size: 0.9rem;
}

/* ==============================================
   DOMAIN PAGE
   ============================================== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.domain-icon {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
  letter-spacing: 0.1em;
}

.domain-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
}

/* Domain Detail Pages */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--primary);
  transition: opacity 0.2s var(--ease);
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.detail-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 20px 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-list {
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.page-back {
  margin-top: 64px;
  text-align: center;
}

/* ==============================================
   PAGE NAVIGATION (policies)
   ============================================== */
.page-navigation {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  transition: all 0.2s var(--ease);
}

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

.nav-icon {
  font-size: 1.1rem;
}

/* ==============================================
   BACK TO TOP (policies page inline)
   ============================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s var(--ease);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 24px;
  background-color: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==============================================
   RESPONSIVE — Tablet (768px)
   ============================================== */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .hamburger-btn {
    display: flex;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg);
    z-index: 150;
    padding: 96px 28px 40px;
    box-shadow: -2px 0 20px rgba(26,29,28,0.1);
    overflow-y: auto;
    transition: right 0.35s var(--ease-out);
  }

  .global-nav.is-open {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .global-nav li {
    width: 100%;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .global-nav.is-open li {
    opacity: 1;
    transform: translateX(0);
  }

  .global-nav.is-open li:nth-child(1) { transition-delay: 0.05s; }
  .global-nav.is-open li:nth-child(2) { transition-delay: 0.1s; }
  .global-nav.is-open li:nth-child(3) { transition-delay: 0.15s; }
  .global-nav.is-open li:nth-child(4) { transition-delay: 0.2s; }
  .global-nav.is-open li:nth-child(5) { transition-delay: 0.25s; }
  .global-nav.is-open li:nth-child(6) { transition-delay: 0.3s; }

  .global-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease);
  }

  .global-nav a:hover,
  .global-nav a:focus {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .global-nav [aria-current="page"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }

  .nav-overlay {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .main-copy {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  section {
    padding: 60px 0;
  }

  .card {
    padding: 32px;
  }

  .news-section {
    padding: 40px 0;
  }

  .news-link {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 12px;
  }

  .news-date {
    font-size: 0.7rem;
    min-width: auto;
  }

  .news-label {
    padding: 2px 8px;
    font-size: 0.6rem;
  }

  .news-title {
    width: 100%;
    order: 3;
    font-size: 0.82rem;
  }

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

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .policy-nav {
    padding: 16px 20px;
  }

  .policy-nav ul {
    flex-direction: column;
    gap: 8px;
  }

  .policy-nav a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .policy-section {
    scroll-margin-top: 160px;
  }
}

/* ==============================================
   RESPONSIVE — Mobile (480px)
   ============================================== */
@media screen and (max-width: 480px) {
  .sp-only {
    display: inline !important;
  }

  .container {
    padding: 0 20px;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .main-copy {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .sub-copy {
    font-size: 0.85rem;
  }

  section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.68rem;
    margin-top: 36px;
  }

  .card {
    padding: 28px 24px;
    border-radius: var(--radius-md);
  }

  .card-title {
    font-size: 1.2rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.85rem;
    width: 100%;
  }

  footer {
    padding: 32px 0;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 1rem;
  }

  .page-navigation {
    margin-top: 48px;
    padding-top: 24px;
  }

  .nav-link {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ==============================================
   PRINT
   ============================================== */
@media print {
  header {
    position: static;
    background: none;
    backdrop-filter: none;
    border-bottom: 1px solid #ccc;
  }

  .global-nav,
  .hamburger-btn,
  #loading,
  .back-to-top {
    display: none !important;
  }

  .hero {
    padding: 24px 0;
    background: none;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  footer {
    margin-top: 24px;
  }

  body {
    background: #fff;
  }
}


/* スクロールバーによるページのズレを防止 */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll; /* 常にスクロールバーを表示 */
  width: 100%;
}

body {
  width: 100%;
  overflow-x: hidden; /* 横スクロールを防止 */
}


/* ローディング画像の位置調整（PCのみ） */
@media (min-width: 768px) {
  .loading-logo {
    transform: translateY(-72px); /* 画像の高さ(72px)の半分だけ上に移動 */
  }
}

/* ページのズレを防止 */
html {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  width: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  min-height: 101vh;
}

/* スマホのみ表示される改行 */
.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
}

/* PCのみ表示される改行 */
.pc-only {
  display: inline;
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }
}

/* ローディング画像の位置調整（PCのみ） */
@media (min-width: 768px) {
  .loading-logo {
    transform: translateY(-72px);
  }
}

/* PCのみ：2行目の改行を防止 */
@media (min-width: 768px) {
  .pc-nowrap {
    white-space: nowrap;
  }
}