/* Reset + base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6{
  font-weight: normal;
}

ul,
ol {
  list-style: none;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.container {
  width: 92%;
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 768px) {
.container {
  max-width: 700px;
}
}

@media (min-width: 992px) {
.container {
  max-width: 900px;
}
.container.container-s{
  max-width: 760px;
}
}

/* -------- ベース -------- */
:root {
  --color-text: #1f1f1f;
  --color-bg:#FFFCF8;
  --color-bg-rgb:255, 252, 248;
  --color-accent: #c8102e;
  --color-laccent: #D74450;
  --color-muted: #ededed;
  --color-subbg:#E5F4FE;
  --color-grad: linear-gradient(120deg, #c4001f 0%, #d41426 40%, #f8c08b 100%);
  --space-s: 0.706rem;  /* 12px基準 */
  --space-m: 1.176rem;  /* 20px基準 */
  --space-l: 1.412rem;  /* 24px基準 */
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased; /* フォントスムージングをオフ */
}

body {
  font-family: "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 500;
}

.fs-40 { font-size: clamp(28px, 4vw, 40px); }
.fs-33 { font-size: clamp(20px, 3.5vw, 33px); }
.fs-30 { font-size: clamp(20px, 3vw, 30px); }
.fs-24 { font-size: clamp(19px, 2.6vw, 24px); }
.fs-18 { font-size: clamp(16px, 2vw, 18px); }

.fw-bold{ font-weight:700; }

.mb-xs { margin-bottom: 0.7rem; }
.mb-s { margin-bottom: 1rem; }
.mb-m { margin-bottom: 1.5rem; }
.mb-l { margin-bottom: 3rem; }
.mt-s { margin-top: 1rem; }
.mt-m { margin-top: 1.5rem; }
.mt-l { margin-top: 3rem; }
.my-m { margin-block: 1.5rem; }

.text-center{
text-align: center;
}
.text-white{
color:#fff;
}
.background-subbg{
background: var(--color-subbg);
}
.background-laccent{
background: var(--color-laccent);
}
@media (min-width: 576px) {
  .d-sm-none{
  display: none;
  }
}
@media (min-width: 768px) {
  .d-md-none{
  display: none;
  }
}
/* -------- 装飾 -------- */
main {
background: linear-gradient(to bottom, rgba(69, 155, 204, 1) 0px,
rgba(69, 155, 204, 0) 280px);
padding-top:2rem;
}
.wave-divider{
position: relative;
}
.wave-divider::after {
content: "";
display: block;;
height: 32px;
position:absolute;
bottom:0px;
width:100%;
}
.wave-divider.blue-d::after {
background:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='32' viewBox='0 0 1200 32' preserveAspectRatio='none'><path d='M0 32H1200V4C900 40 300 0 0 14Z' fill='%23459bcc'/></svg>")
no-repeat center/100% 100%;
}

.wave-divider.lblue-d::after {
background:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='32' viewBox='0 0 1200 32' preserveAspectRatio='none'><path d='M0 32H1200V4C900 40 300 0 0 14Z' fill='%23E5F4FE'/></svg>")
no-repeat center/100% 100%;
}

.wave-divider.white-d::after {
background:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='32' viewBox='0 0 1200 32' preserveAspectRatio='none'><path d='M1200 32H0V4C300 40 900 0 1200 14Z' fill='%23FFFCF8'/></svg>")
no-repeat center/100% 100%;
}

.title-line {
  position: relative;
  display: inline-block;
  padding-bottom: 1.5rem;
  width:100%;
}

.title-line::after {
  content: "";
  display: block;
  height: 3px;          /* 線の太さ */
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--color-accent) 6rem,       /* 赤の長さをここで調整 */
    var(--color-muted) 0
  );
  margin-top: 0.8rem;
}

hr{
  border: 0;
  border-top: 1px dotted #ccc;
}

