@charset "utf-8";

/* =========================================================
   ちいさな会社のネット相談室
   - ビルドなし。このファイルをそのまま配信する
   - アニメーション / トランジションは使わない
   - レイアウトの寸法体系は takedacpta.jp を分析して設計。
     CSSはすべて自前で記述、先方のコード・画像は使用していない
   ========================================================= */

:root {
  /* ---- 色 ---- */
  --bg: #ffffff;
  --text: #2b2b2b;
  --text-sub: #666666;
  --accent: #1f4e6b;
  --accent-weak: #eaf1f5;
  --border: #dcdcdc;

  /* ---- 書体 ---- */
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;
  --font-round: "Zen Maru Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  --font-heading: var(--font-round);

  /* -------------------------------------------------------
     ▼ 書体の切り替えはここだけ

     A案（いま有効）: 見出しだけ丸ゴシック、本文は Noto Sans JP
     ------------------------------------------------------- */
  --font-body: var(--font-sans);
  --font-body-weight: 400;

  /* B案（ページ全体を丸ゴシック）にするときは、上の2行を次に差し替える
  --font-body: var(--font-round);
  --font-body-weight: 500;
  ------------------------------------------------------- */

  /* ---- かたち ---- */
  --outline: 2px;            /* カード・表・ヘッダー罫の太さ */
  --radius: 10px;            /* カードの角丸 */
  --pill: 100px;             /* ボタンの角丸 */

  /* ---- 寸法 ---- */
  --gutter: 7.2vw;
  --w-xs: 840px;             /* 本文カラム */
  --w-sm: 940px;
  --w-lg: 1240px;            /* カードグリッド */

  --header-h: 80px;
  --section-v: 56px;
  --block-gap: 40px;
}

@media screen and (min-width: 992px) {
  :root {
    --header-h: 100px;
    --section-v: 96px;
    --block-gap: 80px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--font-body-weight);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
}

@media screen and (min-width: 992px) {
  body {
    font-size: 18px;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   レイアウト
   ========================================================= */

.container,
.container--sm,
.container--lg {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container {
  max-width: calc(var(--w-xs) + var(--gutter) * 2);
}

.container--sm {
  max-width: calc(var(--w-sm) + var(--gutter) * 2);
}

.container--lg {
  max-width: calc(var(--w-lg) + var(--gutter) * 2);
}

/* ヒーロー以降は薄い面を地にして、白いカードを載せる */
.main {
  background: var(--accent-weak);
}

.section {
  padding-block: var(--section-v);
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.block {
  margin-top: var(--block-gap);
}

/* =========================================================
   ヘッダー
   ========================================================= */

.l-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-left: 20px;
  background: var(--bg);
  box-shadow: inset 0 calc(var(--outline) * -1) 0 0 var(--text);
}

@media screen and (min-width: 992px) {
  .l-header {
    padding-left: 40px;
  }
}

@media screen and (min-width: 1400px) {
  .l-header {
    padding-left: 60px;
  }
}

.site-title {
  margin: 0;
  align-self: center;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title .site-title__sub {
  display: block;
  margin-top: 0.5em;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.045em;
}

@media screen and (min-width: 992px) {
  .site-title {
    font-size: 21px;
  }

  .site-title .site-title__sub {
    font-size: 11px;
  }
}

/* --- グローバルナビ（デスクトップ） --- */

.gnav {
  display: none;
}

@media screen and (min-width: 992px) {
  .gnav {
    display: block;
    margin-left: auto;
    margin-right: 28px;
  }

  .gnav ul {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .gnav a {
    color: inherit;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }
}

/* --- ヘッダーCTA（デスクトップ） --- */

.header-cta {
  display: none;
}

@media screen and (min-width: 992px) {
  .header-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    align-self: flex-start;
    height: 100%;
    padding: 10px 20px;
    border-left: var(--outline) solid var(--text);
    border-bottom: var(--outline) solid var(--text);
    border-bottom-left-radius: 20px;
    color: inherit;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
  }

  /* 封筒のアイコン（自作） */
  .header-cta::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%231f4e6b' stroke-width='1.6' stroke-linejoin='round'%3E%3Crect x='1.8' y='4.4' width='16.4' height='11.2' rx='1.4'/%3E%3Cpath d='M1.8 5l8.2 6 8.2-6'/%3E%3C/g%3E%3C/svg%3E");
  }
}

/* --- メニュー（モバイル。JSなし、details で開閉） --- */

.menu {
  position: relative;
  align-self: stretch;
}

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

.menu > summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 72px;
  height: 100%;
  list-style: none;
  cursor: pointer;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu__bars {
  position: relative;
  display: block;
  width: 32px;
  height: 2px;
  background: var(--text);
  border-radius: 1rem;
}

.menu__bars::before,
.menu__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1rem;
}

.menu__bars::before {
  transform: translateY(-8px);
}

.menu__bars::after {
  transform: translateY(8px);
}

.menu__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: max-content;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  border-top-right-radius: 0;
}

.menu__panel a {
  display: block;
  padding: 10px 20px;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* =========================================================
   見出し
   ========================================================= */

.heading-oblique,
.heading-circle,
.card__title,
.profile-name,
.statement,
.feature__title {
  font-family: var(--font-heading);
  font-feature-settings: "palt";
}

/* 両脇に斜線の飾り（飾りは自作SVG） */
.heading-oblique {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 0 1em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.04em;
}

.heading-oblique::before,
.heading-oblique::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 28px;
  background: center / cover no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 28'%3E%3Cg stroke='%231f4e6b' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='5' y1='7' x2='11' y2='23'/%3E%3Cline x1='15' y1='7' x2='21' y2='23'/%3E%3C/g%3E%3C/svg%3E");
}

.heading-oblique::before {
  margin-right: 1em;
}

.heading-oblique::after {
  margin-left: 1em;
  transform: scale(-1, 1);
}

/* 先頭にリングの点 */
.heading-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.8em;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.heading-circle::before {
  content: "";
  flex-shrink: 0;
  align-self: flex-start;
  width: 18px;
  height: 18px;
  margin-top: 0.4em;
  margin-right: 15px;
  border: 6px solid var(--accent);
  border-radius: 100%;
}

/* 装飾つき見出しの大きい版（セクションの見出しに使う） */
.heading-oblique--lg,
.heading-circle--lg {
  margin-bottom: 1.2em;
  font-size: 22px;
}

@media screen and (min-width: 992px) {
  .heading-oblique,
  .heading-circle {
    font-size: 18px;
  }

  .heading-oblique--lg,
  .heading-circle--lg {
    font-size: 28px;
  }
}

.heading-accent {
  color: var(--accent);
}

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

.note {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   ヒーロー
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 20px;
  background: var(--bg);
}

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

/* 下に続く面を、大きな円で切り上げる */
.hero::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  width: 400vw;
  height: 400vw;
  margin-top: -230px;
  border-radius: 100%;
  background: var(--accent-weak);
}

