/* ==========================================================
   two verse | 共通スタイル
   HTML: index.html
   ========================================================== */

/* ----------------------------------------------------------
   01. カラー変数・基本設定
   ---------------------------------------------------------- */

:root {
  --dark: #0b1828;
  --navy: #142940;
  --blue: #287db2;
  --ice: #e6f5fa;
  --ink: #16283a;
  --sub: #596b7b;
  --bg: #f5f7fa;
  --border: #dce4ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
  color: var(--ink);
  line-height: 1.85;
}

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

.wrap {
  width: min(1120px,calc(100% - 80px));
  margin: auto;
}

/* ----------------------------------------------------------
   02. ヘッダー・ナビゲーション
   ---------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fffefef5;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 22px;
}

/* ヘッダーロゴ */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  display: block;
  width: 215px;
  max-width: 100%;
  height: auto;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

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

.navcontact {
  background: var(--navy);
  color: white !important;
  padding: 11px 17px;
  border-radius: 7px;
}

.menu {
  display: none;
}

/* ----------------------------------------------------------
   03. ファーストビュー
   ---------------------------------------------------------- */

.hero {
  color: #fff;
  background:
        linear-gradient(120deg,rgba(5,25,43,.8),rgba(17,93,140,.1)),
        url("../img/fv.webp") right center / cover no-repeat;
  padding: 108px 0 116px;
  position: relative;
  overflow: hidden;
}


.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow,.mini {
  color: #70d0e4;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(34px,5.4vw,65px);
  line-height: 1.35;
  letter-spacing: -.06em;
  margin: 22px 0;
}

.hero p {
  max-width: 600px;
  color: #e0e8f1;
  font-size: 16px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 13px 24px;
  font-weight: 800;
  font-size: 14px;
  color:#ffffff !important;
  transition: transform .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: #49b6d2;
  color: #082237;
}

.secondary {
  border: 1px solid #b4d6e5;
  color: inherit;
}

/* ----------------------------------------------------------
   04. 共通セクション・レイアウト
   ---------------------------------------------------------- */

.section {
  padding: 85px 0;
}

.soft {
  background: var(--bg);
}

.section-head {
  margin-bottom: 35px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(27px,3.6vw,39px);
  letter-spacing: -.045em;
  line-height: 1.45;
  margin: 9px 0 15px;
}

.section-head p {
  color: var(--sub);
  margin: 0;
}

.mini {
  color: var(--blue);
}

.lead {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.7;
}

.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.statement {
    background:
        linear-gradient(120deg,rgba(5,25,43,.8),rgba(17,93,140,.1)),
        url("../img/about.webp") right center / cover no-repeat;
  border-radius: 12px;
  padding: 38px;
}

.statement .big {
  font-size: clamp(29px,4vw,46px);
  color: #fff;
  letter-spacing: -.06em;
  font-weight: 900;
  line-height: 1.3;
}

.statement p {
  color: #fff;
  max-width:380px;
}

/* ----------------------------------------------------------
   05. カード・グリッド
   ---------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.card {
  padding: 27px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px #eeeeee;
}

.card h3 {
  margin: 12px 0;
  font-size: 20px;
}

.card p {
  color: var(--sub);
  margin: 0;
  font-size: 14px;
}

.card small {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .12em;
}

.card ul {
  padding-left: 1.3em;
  color: var(--sub);
  font-size: 14px;
}

.grid.two {
  grid-template-columns: repeat(2,1fr);
}

/* ご相談ケースカード（アイコン付き） */
.case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.case-icon {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 18px;
  flex: 0 0 auto;
}

.case-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-content {
  width: 100%;
}

.case-card small {
  display: block;
  text-align: center;
}

.case-card h3 {
  text-align: center;
  margin: 10px 0 12px;
}

.case-card p {
  text-align: center;
  line-height: 1.9;
}


/* サービスカード（画像付きレイアウト） */
.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card .card-media {
  aspect-ratio: 16 / 9;
  background: #d9d9d9;
}

.service-card .card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-body {
  padding: 26px 40px 39px;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: clamp(26px,2.8vw,34px);
   line-height: 1;
  letter-spacing: -.03em;
}

.service-card p {
  font-size: 14px;
  line-height: 2;
}

.service-card ul {
  margin: 24px 0 28px;
  padding-left: 1.2em;
  line-height: 2;
}

