@charset "UTF-8";

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

:root {
  --text: #294E61;
  --q1-g: #9EC943;
  --q2-o: #F6AB1B;
  --q2-p: #ED799E;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 0;
}

@media screen and (min-width: 769px) {
  html {
    font-size: 20px;
  }
}

section[id] {
  scroll-margin-top: 60px;
}

@media screen and (min-width: 769px) {
  section[id] {
    scroll-margin-top: 90px;
  }
}

/* =========================================================
   Utility Classes
========================================================= */
.mb0,
.mb-none {
  margin-bottom: 0 !important;
}
.center { text-align: center; }
.mt-med { margin-top: 1.5rem; }
.mt-large { margin-top: 3rem; }
.mt1r { margin-top: 1rem !important; }
.p-inner { padding: 0 1.5rem !important; }
.fs13 { font-size: 1.3rem !important; }

@media screen and (min-width: 769px) {
  .p-inner {
    padding: 0;
  }
  .fs2r {
    font-size: 2rem !important;
  }
}

.wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

.inner {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

@media screen and (min-width: 769px) {
  .inner {
    max-width: 1000px;
  }
}

/* Display Control */
.pc-only { display: none; }
.sp-only { display: block; }

@media screen and (min-width: 769px) {
  .pc-only { display: block; }
  .sp-only { display: none; }
}

/* Global Typography */
.section-title,
.section-title_not-ad {
  font-size: 1.5rem;
  text-align: center;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.section-title {
  font-weight: 500;
}

.section-title_not-ad {
  font-weight: 700;
}

.text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

@media screen and (min-width: 769px) {
  .section-title,
  .section-title_not-ad {
    font-size: 2rem;
    font-weight: 700;
  }
}

@media screen and (max-width: 768px) {
  #data-area {
    scroll-margin-top: 70px !important; 
  }
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50px;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn-outline {
  border: 2px solid #1a4379;
  color: #1a4379;
  padding: 0.6rem 2rem;
  font-size: 0.9rem;
  background-color: #fff;
}

.btn-pink {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50px !important;
  background-color: #E1857B;
  color: #fff;
  padding: 0.4rem 4rem;
  font-size: 1rem;
  margin: 1.5rem auto;
  display: flex;
  width: fit-content;
  border :none;
}

.cta-wrapper {
  margin: 4rem auto 1rem;
  max-width: 100%;
  text-align: center;
}

.cta-small {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.cta-large {
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-pd-lf {
  padding: 0 1.5rem !important;
}

@media screen and (min-width: 769px) {
  .cta-wrapper {
    max-width: 70%;
  }
}

/* --- CTA Button & Banner --- */
.btn-cta {
  display: inline-block;
  position: relative;
  line-height: 0;
  transition: transform 0.3s ease;
}

.cta-banner {
  width: 100%;
  max-width: 750px;
  height: auto;
}

.cta-dejico {
  position: absolute;
  z-index: 2;
  width: 100px;
  left: 10px;
  bottom: -10px;
  pointer-events: none;
}

@media screen and (min-width: 769px) {
  .cta-dejico {
    width: 180px;
    left: 20px;
    bottom: -20px;
  }
}

@media (hover: hover) {
  .btn-cta:hover {
    transform: translateY(-5px);
  }
  .btn-cta:hover .cta-banner {
    filter: brightness(1.1); 
    transition: filter 0.3s ease;
  }
  .btn-cta:hover .cta-dejico {
    transform: translateY(-20px) scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
}

.btn-cta:active {
  transform: translateY(2px);
  filter: brightness(0.9);
}

/* =========================================================
   LP Header
========================================================= */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center; /* 左の2段に対して右のメニューを中央に揃える */
}

/* --- 左側：テキスト2段エリア --- */
.header-text-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text); /* 定義済みの変数を使用 */
}

.header-text-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  padding-bottom: 2px;
}

.header-text-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 4px;
  border-top: 1px solid #1a4379; /* 上下を分ける仕切り線 */
}

/* --- スマホ用：ハンバーガーボタン --- */
.menu-trigger {
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  padding: 0;
}

.menu-trigger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a4379;
  transition: all 0.3s;
}

.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { bottom: 0; }

/* ボタンがクリックされた時の形（X印） */
.menu-trigger.is-active span:nth-child(1) { transform: translateY(11px) rotate(-45deg); }
.menu-trigger.is-active span:nth-child(2) { opacity: 0; }
.menu-trigger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(45deg); }