@media screen and (min-width: 992px) {
  .hero {
    padding: 80px 0 20px;
  }

  .hero::after {
    width: 1500px;
    height: 1500px;
    margin-top: -23vw;
  }
}

.hero__title {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.71vw, 52px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--accent);
  text-align: center;
  font-feature-settings: "palt";
  letter-spacing: 0.02em;
}

.hero__lead {
  max-width: 30em;
  margin: 0 auto;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

@media screen and (min-width: 992px) {
  .hero__lead {
    font-size: 17px;
  }
}

/* 右端の縦書き */
.hero__side {
  display: none;
}

@media screen and (min-width: 992px) {
  .hero__side {
    display: block;
    position: absolute;
    top: 0;
    right: 60px;
    z-index: 2;
    margin: 0;
    writing-mode: vertical-rl;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.2em;
  }
}

/* ヒーローのイラストはカラムより外へ出す */
.hero__illust {
  margin: 24px auto 0;
  max-width: 560px;
  text-align: center;
}

@media screen and (min-width: 992px) {
  .hero__illust {
    max-width: 1400px;
    margin: 24px -12vw 0;
  }
}

/* いまのイラストは仮のプレースホルダなので、はみ出し幅いっぱいには広げない。
   本番のイラストに差し替えたら、この1ブロックを消して全幅で使う */
.hero__illust .illust {
  max-width: 760px;
  margin-inline: auto;
}

/* =========================================================
   イラスト（インラインSVGのプレースホルダ）
   ========================================================= */

.illust {
  margin: 0;
  text-align: center;
  color: var(--accent);
}

.illust svg {
  width: 100%;
  height: auto;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 白い円を敷いた上にイラストを置く */
.illust-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.illust-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100%;
  background: var(--bg);
}

.illust-circle .illust {
  position: relative;
  width: 88%;
}

/* =========================================================
   カード
   ========================================================= */

.card-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

@media screen and (min-width: 992px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 30px;
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  text-align: center;
}

@media screen and (min-width: 992px) {
  .card {
    padding: 30px 30px 40px;
  }
}

.card__title {
  margin: 0 0 0.3em;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}

@media screen and (min-width: 992px) {
  .card__title {
    font-size: 26px;
  }
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.card .illust {
  width: 74%;
  margin: 14px auto 0;
}

.card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: var(--outline) solid var(--accent);
  border-radius: 100%;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* 旗のかたちのラベル（旗の図形は自作SVG） */
.flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 30px;
  margin-bottom: 14px;
  padding: 0 2rem 0 1.2rem;
  background: right center / auto 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M2 2h116l-14 13 14 13H2z' fill='none' stroke='%231f4e6b' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.flag::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 2px;
  height: 40px;
  background: var(--text);
  border-radius: 100px;
}

/* =========================================================
   交互配置ブロック
   ========================================================= */

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.feature + .feature {
  margin-top: 50px;
}

.feature__visual {
  width: 80%;
  max-width: 300px;
}

.feature__body {
  width: 100%;
}

.feature__title {
  margin: 0 0 0.4em;
  font-size: clamp(22px, 2.29vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media screen and (min-width: 768px) {
  .feature {
    flex-direction: row;
    align-items: center;
    gap: 4%;
  }

  .feature:nth-of-type(even) {
    flex-direction: row-reverse;
  }

  .feature:nth-of-type(even) .feature__body {
    text-align: right;
  }

  .feature:nth-of-type(even) .flag {
    align-self: flex-end;
  }

  .feature__visual {
    width: 35%;
    max-width: none;
    flex-shrink: 0;
  }

  .feature__body {
    flex: 1;
  }

  .feature + .feature {
    margin-top: 56px;
  }
}

/* =========================================================
   本文まわり
   ========================================================= */

.prose p {
  font-size: 16px;
}

@media screen and (min-width: 992px) {
  .prose p {
    font-size: 17px;
  }
}

/* 締めの一文 */
.statement {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

@media screen and (min-width: 992px) {
  .statement {
    font-size: 24px;
  }
}

/* =========================================================
   ボタン
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 1em 2em;
  background: var(--accent);
  border: 0;
  border-radius: var(--pill);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6h8M6.5 2.5L10 6l-3.5 3.5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn:disabled {
  background: var(--text-sub);
  cursor: not-allowed;
}

.btn--min {
  min-width: min(540px, 100%);
}

.btn-wrap {
  margin-top: 32px;
  text-align: center;
}

/* =========================================================
   料金表
   ========================================================= */

.table-wrap {
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--text);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th {
  width: 40%;
  background: var(--accent-weak);
  font-family: var(--font-heading);
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .price-table th,
  .price-table td {
    padding: 18px 24px;
    font-size: 16px;
  }

  .price-table th {
    width: 34%;
  }
}

.price-table .price-main {
  display: block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.price-table .price-detail {
  display: block;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}

/* =========================================================
   よくある質問
   ========================================================= */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
}

.faq summary {
  position: relative;
  padding: 16px 20px 16px 48px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

.faq .faq-body {
  position: relative;
  padding: 0 20px 18px 48px;
  font-size: 16px;
  line-height: 1.8;
}

.faq .faq-body::before {
  content: "A";
  position: absolute;
  left: 20px;
  top: 0;
  color: var(--text-sub);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* =========================================================
   プロフィール
   ========================================================= */

/* 縦 4:5 の顔写真枠 */
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--accent);
}

/* =========================================================
   フォーム
   ========================================================= */

.form {
  max-width: 640px;
  margin: 0 auto;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}

.field .required,
.field .optional {
  margin-left: 8px;
  padding: 0 8px;
  border: 1px solid var(--text-sub);
  border-radius: 4px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
}

.field .required {
  border-color: var(--accent);
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: var(--outline) solid var(--text);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

/* =========================================================
   フッター
   ========================================================= */

.l-footer {
  background: var(--bg);
  padding-inline: 30px;
}

@media screen and (min-width: 992px) {
  .l-footer {
    padding-inline: 60px;
  }
}

.l-footer__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding-block: 30px;
  border-top: var(--outline) solid var(--text);
}

@media screen and (min-width: 992px) {
  .l-footer__content {
    flex-direction: row;
    align-items: flex-start;
    padding-block: 60px;
  }
}

.l-footer .site-title {
  text-align: center;
}

@media screen and (min-width: 992px) {
  .l-footer .site-title {
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 992px) {
  .footer-nav {
    justify-content: flex-end;
  }
}

.footer-nav li {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.copyright {
  padding-bottom: 24px;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
}

@media screen and (min-width: 992px) {
  .copyright {
    text-align: left;
  }
}