/* -------- ボタン -------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.btn:hover {
  transform: translateY(1px);
  box-shadow: 0 0px 0px rgba(0, 0, 0, 0.28);
  filter: brightness(1.02);
}

.cta-btn {
height:50px;
width: clamp(220px, 60vw, 260px);
color: #fff;
background: var(--color-grad);
}

.header-cta-btn{
background: var(--color-laccent);
color:#fff;
font-size: 0.9rem;
width:170px;
height:45px;
}

.tel-icon {
width: 0.9em;
height: 0.9em;
display: inline-block;
fill: currentColor;
vertical-align: bottom;
}
.tel{
text-align: center;
line-height: 1.2;
font-weight: 700;
}
.tel-note{
font-size:0.5em;
display: block;
font-weight: normal;
}

@media (max-width: 991.98px) {
.sp-cta-btn {
display: none;
align-items: center;
justify-content: center;
height: 38px;
width:150px;
margin-left: auto;
margin-right: 0.6rem;
border-radius: 5px;
font-size: 0.9rem;
color: #fff;
background: var(--color-laccent);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}
.site-header.is-scrolled .sp-cta-btn {
display: inline-flex;
}
.header-cta-btn{
font-size: 1rem;
width:260px;
height:50px;
}
}

/* -------- ヘッダー -------- */
header{
padding:0 1.2rem;
}
.site-header {
position: fixed;
top: 0;
z-index: 1000;
width:100%;
background-color: transparent;
transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
background-color: rgba(var(--color-bg-rgb),0.95);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.site-header.is-menu-open {
background-color: transparent; /* メニューOPEN中は背景を透明に */
box-shadow: none;
}
.header-inner {
display: flex;
align-items: center;
height: 65px;
}
.logo{
width:100px;
}
.header-tel{
font-size:26px;
}
  /* ハンバーガーボタン表示 */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;             /* 隙間 */
  width: 32px;
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.hamburger span {
display: block;
width: 100%;
height: 2px;
border-radius: 4px;
background: var(--color-text);
transition:
opacity 0.35s ease-in-out,
transform 0.3s ease,
background-color 0.3s ease;
transform-origin: center; /* ★ 中央を支点に */
}

/* OPEN中は白にする */
.site-header.is-scrolled .hamburger {
margin-left: 0.5rem;
}

/* X状態 */
.hamburger.is-active span:nth-child(1) {
transform: translateY(12px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}
.main-nav {
display: none;
margin: 0;
color:#fff;
}

.main-nav a{
font-weight: 700;
}

.main-nav.is-open {
display: flex;
flex-direction: column;
position: fixed;
inset: 0;
background: rgba(255, 255, 255, 0.9);
justify-content: center;
align-items: center;
gap: 1.5rem;
z-index: 900; /* ヘッダー内のハンバーガーより背面 */
}
.main-nav.is-open {
font-size: 1.25rem;
color:var(--color-text);
}

.main-nav.is-open .header-tel{
font-size: 28px;
color:var(--color-laccent);
margin-top:2rem;
}

.main-nav.is-open .tel-note{
color:#666;
}

@media (min-width: 992px) {
.site-header.is-scrolled .main-nav:not(.header-cta-btn) {
color: #333;
transition: color 0.2s ease;
}

.site-header.is-scrolled .header-tel{
color:var(--color-laccent);
}

.site-header.is-scrolled .tel-note{
color:#666;
}
}

@media (min-width: 768px) {
.header-inner {
height: 82px;
}
.logo{
width:120px;
}
.hamburger {
  width: 40px;
  gap:12px;
}
.hamburger.is-active span:nth-child(1) {
transform: translateY(14px) rotate(45deg);
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}
}
@media (min-width: 992px) {
.sp-cta-btn {
display: none;
}
.hamburger {
display: none;
}
header{
padding:0 1.5rem;
}
.main-nav {
display: flex;
gap: 1.3rem;
align-items:center;
margin-left:auto;
}
}
@media (min-width: 1200px) {
.main-nav {
display: flex;
gap: 2rem;
align-items:center;
margin-left:auto;
}
}

.company-info {
  padding: 2.5rem 0;
}
.company-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.company-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.company-logo-img {
  width: 120px;
  height: auto;
}

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

.company-links-block li{
  margin:0.4rem 0;
}

.company-links-block a:hover {
  text-decoration: underline;
}

@media (min-width: 992px) {
  .company-info-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 3rem;
  }
  .company-links-block{
  margin-left:auto;
  }
  .company-text-block {
    text-align: left;
  }
}

/* トップページ */
#mv{
color:#fff;
height:460px;
background: url(img/mv.jpg) 65% bottom;
background-size:1270px auto;
position: relative;
}
#mv .container{
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
padding: 7rem 0 3.2rem;
}

