@charset "UTF-8";
/* ----------------------------------
   Base: layout, typography, utilities
------------------------------------- */
:root {
  --radius: 16px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --maxw: 1200px;
}

body {
  font-size: 16px;
  font-family: system-ui, -apple-system, Segoe UI, Helvetica, Arial,
               "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text, #222222);
  background: #ffffff;
}

.wrapper {
  overflow-x: clip;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* font-size */
main h2 {
  color: #1A2873;
  font-size: 1.7em;
  text-align: center;
}
main h2::before, main h2::after {
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  background: url("../images/squre03-left.png") no-repeat center / contain;
  vertical-align: middle;
  position: relative; top: -3px;
}
main h2::before {
  margin-right: 12px;
}
main h2::after {
  margin-left: 12px;
}

main h3 {
  font-size: 1.5em;
  text-align: center;
}
main h3::before, main h3::after {
  content: "";
  display: inline-block;
  width: 50px; height: 2px;
  background: url("../images/line-black.png") no-repeat center / contain;
  vertical-align: middle;
  position: relative; top: -3px;
}
main h3::before{
  margin-right: 10px;
}
main h3::after{
  margin-left: 10px;
}

main h4 {
    font-size: 1.2em;
    text-align: center;
  }

@media (max-width: 2500px) {
  body {
    font-size: 1.1em;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  body {
    font-size: 0.9em;
  }
}
@media (max-width: 400px) {
  body {
    font-size: 0.8em;
  }
}

/*--------------------------------------
  Header 
---------------------------------------*/
/* @media (max-width: 2500px) { */
  header {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0 auto;
    /* padding-bottom: 13px; */
    z-index: 50;
    background: #fff;
    overflow: hidden;

    /* position: relative; */
    /* color: #1A2873; */
    /* background: linear-gradient(#fff, #fff), linear-gradient(90deg,#f7f7fb, #fff); */
    border-bottom: 1px solid #e6e8ef;
    box-shadow: 0 4px 10px rgba(0,0,0,.03);
  }

  /* Full-bleed subtle line under header (no horizontal scroll) */
  /* header::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
  } */

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
  }
  .brand {
    display: flex;
    gap: 10px;
    /* padding-left: 10px; */
  }
  .logo {
    inline-size: 50px;
    background: url(../images/logo.png) left no-repeat;
    background-size: 50px 50px;
  }
  .brand h1 {
    font-size: 30px;
    font-weight: 600;
    color: var(--indigo-800,#1A2873);
  }

  /* ハンバーガーはPCでは非表示、スマホで表示 */
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    justify-content: center;
    align-items:center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap:clamp(8px, 3vw, 16px);
  }
  .nav-links a{
    font-size: 18px;
    font-weight: 600;
    padding: 5px 5px;
  }
  .nav-links a:hover{ 
    color: var(--cyan-400,#59C1D9);
  }
/* } */

@media (max-width: 1024px) and (min-width: 769px) {
  .logo {
    inline-size: 34px;
    background-size: 34px 34px;
  }
  .brand h1 {
    font-size: 24px;
    font-weight: 600;
  }
  .nav-links {
      gap:clamp(5px, 3vw, 10px);
  }
  .nav-links a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .logo {
    inline-size: 30px;
    background-size: 30px 30px;
  }
  .brand h1 {
    font-size: 24px;
    font-weight: 600;
  }
  
  /* モバイルではメニュー非表示 */
  .nav-links { 
    display: none; 
    list-style: none; 
  }
  /* ハンバーガー */
  .menu-toggle {
    display: block;
    margin: 0 auto;
    position: fixed;
    right: 10px;
    top: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* 開いたときだけ表示 */
  .nav-links.is-open { 
    display: block; 
    position: fixed;
    right: 10px;
    top: 60px;
    flex-direction: column;
    background-color: var(--gray-050, #f5f5f5);
    width: 150px;
    gap: clamp(8px, 3vw, 16px);
    padding: 10px 0 ;
    border-radius: 5px;
  }
  .nav-links a {
    font-size: 16px;
  }
  .nav-links li {
    padding: 5px 5px;
    text-align: center; 
  }
}

@media (max-width: 400px) {
  .logo {
    display: none;
  }
  .brand h1 {
    font-size: 20px;
    font-weight: 600;
    margin-left: 1.1em;
  }
}

/*--------------------------------------
  エリア共通
---------------------------------------*/
.container-section {
  display: flex;
  flex-wrap:wrap;
  justify-content:center; 
  align-items:center;     
  gap:16px;
  font-size: 18px;
}

.container-section img{
  width: 70%;
  height: auto;
  margin: auto;
}

.container-box {
  flex:1;
  min-width:240px;
}

.container-left {
  order: 1;
}
.container-right {
  order: 2;
}

.card {
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.img-s img{
  width: 40%;
  height: auto;
  margin: auto;
}
.img-ss img{
  width: 25%;
  height: auto;
  margin: auto;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .container-section {
    display: flex;
    font-size: 16px;
  }
} 
@media (max-width: 768px) {
  .container-section {
    display: block;
    font-size: 14px;
  }
  .card {
    margin-bottom: 5px;
  }
  .image-disp {
    display: none;
  } 
}
@media (max-width: 400px) {

}

/*--------------------------------------
　concept 事務所紹介 エリア
---------------------------------------*/
#concept {
  background-color: #FFFFFF;
}

h2.title::before, h2.title::after {
  background: none;
}
h2.title {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--indigo-800,#1A2873);
}
h3.sub-title::before, h3.sub-title::after {
  background: none;
}
h3.sub-title {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--indigo-800,#1A2873);
}

/* リスト */
.concept-list li {
  position: relative;
  padding-left: 28px;
  list-style: none;
}
.concept-list li::before {
  content: "";                              /* 擬似要素を表示する */
  position: absolute;
  left: 0;
  top: 3px;                                 /* 垂直位置を微調整 */
  width: 20px; height: 20px;
  background-image: url("../images/checkbox.png");
  background-size: contain;                 /* 画像を縮小して収める */
  background-repeat: no-repeat;
}
.aboutus {
  width: 60%;
  margin: 0 auto 0;
}

@media (max-width: 768px) {
  .aboutus {
    width: 100%;
    margin: 0 auto 0;
  }
}
@media (max-width: 400px) {
  h2.title {
    font-size: 1.2em;
  }
}

/*--------------------------------------
　service サービス内容 エリア
---------------------------------------*/
#service {
  background-color: var(--gray-050, #F2F2F2);
}
#service .container-section {
  align-items: stretch;
}
#service .card {
  flex:1;
  min-height: 240px;
}

/*--------------------------------------
　plans 料金案内 エリア
---------------------------------------*/
#plans {
  background-color: var(--white, #FFFFFF);
}
#plans .container-section {
  align-items: stretch;
}
#plans .card {
  flex:1;
  min-height: 240px;
}
p.kakaku {
  color: #1f248C;
  font-weight: bold;
}

