html {
  font-size: 18px;
}

:root {
  --main-color: #A88BC4;
  --text-color: #2C3E50;
  --sab-color: #666666;
  --nav-font-size: 18px;
}

body {
  padding-top: var(--header-height);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: #fff;
  border-bottom: none;
  align-items: center;
  z-index: 999;
}

.logo {
  margin-left: 10px;
}

.nav {
  display: flex;
  font-size: var(--nav-font-size);
  text-decoration: none;
  transition: 0.2s;
}

.nav-menu a {
  width: 100%;
  justify-content: space-between;
  text-decoration: none;
  margin: 0 20px;
}

.header-line {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  display: block;
}

.header-line img {
  width: 100%;
}

.header-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

a:hover {
  text-decoration: underline;
}

a:active {
  font-size: 1.3rem;
}

.btn-office,.btn-tell {
  display: inline-flex;
  padding: 0 20px;
  background: var(--main-color);
  color: white; /* ← 文字色 */
  font-size: 1rem;
  font-weight: normal;
  border-radius: 6px; /* ← Figmaの角丸 */
  border: none;
  text-decoration: none;
  text-align: center;
  align-items: center;
  transition: .3s ease-in-out;
  flex-wrap: wrap;
  min-width: 160px;
  height: 70px;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* ロゴとメニュー＆ボタンの間隔を確保 */
    padding: 0 40px;
    margin: 0 auto;

}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #7b56a1;
  transition: 0.4s;
}

/* ✨ ハンバーガー開いたときのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ------- スマホ時に変化 ------- */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #d9c7e8;
    display: none;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    font-size: 0.8rem;
    padding: 15px 10px;
  }


  /* ハンバーガーボタン表示 */
  .hamburger {
    display: flex;
    position: absolute;
    right: 10px;
  }
  
.btn-tell {
    display: none;
  }
  .header-btns {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 50px;
  }
  }


/* メインビジュアル */

.main-visual {
    background-image: url(../images/mainvisual.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 800px;
    position: relative;
    margin-top: 180px;
}


h1 {
    font-size: 3.7rem;
    font-weight: bold;
    position: absolute;
    z-index: 1;
    top: 120px;
    left: 70px;
}

.main-visual p {
    color: #666666;
    font-size: 1.5rem;
    position: absolute;
    z-index: 1;
    top: 350px;
    left: 70px;
}

.main-visual a {
    position: absolute;
    z-index: 1;
    top: 600px;
    left: 177px;
}

h2 {
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--text-color);
}

h3 {
    color: #2C3E50;
    font-weight: bold;
}

.osirase {
    color: #666666;
}

.news-wrapper {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;       /* 縦位置を揃える */
  gap: 15px;                 /* 要素の間の余白 */
  padding: 0 60px 0 40px;
}

@media (max-width: 768px) {
  .main-visual {
    background-size: contain;
    background-color: #fffefe;
    height: 40vh
  }
  
  h1 {
    font-size: 1.2rem;
    top: 90px;
    left: 40px;
}
  .main-visual p {
    font-size: 0.7rem;
    position: absolute;
    z-index: 1;
    top: 170px;
    left: 40px;
  }

  .main-visual a {
    position: absolute;
    z-index: 1;
    top: 300px;
    left: 100px;
  }

.main-visual .btn-office {
    display: none;
  }
}



/* 見出しの設定 */
.title1 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
}

.icon {
    width: 60px;
    height: auto;
    margin-left: 40px;
}

.line {
    flex: 1;
    height: 3px;
    background-image: url(../images/Line\ 2.png);
    margin-right: 40px;
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}

.section-line {
    background: url(../images/Line\ 2.png) repeat-x center;
    width: 100%;
    min-width: 1000px;
    margin: 20px 0;
    display: block;
}

/* あやめについて */

.ayame-info p {
    color: var(--text-color);
    font-size: 1rem;
    position: static; /* ← absolute解除 */
    margin: 0 auto;   /* ←要素自体を中央に */
    text-align: left; /* ←文章の行頭を左揃え */
    line-height: 1.8;
}