#mv h2,#mv p{
text-shadow: 0 1px 6px rgba(0, 30, 60, 0.8);
}

#mv p{
line-height: 1.8;
}
#mv .btn{
margin-top:1.5rem;
}

#mv::before{
  content:"";
  position: absolute;
  top: -240px;
  left: -240px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #d9d9d9;
  mix-blend-mode: color-burn;
  opacity: 0;
  transform: scale(0.95);
  animation: mvCircleFade 1.2s ease-out 0.25s forwards;
  pointer-events: none;
  z-index: 0;
}
#mv::after{
  content:"";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #d9d9d9;
  mix-blend-mode: color-burn;
  opacity: 0;
  transform: scale(0.95);
  animation: mvCircleFade 1.2s ease-out 0.45s forwards;
  pointer-events: none;
  z-index: 1;
}


@media (min-width: 768px) {
#mv{
height:480px;
background-size:1500px;
}
#mv::before{
  width: 640px;
  height: 640px;
  top: -260px;
  left: -260px;
}
#mv::after{
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -160px;
}
#mv .container{
padding: 7rem 0 5rem;
}
}

@media (min-width: 992px) {
#mv{
height:520px;
background-size:1700px;
}
#mv .container{
padding: 9rem 0 6rem;
}
}

@keyframes mvCircleFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 0.85;
    transform: scale(1);
  }
}


.soudan-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.soudan-box-grid .soudan-item:last-child{
  font-size: 1rem;
}
.soudan-item {
  border-radius: 5px;
  padding: 0.7rem 0.3rem;
  background: rgba(var(--color-bg-rgb),0.9);
  border: 1px solid var(--color-bg);
  font-size: 1.02rem;
  letter-spacing: -1px;;
}
.soudan-item::before{
  content:"";
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--color-grad);
}

@media (min-width: 768px) {
.soudan-box-grid .soudan-item:last-child{
  font-size: 1.1rem;
}
.soudan-item {
  font-size: 1.1rem;
  letter-spacing: 0;
}
}

@media (min-width: 992px) {
  .soudan-box-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  .soudan-item {
  padding: 0.7rem 1rem;
  }
}

#profile{
padding-top:5rem;
padding-bottom:5rem;
}
.profile-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-panel-left{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-panel-left > * {
  flex: 1 1 50%;
}
@media (min-width: 768px) {
.profile-panel-left {
    flex-direction: row; /* 768〜991px */
  }
.profile-panel-left .align-bottom {
  align-self: flex-end; 
}
}
@media (min-width: 992px) {
  .profile-panel {
    display: grid;
    grid-template-columns: 16.5rem 1fr;
    column-gap: 3.235rem; /* 55px */
    align-items: start;
  }
.profile-panel-left{
flex-direction: column;
}
.profile-panel-left .align-bottom {
  align-self: flex-start; 
}
}

.profile-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin:0.3rem 0;
}

.profile-list li .label,.cert-list li .label{
  display: inline-block;
}

.cert-list li{
display: flex;
flex-direction: column;
margin-bottom: 0.8rem;
}