/*--------------------------------------
　about 事務所情報 エリア
---------------------------------------*/
#about {
  background-color: var(--gray-050, #F2F2F2);
}
.img-prof img{
  margin: auto;
}
.repres-font { 
  font-size: 1.1em;
  font-weight: 600;
}
.repres-font-rubi {
  color: #666666; 
  font-size: 0.9em;
  padding-left: 1.2em;
}

.dl-row {
  display: grid;
  grid-template-columns: 4em 1fr;
}
.dl-row dt {
  color: #666666;
  text-align: right;
}
.dl-row dd {
  text-align: left;
  margin-left: 10px;
}
#about .office-info{
  justify-items: center;
}

@media (max-width: 768px) {
  #about .container-right {
    justify-items: center;
  }
  #about .container-left {
    justify-items: center;
  }
  .img-prof img{
  width: 30%;
  height: auto;
  }
  #about .office-info {
    justify-items: center;
  }
}

/*--------------------------------------
　contact お問い合わせ エリア
---------------------------------------*/
#contact {
  background-color: var(--white,#FFFFFF);
}
#contact img {
  display:inline;
  width: 10px; height: 10px;
  margin-left: 2px;
  margin-right: 2px;
  position: relative; top: 0px;
}

.contact-section-text {
  margin: auto;
  max-width: 600px;
  padding-top: 20px;
  text-align: center;
}

/* お問い合わせフォーム フレーム */
.dl-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 16px;
  row-gap: 0;
  align-items: start;
}
.dl-contact-row dt,
.dl-contact-row dd {
  margin: 0;
  padding: 5px 5px 0;
  border-bottom: none;
}
.dl-contact-row dt {
  text-align: left;
  font-weight: 600;
}
.dl-contact-row dd {
  color: #666666;
}

/* お問い合わせフォーム 各入力欄 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form label {
  display: block;
  /* margin-bottom: 0.5rem; */
  font-weight: bold;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
