@charset "UTF-8";
/* CSS Document */
/* PC（カンプ top.svg / top.png：1920px基準。数値は 1920px を 100vw として換算。1vw = 19.2px） */
:root {
  --b1: #363636; /* メインカラー（文字・線） */
  --b2: #D9D9D9; /* サブカラー（影・ニュース背景） */
  --back: #F7F7F7; /* 背景 */
  --y: #FCF1BB; /* アクセント（黄色の円） */
  --dots: #767676; /* FV背景文字・SPメニュー背景 */
  --copy: #707070; /* コピーライト */
  --filter: rgba(0, 0, 0, 0.6); /* 実績カードのホバー時の黒いフィルタ */
  /* サブスクバナー（現行サイトから流用） */
  --sub-blue: #4481C7;
  --sub-panel: #7DABDE;
  --sub-panel-light: #ADCBD8;
  --sub-accent: #CE6767;
  --sub-ink: #3C3C3C;
  --sub-white: #FFFFFF;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  /* 横にはみ出した飾りで、横スクロールが出ないようにする。
     body ではなく html に付ける：iPhone（Safari）では、body に付けると、position: sticky（aboutのカードの重なり）が効かなくなるため */
  overflow-x: clip;
}
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--b1);
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  font-weight: 400;
  font-feature-settings: "palt";
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  letter-spacing: 0.05em;
  background-color: var(--back);
}
p {
  line-height: 1.9;
  letter-spacing: 0.06em;
}
a {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.06em;
  line-height: 1.5;
  transition: 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  vertical-align: top;
}
.img100 {
  width: 100%;
}
ul {
  list-style-type: none;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.05em;
  line-height: 1.6;
  font-weight: 700;
}
/*////////////////共通：矢印リンク（英字＋円矢印＋点線の下線）/////////////*/
.link_arrow {
  display: flex;
  align-items: center;
  gap: 0.72em;
  width: fit-content;
  padding-bottom: 0.28em;
  font-family: 'Raleway', sans-serif;
  font-size: max(0.63vw + 1.7rem, 2.3rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  /* 矢印は円の外へ飛び出せるよう、円（::after）とは別の層（::before）にする */
  position: relative;
  &::before {
    content: '';
    position: absolute;
    /* 円の中央（円の左右の余白 0.405em、下の点線ぶんの余白 0.28em を除いた高さの中央） */
    top: calc((100% - 0.28em) / 2);
    right: 0.405em;
    width: 0.98em;
    aspect-ratio: 28.571 / 20;
    background: url(../images/line_end_arrow_notch_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg) no-repeat center / contain;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }
  &::after {
    content: '';
    width: 1.79em;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--b1);
    border-radius: 50%;
  }
  /* ホバーで矢印が右へ動き、円から少し飛び出す */
  &:hover::before {
    transform: translate(0.7em, -50%);
  }
}
/*////////////////共通：黄色の円（装飾）/////////////*/
.deco_circle {
  position: absolute;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
/* 外側 .deco_circle が位置と奥行き（スクロール速度）、内側 .deco_lamp が色と点灯を受け持つ */
.deco_lamp {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--y);
}
/* 奥行き（スクロール速度のずれ）は js/script.js で付ける。is-near … 手前・速い / is-mid … 中間 / is-far … 奥・遅れて動く */
/* ランプが灯るように：薄く小さい状態 → 今の色・大きさ（1回だけ。点灯後はそのまま）。
   画面に入ったら JS が is-inview を付けて点灯させる（FVは読み込み直後） */