.profile-list li .value {
  flex: 1;
}

.profile-img{
 background:#ededed;
}

.profile-img img{
 width:100%;
 margin:0 auto;
 background:#ededed;
}

@media (min-width: 768px) {
.cert-list li{
flex-direction: row;
margin-bottom: 0.5rem;
}
.cert-list li .label {
width:6rem;
}
}

@media (min-width: 992px) {
.profile-img {
  aspect-ratio: 1 / 1;    /* 正方形 */
  overflow: hidden;
}
.profile-img img {
  height: 100%;
  object-fit: cover;      /* 中央をキープしてトリミング */
  object-position: center;
}
}
#soudan{
padding:3rem 0 6rem;
}

.soudan-cards {
  display: grid;
  gap: 1.5rem;
}

.soudan-card {
  background:#fff;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding:2rem;
  position: relative;
}
.soudan-card::before{
  content: "";
  position: absolute;
  height:4px;
  left: 0;
  right: 0;
  background: var(--color-grad);
  top:0px;
  border-radius: 12px 12px 0 0;
}

.soudan-card h3{
display: flex;
gap:1rem;
margin-bottom:1.5rem;
}
.soudan-card h3 img{
display:block;
width:50px;
height: auto;
}



.dot-list {
  padding-left: 0;
  margin: 0;
}

.dot-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.dot-list li::before {
  content: "●";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0;
}

.soudan-card--note {
  background: transparent;
  box-shadow: none;
}

.soudan-card.soudan-card--note::before{
background: transparent;
}

@media (min-width: 992px) {
  .soudan-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .soudan-card--wide {
    grid-column: 1 / -1;
  }
}

#price{
padding:4rem 0;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flow-card {
  background: #fff;
  padding: 1.8rem 1.6rem 2.1rem;
  border-radius: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
}

.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 20px;
  background: #fff;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}

.flow-card h3 {
  font-size: clamp(18px, 4vw, 20px);
  margin-bottom:1rem;
  font-weight: 700;
}

.flow-card h3::after{
content:"";
display: block;
width:8%;
height:3px;
background: var(--color-laccent);
margin: 0.8rem auto 0;
}

.flow-phone {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.flow-phone-note {
  display: inline-block;
  font-size: 0.9rem;
  color: #555;
}

.flow-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.line-btn {
  background: #00b900;
  color: #fff;
  padding: 0.55rem 0.9rem;
  min-width: 140px;
  font-weight: 600;
}

.mail-btn {
  background: #1c9edb;
  color: #fff;
  padding: 0.55rem 0.9rem;
  min-width: 140px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .flow-card {
    padding: 2rem 2.4rem 2.3rem;
  }
  .flow-desc {
    font-size: 1.05rem;
  }
  .flow-actions {
    gap: 0.8rem;
  }
  .line-btn,
  .mail-btn {
    min-width: 160px;
  }
}


.price-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--color-laccent);
}

.price-table th {
  background: var(--color-laccent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  border-right: 1px solid #fff;
}

.price-table td {
background: #fff;
font-size: 1.1rem;
padding: 1rem 1rem;
font-weight: 700;
border-right: 1px solid var(--color-laccent);
}

.price-amount {
  font-size: 1.7rem;
}

.price-note {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

@media (max-width: 767.98px) {
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    border-right: 0;
  }
}

@media (min-width: 768px) {
  .price-table table {
    border-collapse: separate;
    border-spacing: 0;
  }
  .price-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .price-table tr {
    display: grid;
    grid-template-rows: auto 1fr;
  }
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td {
    border-right: 0;
  }

  .price-table th {
  padding: 1.2rem 1rem;
}
.price-table td {
padding: 1.5rem 1rem;
}
}

copy{
background:var(--color-laccent);
color:#fff;
width:100%;
text-align: center;
display: block;
font-size: 0.75rem;
padding:0.3rem 0;
}