/* --- スマホ用：ドロワーメニュー --- */
@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    height: 100vh;
    background: #fff;
    padding: 80px 30px;
    transition: transform 0.4s ease;
    z-index: 2100;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .header-nav.is-active {
    transform: translateX(0);
  }

  .nav-list {
    list-style: none;
  }

  .nav-list li {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
  }

  .nav-list a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
    color: var(--text);
  }

  /* 背景を暗くするレイヤー */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500; 
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
}

/* --- PC用調整 (769px以上) --- */
@media screen and (min-width: 769px) {
  .header-inner {
    padding: 12px 20px;
  }

  /* 左：テキストのサイズアップ */
  .header-text-sub {
    font-size: 0.8rem;
  }
  .header-text-main {
    font-size: 1.4rem;
  }

  /* 右：メニューを横1列に */
  .menu-trigger { display: none; }

  .header-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 25px;
  }

  .nav-list li {
    display: block;
    margin-bottom: 0;
    border-bottom: none;
  }

  .nav-list a {
    display: inline-block;
    font-size: 0.95rem;
    transition: color 0.3s;
  }

  .nav-list a:hover {
    color: #1a4379;
  }

  /* お問い合わせボタン */
  .nav-btn {
    background: #1a4379;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
  }
}

.sp-menu-logo {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee; /* メニュー項目との区切り */
}

.sp-menu-logo .header-text-sub {
  font-size: 0.7rem;
  font-weight: 700;
}

.sp-menu-logo .header-text-main {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 4px;
  border-top: 1px solid #1a4379;
  display: block; /* 確実に1枚の板として表示 */
}

@media screen and (min-width: 769px) {
  .sp-menu-logo {
    display: none;
  }
}


/* =========================================================
   First View (FV)
========================================================= */
.fv {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;       /* スマホでの文字の高さ */
  overflow: hidden;
  background-color: #eee;
  margin-top: 60px;
}

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

.fv-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.fv-copy {
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.05em;
  font-size: 1.75rem;
  text-shadow: 
    1px 1px 3px rgba(26, 67, 121, 0.45), 
    0px 0px 15px rgba(26, 67, 121, 0.35);
  padding-left: 1.2rem;
}

.fv-copy span{
  display: block;
}

.fv-sub {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 15px;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(26, 67, 121, 0.9);
}

/*
.fv-sub {
  display: none;
}
*/

/* --- PC用調整 --- */
@media screen and (min-width: 769px) {
  .fv {
    height: 85vh;
    padding-top: 100px;    /* PCでの文字の高さ */
    margin-top: 90px;
  }

  .fv-content {
    width: 100%;
    max-width: 750px; 
    margin: 0;
    padding: 0 1.5rem 0 2.5rem;
  }

  .fv-copy {
    padding-left: 0;
  }

  .fv-copy span,
  .fv-sub {
    display: block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
  }

  .fv-copy span {
    font-size: 3rem;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(26, 67, 121, 0.45);
  }

  .fv-sub {
    font-size: 1.2rem;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(26, 67, 121, 0.45);
    padding-right: 1.8rem;
  }
}

/* --- PC用調整2 --- */
@media screen and (min-width: 1440px) {
  .fv {
    padding-top: 180px;
  }
}

/* =========================================================
   Intro
========================================================= */
.intro {
  padding: 2rem 1.5rem;
  background-color: #fff;
}

.books-container {
  display: flex;
  flex-direction: column; 
  align-items: center;
  gap: 2rem; 
  max-width: 500px; 
  margin: 0 auto;
}

.book-item {
  width: 100%; 
}

.book-link-wrap a {
  display: block;
  line-height: 0;
  transition: transform 0.2s ease;
}

.book-link-wrap img {
  width: 100%;
  height: auto;
  /*シャドウ*/
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.12));
}

@media screen and (min-width: 769px) {
  .books-container {
    flex-direction: row; 
    max-width: 1000px;    
    gap: 20px;           
  }
  .book-item {
    flex: 1; 
  }
  .book-link-wrap a:hover {
    /*移動*/
    transform: translateY(-5px);
    opacity: 0.9;
  }
}

.book-link-wrap a {
  display: block;
  position: relative;
  line-height: 0;
  overflow: hidden; /* はみ出し防止 */
}

.book-link-wrap img {
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
}

.img-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
}