.ayame-infotext {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 40px;
  text-align: center;
  justify-content: center;
}

.feature,.last-feature {
  width: 90%;
  display: inline-flex;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  justify-content: center;
}

.reverse {
  flex-direction: row-reverse;
}


.feature-img {
  width: 200px;
  height: auto;
  margin: 0 30px;
}

.hidden {
  visibility: hidden;
}

.feature-text {
  width: 450px;
  max-width: 600px;
  line-height: 1.8;
  text-align: left;
}


.feature-text h3 {
  color: var(--main-color);
  font-size: 1.3rem;
  display: inline-block;
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.feature-text p,ol {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1rem;
}

.feature-text h3,
.feature-text p {
  margin-left: 0; /* ←開始位置を揃える */
}

.dot-ol {
  padding-left: 1em;
  line-height: 2rem;
}

.dot-ol li::marker {
  content: "・ ";
}

.last-text {
    display: flex;
    width: fit-content;
    align-items: center;
    margin: 0 auto;
    gap: 50px;
    position: relative;
    left: 5%;
}

.btn5 {
    white-space: nowrap;
    padding: 14px 28px;
    margin-right: -70px;
    margin-top: -20px;
}

@media (max-width: 800px) {
  .feature,.last-feature {
    grid-template-columns: 1fr;
    text-align: center;
    flex-direction: column;
    gap: 20px; /* 縦並びにしたときの要素間の隙間を調整 */
  }

  .feature {
  flex-direction: column; /* 👈 column で上書きして縦並びを統一 */
  position: static;      /* 👈 left: 320px; の設定を解除 */
  left: auto;            /* 👈 念のためリセット */
  }

  .last-feature {
  flex-direction: column;
  position: static;
  left: auto;  
  }

  .feature-img {
    position: static;
    left: auto;
  }

  .hidden {
    display: none;
  }

  .feature-text {
    width: 90%;
    max-width: none;
    text-align: left;
    margin: 0 auto;
  }
  .last-text {
    flex-direction: column;
    text-align: center;
  }
}

/* スタッフ紹介 */

button {
    background-color: #cc7be1;
    color: white;
    font-size: 1.1rem;
    font-weight: normal;
    border-radius: 6px;
    padding: 5px 14px;
    margin: 10px 0;
    text-align: center;
}

p1 {
    color: var(--main-color);
    font-size: 1.1rem;
    padding: 10px 0;
}

.staff-card {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; /* カード同士の余白 */
  justify-content: center;
  margin-top: 40px;
  width: 90%;
}

.content1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 中央揃え */
  text-align: left;
  width: 320px;
  margin: 10px 40px;
}

.content1 img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.content1 button,p1,.content1 p {
    margin-left: 0;
    text-align: left;
}

.content:first-child {
    margin-left: 40px;
}

.content1 p {
  line-height: 1.6;
  padding: 0;
  margin: 0;
  text-align: left;
}

@media(max-width: 768px){
  .staff-card {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .content1 {
    width: 90%;
    align-items: center;
    text-align: center;
  }
}

.staff-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 20px;
    margin-right: 150px;
    gap: 6px;
}

/* サービスガイド */

/* 提供可能サービス */

.service {
  text-align: center;
  padding: 40px 20px;
  background: rgb(168, 139, 196,0.2);
  border-radius: 6px;
  margin: 20px auto;
  max-width: 1800px;
  width: 90%;
}

.section-title {
  font-size: 1.6rem;
  color: var(--sab-color);
  margin-bottom: 40px;
  position: relative;
}

.service-items {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  width: 390px;
  padding: 20px;
  text-align: center;
}

.service-card img {
  width: auto;
  height: 175px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.service-card h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--main-color);
}

.service-card p {
  line-height: 1.7;
}


/* 価格 */

.price {
    text-align: center;
    padding: 40px 20px;
    background: rgb(168, 139, 196,0.2);
    border-radius: 6px;
    text-align: center;
    margin: 20px auto;
    max-width: 1800px;
    width: 90%;
}

