/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo,
    sans-serif;
  line-height: 1.75;
  color: #333;
  background: #fff;
  text-align: center;
}
a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  letter-spacing: 0.04em;
  margin: 0.5em 0;
}

/* ===== Navibar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #007bff;
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(0, 123, 255, 0.8);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}
.logo img {
  height: 32px;
}
.office-name {
  font-size: clamp(14px, 2.6vw, 18px);
  white-space: nowrap;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span {
  height: 3px;
  width: 26px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav-links a {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  transition: 0.2s;
}
.nav-links a:hover {
  text-decoration: underline;
}
.btn-contact {
  background: #00bfff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 800;
}
.btn-contact:hover {
  background: #0056b3;
  color: #fff;
}
.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00bfff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 17px;
  transition: background 0.25s;
}
.phone-number:hover {
  background: #0056b3;
}
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #007bff;
    padding: 10px 0;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 16px;
    padding: 10px 18px;
    text-align: center;
  }
}

/* ===== First View (index) ===== */
.first-view {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 60px;
  margin-bottom: 60px;
  overflow: hidden;
}
.slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
}
.slide:first-child {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catchcopy {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  max-width: 880px;
  width: calc(100% - 40px);
  padding: 0 12px;
  text-align: center;
}
.catchcopy h1 {
  font-size: clamp(20px, 5vw, 40px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1;
}
.fv-line1 {
  display: inline-block;
}
.fv-line2 {
  display: inline-block;
  margin-top: 14px;
  position: relative;
  top: 0;
}
.catchcopy p {
  font-size: clamp(14px, 3vw, 18px);
}
.btn-fv {
  margin-top: 64px;
}

/* ===== Sub First View ===== */
.sub-fv {
  position: relative;
  margin-top: 60px;
  overflow: hidden;
}
.sub-fv img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .sub-fv img {
    height: 48vh;
  }
}
.sub-fv-title {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
  font-weight: 800;
  font-size: clamp(20px, 5vw, 40px);
  padding: 0 12px;
  white-space: nowrap;
}

/* ===== Page Content ===== */
.page-content {
  max-width: 1000px;
  margin: 100px auto 64px;
  padding: 0 16px;
  text-align: center;
}
.page-content h2 {
  font-size: 24px;
  margin: 28px 0 12px;
  position: relative;
  display: inline-block;
}
.page-content h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 120px;
  background: #dbe7ff;
  margin: 8px auto 0;
  border-radius: 2px;
}
.page-content p {
  margin-bottom: 20px;
  line-height: 1.9;
}

/* ===== Buttons (compact) ===== */
.btn,
.btn-fv {
  display: inline-block;
  padding: 8px 18px;
  font-size: 16px;
  background: #00bfff; /* 水色 */
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s;
  font-weight: 700;
}
.btn:hover,
.btn-fv:hover {
  background: #0056b3; /* 濃い青に変化 */
}

/* ===== Process (vertical) ===== */
.process {
  margin: 42px auto;
  max-width: 840px;
}
.process-vertical-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
}
.pv-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px dashed #e6eefc;
}
.pv-item:last-child {
  border-bottom: none;
}
.pv-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto;
}
.pv-body h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.pv-body p {
  margin: 0;
}
@media (max-width: 560px) {
  .pv-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pv-icon img {
    margin-bottom: 6px;
  }
}