dd input,
dd textarea {
  width: 100%;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* お問い合わせフォーム プライバシーポリシー */
.pp-consent {
  display: flex;
  justify-content: center;
}
.pp-consent input[type="checkbox"] {
  margin-top: 7px;
}
.pp-consent label {
  cursor: pointer;
  display:inline;
  margin: 0;
}
.pp-consent a {
  text-decoration: underline;
}
.pp-hint {
  margin-top: 5px;
  color: #666; font-size: 0.7em;
  text-align: center;
}
/* プライバシーポリシー 未同意（:invalid）時のヒント強調（ブラウザの再現は限定的） */
.contact-form:has(#ppAgree:invalid) .pp-hint {
  color: #b20000;
}
/* :has() が使えるブラウザ向け（最新Chromium/Safari等） */
.contact-form:has(#ppAgree:not(:checked)) button[type="submit"] {
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .pp-consent {
    display: block;
    justify-items: center;
  }
  .pp-hint {
    margin-top: -10px;
    margin-bottom: 10px;
  }
}

/* お問い合わせフォーム 送信ボタン */
/* .contact-form button {
  background-color: #F2CB05;
  color: #1A2873; font-size: 24px;
  font-weight: bold;
  border: none;
  padding: 0.8rem 2rem;
  margin: 10px 0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */

.contact-form button:hover {
  color: #59C1D9;
  transform: translateY(-2px); /* ←ふわっと浮く */
}
.contact-form button:active {
  transform: translateY(0); /* ←押し込まれる */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* ←影小さく */
}
.button-area {
  text-align: center;
}
.button-area button {
  width: 250px;
  display: inline-block;
}

/* お問い合わせフォーム 未入力や形式不正の項目に赤枠を表示 */
.input-error {
  border: 2px solid red;
  background-color: #fff0f0;
}

/* お問い合わせフォーム メッセージモーダル表示 */
#modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}
#modal-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
}
#modal-box button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #2d4c3f;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}


/*--------------------------------------
　contact お問い合わせ エリア 確認セクション
---------------------------------------*/

#confirmBox { display: none; }
body.is-confirm main { display: none !important; }
body.is-confirm #confirmBox { display: block; } /* 確認画面だけ表示 */

/* ---- ベース ---- */
:root{
  --brand: #F2CB05;
  --brand-ink: #1f248C;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow-1: 0 8px 20px rgba(0,0,0,.08);
  --radius: 16px;
}

.confirm-section{
  padding: clamp(32px, 4vw, 56px) 16px;
  background: var(--bg);
}
.confirm-container{
  max-width: 960px;
  margin: 0 auto;
}
.confirm-title{
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: .02em;
}
.confirm-lead{
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---- カード ---- */
.confirm-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(16px, 3vw, 28px);
}

/* ---- 一覧（dl） ---- */
.confirm-list{
  margin: 0;
}

.confirm-row{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 20px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.confirm-row:last-child{
  border-bottom: none;
}
.confirm-row dt{
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}
.confirm-row dd{
  margin: 0;
  color: var(--ink);
  line-height: 1.8;
}

/* 改行保持＋折返し */
.confirm-message{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.8;
}
/* ---- ボタン ---- */
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9rem 1.6rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,.10);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.btn-primary {
  background: var(--brand);
  color: #000;
  border-color: #e9bf00;
}

.btn-primary:hover {
  background: #ffd942;
}

.btn-ghost{
  background: #fff;
  color: var(--brand-ink);
  border-color: var(--line);
}

.btn-ghost:hover{
  background: #f3f4f6;
}

