@charset "UTF-8";
/*
Theme Name: sankyoテーマ
Theme URI: 
Author: sankyo
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: my-theme
*/

/* =========================================
   変数と初期設定
   ========================================= */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #eff6ff;
  --accent-color: #ffd700;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --line-color: #06c755;
  --grade: linear-gradient(148deg, #eff6ff 12%, #f9fafb 54%, #e0f2fe 91%);
  --font-base: system-ui, -apple-system, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-min: "Shippori Mincho", "Times New Roman", Times, serif;
  --border-radius: 16px;
  --transition: all 0.3s ease;
  --header-height: 80px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html {
  font-size: 100%; /* = ブラウザ標準（16px） */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

.pc {
  display: block;
}

.sp {
  display: none;
}

body {
  font-family: var(--font-base), "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.8;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: var(--border-radius);
}

ul {
  list-style: none;
}

.justify {
  text-align: justify;
  text-justify: inter-character;
}

/* =========================================
   基本レイアウトなど
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

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

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

/* 見出しスタイル */
.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  font-family: serif;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), #93c5fd);
  border-radius: 4px;
}

.section-title span {
  display: block;
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 10px;
  font-weight: normal;
}

/* サブセクション見出し */
.subsection-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  padding: 1px 20px;
  margin: 0 0 30px;
  border-left: 5px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  line-height: normal;
}

/* センター寄せ見出し（装飾付き） */
.center-heading {
  font-family: var(--font-min);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding-bottom: 20px;
  line-height: normal;
}

.center-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), #93c5fd);
  border-radius: 1px;
}

.emergency .center-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #901e1e, #f09393);
  border-radius: 2px;
}

.line-green .center-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--line-color), #93fdbc);
  border-radius: 2px;
}

.midashi {
  font-family: var(--font-min);
  font-size: 1.6rem;
  color: var(--text-color);
  font-weight: bold;
  line-height: 1.3;
  margin: 3rem 0 2.5rem;
  padding: 0 0 15px 25px;
  position: relative;
  text-align: left;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #d0d8df;
}

.midashi::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 4px;
  height: calc(100% + 5px);
  background: linear-gradient(to bottom, var(--primary-color), #93c5fd);
  border-radius: 2px;
}

.komidashi {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.photo {
  width: 100%;
  height: 80%;
}

/* ボタン共通 */
.btn {
  display: inline-block;
  padding: 15px 40px;
  margin: 1rem 0;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.btn:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-line {
  background-color: #06c755;
  box-shadow: var(--shadow-md);
}

.btn-line:hover {
  background-color: #05a546;
}

/* ページ遷移のふわっと表示 */
.fade-in-target {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateY(20px);
}

.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ヘッダー
   ========================================= */
/* --- 基本スタイル & Popoverリセット --- */
[popover] {
  margin: 0;
  padding: 0;
  border: none;
  overflow: visible;
  background: transparent;
  color: inherit;
}

.hamburger {
  display: none;
}

#main-nav[popover] {
  position: static;
  display: block !important;
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 30px);
  list-style: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
  background-color: transparent;
}

/* スクロール時のスタイル（JSで付与） */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

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

.logo {
  width: 250px;
  line-height: 0;
}

/* PC Navigation */
.nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: clamp(15px, 2vw, 30px);
  align-items: center;
}

.nav-link {
  font-family: var(--font-min);
  font-weight: bold;
  position: relative;
  font-size: 0.95rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* =========================================
   ヒーローセクション
   ========================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #fff;
  font-family: var(--font-min);
  z-index: 1;
}

/* 動画がループする周期に合わせて、一瞬だけ不透明度を下げるアニメーション */
.hero-video {
  animation: seamless-fade 9s infinite;
}

@keyframes seamless-fade {
  0%,
  100% {
    opacity: 1;
  }
  98% {
    opacity: 1;
  }
  99% {
    opacity: 0.8;
  }
}