.img-main {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .book-link-wrap a:hover .img-hover {
    opacity: 1; 
  }
}

/* =========================================================
   Data Area (MAP)
========================================================= */
.data-area {
  width: 100%;
  text-align: center;
}

.l-text {
  font-size: 2rem;
  font-weight: 700;
}

.data-desc {
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  margin: 0 1.2rem;
}

.data-map-area {
  position: relative; 
  width: 100%;
  max-width: 1000px;    
  margin: 0 auto 2rem; 
}

.data-map-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.data-map-btn {
  position: absolute;
  top: 33%;
  left: 18%;
  width: 20%;
  max-width: 150px;
  z-index: 10;
}

.data-map-btn img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.3s ease;
}

.data-map-btn:hover img {
  transform: scale(1.1);
}

@media screen and (min-width: 769px) {
  .data-desc {
    display: inline-block;
    margin: 0 auto;
  }
}

/* =========================================================
   Importance
========================================================= */
.importance {
  padding: 3rem 1.5rem;
  background-color: #F7E6C3;
}

.img-wrap {
  margin-bottom: 1.5rem;
  overflow: hidden;
  text-align: center;
}

.importance-sub-title {
  display: inline-block;
  background-color: #e91e63;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 4px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 769px) {
  .importance-sub-title {
    font-size: 1.3rem;
    padding: 10px 30px;
    margin-top: 3.5rem;
  }
}

/* =========================================================
   About Book
========================================================= */
.about-book {
  padding: 3rem 1.5rem;
  background-color: #f2d5d5;
}

/* =========================================================
   Not Ad
========================================================= */
.not-ad {
  padding: 2rem 1.5rem;
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,        
    #ffffff 8px,    
    #d8e2ef 8px,    
    #d8e2ef 9px     
  );
}

.img-books {
  width: 90%;
  margin: 0 auto 2rem;
}

.policy-box {
  border: 8px solid #899BCE;
  border-radius: 12px;
  padding: 0.5rem 1.5rem;
  margin: 1rem 0;
  background: #fff;
}

.policy-box ul {
  text-align: center;
}

.policy-box li {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a4379;
  margin-bottom: 0.4rem;
}

.policy-box li:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 769px) {
  .policy-box {
    margin: 1rem auto;
    max-width: 50%;
    padding: 1rem 1.5rem;
  }

  .policy-box li {
    font-size: 1.5rem;
  }
}

/* =========================================================
   Use Case
========================================================= */
.use-case {
  padding: 3rem 1.5rem 1rem;
}

.use-case-title {
  background-color: #11618E;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 1.3rem;
  margin: -3rem -1.5rem 2rem -1.5rem;
}

.step-list {
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.step-item:not(:last-child) {
  border-bottom: 2px solid #11618E; 
  padding-bottom: 2rem;
  margin-bottom: 2rem; 
}

.step-img {
  width: 100%; 
  line-height: 0;
}

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

.step-text {
  width: 100%;
  padding: 1.5rem 0 0;
  color: #16618E;
}

.step-time {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-head {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #16618E;
}

.step-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #16618E;
}

@media screen and (min-width: 769px) {
  .use-case-title {
    font-size: 2rem;
  }
  .step-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem; 
  }
  .step-item {
    flex-direction: row; 
    align-items: center; 
  }
  .step-img {
    width: 40%; 
  }
  .step-text {
    width: 60%; 
    padding: 2rem; 
  }
}

/* =========================================================
   For Company
========================================================= */
.for-company {
  padding: 2rem 1.5rem 0;
  background-color: #e6edf5;
  text-align: center;
}

.for-company .sub-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1a4379;
}

.for-company .section-title {
  color: #1a4379;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
}

.company-content {
  display: flex;
  flex-direction: column; 
  gap: 2rem;
  text-align: left;
  max-width: 500px; 
  margin: 0 auto;
}

.grid-images {
  width: 100%;
}