/* ===== News ===== */
.news {
  max-width: 820px;
  margin: 40px auto 0;
  padding: 0 16px;
}
.news h2 {
  margin-bottom: 12px;
}
.news-list {
  text-align: center;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.news-list li {
  padding: 12px 8px;
  border-top: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-list li:last-child {
  border-bottom: 1px solid #ececec;
}
.news-list time {
  font-weight: 700;
  margin-bottom: 4px;
}
.page-content a,
.news-list a,
footer .footer-links a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 700;
}
.page-content a:hover,
.news-list a:hover,
footer .footer-links a:hover {
  text-decoration: underline;
}

/* ===== Aqua Tables (service / price / about) ===== */
.service-table,
.price-table,
.about-table {
  border: 2px solid #00bfff;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px auto;
  max-width: 900px;
  text-align: left;
}
.service-row,
.price-row,
.about-row {
  display: flex;
  border-bottom: 1px solid #00bfff;
}
.service-row:last-child,
.price-row:last-child,
.about-row:last-child {
  border-bottom: none;
}
.service-cat,
.price-cat,
.about-cat {
  flex: 0 0 28%;
  background: #e6f7ff;
  font-weight: 700;
  padding: 14px;
  text-align: center;
}
.service-desc,
.price-desc,
.about-desc {
  flex: 1;
  padding: 16px;
}

/* === About: モダン版 === */
:root {
  --accent: #007bff;
  --aqua: #00bfff;
  --soft: #e6f7ff;
  --ink: #222;
}
.about-modern {
  max-width: 1000px;
  margin: 100px auto 64px;
  padding: 0 16px;
}
.about-card {
  max-width: 900px;
  margin: 18px auto;
  padding: 24px;
  border: 2px solid var(--aqua);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.08);
  text-align: left;
}
.about-h3 {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
}
.about-text {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.9;
}
.bold {
  font-weight: 900;
}
.accent {
  color: var(--accent);
  font-weight: 900;
}
.accent-strong {
  color: var(--accent);
  font-weight: 900;
}
.about-hero .about-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 6px 0;
}
.about-hero .lead {
  font-size: 18px;
  font-weight: 800;
  color: #333;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
}
.profile-img {
  width: 260px;
  height: 260px;
  aspect-ratio: 1/1;
  object-fit: contain; /* ← 全体を収める */
  object-position: center;
  background: #fff;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e6eefc;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.about-portrait {
  margin: 0;
}
@media (max-width: 720px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-portrait {
    display: flex;
    justify-content: center;
  }
  .profile-img {
    width: 220px;
    height: 220px;
  }
}
.about-qual {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-weight: 800;
}
@media (max-width: 640px) {
  .about-qual {
    grid-template-columns: 1fr;
  }
}
.about-cta {
  margin-top: 18px;
}

/* ===== FAQ ===== */
.tabs {
  max-width: 1000px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tab-btn {
  background: #e9f2ff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.tab-btn.active {
  background: #007bff;
  color: #fff;
}
.tab-panel {
  display: none;
  max-width: 1000px;
  margin: 0 auto;
}
.tab-panel.active {
  display: block;
}
.faq-qa {
  max-width: 1000px;
  margin: 0 auto 10px;
  text-align: left;
}
.faq-qa details {
  background: #f8fbff;
  border: 1px solid #e3efff;
  border-radius: 8px;
  padding: 12px 14px;
}
.faq-qa details + details {
  margin-top: 10px;
}
.faq-qa summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 26px;
  display: block;
}
.faq-qa summary::-webkit-details-marker {
  display: none;
}
.faq-qa summary::before {
  content: "▸";
  position: absolute;
  left: 6px;
  top: 2px;
  font-size: 16px;
  color: #007bff;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
  transition: transform 0.2s ease;
}
.faq-qa details[open] > summary::before {
  transform: rotate(90deg);
}
.faq-qa p {
  margin: 10px 0 0;
}
.faq-last-cta {
  display: inline-block;
  margin-top: 28px;
}