/* =========================================
   メインタイトル
   ========================================= */

.mainVisual__Title {
  text-align: center;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mainVisual__Title h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #ffff;
}

.mainVisual__Title span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  animation: blurUp 1.5s ease forwards;
  font-size: clamp(2rem, 0.545rem + 7.27vw, 6rem);
  font-weight: 500;
  color: #ffff;
  text-shadow: 0 0px 15px rgba(0, 106, 226, 0.8), 0 0 30px rgba(18, 0, 210, 0.3);
}

/* 漢字の字間を調整 */
.mainVisual__Title span.is-kanji {
  margin-right: 0.05em;
}

/* カタカナの字間を調整 */
.mainVisual__Title span.is-katakana {
  margin-right: -0.2em;
}

.mainVisual__Title span.is-katakana:last-child::after {
  content: "®";
  position: relative;
  top: -0.8em;
  font-size: 0.5em;
  margin-left: -0.3em;
}

.wrapper p {
  font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
  font-weight: 600;
  text-shadow: 0 0px 10px rgba(0, 106, 226, 0.8), 0 0 20px rgba(18, 0, 210, 0.3);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  animation: blurUp 1.8s ease forwards;
}

.hero .btn {
  display: inline-block;
  margin: 2rem auto;
  font-family: var(--font-min);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 10px rgba(18, 4, 93, 0.3);
  padding: 16px 50px;
  box-shadow: none;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(30px);
  animation: blurUp 1.8s ease 2s forwards;
}

.hero .btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

@keyframes blurUp {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* 下層ページのヒーロー (そのまま残す) */
.page-hero {
  height: 50px;
  background-position: top;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: var(--header-height);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(89, 137, 242, 0.3); /* primary-colorベースの透過 */
}
.page-hero h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 2.5rem;
  font-family: var(--font-min);
  filter: drop-shadow(1px 1px 5px rgba(29, 7, 82, 0.3));
}

/* タイトル周りのイラスト */
.illustration-blk-mv {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(80px);
  animation: blurUp 2s ease 1s forwards;
}

.illustration-blk-mv img {
  width: clamp(15rem, 40vw, 35rem);
  animation: fuwafuwa 3s ease-in-out infinite alternate;
  will-change: transform;
  opacity: 60%;
  margin-bottom: 10rem;
}