.js-lamp {
  transform: scale(0.5);
  opacity: 0.3;
  &.is-inview {
    animation: lampOn 2.7s ease-in-out both;
  }
}
@keyframes lampOn {
  from {
    transform: scale(0.5);
    opacity: 0.3;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/*////////////////共通：英字ラベル（英字＋右に点線）/////////////*/
.en_label {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-family: 'Raleway', sans-serif;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  &::after {
    content: '';
    width: 4.28em;
    height: 1px;
    background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  }
}
/*////////////////共通：セクション見出し（英字ラベル＋日本語見出し）/////////////*/
.sec_head {
  margin: 0 7.5%;
}
.sec_title {
  margin-top: 0.33em;
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
/*////////////////スクロールでふわっと表示/////////////*/
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.js-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}
/*////////////////ヘッダー/////////////*/
/* ロゴはスクロールで流れ、nav とお問い合わせボタンだけを fixed で上部固定する */
.head {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}
/* ハンバーガー（SPだけ表示。sp.css） */
.header_menu_btn,
.header_nav {
  display: none;
}
.logo {
  position: absolute;
  top: 0.89vw;
  left: 0.78vw;
  width: max(3.33vw, 50px);
  pointer-events: auto;
}
.head_fix {
  position: fixed;
  top: 0.94vw;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 1.61vw;
  pointer-events: auto;
}
.menu {
  margin-top: 0.99vw;
}
.menu_list {
  display: flex;
  gap: 0.73vw;
  /* 1・3・5番目を下げて互い違いにする */
  > li:nth-child(odd) {
    margin-top: 0.68vw;
  }
}
.menu_link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 3em;
  padding: 0 0.875em;
  background-color: #fff;
  border: 1px dashed var(--b1);
  border-radius: 15px;
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  white-space: nowrap;
  /* ヘッダー・フッター・SPメニュー共通 */
  &:hover {
    background-color: var(--b2);
  }
}
.menu_en {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}
.menu_ja {
  display: block;
  font-size: max(0.63vw, 1.2rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.head_contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 2.67em;
  padding: 0 0.9em;
  background-color: var(--b1);
  color: #fff;
  border-radius: 15px 0 0 15px;
  font-size: max(0.63vw + 1.8rem, 2.4rem);
  &:hover {
    /* 白文字が読める濃さのグレー */
    background-color: var(--dots);
  }
}
.head_contact_en {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}
.head_contact_ja {
  display: block;
  margin-top: 0.3em;
  font-size: max(0.73vw, 1.4rem);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
/*/////////////////トップページ///////////////////////*/
/*////////////////FV/////////////*/
.fv {
  position: relative;
  /* ヘッダー（ナビ・ボタンは画面幅ほど縮まない）とドット文字の間を、狭い画面でも30px前後空ける */
  padding-top: max(7.86vw, 8.8rem);
}
/* 背景の英文：右から左へ流れ続ける */
.fv_bg_text {
  position: relative;
  z-index: 1;
  /* 横に長いトラックで横スクロールが出ないよう、ここで切る */
  overflow-x: clip;
  pointer-events: none;
}
.fv_bg_track {
  display: flex;
  width: max-content;
  margin-left: -13.75vw;
  font-family: 'Raleway Dots', sans-serif;
  font-size: max(14.69vw, 6.6rem);
  color: var(--dots);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  animation: fvBgText 60s linear infinite;
  > span {
    padding-right: 0.4em;
  }
}
@keyframes fvBgText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.deco_circle.is-fv1 {
  top: 20.78vw;
  left: 36.77%;
  width: 5.63vw;
}
.deco_circle.is-fv2 {
  top: 25.31vw;
  left: 57.08%;
  width: 8.85vw;
  > .js-lamp {
    animation-delay: 0.4s;
  }
}
.deco_circle.is-fv3 {
  top: 44.64vw;
  left: 46.46%;
  width: 4.74vw;
  > .js-lamp {
    animation-delay: 0.8s;
  }
}
.deco_circle.is-fv4 {
  top: 73.02vw;
  left: 31.61%;
  width: 7.92vw;
  > .js-lamp {
    animation-delay: 1.2s;
  }
}
.fv_inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: min(3vw, 40px);
  margin-top: 4.53vw;
  /* 右余白はカンプの30.83%（約1700px以上）。それより狭い画面では右余白を減らし、Worksリンクを右へ逃がしてキャッチとの間隔を保つ */
  padding: 0 min(30.83%, 53vw - 37.8rem) 0 7.5%;
}
/* キャッチ・サブコピーが折り返さないよう、文字ブロックは縮めない */
.fv_textbox {
  flex-shrink: 0;
}
.fv_catch {
  font-size: max(2.81vw + 3.6rem, 6.3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.39;
}
.fv_subcopy {
  margin-top: 1.2em;
  font-size: max(0.63vw + 1.8rem, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.fv_lead {
  margin-top: 1.45em;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.fv_works_link {
  margin-top: 8.33vw;
}
/* 実績マーキー：トラックを -18.5deg 傾けて横に流す＝右上→左下の直線移動になる（demosite_light と同じ方式） */
.works_marquee {
  position: relative;
  z-index: 1;
  /* 斜めのトラックは画面外まで長く伸びるため、横だけ切る（縦は斜めに上がる分を見せる） */
  overflow-x: clip;
  /* 文字は画面幅ほど縮まないため、狭い画面ほど余白を多めに取り、斜めに上がってくるカードがリード文に近づかないようにする */
  /* 1916px以上の広い画面では、画面幅に比例（17.97vw）。斜めに上がるカードの高さは画面幅に比例するので、
     rem の固定分が効く広い画面で、Worksリンクとカードが近づく・重なるのを防ぐ */
  margin-top: max(9.88vw + 15.5rem, 17.97vw, 25rem);
}
.works_track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 4.29vw;
  transform-origin: 0 50%;
  animation: worksMarquee 56s linear infinite;
  &:hover {
    animation-play-state: paused;
  }
}
.works_card {
  flex-shrink: 0;
  width: 26.3vw;
  /* トラックの傾きを打ち消して画面自体は水平に見せる */
  transform: rotate(18.5deg);
  > a {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: clip;
    box-shadow: 14px 20px 0 var(--b2);
    /* ホバー（マーキーが止まった時）に黒いフィルタ・実績名・矢印を出す */
    &:hover .works_overlay,
    &:focus-visible .works_overlay {
      opacity: 1;
    }
  }
}
.works_overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0 1em;
  background-color: var(--filter);
  color: #fff;
  font-size: max(0.63vw + 1.2rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* 白い円＋白い矢印（矢印画像は濃い色なので mask で白く塗る） */
.works_arrow {
  position: relative;
  flex-shrink: 0;
  width: 1.79em;
  aspect-ratio: 1 / 1;
  border: 1px solid #fff;
  border-radius: 50%;
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.98em;
    aspect-ratio: 28.571 / 20;
    background-color: #fff;
    mask: url(../images/line_end_arrow_notch_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg) no-repeat center / contain;
    transform: translate(-50%, -50%);
  }
}
@keyframes worksMarquee {
  from {
    transform: rotate(-18.5deg) translateX(0);
  }
  to {
    transform: rotate(-18.5deg) translateX(calc(-50% - 2.145vw));
  }
}
/*////////////////About/////////////*/
.about {
  position: relative;
  padding-top: max(9.69vw, 80px);
}
.deco_circle.is-about1 {
  top: 6.67vw;
  left: 12.08%;
  width: 10.47vw;
}
.deco_circle.is-about2 {
  top: 15.05vw;
  left: 28.85%;
  width: 7.66vw;
  > .js-lamp {
    animation-delay: 0.3s;
  }
}
.deco_circle.is-about3 {
  top: 28.59vw;
  left: 15.36%;
  width: 5.63vw;
  > .js-lamp {
    animation-delay: 0.6s;
  }
}
.deco_circle.is-about4 {
  top: 38.49vw;
  left: 32.66%;
  width: 7.08vw;
  > .js-lamp {
    animation-delay: 0.9s;
  }
}
.deco_circle.is-about5 {
  top: 40.89vw;
  left: 5%;
  width: 11.93vw;
  > .js-lamp {
    animation-delay: 1.2s;
  }
}
.about_inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 0 7.5% 0 41%;
}
.about_title {
  margin-top: 0.16em;
  font-size: max(3.00rem, 4.17vw - 1.00rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.41;
}
.about_text {
  margin-top: 2em;
  /* 32px(1920) → 18px(960)。960px以下は18pxで止める */
  font-size: max(1.46vw + 0.4rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 2.07;
}
.about_link {
  margin: 3.23em 0 0 auto;
}
/*////////////////Service/////////////*/
.service {
  padding-top: max(11.5vw, 80px);
}
.service_list {
  display: grid;
  gap: 4.27vw;
  margin-top: 4.79vw;
  > li {
    width: 75.83%;
    margin-left: 7.5%;
  }
  /* 2・4番目を右へずらして互い違いにする */
  > li:nth-child(even) {
    margin-left: 16.67%;
  }
}
/* カード全体が1つのリンク。両端が半円の白いカプセル */
.service_item {
  display: flex;
  align-items: center;
  gap: 2.08vw;
  /* 高さはカンプの524px（1920px時）。文字が多い幅では中身に合わせて伸びる */
  min-height: 27.29vw;
  padding: 5.08% 17.03% 4.81% 6.04%;
  background-color: #fff;
  border-radius: 999px;
  box-shadow: max(1.82vw, 12px) max(1.82vw, 12px) 0 var(--b2);
  /* ホバーで影をなくし、カード全体を影があった位置へずらす（ボタンが押し込まれる動き）。
     カード自体が動くので、動かない親の li でホバーを判定する（端でちらつかないように） */
  li:hover > &,
  &:focus-visible {
    box-shadow: 0 0 0 var(--b2);
    translate: max(1.82vw, 12px) max(1.82vw, 12px);
    /* 右下の矢印が右へ動き、円から少し飛び出す（.link_arrow と同じ動き） */
    .service_arrow::before {
      transform: translate(calc(-50% + 0.7em), -50%);
    }
  }
}
.service_icon {
  flex-shrink: 0;
  width: 28.39%;
}
.service_body {
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.service_en {
  font-family: 'Raleway', sans-serif;
  font-size: max(1.40rem, 0.63vw + 0.80rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.service_title {
  margin-top: 0.24em;
  font-size: max(1.15vw + 1.4rem, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.service_text {
  /* カンプの改行位置に合わせた読みやすさ上限 */
  max-width: 26.3em;
  font-size: max(1.60rem, 1.25vw + 0.40rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.875;
  /* 矢印との最低限の間隔（狭い幅で本文と矢印が近づきすぎないように） */
  margin: 1.2em 0 1.9em;
}
/* 右下の円矢印（.link_arrow の円と同じ見た目） */
.service_arrow {
  align-self: flex-end;
  width: 1.79em;
  aspect-ratio: 1 / 1;
  margin-top: auto;
  border: 1px solid var(--b1);
  border-radius: 50%;
  font-size: max(0.63vw + 1.7rem, 2.3rem);
  /* 矢印は円の外へ飛び出せるよう別の層にする */
  position: relative;
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.98em;
    aspect-ratio: 28.571 / 20;
    background: url(../images/line_end_arrow_notch_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg) no-repeat center / contain;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
  }
}
/* 一覧ページへのリンク（Service・News共通。左寄せ） */
.service_link,
.news_link {
  margin: 6.77vw 0 0 7.5%;
}
/*////////////////News/////////////*/
.news {
  padding-top: max(12.55vw, 80px);
}
.news_list {
  display: grid;
  gap: 4.64vw;
  margin-top: 5.73vw;
  > li {
    width: 71.56%;
    margin-left: 7.5%;
  }
  /* 1件ごとに右へずらして階段状にする */
  > li:nth-child(2) {
    margin-left: 14.22%;
  }
  > li:nth-child(3) {
    margin-left: 20.94%;
  }
}
/* 1件全体が1つのリンク。写真はグレーの帯から上にはみ出す */
.news_item {
  display: flex;
  align-items: flex-start;
  padding: 0 3.49% 4.15%;
  background-color: var(--b2);
  border-radius: clamp(20px, 2.6vw, 50px);
  /* ホバーで帯がメインカラー・文字が白になり、写真が下へ移動して帯の中に収まる */
  &:hover,
  &:focus-visible {
    background-color: var(--b1);
    color: #fff;
    .news_pic {
      transform: translateY(17.1%);
    }
  }
}
.news_pic {
  flex-shrink: 0;
  width: 29.11%;
  margin-top: -3.05%;
  /* 画像の縦横比がバラバラでも、372:280 にそろえて切り抜く */
  aspect-ratio: 372 / 280;
  object-fit: cover;
  border-radius: clamp(10px, 1.56vw, 30px);
  transition: transform 0.3s ease;
}
.news_body {
  margin-left: 3.6%;
  padding-top: 3.5%;
}
.news_meta {
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  line-height: 1.4;
}
.news_date {
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.news_cat {
  font-size: max(0.73vw, 1.4rem);
  letter-spacing: 0.02em;
}
.news_title {
  margin-top: 1.2em;
  font-size: max(1.60rem, 0.42vw + 1.20rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  /* 最大2行まで。1行のときも2行分の高さを確保して、カードの高さをそろえる */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.2em;
}
/*////////////////フッター（全ページ共通・お問い合わせ含む）/////////////*/
.contact {
  padding-top: max(11.77vw, 80px);
}
.contact_inner {
  margin: 0 7.5%;
}
.contact_title {
  font-size: max(3.00rem, 4.17vw - 1.00rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.contact_text {
  margin-top: 0.87em;
  font-size: max(1.04vw + 0.8rem, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
/* 大きな英字＋円矢印。下に太い点線 */
.contact_link {
  display: flex;
  /* 円の下端を英字のベースラインより少し下に置く（カンプの位置関係） */
  align-items: baseline;
  gap: 0.42em;
  width: fit-content;
  margin-top: 0.28em;
  padding-bottom: 0.47em;
  font-family: 'Raleway', sans-serif;
  /* 166px(1920) → 110px(960)。959px以下は tab.css */
  font-size: max(5.83vw + 5.4rem, 11rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 5px, transparent 5px 10px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 4px;
  /* 矢印は円の外へ飛び出せるよう、円（::after）とは別の層（::before）にする */
  position: relative;
  &::before {
    content: '';
    position: absolute;
    /* 円の中央（円の上端が行の上端と一致するので、上から円の半径ぶん／右から円の半径−矢印の半幅） */
    top: 0.6415em;
    right: 0.2885em;
    width: 0.706em;
    aspect-ratio: 28.571 / 20;
    background: url(../images/line_end_arrow_notch_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg) no-repeat center / contain;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }
  &::after {
    content: '';
    width: 1.283em;
    aspect-ratio: 1 / 1;
    margin-bottom: -0.27em;
    border: 1px solid var(--b1);
    border-radius: 50%;
  }
  /* ホバーで矢印が右へ動き、円から少し飛び出す */
  &:hover::before {
    transform: translate(0.5em, -50%);
  }
}
/* フッター本体 */
.footer_inner {
  display: flex;
  /* ナビが横に収まらない幅では、ナビをロゴ等の下へ回す */
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 5.42vw 7.5% 0;
}
.footer_info {
  flex-shrink: 0;
  width: 25.12%;
  /* 狭い幅でも「長野県伊那市のホームページ制作」を1行に保つ */
  min-width: fit-content;
  /* ナビとの最低限の間隔（幅の内側に取るので1920pxのナビ位置は変わらない） */
  padding-right: 40px;
}
.footer_logo {
  width: max(5.1vw, 70px);
}
.footer_lead {
  margin-top: 2.03em;
  font-size: max(0.73vw, 1.4rem);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.footer_tel {
  margin-top: 1.32em;
  font-size: max(0.21vw + 1.4rem, 1.6rem);
  font-weight: 500;
  > a {
    display: flex;
    align-items: center;
    gap: 0.4em;
    width: fit-content;
    letter-spacing: 0.02em;
    &:hover {
    }
  }
  img {
    width: 1.38em;
  }
}
.footer_nav {
  margin-top: 4.58vw;
}
.footer_nav_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.78vw;
  /* 2・4・6番目を下げて互い違いにする */
  > li:nth-child(even) {
    margin-top: 0.68vw;
  }
}
/* 流用元のスロットは width: 100% のため、余白は padding で取る */
.footer_banner {
  margin-top: 3.1vw;
  padding: 0 7.5%;
}
.copyright {
  margin: 10vw 2.5% 0 0;
  padding-bottom: 2.3vw;
  text-align: right;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--copy);
  letter-spacing: 0.05em;
  > small {
    font-size: inherit;
  }
}
/*////////////////サブスクバナー（現行サイト tomoshibi2023 の css/style.css から流用。書き方は流用元のまま）/////////////*/
/* subscription banner button */
.subscription_banner_slot {
  display: flex;
/*  justify-content: center;*/
  width: 100%;
  container-type: inline-size;
}
.subscription_banner_slot--price {
  margin-top: clamp(40px, 5vw, 72px);
}
.subscription_banner {
  width: min(100cqw, 476px);
  /* aspect-ratio は回転時に高さが更新されないことがあるため、親(スロット)の幅から高さを直接求める */
  height: min(16.807cqw, 80px);
  border-radius: 999px;
  background-color: var(--sub-blue);
  color: var(--sub-white);
  display: block;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  touch-action: manipulation;
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}
.subscription_banner_illustration {
  width: 14.549%;
  height: 55.533%;
  position: absolute;
  top: 22.234%;
  left: 4.049%;
}
.subscription_banner_illustration img {
  width: 100%;
  height: 100%;
}
.subscription_banner_copy {
  width: 31.96%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.84cqw;
  min-width: 0;
  position: absolute;
  top: 9.375%;
  left: 20.798%;
}
.subscription_banner_label {
  width: 100%;
  height: 4.424cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.89cqw;
  border-radius: 999px;
  background-color: var(--sub-panel-light);
  color: var(--sub-ink);
  font-size: 2.101cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.subscription_banner_title {
  font-size: 3.361cqw;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.02em;
}
.subscription_banner_costs {
  display: flex;
  gap: 0.63cqw;
  position: absolute;
  top: 9.375%;
  left: 58.824%;
}
.subscription_banner_cost {
  width: 13cqw;
  height: 5.042cqw;
  border-radius: 2.101cqw;
  background-color: var(--sub-panel);
  color: var(--sub-white);
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  padding: 0.42cqw 0.84cqw;
  font-size: 1.681cqw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.subscription_banner_cost strong {
  font-size: 3.151cqw;
  font-weight: 900;
  margin-left: 0.21cqw;
}
.subscription_banner_price {
  display: flex;
  align-items: baseline;
  font-size: 3.151cqw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: absolute;
  top: 44%;
  left: 58.824%;
}
.subscription_banner_price strong {
  font-size: 6.723cqw;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.subscription_banner_price > span:first-child {
  margin-right: 0.84cqw;
}
.subscription_banner_mark {
  width: 2.941cqw;
  height: 2.941cqw;
  border-radius: 50%;
  background-color: var(--sub-accent);
  position: absolute;
  top: 41.25%;
  right: 3.361%;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.subscription_banner:hover {
  background-color: var(--sub-accent);
}
.subscription_banner:hover .subscription_banner_mark {
  transform: scale(1.12);
  background-color: #ffffff;
}
.subscription_banner:focus-visible {
  outline: 3px solid var(--sub-accent);
  outline-offset: 4px;
}
.subscription_banner:active .subscription_banner_mark {
  transform: scale(0.92);
}
@media (prefers-reduced-motion: reduce) {
  .subscription_banner,
  .subscription_banner_mark {
    transition: 0.2s;
  }
}
/*/////////////////下層ページ共通///////////////////////*/
/*////////////////ページ見出し（日本語 ― 線 ― 英字）/////////////*/
.sub_head {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  margin: 0 7.5%;
  padding-top: 19vw;
}
.sub_title {
  flex-shrink: 0;
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
/* 英字の手前に線を引き、見出しとのあいだを埋める */
.sub_title_en {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.67vw;
  font-family: 'Raleway', sans-serif;
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  &::before {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--copy);
    /* 見出しが表示されたら、左から右へ線が伸びる */
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s ease 0.5s;
  }
}
.sub_head.is-inview .sub_title_en::before {
  transform: scaleX(1);
}
/*/////////////////aboutページ///////////////////////*/
/*////////////////メッセージ/////////////*/
.message {
  margin: 15.63vw 7.5% 0;
  text-align: center;
}
.message_en {
  font-size: max(1.04vw + 0.8rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.message_title {
  margin-top: 0.58em;
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
/* 長文なので読みやすい幅で止め、中央に置く（文字は左揃え） */
.message_text {
  max-width: 28.6em;
  margin: 1.8em auto 0;
  font-size: max(1.04vw + 0.8rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.86;
  text-align: left;
}
/*////////////////大切にしていること/////////////*/
/* 左に見出し、右に画面の右端まで伸びる白いカード */
.values {
  display: flex;
  align-items: flex-start;
  margin-top: 19.27vw;
  /* 見出しはカードと一緒に画面上部で止まる */
  .sec_head {
    position: sticky;
    top: max(5.73vw, 110px);
    flex: 1;
    margin: 0 0 0 7.5%;
  }
}
.values_list {
  /* カードを重ねる（sticky）ため、grid ではなく flex の縦並びにする。
     grid だと、iPhone（Safari）では、カードが自分の行の中でしか止まらず、重ならない */
  display: flex;
  flex-direction: column;
  gap: 2.6vw;
  width: 63.18%;
  list-style: none;
}
/* カードスタック：スクロールすると各カードが画面上部で止まり、次のカードが上に重なっていく。
   止まる位置を1枚ごとに少しずつ下げ、下のカードの上端がのぞくようにする */
.values_item {
  position: sticky;
  top: max(5.73vw, 110px);
  display: flex;
  flex-direction: column;
  min-height: 37.4vw;
  padding: 3.13% 6% 7.3% 3.71%;
  background-color: #fff;
  border-radius: max(5.21vw, 40px) 0 0 0;
}
.values_head {
  display: flex;
  align-items: center;
  gap: 2.19vw;
}
.values_num {
  flex-shrink: 0;
  width: 8.65vw;
}
.values_title {
  /* 番号の丸の中心に、文字の見た目の中心を合わせる */
  margin-bottom: 0.5em;
  font-size: max(1.15vw + 1.4rem, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
/* 下段：イラスト（右揃え）と本文を下で揃える */
.values_body {
  display: flex;
  align-items: flex-end;
  gap: 6.3vw;
  margin-top: auto;
  padding-top: 3vw;
}
.values_pic {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  width: 20.2vw;
}
.values_item:nth-child(2) {
  top: calc(max(5.73vw, 110px) + 1.6vw);
}
.values_item:nth-child(3) {
  top: calc(max(5.73vw, 110px) + 3.2vw);
}
/* 画面の高さがカードより低い端末（スマホの横向き）では、止めると本文が隠れるので重ねない。
   縦向きは対象外：小さいiPhone（SEなど）は、縦向きでも、ツールバーを除いた高さが560px以下になり、止まらなくなるため */
@media (max-height: 560px) and (orientation: landscape) {
  .values_item,
  .values .sec_head,
  .business_map {
    position: static;
  }
}
/* イラストはそれぞれの元の大きさ（1920px時）を画面幅に比例させる */
.values_item:nth-child(1) .values_pic img {
  width: 9.15vw;
}
.values_item:nth-child(2) .values_pic img {
  width: 9.25vw;
}
.values_item:nth-child(3) .values_pic img {
  width: 16.59vw;
}
.values_text {
  max-width: 25.6em;
  margin-bottom: 0.6em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////事業概要・対応エリア/////////////*/
/* 左に事業概要と対応エリア、右に地図 */
.business {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4vw;
  margin: 11.67vw 7.5% 0;
  .sec_head {
    margin: 0;
  }
}
.business_info {
  width: 50.6%;
}
.business_list {
  width: 95.5%;
  margin-top: 1.4em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
/* 各行の下に点線 */
.business_row {
  display: flex;
  padding: 1.5em 0 0.65em;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  > dt {
    flex-shrink: 0;
    /* 項目名は折り返さない（4文字の「事業所名」などが収まる幅を下限にする） */
    width: max(17.4%, 5.8em);
    white-space: nowrap;
  }
  > dd {
    flex: 1;
  }
}
.area {
  margin-top: 7.14vw;
}
.area_text {
  max-width: 40.8em;
  margin-top: 1.4em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.business_map {
  /* 左の事業概要・対応エリアをスクロールしている間、地図は画面上部で止まる */
  position: sticky;
  top: max(5.73vw, 110px);
  flex-shrink: 0;
  width: 35.11%;
}
.business_map_svg {
  display: block;
  width: 100%;
  height: auto;
}
/* 地図がスクロールで表示されたら、黄色い丸が灯る → 線が伸びる → 「伊那市」の文字が現れる、の順に動く。
   丸の動きはトップの黄色い丸（lampOn）と同じ種類：薄く小さい状態 → 今の色・大きさ（地図では少し速い1.6秒）。
   位置を決める translate は外側の <g> に置き、丸自身には transform 属性を付けない（丸の中心を軸に、その場で大きくなるように）。
   keyframes ではなく scale / opacity の transition で動かす */
.map_pin {
  scale: 0.5;
  opacity: 0.3;
  transform-box: fill-box;
  transform-origin: center;
  transition: scale 1.6s ease-in-out 0.8s, opacity 1.6s ease-in-out 0.8s;
}
.map_line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.6s ease 2s;
}
.map_label {
  opacity: 0;
  translate: -12px 0;
  transition: opacity 0.5s ease 2.5s, translate 0.5s ease 2.5s;
}
.business_map.is-inview {
  .map_pin {
    scale: 1;
    opacity: 1;
  }
  .map_line {
    stroke-dashoffset: 0;
  }
  .map_label {
    opacity: 1;
    translate: 0 0;
  }
}
/* aboutページのフッターのお問い合わせ上の余白（対応エリアの本文から） */
.page_about .contact {
  padding-top: max(16.67vw, 80px);
}
/*////////////////下層ページ共通：リード文・ページ内リンク/////////////*/
.sub_lead {
  max-width: 34em;
  margin: 15.63vw auto 0;
  padding: 0 7.5%;
  box-sizing: content-box;
  font-size: max(1.04vw + 0.8rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.86;
  text-align: center;
}
/* 文節のまとまりを途中で折り返さない（1〜2文字だけ次の行に残るのを防ぐ） */
.phrase {
  display: inline-block;
}
.sub_nav {
  margin: 3.4vw 7.5% 0;
}
/* ナビの楕円ボタンと同じ見た目で、中央に並べる（PCでは折り返さない） */
.sub_nav_list {
  display: flex;
  justify-content: center;
  gap: 0.52vw;
}
.sub_nav_link {
  display: block;
  padding: 0.75em 0.9em;
  background-color: #fff;
  border: 1px dashed var(--b1);
  border-radius: max(0.78vw, 10px);
  /* 960pxで12px・1920pxで16px。幅に合わせて文字も余白も縮む */
  font-size: calc(0.42vw + 0.8rem);
  font-weight: 500;
  white-space: nowrap;
  &:hover {
    background-color: var(--b2);
  }
}
/* ページ内リンクで飛んだとき、固定ヘッダーに見出しが隠れないようにする */
.page_service [id],
.page_price [id],
.page_contact [id],
.page_privacy [id] {
  scroll-margin-top: max(5.73vw, 110px);
}
/*/////////////////サービスページ///////////////////////*/
/*////////////////つくり方のこだわり/////////////*/
.craft {
  margin-top: 10.4vw;
}
/* 5枚のカード：上段3枚、下段2枚を中央に */
.craft_list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.6vw;
  margin: 4.2vw 7.5% 0;
  list-style: none;
  > li {
    grid-column: span 2;
  }
  > li:nth-child(4) {
    grid-column: 2 / span 2;
  }
}
.craft_item {
  display: flex;
  flex-direction: column;
  padding: 2.6vw 2.2vw 3.1vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
}
/* アイコンは同じ高さの枠の中で、下揃え・中央に置く */
.craft_pic {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* アイコンの大きさ（1920pxで高さ90px） */
  height: 4.7vw;
  > img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
  }
}
.craft_num {
  margin-top: 2.1vw;
  font-family: 'Raleway', sans-serif;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.craft_title {
  margin-top: 0.3em;
  font-size: max(2.00rem, 0.42vw + 1.60rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.craft_text {
  margin-top: 0.9em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////各サービス（オーダーメイド制作／リニューアル／保守・運用／写真・動画撮影）/////////////*/
.detail_list {
  display: grid;
  gap: 7.3vw;
  margin: 10.4vw 7.5% 0;
}
/* 左にイラスト、右に説明。1つごとに左右を入れ替える */
.detail {
  display: flex;
  align-items: flex-start;
  gap: 6.25vw;
  &:nth-child(even) {
    flex-direction: row-reverse;
  }
  .sec_head {
    margin: 0;
  }
}
.detail_pic {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 36%;
  aspect-ratio: 1 / 0.82;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  > img {
    width: 62%;
  }
}
.detail_body {
  flex: 1;
  /* 画面が広くても1行が長くなりすぎないよう、文字数（em）で幅を止める（1行およそ35文字） */
  max-width: 36em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
/* 「保守・運用」の見出しに添える「オプション」 */
.detail_badge {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.3em 0.9em;
  background-color: var(--b1);
  color: #fff;
  border-radius: 100px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  vertical-align: middle;
}
.detail_text {
  margin-top: 1.4em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.detail_block {
  margin-top: 2.2em;
}
.detail_label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
  /* 見出しの頭にグレーの縦長の長方形 */
  &::before {
    content: '';
    flex-shrink: 0;
    width: 0.35em;
    height: 1.1em;
    background-color: var(--b2);
  }
}
/* 「こんな方に」：点線で区切った行 */
.detail_points {
  margin-top: 0.4em;
  list-style: none;
  > li {
    padding: 0.7em 0 0.6em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.6;
    background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 1px;
  }
}
/* 「できること」など：白い楕円のタグを並べる */
.detail_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 0.9em;
  list-style: none;
  > li {
    padding: 0.5em 1.2em;
    background-color: #fff;
    border-radius: 100px;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }
}
.detail_price,
.detail_note {
  margin-top: 0.6em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.detail_price a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  &:hover {
    text-decoration: none;
  }
}
/* 日本語の矢印リンク（英字用の Raleway ではなく本文のフォントで表示） */
.detail_link {
  margin-top: 2.6em;
  /* 英字の矢印リンクより小さく（1920pxで約22px） */
  font-size: max(0.42vw + 1.4rem, 1.8rem);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
/*////////////////制作の流れ/////////////*/
.flow {
  margin-top: 10.4vw;
}
.flow_lead {
  margin: 1.8em 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.flow_list {
  display: grid;
  gap: 2.1vw;
  margin: 3.6vw 7.5% 0;
  list-style: none;
}
/* 左にイラスト、右にテキスト */
.flow_item {
  display: grid;
  grid-template-columns: 17% 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 4.2vw;
  align-items: start;
  padding: 2.6vw 4.2vw 2.6vw 3.1vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  > * {
    grid-column: 2;
  }
}
/* イラストの枠。横幅をそろえて、縦横比のまま */
.flow_pic {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  > img {
    width: auto;
    max-width: 100%;
    max-height: 6.8vw;
  }
}
.flow_num {
  font-family: 'Raleway', sans-serif;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--dots);
  > span {
    font-size: 1.4em;
  }
}
.flow_title {
  margin-top: 0.3em;
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.flow_text {
  max-width: 36em;
  margin-top: 0.9em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////よくある質問/////////////*/
.faq {
  margin-top: 10.4vw;
}
.faq_lead {
  margin: 1.8em 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
  > a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
    &:hover {
      text-decoration: none;
    }
  }
}
.faq_list {
  display: grid;
  gap: 1.04vw;
  margin: 3.6vw 7.5% 0;
}
.faq_item {
  border: 2px solid var(--b1);
  /* 閉じているときに両端がちょうど半円になる（質問の行の高さの半分以上にしてある） */
  border-radius: 2.5em;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.faq_q {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.5em 2.2em 1.5em 2.2em;
  list-style: none;
  cursor: pointer;
  &::-webkit-details-marker {
    display: none;
  }
}
.faq_mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  background-color: var(--b1);
  border-radius: 50%;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
}
.faq_mark_a {
  background-color: var(--y);
  color: var(--b1);
}
.faq_q_text {
  flex: 1;
  font-size: 1.05em;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
/* 開閉のしるし（＋が－になる） */
.faq_icon {
  position: relative;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--b1);
    transition: transform 0.3s ease;
  }
  &::after {
    transform: rotate(90deg);
  }
}
.faq_item[open] .faq_icon::after {
  transform: rotate(0deg);
}
.faq_q:hover .faq_q_text {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.faq_a {
  display: flex;
  gap: 1.2em;
  padding: 0 2.2em 1.8em 2.2em;
  > p {
    flex: 1;
    max-width: 36em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.95;
  }
}
/*////////////////料金ページ/////////////*/
/*////////////////プラン（スモール・ベーシック・アドバンス）/////////////*/
.plan {
  margin-top: 10.4vw;
}
.plan_catch {
  margin-top: 0.9em;
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.plan_inner {
  display: flex;
  align-items: flex-start;
  gap: 5.2vw;
  margin: 3.6vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.plan_info {
  flex: 1;
}
.plan_price {
  font-family: 'Raleway', sans-serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  > strong {
    font-size: 3.2em;
    font-weight: 700;
  }
  > small {
    margin-left: 0.3em;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
  }
}
.plan_text {
  max-width: 36em;
  margin-top: 1.4em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.plan_spec {
  margin-top: 2em;
}
.plan_spec_row {
  display: flex;
  gap: 1.2em;
  padding: 0.9em 0 0.8em;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  > dt {
    flex-shrink: 0;
    width: 7em;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.8;
  }
  > dd {
    flex: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.8;
  }
}
/* 構成図：サイトのページ構成を、線でつないだ木の形で見せる */
.plan_diagram {
  flex-shrink: 0;
  width: 46%;
  padding: 2.6vw 2.6vw 3vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
}
.plan_diagram_label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
  &::before {
    content: '';
    flex-shrink: 0;
    width: 0.35em;
    height: 1.1em;
    background-color: var(--b2);
  }
}
.tree {
  margin-top: 1.2em;
  font-size: 0.92em;
  list-style: none;
}
.tree_children {
  margin: 0.3em 0 0 1.6em;
  list-style: none;
  > li {
    position: relative;
    /* ページの下に吹き出しを置くため、1列で上から並べる（画面幅が広くても横には並べない） */
    display: grid;
    justify-items: start;
    padding: 0.4em 0 0.4em 2em;
    /* 左の縦線と、横の短い線 */
    &::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      border-left: 1.5px solid var(--b1);
    }
    /* 横の線は、ページ名の高さ（上の余白0.4em＋ページ名の高さの半分1.05em）に合わせる */
    &:last-child::before {
      bottom: auto;
      height: 1.45em;
    }
    &::after {
      content: '';
      position: absolute;
      top: 1.45em;
      left: 0;
      width: 1.4em;
      border-top: 1.5px solid var(--b1);
    }
  }
}
.tree_node {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.35em 1.1em 0.35em 0.45em;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  > i {
    padding: 0.2em 0.7em;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: 'Raleway', sans-serif;
    font-size: 0.7em;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
  }
}
.tree_node--top {
  background-color: var(--y);
}
.tree_node--page {
  background-color: var(--b2);
}
.tree_node--post {
  background-color: #D2E6CC;
}
.tree_node--form {
  background-color: #CFE0F0;
}
/* 確認・完了など、つづくページ */
.tree_node--step {
  padding: 0.35em 1em;
  border: 1px dashed var(--b1);
}
.tree_chain {
  display: inline-flex;
  align-items: center;
}
.tree_link {
  width: 0.9em;
  border-top: 1.5px solid var(--b1);
}
/* 「自分で更新できる」の吹き出し。投稿のページの下に、上向きの三角つきで置く */
.tree_bubble {
  position: relative;
  flex-basis: 100%;
  max-width: max-content;
  margin: 0.6em 0 0 1.4em;
  padding: 0.3em 0.9em;
  background-color: var(--b1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  &::before {
    content: '';
    position: absolute;
    top: -0.4em;
    left: 1.2em;
    border-style: solid;
    border-width: 0 0.35em 0.45em;
    border-color: transparent transparent var(--b1);
  }
}
/*////////////////小規模事業者向けサブスク/////////////*/
.plan_sub {
  margin: 10.4vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  text-align: center;
}
.plan_sub_text {
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.95;
}
.plan_sub .subscription_banner_slot {
  justify-content: center;
  margin-top: 1.6em;
}
/*////////////////注記・オプション/////////////*/
.plan_notes {
  margin: 4.2vw 7.5% 0;
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  list-style: none;
  > li {
    position: relative;
    padding-left: 1.2em;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.95;
    &::before {
      content: '※';
      position: absolute;
      left: 0;
    }
  }
}
.option {
  margin-top: 10.4vw;
}
.option_list {
  margin: 4.2vw 7.5% 0;
  list-style: none;
}
/* 左に保守・運用の料金、右に保守契約の内容 */
.option_item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 5.2vw;
  padding: 3.1vw 3.1vw 3.6vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.option_badge {
  display: inline-block;
  margin-left: 0.8em;
  padding: 0.3em 0.9em;
  background-color: var(--b1);
  border-radius: 100px;
  color: #fff;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  vertical-align: middle;
}
.option_price {
  font-family: 'Raleway', 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  > strong {
    font-size: 2.2em;
    font-weight: 700;
  }
  > small {
    margin-right: 0.4em;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
  }
}
.option_note {
  margin-top: 0.9em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////お支払いについて/////////////*/
.payment {
  margin-top: 10.4vw;
}
.payment_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6vw;
  margin: 4.2vw 7.5% 0;
  list-style: none;
}
.payment_item {
  padding: 2.6vw 2.6vw 3.1vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.payment_title {
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.payment_text {
  max-width: 36em;
  margin-top: 0.9em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////制作実績ページ（一覧）/////////////*/
/*////////////////業種で絞り込み/////////////*/
.work_tabs {
  display: grid;
  gap: 1.1vw;
  margin: 5.2vw 7.5% 0;
}
/* 「業種」「地域」の見出しとタブを1行にして、左揃えで並べる（2行とも、タブの始まりをそろえる） */
.work_tab_group {
  display: flex;
  align-items: flex-start;
  gap: 0.73vw 1.5vw;
}
.work_tab_title {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5em;
  /* タブの縦中央に、見出しの文字をそろえる */
  min-height: 2.9em;
  width: 4.4em;
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
  &::before {
    content: '';
    flex-shrink: 0;
    width: 0.35em;
    height: 1.1em;
    background-color: var(--b2);
  }
}
.work_tab_list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.73vw;
}
.work_tab {
  display: block;
  padding: 0.75em 1.1em;
  background-color: #fff;
  border: 1px dashed var(--b1);
  border-radius: max(0.78vw, 10px);
  font-size: calc(0.42vw + 0.8rem);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease;
  &:hover {
    background-color: var(--b2);
  }
  /* 今開いている業種 */
  &[aria-current='page'] {
    background-color: var(--b1);
    border-style: solid;
    color: #fff;
  }
}
/*////////////////実績カード/////////////*/
.work_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.6vw 2.6vw;
  margin: 4.2vw 7.5% 0;
  list-style: none;
}
.work_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.2vw 1.1vw 1.9vw;
  background-color: #fff;
  border-radius: max(2.6vw, 25px) 0 0 0;
  transition: background-color 0.25s ease;
  &:hover {
    background-color: var(--b2);
  }
}
.work_thumb {
  display: block;
  overflow: hidden;
  /* サムネイルが白いと、白いカードとの境目がわからないため枠線をつける */
  border: 1px solid var(--b2);
  border-radius: 10px;
  /* 画像最適化プラグインが <picture> で包んでも効くよう、子孫で指定する */
  img {
    display: block;
    width: 100%;
    height: auto;
    /* 画像の縦横比がバラバラでも、16:10 にそろえて切り抜く */
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}
.work_name {
  display: block;
  margin: 1.1em 0.6em 0;
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.work_label {
  display: block;
  margin: 0.5em 0.9em 0;
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.work_text {
  display: block;
  margin: 0.8em 0.9em 0;
  font-size: max(0.21vw + 1.4rem, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
/*////////////////ページ送り/////////////*/
.pager {
  margin: 6vw 7.5% 0;
}
.pager_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.73vw;
}
.pager_link {
  display: grid;
  place-items: center;
  min-width: 2.8em;
  height: 2.8em;
  padding: 0 0.9em;
  background-color: #fff;
  border: 1px dashed var(--b1);
  border-radius: 100px;
  font-family: 'Raleway', 'Zen Kaku Gothic New', sans-serif;
  /* Raleway の数字は、既定では 2・3・5 などが上下にずれる（オールドスタイル）ので、高さのそろった数字にする */
  font-variant-numeric: lining-nums;
  font-size: max(0.21vw + 1.4rem, 1.6rem);
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s ease;
  &:hover {
    background-color: var(--b2);
  }
  &[aria-current='page'] {
    background-color: var(--b1);
    border-style: solid;
    color: #fff;
  }
}
.pager_next {
  font-family: 'Zen Kaku Gothic New', sans-serif;
}
/*////////////////制作実績ページ（詳細）/////////////*/
/* 詳細ページは、中身の最大幅を1200pxにする（左右の余白が7.5%ずつなので、mainを1412px＝1200px÷0.85にする） */
.page_works_detail main {
  max-width: 1412px;
  margin-inline: auto;
}
/*////////////////タイトルまわり/////////////*/
.work_head {
  margin: 0 7.5%;
  padding-top: 19vw;
}
.work_title {
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
/* 地域・業種・公開年月 */
.work_meta,
.work_scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin-top: 1.4em;
  font-size: max(0.21vw + 1.2rem, 1.4rem);
  list-style: none;
  > span,
  > li {
    padding: 0.3em 1.1em;
    background-color: #fff;
    border: 1px dashed var(--b1);
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.6;
  }
}
/* リード文の下に、担当したものを並べる */
.work_scope {
  margin: 2em 7.5% 0;
}
.work_site {
  margin-top: 2em;
  max-width: 100%;
  gap: 0.5em;
  font-size: max(0.42vw + 1.4rem, 1.8rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
  /* 円矢印はやめて、URLの右に「外部サイト」のマークを置く */
  &::before {
    content: none;
  }
  &::after {
    flex-shrink: 0;
    width: 1.2em;
    border: 0;
    border-radius: 0;
    background-color: currentColor;
    -webkit-mask: url(../images/icon_external.svg) no-repeat center / contain;
    mask: url(../images/icon_external.svg) no-repeat center / contain;
  }
}
.work_visual {
  margin: 4.2vw 7.5% 0;
  padding: 2.6vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  /* 画像最適化プラグインが <picture> で包んでも効くよう、子孫で指定する */
  img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--b2);
    border-radius: 10px;
  }
}
.work_lead {
  max-width: 40em;
  margin: 4.2vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
.overview,
.gallery {
  margin-top: 10.4vw;
}
/*////////////////制作概要/////////////*/
.overview_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.6vw;
  margin: 4.2vw 7.5% 0;
  list-style: none;
}
.overview_item {
  padding: 2.6vw 2.6vw 3.1vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.overview_num {
  font-family: 'Raleway', sans-serif;
  font-size: max(0.31vw + 1.4rem, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.overview_title {
  margin-top: 0.3em;
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.overview_text {
  max-width: 36em;
  margin-top: 0.9em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
}
/*////////////////画面ギャラリー/////////////*/
.gallery_wrap {
  display: flex;
  align-items: flex-start;
  gap: 3.6vw;
  margin: 3.6vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.gallery_group--pc {
  flex: 0 0 70%;
}
.gallery_group--sp {
  flex: 1;
}
/* 縦長のスクリーンショット */
.gallery_pic {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.4em;
  background-color: #fff;
  border: 1px solid var(--b2);
  border-radius: 10px;
}
/*////////////////前の実績・一覧・次の実績/////////////*/
.work_nav {
  /* 前の実績・次の実績のどちらかがなくても、真ん中の「一覧へ」がずれないよう、3列で組む */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 2vw;
  margin: 10.4vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  > :last-child {
    justify-self: end;
  }
}
/* 前・次（日本語の矢印リンク）：英字の矢印リンクより小さく（1920pxで約22px） */
.work_nav_prev,
.work_nav_next {
  font-size: max(0.42vw + 1.4rem, 1.8rem);
}
/* 前の実績は、矢印を左向きにして、円を文字の左に置く */
.work_nav_prev {
  flex-direction: row-reverse;
  &::before {
    right: auto;
    left: 0.405em;
    transform: translateY(-50%) scaleX(-1);
  }
  &:hover::before {
    transform: translate(-0.7em, -50%) scaleX(-1);
  }
}
/* 一覧へ：円の矢印なしで、下の点線だけ */
.work_nav_all {
  padding-bottom: 0.28em;
  /* 前・次のリンクと同じ大きさ */
  font-size: max(0.42vw + 1.4rem, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  transition: opacity 0.25s ease;
  &:hover {
    opacity: 0.6;
  }
}
/*////////////////詳細ページ：文字サイズの最大（最大幅1200pxになる画面幅1412pxの値で止める）/////////////*/
@media (min-width: 1412px) {
  .page_works_detail {
    .work_title,
    .sec_title {
      font-size: 3.57rem;
    }
    .en_label {
      font-size: 1.84rem;
    }
    .work_meta,
    .work_scope {
      font-size: 1.5rem;
    }
    .link_arrow {
      font-size: 2.59rem;
    }
    .work_site,
    .work_nav_all,
    .work_nav_prev,
    .work_nav_next {
      font-size: 2rem;
    }
    .work_lead,
    .overview_item,
    .gallery_wrap,
    .work_nav {
      font-size: 1.9rem;
    }
    .overview_num,
    .detail_label {
      font-size: 1.84rem;
    }
    .overview_title {
      font-size: 2.33rem;
    }
  }
}
/*////////////////お知らせ・コラム（一覧）/////////////*/
/* 記事の一覧：トップページのNewsと同じ見た目（グレーの帯＋上にはみ出す写真）を、縦に並べる */
.news_archive {
  display: grid;
  gap: 5.2vw;
  margin: 8.4vw 7.5% 0;
  list-style: none;
  .news_item {
    padding-bottom: 3.6%;
    /* 本文（抜粋）がなく写真の高さで帯の高さが決まるので、ホバーで写真が帯の上下中央に収まる移動量にする */
    &:hover,
    &:focus-visible {
      .news_pic {
        transform: translateY(16.5%);
      }
    }
  }
  .news_pic {
    width: 26%;
    margin-top: -2.6%;
  }
  .news_body {
    flex: 1;
    margin-left: 3.4%;
    padding-top: 2.6%;
  }
}
.news_empty {
  margin: 6vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  font-weight: 700;
  text-align: center;
}
/*////////////////お知らせ・コラム（記事）/////////////*/
.article_head {
  margin: 0 7.5%;
  padding-top: 19vw;
}
.article_title {
  max-width: 28em;
  font-size: max(1.25vw + 1.8rem, 3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
/* 日付・カテゴリは、制作実績の詳細ページのラベル（.work_meta）と同じ見た目 */
.article {
  margin: 4.2vw 7.5% 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
/* 読みやすい行の長さにするため、本文は幅を絞って中央に置く */
.article_inner {
  max-width: 44em;
  margin-inline: auto;
}
.article_pic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.article_body {
  margin-top: 2.6em;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 2;
  p {
    margin-top: 1.4em;
  }
  > p:first-child {
    margin-top: 0;
  }
  h2 {
    display: flex;
    /* 見出しが2行になっても、左の線が見出しの高さいっぱいになる（1行のときは1.1em） */
    align-items: stretch;
    gap: 0.5em;
    margin-top: 3em;
    font-size: 1.3em;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.5;
    &::before {
      content: '';
      flex-shrink: 0;
      width: 0.3em;
      margin-block: 0.2em;
      background-color: var(--b2);
    }
  }
  h2 + p {
    margin-top: 1em;
  }
  /* h3：下に、サイトの見出しと同じ点線を引く */
  h3 {
    margin-top: 2.2em;
    padding-bottom: 0.35em;
    font-size: 1.1em;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.6;
    border-bottom: 2px dotted var(--b1);
  }
  h3 + p {
    margin-top: 0.8em;
  }
  /* h4：h3より小さく、左にメインカラーの丸を付ける */
  h4 {
    position: relative;
    margin-top: 1.8em;
    padding-left: 1.2em;
    font-size: 1em;
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.6;
    &::before {
      content: '';
      position: absolute;
      top: 0.55em;
      left: 0.1em;
      width: 0.55em;
      height: 0.55em;
      background-color: var(--b1);
      border-radius: 50%;
    }
  }
  h4 + p {
    margin-top: 0.6em;
  }
  ul {
    margin-top: 1em;
    list-style: none;
    > li {
      position: relative;
      padding: 0.5em 0 0.5em 1.4em;
      font-weight: 700;
      line-height: 1.7;
      &::before {
        content: '';
        position: absolute;
        top: 1.15em;
        left: 0.2em;
        width: 0.5em;
        height: 0.5em;
        background-color: var(--b1);
        border-radius: 50%;
      }
    }
  }
  /* 番号付きリスト：ul と同じ位置（番号は左から0.2em、文字は1.4em）にそろえる */
  ol {
    margin-top: 1em;
    list-style: none;
    counter-reset: article-ol;
    > li {
      position: relative;
      padding: 0.5em 0 0.5em 1.4em;
      font-weight: 700;
      line-height: 1.7;
      counter-increment: article-ol;
      &::before {
        content: counter(article-ol);
        position: absolute;
        top: 0.5em;
        left: 0.2em;
        font-size: 0.9em;
        font-weight: 900;
        line-height: 1.89;
        color: var(--b1);
      }
    }
  }
  /* 表：前後の本文との間をあける（WordPress のテーブルブロックは figure で包まれる）。狭い幅では横にスクロール */
  > table,
  > figure {
    margin-top: 1.8em;
    overflow-x: auto;
  }
  figure table {
    margin-top: 0;
  }
  table + p,
  figure + p {
    margin-top: 1.8em;
  }
}
.related_news {
  margin-top: 10.4vw;
}
/*////////////////お問い合わせページ/////////////*/
/* このページ自体がお問い合わせなので、フッターのお問い合わせ（Get in Touch）は出さない */
.page_contact .contact {
  display: none;
}
/*////////////////連絡方法/////////////*/
.contact_way {
  margin-top: 6.25vw;
}
/* 連絡方法は電話だけ。背景や枠なしで、中央に置く */
.contact_way_list {
  margin: 0 7.5%;
  list-style: none;
}
.contact_way_item {
  font-size: max(0.21vw + 1.6rem, 1.8rem);
  text-align: center;
}
.contact_way_tel {
  font-family: 'Raleway', sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    width: fit-content;
    margin-inline: auto;
    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.25em;
    }
  }
  img {
    width: 0.9em;
    height: auto;
  }
}
.contact_way_note {
  margin-top: 0.8em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
/*////////////////フォーム/////////////*/
.contact_form {
  margin-top: 10.4vw;
}
.form,
.contact_confirm,
.contact_done {
  width: 85%;
  max-width: 62em;
  margin: 4.2vw auto 0;
  padding: 3.6vw 3.6vw 4.2vw;
  background-color: #fff;
  border-radius: max(3.13vw, 30px) 0 0 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.form_row {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 1em 2em;
  padding: 1.5em 0;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  &:first-child {
    padding-top: 0;
  }
}
.form_label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  align-self: start;
  padding-top: 0.55em;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
/* 必須・任意 */
.form_badge {
  padding: 0.15em 0.8em;
  border: 1px solid var(--b1);
  border-radius: 100px;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.form_badge--required {
  background-color: var(--b1);
  color: #fff;
}
.form_input {
  width: 100%;
  padding: 0.75em 1em;
  background-color: var(--back);
  border: 1px solid var(--b2);
  border-radius: 10px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.6;
  transition: border-color 0.25s ease;
  &::placeholder {
    color: var(--copy);
    opacity: 0.7;
  }
  &:focus-visible {
    border-color: var(--b1);
    outline: 2px solid var(--b1);
    outline-offset: 1px;
  }
  /* 入力のしかたがおかしいとき（送信を押したあとに出す。エラー文言は WP化のときに表示） */
  &:user-invalid {
    border-color: var(--sub-accent);
  }
}
.form_select {
  appearance: none;
  padding-right: 3em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23363636' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1.1em center;
  background-repeat: no-repeat;
  background-size: 0.8em;
}
.form_textarea {
  resize: vertical;
}
/* ご希望の連絡方法（選ぶボタン） */
.form_choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}
.form_choice {
  cursor: pointer;
  > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  > span {
    display: block;
    padding: 0.6em 1.4em;
    background-color: #fff;
    border: 1px dashed var(--b1);
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5;
    transition: background-color 0.25s ease;
  }
  &:hover > span {
    background-color: var(--b2);
  }
  > input:checked + span {
    background-color: var(--b1);
    border-style: solid;
    color: #fff;
  }
  > input:focus-visible + span {
    outline: 2px solid var(--b1);
    outline-offset: 2px;
  }
}
/* 同意 */
.form_agree {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  padding-top: 2.2em;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.form_check {
  display: flex;
  align-items: center;
  gap: 0.7em;
  cursor: pointer;
  > input {
    flex-shrink: 0;
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--b1);
  }
  a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
    &:hover {
      text-decoration: none;
    }
  }
}
.form_submit_wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.2em;
}
.form_submit {
  min-width: 14em;
  padding: 1em 2.4em;
  background-color: var(--b1);
  border: 1px solid var(--b1);
  border-radius: 100px;
  color: #fff;
  font-family: inherit;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  &:hover {
    background-color: var(--b2);
    color: var(--b1);
  }
}
/* 入力のしかたがおかしい項目 */
.form_input.is-error {
  border-color: var(--sub-accent);
}
.form_error {
  margin-top: 1.4em;
  color: var(--sub-accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.8;
  text-align: center;
  a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}
/* 確認画面・完了画面（入力画面と同じ白いカード） */
.contact_state_title {
  font-size: max(0.52vw + 1.6rem, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}
.contact_state_text {
  margin-top: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.95;
  text-align: center;
  a {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}
.contact_confirm_list {
  margin-top: 2em;
  .form_row:first-child {
    padding-top: 1.5em;
    border-top: 0;
  }
}
.confirm_value {
  padding-top: 0.55em;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.contact_btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  margin-top: 2.2em;
}
a.form_submit {
  display: inline-block;
  text-align: center;
}
/* 戻る */
.form_back {
  min-width: 10em;
  padding: 1em 2em;
  background-color: #fff;
  border: 1px dashed var(--b1);
  border-radius: 100px;
  font-family: inherit;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.25s ease;
  &:hover {
    background-color: var(--b2);
  }
}
/*////////////////プライバシーポリシー/////////////*/
.privacy {
  width: 85%;
  max-width: 62em;
  margin: 8.4vw auto 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.privacy_list {
  list-style: none;
}
/* 左に番号と項目名、右に本文。項目の間は点線 */
.privacy_item {
  display: grid;
  grid-template-columns: 14em 1fr;
  gap: 1em 2em;
  padding: 2em 0;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  &:first-child {
    padding-top: 0;
  }
}
.privacy_num {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.privacy_title {
  margin-top: 0.3em;
  font-size: 1.15em;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.privacy_text {
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 2;
  a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}
.privacy_date {
  margin-top: 2em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: right;
}
/*////////////////事業者情報・窓口/////////////*/
.privacy_info {
  margin-top: 10.4vw;
}
.privacy_info_list {
  width: 85%;
  max-width: 62em;
  margin: 3.6vw auto 0;
  font-size: max(0.21vw + 1.6rem, 1.8rem);
}
.privacy_info_row {
  display: grid;
  grid-template-columns: 14em 1fr;
  gap: 0.6em 2em;
  padding: 1.2em 0;
  background-image: repeating-linear-gradient(to right, var(--b1) 0 2px, transparent 2px 4px);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  > dt {
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.8;
  }
  > dd {
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.8;
    a:hover {
      text-decoration: underline;
      text-underline-offset: 0.25em;
    }
  }
}
/*////////////////動きを減らす設定のとき/////////////*/
@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fv_bg_track,
  .works_track {
    animation-play-state: paused;
  }
  /* 円は点灯した状態（カンプどおりの色・大きさ）で止める */
  .sub_title_en::before {
    transform: none;
    transition: none;
  }
  .map_pin,
  .map_line,
  .map_label {
    scale: 1;
    opacity: 1;
    stroke-dashoffset: 0;
    translate: 0 0;
    transition: none;
  }
  .js-lamp,
  .js-lamp.is-inview {
    transform: none;
    opacity: 1;
    animation: none;
  }
}
/*////////////////WordPress版で追加：画面ギャラリーの画像が複数のとき/////////////*/
.gallery_pics {
  /* 画像の枚数ぶんだけ、同じ幅の列に分ける（1枚なら全幅） */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2.6vw;
  margin-top: 1.4em;
  /* <picture> で包まれていても効くよう、子孫で指定する */
  .gallery_pic {
    margin-top: 0;
  }
}
/*////////////////WordPress版で追加：画像最適化プラグインが <img> を <picture> で包んでも、レイアウトを変えない/////////////*/
picture {
  display: contents;
}
/* 包みを外したとき、<source> がグリッドの列として数えられないようにする */
picture > source {
  display: none;
}