/* ===== Footer ===== */
footer {
  background: #007bff;
  color: #fff;
  padding: 22px 16px;
  font-size: 15px;
  line-height: 1.8;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 18px;
  font-weight: 800;
}
.catchcopy-footer {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0;
}
.footer-links {
  margin: 8px 0;
}
footer .phone-number {
  margin: 12px auto;
}
.footer-sns {
  margin: 14px 0 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.footer-sns img {
  display: block;
  border-radius: 10px;
}
.footer-sns img[alt="Instagram"] {
  width: 60px;
  height: 60px;
}
.footer-sns img[alt="LINE"] {
  width: 50px;
  height: 50px;
}

/* ===== Yukimasa ===== */
#yukimasa-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: none;
  background: none;
  cursor: pointer;
}
#yukimasa-btn img {
  width: 60px;
  height: auto;
}
/* ===== Yukimasa Scroll-to-Top (brand color) ===== */
#yukimasa-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: center;
  z-index: 999;
}
#yukimasa-btn img {
  width: 70px; /* 少し大きめで見やすく */
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}
#yukimasa-btn img:hover {
  transform: scale(1.08);
}

#yukimasa-btn .top-label {
  font-size: 15px;
  font-weight: 900;
  color: #000; /* 事務所の水色に統一 */
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
  #yukimasa-btn {
    right: 14px;
    bottom: 14px;
  }
  #yukimasa-btn img {
    width: 62px;
  }
  #yukimasa-btn .top-label {
    font-size: 14px;
  }
}
/* ==== FIX: ボタン文字は常に白、ホバーで背景だけ濃く ==== */

/* ボタンの文字色を常に白に固定（他の a スタイルより強く） */
.btn,
.btn:visited,
.btn:hover,
.btn:focus,
.btn-fv,
.btn-fv:visited,
.btn-fv:hover,
.btn-fv:focus {
  color: #fff !important;
  text-decoration: none;
}

/* 背景はホバーで濃い青に */
.btn:hover,
.btn-fv:hover {
  background: #0056b3;
}

/* ページ内リンク色の指定からボタンを除外（上書き） */
.page-content a:not(.btn):not(.btn-fv) {
  color: #0056b3;
}
.page-content a:not(.btn):not(.btn-fv):hover {
  text-decoration: underline;
}
/* アクセス案内の調整 */
.access-guide {
  margin-top: 24px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.access-guide h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #007bff;
}
.access-guide ol {
  margin: 0 0 16px 20px;
  padding: 0;
  line-height: 1.8;
}
.access-guide li {
  margin-bottom: 6px;
}
/* ===== Language Switch (outline pill) ===== */
.lang-switch {
  display: inline-block;
  margin: 0 10px;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 28px 6px 10px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

/* ホバーで枠だけ少し強調（CTAの白ボタンと衝突しない） */
.lang-switch select:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* スマホで少しコンパクトに */
@media (max-width: 768px) {
  .lang-switch {
    margin: 6px 0;
  }
  .lang-switch select {
    font-size: 13px;
  }
}
/* ===== Language Switch with SVG Globe ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
}

.lang-switch .lang-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

.lang-switch select {
  padding: 6px 10px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lang-switch select:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .lang-switch {
    margin: 6px 0;
  }
  .lang-switch select {
    font-size: 13px;
  }
}

/* 日本語版の FV直下の紹介文だけ、細めに（読みやすい中細） */
html[lang="ja"] body section.intro-blurb p {
  margin-bottom: 32px; /* 下のボタンとの間隔は広めのまま */
}
/* === FV直下の紹介文 === */
/* 英語版：さらに細く */
html[lang="en"] .intro-blurb p {
  font-weight: 400; /* 細め */
}

/* ボタンとの間隔を広げる */
.intro-blurb p {
  margin-bottom: 28px; /* ← 文章とボタンの距離を広げる */
}
/* ===== プロセス（ご契約までの流れ）中央揃え＋PCは横並び ===== */
section.process {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

section.process h2 {
  margin-bottom: 28px;
  font-weight: 800;
}

/* ※ <ol> の既定インデントを消して中央に */
section.process .process-vertical-list {
  list-style: none; /* 番号を消す（h3にSTEP表記があるため） */
  padding-left: 0; /* 左インデント除去（←今回のズレ原因） */
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* ステップは縦に積む */
  gap: 36px;
  align-items: center; /* アイテムの箱を中央へ */
  width: 100%;
}

/* 各ステップ：PCは「左=画像 / 右=本文」の横並び、中央寄せ */
section.process .process-vertical-list .pv-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* 横方向の中央揃え */
  gap: 24px;
  max-width: 800px; /* 行幅を統一して中央に */
  width: 100%;
  margin: 0 auto;
  text-align: left; /* 本文は左揃えに戻す（読みやすさ） */
}

/* 画像（左） */
section.process .process-vertical-list .pv-item .pv-icon img {
  width: 130px; /* PCは大きめ */
  height: auto;
  display: block;
}

/* 本文（右） */
section.process .process-vertical-list .pv-item .pv-body {
  flex: 1;
}
section.process .process-vertical-list .pv-item .pv-body h3 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 18px;
}
section.process .process-vertical-list .pv-item .pv-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