@keyframes fuwafuwa {
  0% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes frameInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* スクロールダウン表示 */
.scroll-down {
  font-family: var(--font-min);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 0px 10px rgba(0, 106, 226, 1), 0 0 20px rgba(18, 0, 210, 1);
}

.scroll-down span {
  display: block;
  width: 2px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  margin: 10px auto 0;
  position: relative;
  overflow: hidden;
}

.scroll-down span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #65c7f1;
  animation: scroll-line 2.5s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

/* =========================================
   コンポーネント
   ========================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  align-items: center;
  margin: 3rem auto;
  word-break: break-all;
}

.table-a {
  width: 100%;
  border-collapse: separate; /* collapseだとborder-radiusが効かないためseparateに変更 */
  border-spacing: 0;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.table-a th,
.table-a td {
  padding: 20px;
  border-bottom: 1px solid #cdd0d5;
  text-align: left;
}
.table-a th {
  width: 30%;
  background-color: #dceafb;
  color: var(--text-color);
  vertical-align: top;
}

.table-a td {
  background-color: #fff;
}

.external_link {
  color: #004494;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.external_link::before {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.external_link::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url(image/icon_link.png) no-repeat center / contain;
  margin-left: 6px;
  margin-bottom: 3px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.external_link:hover {
  color: #0066cc;
  opacity: 0.8;
  transform: translateY(-1px);
}

.external_link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.external_link:hover::after {
  transform: translateX(3px);
}

/* =========================================
   フッター
   ========================================= */
.footer {
  background-color: #f5f6fa;
  color: var(--text-light);
  padding: 80px 0 30px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 20px;
  display: block;
}

.footer-links li {
  margin-bottom: 12px;
}

/* 親階層のリンク */
.footer-links > li > a {
  position: relative;
  padding-left: 1.2em;
  font-weight: bold;
  color: var(--text-color);
}

.footer-links > li > a::before {
  content: "›";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: var(--primary-color);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  border-top: 1px solid #e5e7eb; /* 区切り線を少し薄く */
  padding-top: 30px;
  font-size: 0.85rem;
}

.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.page-top.active {
  opacity: 1;
  visibility: visible;
}

.page-top svg {
  width: 80%;
  height: 80%;
}

/* =========================================
   お知らせ
   ========================================= */

.news-wrapper {
  flex: 1;
}

.news-list {
  max-width: 800px;
  margin: 0 auto 40px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
}

.news-date {
  font-weight: bold;
  color: var(--primary-color);
  margin-right: 20px;
  min-width: 100px;
}

.news-ttl {
  color: var(--text-color);
}

/* =========================================
   お知らせ単ページ
   ========================================= */
.news-detail-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.news-detail-date {
  display: inline-block;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 12px;
}

.news-detail-title {
  font-family: var(--font-min);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #d0d8df;
}

.news-detail-body {
  font-size: 1rem;
  line-height: 2;
}

.news-detail-body p {
  margin-bottom: 1.5em;
}

.news-detail-side {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.news-detail-side h3 {
  font-family: var(--font-min);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d0d8df;
}

.news-past-list li {
  margin-bottom: 18px;
}

.news-past-list li:last-child {
  margin-bottom: 0;
}

.news-past-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.news-past-list a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
}

.news-past-list a:hover {
  color: var(--primary-color);
}

.news-past-list li.is-current .news-past-date,
.news-past-list li.is-current span:last-child {
  color: var(--primary-color);
}

.news-past-list li.is-current a {
  font-weight: bold;
  pointer-events: none;
}

.news-list-btn-wrap {
  margin-top: 28px;
  text-align: center;
}

.news-list-btn-wrap .btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  text-align: center;
}

.archive-list {
  margin-left: 2rem;
}

/* =========================================
   お知らせ一覧
   ========================================= */
a.news-item {
  display: flex;
  align-items: center;
}

.news-title {
  transition: var(--transition);
}

.news-title:hover {
  color: var(--primary-hover);
  font-weight: bold;
}

.news-title {
  flex: 1;
}

/* ページネーション */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pagination {
  margin-top: 60px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #d0d8df;
  color: var(--text-color);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.page-numbers:hover {
  background-color: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination .page-numbers.current {
  background: linear-gradient(to right, var(--primary-color), #93c5fd);
  border-color: transparent;
  color: #fff;
  font-weight: bold;
  box-shadow: none;
}

.pagination .page-numbers.dots {
  min-width: auto;
  height: auto;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--text-light);
}

.pagination .prev,
.pagination .next {
  min-width: auto;
  border-radius: 22px;
  padding: 0 22px;
  font-weight: bold;
}

/* =========================================
   保険の申し込み
   ========================================= */
.moushikomi .section-title h2 {
  letter-spacing: normal;
  font-size: 2.2rem;
}

.application-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 2.5rem;
}

.application-buttons .btn-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.application-buttons .btn {
  width: 100%;
  margin: 0 0 12px 0;
  text-align: center;
}

.btn-caption {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
  text-align: left;
}

/* =========================================
   当社について
   ========================================= */

.greeting .grid-2 {
  grid-template-columns: 1.5fr 1fr;
  margin-bottom: 5rem;
  align-items: stretch;
  gap: 80px;
}

.greeting .photo {
  height: 100%;
}

.greeting .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-signature {
  margin-top: 30px;
  text-align: right;
}

.message-signature .role {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
}

.message-signature .name {
  font-family: var(--font-min);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-color);
}

/* 企業理念など */
.philosophy-card {
  background-color: var(--white);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.philosophy-title {
  font-family: var(--font-min);
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.philosophy-title2 {
  font-family: var(--font-min);
  font-weight: bold;
  letter-spacing: 0.3rem;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  opacity: 0.8;
  text-transform: uppercase;
}

.philosophy-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 2px;
  background: var(--primary-color);
}

.philosophy-title2::before {
  display: none;
}

.keieirinen p {
  font-family: var(--font-min);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.6;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto 30px;
}

.keieirinen .philosophy-card {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.keieirinen .philosophy-title {
  text-align: center;
}

.keieirinen .philosophy-title::before {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 3rem;
  text-align: justify;
}

.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  border-radius: var(--border-radius);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.insurance-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* 会社概要 */
.gaiyou-table {
  width: 80%;
  margin: 0 auto;
}

/* 店舗紹介 */
.office .grid-3 {
  margin-bottom: 5rem;
}

.feature-card {
  text-align: center;
}

.feature-card img {
  margin-bottom: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card .caption {
  word-break: break-all;
  overflow-wrap: break-word;
  text-align: justify;
  line-height: normal;
}

.store-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start; /* 上揃え */
}

.store-details h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.store-details p {
  margin-bottom: 20px;
}

.store-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.store-info-table th,
.store-info-table td {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.store-info-table th {
  width: 120px;
  background-color: var(--secondary-color);
}

.store-photo {
  border-radius: var(--border-radius);
}

/* =========================================
   保険のシンデレラフィット
   ========================================= */
#cinderella {
  overflow-x: hidden;
}

.flow-section-title {
  margin-bottom: 3rem;
}

.flow-section-title h2 {
  font-family: var(--font-min);
  font-size: 2.4rem;
  color: var(--primary-color);
  margin: 0 auto;
  font-weight: normal;
  position: relative;
  padding-bottom: 15px;
  transform: skewX(-15deg);
  display: table;
}

.flow-section-title h2::before {
  content: "";
  position: absolute;
  top: -1em;
  right: -2.5em;
  width: 5em;
  height: 5em;
  background: url("image/cinderella-illustration.webp") no-repeat center center / contain;
  transform: skewX(15deg); /* 親の傾きを打ち消す */
  z-index: -1;
  opacity: 0.3;
}

.flow-section-title .is-katakana {
  letter-spacing: -0.1em;
}

.flow-section-title .step-highlight {
  display: inline-block;
  font-size: 1.8em; /* 親要素の1.4倍の大きさ */
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0.05em;
  position: relative;
  top: 0.05em; /* ベースラインの微調整 */
  text-shadow: 2px 2px 5px rgba(184, 221, 249, 0.5);
}

.flow-section-title h3 {
  font-family: var(--font-min);
  font-size: 1.4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2rem;
}

/* フロー全体を包むコンテナ（中央のライン用） */
.flow-container {
  position: relative;
  background: var(--grade);
  padding: 80px 50px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.flow-container p {
  font-size: 1.2rem;
  margin-bottom: 4rem;
  text-align: center;
}

/* 中央を貫くコネクトライン */
.flow-container::before {
  content: "";
  position: absolute;
  top: 200px;
  left: 120px;
  bottom: 140px;
  width: 2px;
  height: auto;
  background-color: var(--primary-color);
  z-index: 0;
}

.flow-container .text-center {
  margin-bottom: 2rem;
}

.flow-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  z-index: 1;
}

.flow-item:last-child {
  margin-bottom: 0;
}

.flow-content {
  flex: 0 0 55%;
  padding-left: 120px;
}

.flow-header {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.step-num {
  position: absolute;
  left: -80px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.6rem;
  line-height: 1;
  border: 4px solid var(--secondary-color);
  font-family: var(--font-min);
  transform: skewX(-10deg);
}

.step-num::before {
  content: "STEP";
  font-size: 0.7rem;
  font-weight: bold;
  margin-bottom: 1px;
}

.flow-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  font-family: var(--font-min);
}
.flow-title span {
  font-size: 1.1rem;
}

.flow-item p {
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

.flow-image {
  flex: 0 0 35%;
}

.flow-image img {
  max-width: 70%;
}

.insurance-company-logo-img {
  width: 100%;
  object-fit: contain;
}

.insurance-company h3 {
  line-height: 1.5rem;
}

.last-line {
  font-family: serif;
  font-size: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

/* =========================================
   採用情報
   ========================================= */

.recruit-info {
  margin: 3rem auto 5rem;
}

.recruit-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-min);
  margin-bottom: 1.5rem;
}

.application {
  position: relative;
  margin-top: 100px;
}

.shainsu-list {
  margin-bottom: 1rem;
}

.note {
  line-height: normal;
}

.torikumi {
  background-color: #f0f9e5;
  padding: 25px 18px;
  border-radius: 12px;
  border-left: 6px solid #87d593;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 30px 0;
  text-align: justify;
}

.torikumi table {
  text-align: left;
  margin-bottom: 1rem;
}

.torikumi h4 {
  color: #04866a;
  margin-bottom: 0.5rem;
}

.torikumi table th {
  min-width: 7rem;
  vertical-align: top;
}

.torikumi p {
  line-height: normal;
}

.working_environment .grid-2 {
  align-items: start;
  padding-top: 20px;
  gap: 60px;
}

/* =========================================
  お問い合わせ
   ========================================= */

.emergency-title {
  color: #d32f2f;
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 15px;
}

.emergency-box .tel {
  font-size: 3rem;
  font-weight: bold;
  margin-top: 10px;
}

.contact-methods {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 60px;
}
.contact-method-item1 {
  flex: 1;
  padding: 40px;
  border-radius: var(--border-radius);
  background-color: #fef2f2;
  border: 3px solid #f57272;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-method-item2 {
  flex: 1;
  padding: 40px;
  border-radius: var(--border-radius);
  border: solid 3px var(--line-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.contact-method-item1 .tel {
  color: #d32f2f;
  font-size: 2.5rem;
  font-weight: bold;
}

.emergency h3 {
  color: #d32f2f;
  font-weight: bold;
}

.line-green h3 {
  color: #05a546;
}

/* =========================================
   個人情報保護方針
   ========================================= */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

.privacy-content ul {
  padding-left: 1.5em;
  list-style-type: disc;
}

.privacy-content li {
  margin-bottom: 0.5em;
}

/* =========================================
   404ページ
========================================= */
.pageTtl_wrapper {
  position: relative;
  margin-top: var(--header-height);
  overflow: hidden;
}

.pageTtl {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pageTtl_img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pageTtl_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pageTtl_img.sp {
  display: none;
}

.pageTtl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(89, 137, 242, 0.3); /* page-heroと同じオーバーレイ */
  z-index: 1;
}

.pageTtl h2 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 2.5rem;
  font-family: var(--font-min);
  text-align: center;
  line-height: 1.4;
  filter: drop-shadow(1px 1px 5px rgba(29, 7, 82, 0.3));
}

.wrapper404 {
  padding: 100px 0;
  text-align: center;
}

.wrapper404 .lead {
  max-width: 600px;
  margin: 0 auto 40px;
}

.leadTxt {
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: normal;
}

.btnArea .btn a {
  color: inherit;
  text-decoration: none;
}

/* 
   Responsive --------------------------------------------------レスポンシブ
 */

.pc {
  display: block !important;
}
.sp {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
  }

  :root {
    --header-height: 60px;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero {
    height: 30px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .insurance-products-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 0px;
  }

  .application-buttons {
    flex-direction: column; /* スマホでは縦並びに変更 */
    gap: 15px; /* スマホ時のボタン間隔を調整 */
  }

  .application-buttons .btn {
    width: 100%;
  }

  .application-buttons .btn-wrap {
    max-width: none;
    width: 100%;
  }

  .header {
    height: fit-content;
  }

  .header-inner {
    height: 60px;
  }

  .hamburger {
    display: block;
    background: none;
    cursor: pointer;
    z-index: 1001;
    border: none; /* デフォルトの枠線を削除 */
    padding: 8px 10px; /* アイコン周りの余白 */
  }

  /* ハンバーガーメニュー展開時のアニメーション */
  :has(#main-nav:popover-open) .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  :has(#main-nav:popover-open) .bar:nth-child(2) {
    opacity: 0;
  }
  :has(#main-nav:popover-open) .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* メインナビをハンバーガーボタンの下に固定 */
  #main-nav[popover] {
    position: fixed;
    top: 60px;
    right: 0;
    left: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    width: 90%;
    height: 90%;
    border-left: 1px solid rgba(184, 156, 94, 0.3); /* 繊細な金色の縁取り */
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    opacity: 0;
    transition: opacity 0.2s ease-in, transform 0.3s ease-in, display 0.3s allow-discrete, overlay 0.3s allow-discrete;
    line-height: normal;
    overflow: hidden;
  }

  /* メニュー内のキラキラ装飾 */
  .nav-decoration {
    position: absolute;
    bottom: 0%;
    right: 0%;
    pointer-events: none;
    z-index: -1;
    width: 60%;
    opacity: 0.8;
  }

  #main-nav:popover-open {
    display: flex;
    transform: translateX(0);
    opacity: 1;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, display 0.6s allow-discrete, overlay 0.6s allow-discrete;
  }

  @starting-style {
    #main-nav:popover-open {
      opacity: 0;
      transform: translateX(100%);
    }
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-top: 25px;
    li {
      width: 80%;
      text-align: center;
      letter-spacing: 0.1rem;
      border-bottom: 1px solid rgba(184, 156, 94, 0.2);
    }
  }

  .nav-link:hover::after {
    width: 0%;
  }

  /* ------------------------------------------------------------ */

  .logo img {
    height: 35px;
    width: auto;
  }

  /* 既存の.nav[popover]の不要な背景設定をクリアして干渉を防ぐ */
  .nav[popover]:not(#main-nav) {
    background-color: transparent;
  }

  /* オーバーレイ（背景）を暗くしたい場合は ::backdrop を使用 */
  #main-nav::backdrop {
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s allow-discrete;
  }

  .nav:popover-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    font-family: var(--font-min);
    padding: 10px 0;
    width: 100%;
    text-align: center;
    display: block;
    color: var(--text-color);
    transition: color 0.3s ease;
  }
  .nav-link::before {
    content: "✦";
    margin-right: 8px;
    color: #e1c996;
    font-size: 1.2rem;
  }

  /* メインビジュアル (index.html) */
  .hero-video {
    height: 100vh; /* モバイルでは高さを抑える */
    object-fit: cover;
  }

  .mainVisual__Title span {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 106, 226, 1), 0 0 30px rgba(0, 106, 226, 1), 0 0 50px rgba(18, 0, 210, 0.5);
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-top: 15px;
  }

  .hero-btn-wrap {
    margin-top: 30px;
  }

  /* その他のページの調整 */

  .news-detail-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-detail-side {
    position: static;
  }

  .news-detail-title {
    font-size: 1.4rem;
  }

  a.news-item {
    flex-wrap: wrap;
  }

  .news-date {
    margin-bottom: 5px;
  }

  .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .pagination .prev,
  .pagination .next {
    padding: 0 16px;
  }

  .komidashi {
    text-align: justify;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .midashi {
    margin-top: 3rem;
  }

  .greeting .grid-2 {
    gap: 20px;
  }

  .contact-methods {
    flex-direction: column;
    gap: 20px;
  }

  .keieirinen p {
    font-size: 1.4rem;
    margin-bottom: 0px;
    max-width: 700px;
  }

  .philosophy-card {
    padding: 25px;
  }

  .philosophy .grid-2 {
    gap: 20px;
  }

  .feature-card {
    margin-bottom: 20px;
  }

  .office .grid-3 {
    margin-bottom: 1rem;
  }

  .lead {
    width: 100%;
  }

  .contact-method-item1,
  .contact-method-item2 {
    padding: 30px 20px;
  }

  .moushikomi .section-title h2 {
    font-size: 1.6rem;
  }

  .application-buttons {
    margin: 2rem 1rem;
  }

  .btn-caption {
    text-align: center;
  }

  /* シンデレラサイクル (services.html) */
  .flow-section-title {
    margin-bottom: 1rem;
  }

  .flow-section-title h2 {
    font-size: 1.8rem;
    line-height: 2.5rem;
  }

  .flow-section-title h2::before {
    right: -1.5em;
  }

  .flow-section-title h3 {
    font-size: 1.2rem;
    line-height: normal;
  }

  .flow-item {
    padding: 10px 20px 30px;
  }

  .grid-2 h2 {
    line-height: normal;
  }

  .flow-container {
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }

  .flow-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .flow-container::before {
    display: none;
  }

  .flow-section-title {
    font-size: 1.5rem;
  }

  .flow-item {
    flex-direction: column-reverse; /* 画像を上に配置 */
    align-items: center;
    gap: 20px;
    padding: 20px 20px 30px;
    margin-bottom: 25px;
    background-color: var(--grade);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
  }

  .flow-item:nth-of-type(odd) {
    background-color: #ecf9fe; /* 交互に色を変えて見やすく */
  }

  .flow-content,
  .flow-image {
    flex: 0 0 100%;
    width: 100%;
    padding: 0; /* PC用のpaddingをリセット */
  }

  .flow-image img {
    max-width: 180px; /* アイコンが大きくなりすぎないように */
  }

  .flow-header {
    display: block;
  }

  .step-num {
    position: static; /* 絶対配置を解除 */
    transform: none; /* 傾きをリセット */
    margin: 0 auto 20px; /* 中央に配置 */
    width: 80px;
    height: 80px;
    font-size: 2.3rem;
  }

  .flow-title {
    line-height: 1.8rem;
  }

  .last-line {
    font-size: 1.2rem;
    line-height: normal;
  }

  /* 採用情報 */
  .recruit-info {
    margin: 1rem auto 2rem;
    padding-left: 0;
    padding-right: 0;
  }

  .section-title h2 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  .center-heading {
    font-size: 1.6rem;
  }

  /* テーブルのモバイル最適化 (recruit.html / about.html) */
  .table-basic th,
  table.table-a,
  table.table-a tbody,
  table.table-a tr,
  table.table-a th,
  table.table-a td,
  table.table-b tr,
  table.table-b th,
  table.table-b td {
    display: block;
    width: 100%;
  }

  table.table-a th {
    padding: 10px 20px;
    border-bottom: none;
    text-align: left;
  }

  table.table-b tr {
    margin-bottom: 1rem;
  }

  .torikumi {
    margin-top: 0;
  }

  .torikumi table {
    margin-bottom: 0rem;
    line-height: normal;
  }

  .working_environment .grid-2 {
    gap: 20px;
  }

  /* お問い合わせ・緊急連絡先 (contact.html) */

  .emergency .tel {
    font-size: 1.8rem;
  }

  /* フッター */
  .footer {
    text-align: center;
    padding: 2rem 0;
  }

  .footer-logo {
    margin: 0 auto 20px;
  }

  .footer-links {
    display: none;
  }

  .footer-grid {
    margin-bottom: 30px;
  }

  /* 404 */
  .pageTtl_img.pc {
    display: none;
  }
  .pageTtl_img.sp {
    display: block;
  }
  .pageTtl {
    height: 30px;
  }
  .pageTtl h2 {
    font-size: 1.8rem;
  }
  .wrapper404 {
    padding: 60px 30px;
  }
}