/* ---- レスポンシブ ---- */
@media (max-width: 720px){
  .confirm-row{
    grid-template-columns: 1fr;
    gap: 6px 0;
  }
  .confirm-actions{
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
/*--------------------------------------
　contact お問い合わせ エリア サンクスセクション
---------------------------------------*/
body.is-confirm main,
body.is-thanks  main { display: none !important; }
body.is-confirm #confirmBox { display: block; }
body.is-thanks  #confirmBox { display: none !important; }

/* 送信完了オーバーレイ */
.thanks-overlay{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.55); 
  z-index: 9999;
  animation: fadeIn .25s ease both;
}
.thanks-inner{
  width: min(720px, 92vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  text-align: center;
  animation: floatUp .35s ease both;
}
.thanks-inner h2{
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 8px;
}
.thanks-inner p{ margin: 8px 0; }
.thanks-count{ color:#6b7280; }

/* 既存ボタンに合わせて */
.thanks-inner .btn.btn-primary{
  display:inline-block;
  margin-top: 8px;
  padding: .9rem 1.6rem;
  border-radius: 12px;
  background: #F2CB05;
  color:#000;
  border:1px solid #e9bf00;
  font-weight:700;
  text-decoration:none;
}

/* ささやかなアニメーション */
@keyframes fadeIn { from{ opacity:0 } to{ opacity:1 } }
@keyframes floatUp { from{ transform: translateY(8px); opacity:0 } to{ transform: translateY(0); opacity:1 } }

/*--------------------------------------
　contact お問い合わせ エリア 送信完了オーバーレイ
---------------------------------------*/

/*--------------------------------------
  Footer 
---------------------------------------*/
#footer {
  background: #1a2873;
  color: #F2F2F2;
  padding-left: 52px;
}
#footer a {
  color: #f2f2f2;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #f2f2f2;
}
.footer-logo img {
  width: 26px; height: auto;
}
.footer-logo span {  display: inline-block;}

.footer-section {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 45px;
  padding-bottom: 13px;
  font-size: 0.7em;
  gap: 32px; 
}
.footer-box {
  width: 30%;
}
/* footer-box同士の区切り線（縦） */
.footer-box {
  border-right: 1px solid #ccc;
  padding-right: 32px; 
}
.footer-box:last-of-type {
  border-right: none;
  padding-right: 0;
  display: flex;
  flex-direction: column;  /* ←縦並びにする */
  justify-content: flex-end;  /* ←“下側”に揃える */
}

.category-links {
  margin-top:0;
}

.category-links li::before {
  content:"›";
  margin-right: 10px;
  font-weight:600;
}

.footer-pp-links{
  margin-bottom: 0px;
}

small {
  display: flex;
  justify-content: center;
  height: 50px;
  color: #f2f2f2; font-size: 0.7em;
  margin-bottom: 30px;
}
.sns-links {
  margin-top: 1rem;
}
.sns-links a {
  margin-right: 1rem;
  display: inline-block;
}
.sns-links img {
  width: 28px; height: 28px;
  transition: transform 0.3s ease;
}
.sns-links img:hover {
  transform: scale(1.2);
}

/* ---- レスポンシブ ---- */
@media (max-width: 768px) {
  #footer {
    padding-left: 20px;
  }
  .footer-section {
    display: block;
  }
  /* border-rightを消して、border-bottomを適用 */
  .footer-box {
    border-right: none;
    padding-right: 0;
    width: 100%; 
  }
  /* 最後以外にだけ横線をつける */
  .footer-box:not(:last-of-type) {
    border-bottom: 1px solid #ccc;
    /* padding-bottom: 16px; */
    margin-right: 20%;
  }
}






/*--------------------------------------
 スクロール時に要素をふわっと表示 
---------------------------------------*/
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
.scroll-fade.show {
  opacity: 1;
  transform: translateY(0);
}



/*--------------------------------------
  お問い合わせボタン
---------------------------------------*/

/* スマホ（デフォルト）: 下部固定・幅100％ */
.contact-btn {
  position: fixed;
  left: 10%;
  bottom: 10px;
  width: 50%;
  padding: 14px 0;
  text-align: center;
  background: var(--amber-400,#F2CB05);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  z-index: 999;
}

/* PC（768px以上）: 右下固定・小さくする */
@media (min-width: 768px) {
  .contact-btn {
    writing-mode: vertical-rl; /* ← 本物の縦書き */
    position: fixed;
    left: auto;
    right: 0;           /* 右端にくっつける */
    top: 50%;           /* 画面の真ん中基準で */
    transform: translateY(-50%); /* 自分の高さの半分ずらして完全中央 */
    width: 30px;
    height: 180px;
    padding: auto; /* 縦長になるので上下が横になる、好きに調整OK */
    border-radius: 4px 0 0 4px; /* 左だけ丸くするなど */
    font-size: 1.2em;
  }
}

/*--------------------------------------
 「上へ戻る」ボタン（スクロールトップボタン） 
---------------------------------------*/
#scrollTopBtn {
  position: fixed;
  bottom: 10px;
  right: 30px;
  display: none;
  z-index: 999;
  background-color: #59C1D9;
  color: white; font-size: 16px;
  border: none;
  padding: 12px 19px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: #1f248C;
}