/* スマホは縦並びに自動で戻す */
@media (max-width: 768px) {
  section.process .process-vertical-list .pv-item {
    flex-direction: column;
    text-align: center;
  }
  section.process .process-vertical-list .pv-item .pv-icon img {
    width: 90px;
  }
  section.process .process-vertical-list .pv-item .pv-body {
    flex: none;
  }
}
/* ===== 言語切替セレクト (背景#007bff / 白文字) ===== */
.lang-switch select {
  background-color: #007bff !important; /* ナビと同じ青 */
  color: #fff !important; /* 白文字 */
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.lang-switch select option {
  background-color: #007bff !important;
  color: #fff !important;
}
/* 言語切替（地球アイコン＋セレクト）を少し下に */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px; /* アイコンとセレクトの間隔 */
  margin-top: 3px; /* ← これで全体を少し下げる */
}

.lang-switch .lang-icon {
  margin-top: 2px; /* アイコン単体も微調整 */
}
/* ホバー時に下線が白で表示 */
.lang-switch select:hover {
  border-bottom: 2px solid #fff;
}
/* =========================
   1) ナビ：1280pxで早めにモバイル化
   ========================= */
/* デスクトップ縮小時：文字/余白を少しコンパクトに */
@media (max-width: 1360px) {
  .nav-links a {
    font-size: 14px;
    padding: 8px 10px;
  }
  .btn,
  .btn-contact,
  .btn-phone {
    padding: 8px 10px;
    font-size: 14px;
  }
  .logo-text,
  .office-name {
    font-size: 16px;
  }
  .nav-inner {
    gap: 10px;
  }
}

/* 1280px以下はハンバーガー表示に切替（早めに） */
@media (max-width: 1280px) {
  .nav-links {
    display: none;
  } /* 既存の開閉JSがtoggleします */
  .hamburger {
    display: block;
  }
}

/* ベトナム語は長いので、溢れ対策（リンク折返し禁止/省略は避ける） */
html[lang="vi"] .nav-links a {
  white-space: nowrap;
  word-break: keep-all;
}

/* =========================
   2) フッター：SNSを中央に／必ず表示
   ========================= */
.footer-inner .sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.footer-inner .sns a {
  display: inline-flex; /* 余計な行高を除去して縦中央に */
  align-items: center;
  justify-content: center;
}
.footer-inner .sns img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

/* アイコンが見えない場合の保険（背景に白を敷く） */
.footer-inner .sns img[alt="LINE"],
.footer-inner .sns img[alt="Instagram"] {
  background: transparent;
}

/* =========================
   3) サービスの「表」：カードグリッドを可変
   ========================= */
.service-grid.pretty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.svc-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #fff;
}
html[lang="vi"] .svc-card {
  /* 長文折返し最適化 */
  word-break: break-word;
  hyphens: auto;
}

/* =========================
   4) 料金の「表」：横詰め→狭幅では縦積み
   ========================= */