.price-title {
    font-size: 1.6rem;
    color: var(--sab-color);
    margin-bottom: 40px;
    position: relative;
}

.price-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.price table {
    width: 380px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #666666;
    overflow: hidden;
    border-collapse: collapse; /* ←セルの線を一本化 */
    table-layout: fixed; /* ← 各セル幅＆高さを統一 */
}

.price th {
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 10px 10px 0 0;
    text-align: center;
    vertical-align: middle;
}

.price table tr:nth-child(1) { height: 80px; }
.price table tr:nth-child(2) { height: 100px; }
.price table tr:nth-child(3) { height: 160px; }
.price table tr:nth-child(4) { height: 80px; }

.medical-price th { background: #C5DDF9; }
.care-price th { background: #FFE4AF; }
.mental-price th { background: #A88BC4; }

.price td {
    padding: 14px 18px;
    border: 1px solid #666666;
    line-height: 1.7;
    color: var(--text-color);
    vertical-align: middle;
}

.price td.note {
    font-size: 0.8rem;
    color: #666;
}

.price-footer {
    display: flex;
    justify-content: center; /* 全体を中央寄せ */
    align-items: center;      /* 上下中央揃え */
    gap: 20px;                /* テキストとボタンの間 */
    margin-top: 20px;
    text-align: center;
}

/* テキスト */
.price-footer p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

@media(max-width: 780px) {
  .price-footer {
      flex-direction: column;
      gap: 10px;
  }
}

/* ご利用の流れ */

.service-flow {
    display: flex;
    justify-content: center;
    padding: 40px 15px;
    background: rgb(168, 139, 196,0.2);
    border-radius: 6px;
    margin: 20px auto;
    max-width: 1000px;
    width: 100%;
    flex-direction: row;
    flex-wrap:wrap ;
}

.flow-title {
    font-size: 1.6rem;
    color: var(--sab-color);
    margin-bottom: 40px;
    position: relative;
}

.flow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  width: 100%;
  padding-left: 10px;
  padding-bottom: 30px;
}

.flow-step {
  margin-bottom: 10px;
  width: 350px;
}

.flow-step .step-title {
    color: #cc7be1;
    font-size: 1.4rem;
}

.flow-step p {
    margin: 20px auto;
    text-align: left;
}

.flow-step img {
  margin: 10px auto;
}

.step1 {
    display: flex;
}

.step1 img {
    width: 110px;
    height: auto;
}

.arrow-set {
    margin-bottom: -150px;
}

.arrow {
    margin-top: -250px;
}

.area {
    text-align: center;
    padding: 40px 5px;
    background: rgb(168, 139, 196,0.2);
    border-radius: 6px;
    margin: 20px auto;
    max-width: 700px;
    width: 90%;
}

.area-title {
    font-size: 1.6rem;
    color: var(--sab-color);
    margin-bottom: 40px;
    position: relative;
}

.area p {
    text-align: center;
}

.area img {
  width: 280px;
  height: auto;
  margin-top: 20px;

}

.final-action {
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
  width: 90%;
}

.final-action img {
  height: 230px;
  width: auto;
  display: block;
  margin: auto;
}

.final-action .btn-office {
  margin-top: auto;
}

.card {
  display: flex;
  width: fit-content;
  flex-direction: column;
  text-align: center;
  gap: 20px;
}

.card1 {
  flex: 60%;
  margin: 0 auto;
  margin-left: 20px;
}

.card2 {
  flex: 35%;
}

.flow-area-wrapper {
  display: flex;
  margin: 20px auto;
  max-width: 1800px;
  width: 100%;
  flex-wrap: wrap;
padding: 0 40px;
}

@media(max-width: 1400px){
  .flow-area-wrapper {
    display: flex;
    flex-direction: column;
  }

  .arrow,.arrow-set {
    display: none;
  }

  .flow-wrapper {
    flex-direction: column;
  }

  .card {
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
  }

  .card2 {
    width: 100%;
  }
  .area,.final-action {
    text-align: center;
  }

  .s-reverse {
    display: inline-flex;
    flex-direction: column-reverse;
  }
}

/* FAQ */

.faq {
  margin: 0 40px;
  padding: 30px;
}

.faq-item {
  border-bottom: 1px solid #e8dff1;
  background: rgb(168, 139, 196,0.2);
  border-radius: 50px;
  text-align: left;
  margin: 20px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.faq-item .question {
  font-size: 1.4rem;
  color: #cc7be1;
  padding-left: 30px;
  margin: 20px 0 0 0;
  text-align: left;
}

.faq-item .answer {
  line-height: 1.8;
  color: var(--text-color);
  padding-left: 30px;
  margin: 0 0 20px 0;
}

/* お問合せ先 */

.square-ol {
  padding-left: 1em;
  margin: 10px;
}
.square-ol li::marker {
  content: "⬛︎ ";
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 80px auto;
    padding: 20px;
    text-align: start;
}

.contact-btn {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    padding: 12px 24px;
    text-align: center;
    font-size: 1.2rem;
    margin: 10px auto;
}

.contact-btn a {
  display: inline-flex;
  align-items: center;   /* ← 縦方向中央揃え */
  padding: 22px 14px; /* ← Figmaの左右余白を適当に */
  background: #A88BC4; /* ← Fill（背景色） */
  color: #fff; /* ← 文字色 */
  font-weight: normal;
  border-radius: 6px; /* ← Figmaの角丸 */
  border: none; /* ← Stroke必要なら変更 */
  text-align: center;
  transition: .3s ease-in-out;
  height: 120px;
}

.recruit-btn-wrapper {
  position: relative;
  display: inline-block;
  text-align: center;
}

.recruit-btn {
  width: 160px;
  height: 160px;
  background: #c991d1 !important;
  border-radius: 50% !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 1rem;
  padding: 15px;
}

.recruit-btn-icon {
  position: absolute;
  right: -25px;
  bottom: -15px;
  width: 80px;
}

@media (max-width: 768px) {
  .contact {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

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

  .contact img {
    width: 100%;
    max-width: 350px;
  }
  .contact-btn {flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .recruit-btn {
    width: 140px;
    height: 140px;
    font-size: .9rem;
  }

  .recruit-btn-icon {
    right: -15px;
    bottom: -10px;
    width: 40px;
  }
}

/* タブレット */
@media (max-width: 1024px) {
  .contact-btn,
  .recruit-btn,
  .btn-office,
  .btn-tell {
    font-size: 1rem;
    padding: 10px 22px;
  }
}
/* スマホ */
@media (max-width: 600px) {
  .contact-btn,
  .recruit-btn {
    font-size: 0.9rem;
    padding: 8px 18px;
  }
}

/* メニュー＆フッター */

.footer-line {
  left: 0;
  width: 100%;
  margin: 20px;
}

.footer-line img {
  width: 100%;
  display: block;
}

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

.menu {
  width: 100%;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 40px;
  justify-content: center;
}

.footer-btns {
    display: flex;
    text-align: center;
    align-items: center;
    margin: 10px 20px 10px 10px;
    height: 70px;
    gap: 10px;
}

footer {
    background-color: #2C3E50;
    padding: 5px 0;
    text-align: center;
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column; /* 👈 縦並びにする */
    align-items: center;    /* 項目を中央揃えにする */
    gap: 10px;              /* 縦並びにしたときの項目間の間隔を減らす */
    margin-left: 0;         /* 左マージンを解除して中央寄せを助ける */
    padding: 10px 0;        /* 上下にパディングを追加して見やすくする */
  }
  
  /* メニュー内のリンク（aタグ）の調整 */
  .nav-menu a {
      /* すでに .nav-menu a には column が適用されているため、不要な場合がありますが、
         もしフッターメニュー（aタグ）が横幅いっぱいに広がっていない場合は以下を追加 */
      width: auto; 
  }

  /* フッターのボタンも縦並びにする場合 */
  .footer-btns {
    flex-direction: column;
    height: auto;
    margin: 10px auto;
  }
}

p2 {
    color: white;
    font-size: 0.8rem;
}