.service-card .btn {
  min-width: 320px;
}

/* ----------------------------------------------------------
   06. ご案内・相談ステップ
   ---------------------------------------------------------- */

.band {
  padding-top:15px;
  font-size: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 23px;
  position: relative;
}

.step .n {
  font-size: 12px;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .16em;
}

.step h3 {
  font-size: 17px;
  margin: 10px 0;
}

.step p {
  font-size: 13px;
  color: var(--sub);
  margin: 0;
}

/* ----------------------------------------------------------
   07. よくある質問
   ---------------------------------------------------------- */

.questions {
  max-width: 920px;
}

.questions details {
  border-bottom: 1px solid var(--border);
  padding: 20px 6px;
}

.questions summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.questions summary:before {
  content: "Q ";
  color: var(--blue);
  margin-right: 8px;
}

.questions details p {
  margin: 12px 0 0 27px;
  color: var(--sub);
  font-size: 14px;
}

/* ----------------------------------------------------------
   08. 会社概要
   ---------------------------------------------------------- */

.company {
  width: 100%;
  border-collapse: collapse;
  max-width: 920px;
}

.company th,.company td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company th {
  width: 26%;
  color: var(--sub);
  font-weight: 700;
  background: #f8fafb;
}

/* ----------------------------------------------------------
   09. お問い合わせ・フッター
   ---------------------------------------------------------- */

.contact {
  padding: 85px 0;
  background:
        linear-gradient(120deg,rgba(5,25,43,.8),rgba(17,93,140,.1)),
        url("../img/contact.webp") right center / cover no-repeat;
  color: white;
}

@media (max-width:560px) {
.contact {
  padding: 85px 0;
  background:
        linear-gradient(120deg,rgba(5,25,43,.8),rgba(17,93,140,.1)),
       url("../img/contact_sp.webp") right center / cover no-repeat;
  color: white;
}
}

.contact h2 {
  font-size: clamp(28px,4vw,42px);
  margin: 12px 0;
}

.contact p {
  color: #d0dce7;
  max-width: 760px;
}

.contact .subnote {
  padding-top:20px;
  font-size: 12px;
  color: #adc1d2;
}

.footer {
  background: #07111d;
  color: #c0cad4;
  padding: 30px 0;
  font-size: 12px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items:center;
  gap: 20px;
  flex-wrap: wrap;
}

/* フッターロゴ */
.footer-logo {
  display: block;
  width: 265px;
  max-width: 100%;
  height: auto;
}

@media (max-width:760px) {
  .footer .wrap {justify-content:center;}
}
/* ----------------------------------------------------------
   10. レスポンシブ対応
   ---------------------------------------------------------- */

@media (max-width:800px) {
  .menu {
    display: block;
    background: var(--navy);
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 9px 12px;
    font-weight: 700;
  }
  .links {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .links.open {
    display: flex;
  }
  .hero {
    padding: 72px 0 85px;
  }
  .cols2 {
    grid-template-columns: 1fr;
  }
  .grid,.grid.two,.steps {
    grid-template-columns: 1fr;
  }
  .case-card {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .case-icon {
    width: 80px;
    height: 80px;
    margin: 0;
  }
  .case-content {
    flex: 1;
  }
  .case-card small,
  .case-card h3,
  .case-card p {
    text-align: left;
  }
  .case-card h3 {
    margin: 6px 0 10px;
  }
  .section {
    padding: 65px 0;
  }
}

@media (max-width:560px) {
  /* 狭い画面でもロゴとメニューボタンが横並びになるよう調整 */
  .header .wrap {
    width: calc(100% - 32px);
  }
  .nav {
    gap: 12px;
  }
  .brand img {
    width: clamp(135px,44vw,175px);
  }
  .company th,.company td {
    display: block;
    width: 100%;
    padding: 10px 13px;
  }
  .company td {
    padding-bottom: 16px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .buttons .btn {
    width: 100%;
  }
  .statement {
    padding: 26px;
  }
  .service-card .card-body {
    padding: 24px 24px 28px;
  }
  .service-card .btn {
    min-width: 0;
    width: 100%;
  }
  .case-card {
    padding: 22px;
    gap: 14px;
  }
  .case-icon {
    width: 70px;
    height: 70px;
  }
}