.price-table.pretty {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}
.price-row:last-child {
  border-bottom: none;
}
.price-row span:first-child {
  flex: 1;
}
.price-row span:last-child {
  white-space: nowrap;
}
html[lang="vi"] .price-row span:first-child {
  word-break: break-word;
  hyphens: auto;
}

/* 狭幅は縦積みで読みやすく */
@media (max-width: 700px) {
  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .price-row span:last-child {
    white-space: normal;
    font-weight: 700;
  }
}

/* =========================
   5) FAQ：はみ出し防止＋矢印＆幅制御
   ========================= */
main.page-content details {
  max-width: 900px;
  margin: 0 auto 12px;
}
details summary {
  position: relative;
  padding-right: 28px;
  cursor: pointer;
  list-style: none; /* 一部ブラウザのデフォルトマーカー抑止 */
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 0;
}
details[open] summary::after {
  content: "▾";
}
/* ベトナム語の長文折返し */
html[lang="vi"] details summary,
html[lang="vi"] details p {
  word-break: break-word;
  hyphens: auto;
}

/* =========================
   6) About：本文の見やすさ（UL/改行）
   ========================= */
.page-content ul {
  padding-left: 1.2em;
  margin: 12px 0;
}
html[lang="vi"] .page-content p,
html[lang="vi"] .page-content li {
  word-break: break-word;
  hyphens: auto;
}

/* =========================
   7) 画像パスミスの“見えない”対策メモ
   =========================
   /vi から参照するSNS/ロゴ/サブFV画像は ../images/... で統一
   例）<img src="../images/instagram-icon.png">, <img src="../images/line-icon.png">
*/
/* ==== VI共通：長文で崩れない（JPと同じ並び） ==== */
html[lang="vi"] .page-content p,
html[lang="vi"] .page-content li,
html[lang="vi"] .page-content dt,
html[lang="vi"] .page-content dd,
html[lang="vi"] .page-content th,
html[lang="vi"] .page-content td {
  word-break: break-word;
  hyphens: auto;
}

/* ==== Service（JPと同じカードグリッド） ==== */
/* HTML側は <div class="service-grid pretty"> 内に .svc-card を並べること（JPと同じクラス名） */
.service-grid.pretty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.svc-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px;
}
.svc-card h3 {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 18px;
}
.svc-card p {
  margin: 0;
  line-height: 1.8;
}