.grid-images img {
  width: 100%; 
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-text {
  width: 100%;
}

.company-text p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

@media screen and (min-width: 769px) {
  .company-content {
    flex-direction: row; 
    align-items: center;
    max-width: 100%; 
    padding-left: 2rem;
  }
  .for-company .sub-title {
    font-size: 1.5rem;
  }
  .for-company .section-title {
    font-size: 2rem;
    margin-bottom: 2.7rem;
  }
  .grid-images {
    width: 45%; 
  }
  .company-text {
    width: 55%;
  }
  .company-text p {
    font-size: 0.95rem;
    padding-left: 1rem;
    border-left: 4px solid #1a4379; 
  }
}

/* =========================================================
   Connection
========================================================= */
.connection {
  padding: 1rem 1.5rem;
  background-color: #e6edf5;
}

.conn-main-title {
  text-align: center;
  font-size: 1.2rem;
  color: #1a4379;
  border-top: 2px solid #00518A;    
  border-bottom: 2px solid #00518A; 
  padding: 0.6rem 0;               
  margin-bottom: 0;
}

.conn-item {
  padding: 1rem 0;
  text-align: center;
}

.conn-item + .conn-item {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #11618E;
}

.conn-head {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-align: left;
}

.conn-desc {
  font-size: 1rem;
  color: #555;
  text-align: left;
}

.conn-textwrap {
  padding: 1rem 1rem 0 1rem;
}

@media screen and (min-width: 769px) {
  .conn-main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .conn-textwrap {
    padding: 1rem 3rem 0 3rem;
  }
}

/* =========================================================
   Survey
========================================================= */
.survey {
  padding: 3rem 1.5rem;
  background-color: #fff;
}

.note {
  font-size: 0.75rem;
  color: #777;
  display: block;
  margin-top: 0.5rem;
}

.q-box {
  overflow: hidden;
}

.q-box + .q-box {
  margin-top: 2rem; 
}

.q-title {
  margin: 1rem 0;
  text-align: center;
}

.q-content1 {
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid var(--q1-g);
}

.q-content2 {
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid var(--q2-o);
  margin-bottom: 3rem; 
  position: relative;
}

.q-content2::after {
  content: "";
  position: absolute;
  bottom: -1.5rem; 
  left: 0;
  width: 100%;
  border-bottom: 2px dotted #ccc;
}

.q-content3 {
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid var(--q2-p);
}

.q-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.q-highlight .color-green { color: var(--q1-g); font-size: 1.5rem; }
.q-highlight .color-orange { color: var(--q2-o); font-size: 1.5rem; }
.q-highlight .color-pink { color: var(--q2-p); font-size: 1.5rem; }

.q-text {
  font-size: 0.9rem;
  color: #444;
}

.q-graph-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

@media screen and (min-width: 769px) {
  .q-title {
    margin: 1rem 0 2rem;
  }
  .q-graph-wrap {
    max-width: 70%;
    margin: 1.5rem auto 0;
  }
  .q-graph-wrap-pc { 
    max-width: 100% !important;
    margin: 5rem auto 0;
  }
  .q2-graph-wrap-pc { 
    max-width: 90% !important;
    margin: 5rem auto 0;
  }
}

/* =========================================================
   Company Info
========================================================= */
.company-info {
  padding: 3rem 1.5rem 0;
  background-color: #fff;
  border-top: 1px solid var(--text);
}

.comp-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.comp-title .l-text {
  font-size: 1.4rem;
  font-weight: 700;
}

.comp-images {
  margin-bottom: 1.5rem;
  text-align: center;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  font-weight: bold;
}

@media screen and (min-width: 769px) {
  .comp-title {
    text-align: center;
  }
}

/* =========================================================
   Footer
========================================================= */
.footer {
  background-color: #1a4379;
  color: #fff;
  padding: 2rem 1.5rem 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  max-width: 40%;
  margin: 0 auto;
}

.footer-info {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-company {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-address {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.footer-url {
  color: #ccc;
}

.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

@media screen and (min-width: 769px) {
  .footer-info {
    text-align: center;    
  }

  .footer-logo {
    max-width: 20%;
    margin: 0 auto;
  }
}

/* =========================================================
   CF7
========================================================= */
/* --- フォーム全体 --- */
.cf7-contact {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.form-inner {
  padding: 2rem 1.5rem;
}

.form-title {
  margin: 2rem 0;
  text-align: center;
}

.form-lead {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #444;
}

/* --- 入力欄とラベル --- */
.wpcf7-form .form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.form-label {
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-label.required::after {
  content: "必須";
  font-size: 0.8em;
  color: #fff;
  background-color: #d9534f;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;

  display: inline-block;  /* 必須タグ自体を「一つの塊」として扱う */
  white-space: nowrap;
  vertical-align: middle;
}

.wpcf7-form-control-wrap,
.input-wrapper {
  display: block !important;
  width: 100% !important;
}

.input-text,
.input-textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.input-textarea {
  min-height: 150px;
}

.input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-checkbox-group span.wpcf7-list-item {
  display: block;
  margin: 0 0 10px 0;
}

/* --- バリデーション・エラー --- */
.error-message {
  display: block;
  color: #d9534f;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 0.5rem;
}

.input-text.is-error {
  border-color: #d9534f !important;
  background-color: #fff8f8;
}

/* --- 確認画面 --- */
.form-input-area[aria-hidden="true"] { display: none; }
.confirmation-view { display: none; }
.confirmation-view[aria-hidden="false"] { display: block; }

.confirmation-view ul {
  list-style: none;
  padding: 0;
}

.confirmation-view li {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.confirmation-view .conf-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.confirmation-view .conf-value {
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* --- ボタン周り --- */
.js-btn-wrap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.js-btn-wrap > [aria-hidden="true"] { 
  display: none !important; 
}

.js-btn-wrap button,
.js-btn-wrap input[type="submit"] {
  display: block;
  margin: 0 auto !important;
  width: 100%;
  max-width: 350px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.js-confirm-btn { background-color: #007bff; }
.js-confirm-btn:disabled { background-color: #ccc; cursor: not-allowed; }
.js-return-btn { background-color: #6c757d; }
.wpcf7-form [type="submit"] { background-color: #28a745; }

.js-secondstep {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* --- CF7 レスポンシブ調整 --- */
@media screen and (min-width: 769px) {
  .js-btn-wrap {
    margin-top: 2rem;
  }
  .js-secondstep {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
  }
  .js-secondstep button,
  .js-secondstep input[type="submit"] {
    max-width: 280px;
  }
}

@media screen and (max-width: 768px) {
  .form-lead {
    font-size: 1rem;
    margin-bottom: 3rem;
  }
  .js-secondstep {
    flex-direction: column-reverse; 
  }
}

/* --- CF7 サンクス専用の調整 --- */
.thanks-body {
  text-align: left;
  padding: 2rem 0;
}

.thanks-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #444;
}

.thanks-nav {
  margin-top: 3rem;
  text-align: center;
}

.thanks-nav .btn-pink {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px; 
}

@media screen and (min-width: 769px) {
  .thanks-body {
    padding: 4rem 0;
    text-align: center;
  }
  .thanks-text {
    font-size: 1.1rem;
  }
}

.under-header {
  margin-top: 60px;   /* スマホヘッダーの高さ */
  padding-top: 40px;
}

@media screen and (min-width: 769px) {
  .under-header {
    margin-top: 90px; /* PCヘッダーの高さ */
    padding-top: 80px;
  }
}

/* =========================================================
   Privacy Policy Page
========================================================= */
.privacy-body h3 {
  font-size: 1.4rem;
  border-bottom: 2px solid #1a4379;
  padding-bottom: 5px;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.privacy-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
}
.privacy-body .privacy-date-block {
  text-align: right;
  margin-top: 3rem;
  line-height: 1.8;
}

.pp-margin {
  margin: 2rem 0 5rem !important;
}

/* =========================================================
   Modern Modal (Pop-up)
========================================================= */
/* 背景のすりガラス領域 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px); /* 💡 すりガラス効果 */
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

/* ポップアップが開いたときの状態 */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* モーダル本体の箱 */
.modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 20px; /* 💡 今風のゆるい角丸 */
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* 💡 溶け込む影 */
  transform: translateY(30px); /* 最初は少し下にいる */
  /* 💡 ふわっと浮き出る滑らかな動き */
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.modal-overlay.is-open .modal-content {
  transform: translateY(0);
}

/* タイトルとテキストの装飾 */
.modal-title {
  color: #e91e63;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #f2d5d5;
  padding-bottom: 10px;
}
.modal-content .text {
  color: #333;
  margin-bottom: 0;
}

/* 閉じる（×）ボタンのディテール */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.modal-close-btn span {
  position: absolute;
  width: 16px;
  height: 2px;
  background: #666;
  transition: background 0.3s ease;
}
.modal-close-btn span:first-child { transform: rotate(45deg); }
.modal-close-btn span:last-child { transform: rotate(-45deg); }

/* 💡 ホバー時の遊び心（くるっと回ってピンクになる） */
@media (hover: hover) {
  .modal-close-btn:hover {
    background: #e91e63;
    transform: rotate(90deg);
  }
  .modal-close-btn:hover span {
    background: #fff;
  }
}