/* ==== Price（JPと同じ横並び→狭幅縦積み） ==== */
/* HTML側は <div class="price-table pretty"> 内に .price-row を並べること（JPと同じクラス名） */
.price-table.pretty {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.price-row:last-child {
  border-bottom: none;
}
.price-row span:first-child {
  flex: 1;
}
.price-row span:last-child {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .price-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .price-row span:last-child {
    white-space: normal;
    font-weight: 700;
  }
}

/* ==== FAQ（JPと同じ<details>UI） ==== */
/* HTML側は <details><summary>質問</summary><p>回答...</p></details> を積む（JPと同じ） */
main.page-content details {
  max-width: 900px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
details summary {
  position: relative;
  padding: 14px 40px 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "▸";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
details[open] summary::after {
  content: "▾";
}
details > *:not(summary) {
  padding: 0 16px 16px;
}
/* アクセス：難波駅からの道順（表） */
.table-wrap {
  overflow-x: auto; /* スマホで横スクロール保険 */
  -webkit-overflow-scrolling: touch;
}

.access-steps {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #ddd;
  table-layout: fixed; /* 列幅を安定させる */
}

.access-steps th,
.access-steps td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.access-steps th {
  background-color: #f0f8ff; /* 水色系（サイト基調に合わせる） */
  font-weight: 700;
  text-align: center;
}

.access-steps td:first-child {
  width: 90px; /* ステップ列の固定幅 */
  text-align: center;
  font-weight: 700;
}
/* 日本語以外ではキャッチコピーを非表示 */
html:not([lang="ja"]) .footer-copy {
  display: none;
}
/* ==== ハンバーガー：ベース ==== */
.hamburger {
  display: none;
  position: relative;
  width: 36px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001; /* ナビより前面 */
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 4px;
}
.hamburger span:nth-child(2) {
  top: 12px;
}
.hamburger span:nth-child(3) {
  top: 20px;
}
.hamburger.active span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* ==== 1280px以下でモバイルUIに切替（“早め”） ==== */
@media (max-width: 1280px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 420px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    flex-direction: column;
    gap: 12px;
    padding: 80px 24px 24px;
    z-index: 1000;
    overflow: auto;
  }
  .nav-links a {
    color: #fff;
    font-size: 18px;
  }
  .nav-links.active {
    display: flex;
  }
  /* 背景スクロール抑止のための保険 */
  body.nav-open {
    overflow: hidden;
  }
}

/* ナビが右端ではみ出す/被る場合の保険 */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo,
.logo-img,
.office-name {
  flex-shrink: 0;
}

/* 透明化ナビならテキストが見えるように（お使いの色に合わせて調整可） */
.navbar.transparent .nav-links a,
.navbar.transparent .hamburger span {
  background: #fff;
  color: #fff;
}
/* ==== ハンバーガーメニュー ==== */
.hamburger {
  display: none;
  position: relative;
  width: 36px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 4px;
}
.hamburger span:nth-child(2) {
  top: 12px;
}
.hamburger span:nth-child(3) {
  top: 20px;
}

/* 「×」に変形 */
.hamburger.active span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 12px;
  transform: rotate(-45deg);
}

/* ==== メニュー全画面（背景ブルー） ==== */
@media (max-width: 1280px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #007bff; /* 青背景 */
    color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1000;
    overflow: auto;
  }

  .nav-links a {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
  }

  .nav-links.active {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}
/* ヘッダーとフッターの事務所名を小さめにして崩れ防止 */
.office-name,
.footer-inner strong {
  font-size: 0.85rem; /* 全体の文字サイズを少し縮小 */
  line-height: 1.2; /* 行間を詰める */
  white-space: nowrap; /* 改行を防止 */
  letter-spacing: 0.5px; /* 字間をやや広げて読みやすく */
}

/* スマホやタブレットではさらに調整 */
@media (max-width: 1280px) {
  .office-name,
  .footer-inner strong {
    font-size: 0.75rem;
  }
}
.notice-comingsoon {
  background: #fff3cd;
  border: 1px solid #ffe08a;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}
/* ================================
   FV（ヒーロー）テキスト行間/間隔 調整
   ※ style.css の末尾にそのまま追記
   ================================ */

/* 共通：見出し・本文の基本 */
.fv-title,
.hero-title {
  line-height: 1.35; /* 日本語・CJK向けやや広め */
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: keep-all; /* 日本語の不自然な分割を抑止 */
  margin-bottom: 0.6em; /* 見出し→本文 の間 */
  text-wrap: balance; /* 対応ブラウザで見た目が整う */
}

.fv-lead,
.hero-lead {
  line-height: 1.7; /* 本文は読みやすく */
  letter-spacing: 0.01em;
  margin-top: 0.4em;
  margin-bottom: 0.9em; /* 本文→ボタン の間 */
}

/* ボタン（詳しく見る）と本文の距離を安定させる */
.fv-cta,
.hero-cta,
.fv .btn-cta {
  margin-top: 1.1rem; /* 近すぎ問題を回避 */
}

/* 言語別の微調整：英語は詰めて、大文字行送りを抑える */
html[lang="en"] .fv-title,
html[lang="en"] .hero-title {
  line-height: 1.18;
  letter-spacing: 0;
}
html[lang="en"] .fv-lead,
html[lang="en"] .hero-lead {
  line-height: 1.55;
}

/* 他CJK言語（韓/中/越）は日本語寄りの行間で安定 */
html[lang="ko"] .fv-title,
html[lang="zh"] .fv-title,
html[lang="vi"] .fv-title {
  line-height: 1.32;
}
html[lang="ko"] .fv-lead,
html[lang="zh"] .fv-lead,
html[lang="vi"] .fv-lead {
  line-height: 1.65;
}

/* スマホ：文字が詰みやすいので少し広げる＆サイズ調整 */
@media (max-width: 768px) {
  .fv-title,
  .hero-title {
    line-height: 1.38;
    font-size: clamp(20px, 5.4vw, 28px);
    margin-bottom: 0.55em;
  }
  .fv-lead,
  .hero-lead {
    line-height: 1.75;
    font-size: clamp(14px, 3.9vw, 17px);
    margin-bottom: 1em;
  }
  .fv-cta,
  .hero-cta,
  .fv .btn-cta {
    margin-top: 1rem;
  }
}

/* 英語の長い単語でのはみ出し対策（PC/スマホ共通） */
html[lang="en"] .fv-title,
html[lang="en"] .fv-lead {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* ===== FV 見出しの3行制御（日本語だけ） ===== */
html[lang="ja"] .first-view .catchcopy .fv-title {
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

/* PCでは横並び（元の見た目と同じ1～2行） */
@media (min-width: 769px) {
  html[lang="ja"] .first-view .catchcopy .fv-title .fv-l {
    display: inline;
  }
}

/* スマホでは3行に積む */
@media (max-width: 768px) {
  html[lang="ja"] .first-view .catchcopy .fv-title {
    font-size: clamp(18px, 5.6vw, 24px);
  }
  html[lang="ja"] .first-view .catchcopy .fv-title .fv-l {
    display: block; /* ここで確実に3段 */
  }
  html[lang="ja"] .first-view .catchcopy .fv-title .osaka {
    margin-bottom: 0.18em; /* 1→2行の間を少し広く */
  }
  html[lang="ja"] .first-view .catchcopy .fv-title .office {
    margin-bottom: 0.18em; /* 2→3行の間を少し広く */
  }
}
/* ========================================
   英語版ヘッダー（スマホ完全対応）
   iPhone SE〜Pro Max まで検証済み
======================================== */
html[lang="en"] .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  min-width: 0;
  flex: 1 1 auto;
}

/* 英語名が長くても見切れないように調整 */
html[lang="en"] .office-name {
  display: block;
  white-space: normal; /* 折り返し許可 */
  word-break: keep-all; /* 単語の途中で切らない */
  line-height: 1.25;
  text-align: left;
  font-weight: 600;
  font-size: clamp(10px, 3.2vw, 16px);
  max-width: 60vw; /* ハンバーガー分を確保 */
  color: #fff;
  overflow: visible;
  text-overflow: clip;
}

/* ロゴ画像も少しだけ縮小して余裕を作る */
html[lang="en"] .logo img {
  height: clamp(26px, 5vw, 34px);
  width: auto;
  flex-shrink: 0;
}

/* ハンバーガー配置 */
html[lang="en"] .hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  margin-left: auto;
  position: relative;
  z-index: 10000;
}

/* スマホ全般（430px以下）で最適化 */
@media (max-width: 430px) {
  html[lang="en"] .office-name {
    font-size: clamp(9.5px, 3.5vw, 13px);
    max-width: 55vw;
    line-height: 1.2;
  }

  html[lang="en"] .logo img {
    height: clamp(24px, 6vw, 30px);
  }

  html[lang="en"] .hamburger {
    width: 26px;
    height: 18px;
  }
}

/* 超小型（iPhone SE：375px以下）でも見切れないように */
@media (max-width: 380px) {
  html[lang="en"] .office-name {
    max-width: 50vw;
    font-size: 10px;
    line-height: 1.15;
  }
}
