@charset "UTF-8";
/* CSS Document */
/* SP（カンプ sp-top.svg / sp-menu.svg：414px基準。数値は 414px を 100vw として換算。1vw = 4.14px） */
@media (max-width: 667px) {
  /* 基本のフォントサイズ（14px〜。667pxで16px） */
  body {
    font-size: max(1.40rem, 0.79vw + 1.07rem);
  }
  /*////////////////共通/////////////*/
  .link_arrow {
    gap: 1.05em;
    padding-bottom: 0.3em;
    &::before {
      right: 0.585em;
    }
    &::after {
      width: 2.15em;
    }
  }
  /* 制作実績のURL：外部サイトのマークは、円矢印より小さく */
  .work_site {
    gap: 0.5em;
    &::after {
      width: 1.2em;
    }
  }
  .en_label {
    font-size: 3vw;
    &::after {
      width: 3.93em;
    }
  }
  .sec_head {
    margin: 0 7.5%;
  }
  .sec_title {
    margin-top: 0.25em;
    font-size: 5vw;
  }
  /*////////////////ヘッダー/////////////*/
  /* PCのナビとお問い合わせボタンは隠し、MENUボタン（ハンバーガー）に切り替える */
  .head_fix {
    display: none;
  }
  .logo {
    top: 2.9vw;
    left: 2.42vw;
    width: 10.87vw;
  }
  .header_menu_btn {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    height: 48px;
    padding-top: 14px;
    background-color: #fff;
    border: 1px dashed var(--b1);
    border-radius: 5px;
    color: var(--b1);
    cursor: pointer;
    pointer-events: auto;
  }
  /* 2本線。開いたら×にする */
  .header_menu_icon {
    position: relative;
    width: 22px;
    height: 7px;
    &::before, &::after {
      content: '';
      position: absolute;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: var(--b1);
      transition: 0.2s;
    }
    &::before {
      top: 0;
    }
    &::after {
      bottom: 0;
    }
  }
  .header_menu_text {
    margin-top: 9px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1;
  }
  .is-menu-open .header_menu_icon {
    &::before {
      top: 3px;
      transform: rotate(35deg);
    }
    &::after {
      bottom: 3px;
      transform: rotate(-35deg);
    }
  }
  /* 開いた状態：全面グレーの上にナビを縦に互い違いで並べる */
  .header_nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: block;
    padding: 25.1vw 0 10vw;
    background-color: var(--dots);
    overflow-y: auto;
    pointer-events: auto;
    /* 閉じている間は画面の右外に置き、開いたら右からスライドして入る */
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s ease, visibility 0.4s;
  }
  .is-menu-open {
    overflow: hidden;
    .header_nav {
      visibility: visible;
      transform: translateX(0);
    }
  }
  .header_nav_list {
    display: grid;
    gap: 18px;
    > li {
      width: 60.39%;
      margin-left: 11.59%;
    }
    /* 2・4・6番目を右へずらす */
    > li:nth-child(even) {
      margin-left: 16.43%;
    }
    .menu_link {
      padding: 0 1.25em;
    }
  }
  .header_nav_tel {
    margin: 13.5vw 0 0 11.59%;
    font-size: 1.6rem;
    font-weight: 500;
    > a {
      display: flex;
      align-items: center;
      gap: 0.35em;
      width: fit-content;
      color: #fff;
      letter-spacing: 0.02em;
    }
    img {
      width: 1.38em;
      /* アイコンを白くする */
      filter: brightness(0) invert(1);
    }
  }
  /* ナビの楕円ボタン（SPメニュー・フッター共通）はカンプの16px／12pxで固定 */
  .menu_link {
    font-size: 1.6rem;
  }
  .menu_ja {
    font-size: 1.2rem;
  }
  /*////////////////FV/////////////*/
  .fv {
    padding-top: 17.6vw;
  }
  .fv_bg_track {
    margin-left: -48.8vw;
  }
  .deco_circle.is-fv1 {
    top: 34.54vw;
    left: 57.49%;
    width: 7.73vw;
  }
  .deco_circle.is-fv2 {
    top: 40.82vw;
    left: 85.51%;
    width: 12.08vw;
  }
  .deco_circle.is-fv3 {
    top: 67.39vw;
    left: 70.77%;
    width: 6.52vw;
  }
  .deco_circle.is-fv4 {
    top: 107vw;
    left: 52.66%;
    width: 12.8vw;
  }
  .fv_inner {
    margin-top: 6.3vw;
  }
  .fv_catch {
    line-height: 1.44;
  }
  .fv_subcopy {
    margin-top: 1em;
  }
  .fv_lead {
    margin-top: 1.3em;
  }
  .fv_works_link {
    margin-top: 1.8em;
  }
  /* 実績マーキー：縦長のカードを -17.1deg の斜めに流す（右下→左上ではなく、左下から右上へ上がるライン） */
  .works_marquee {
    margin-top: 22.7vw;
  }
  .works_track {
    gap: 8.02vw;
    animation-name: worksMarqueeSp;
  }
  .works_card {
    width: 31.4vw;
    transform: rotate(17.1deg);
    > a {
      box-shadow: 8px 8px 0 var(--b2);
    }
  }
  .works_overlay {
    flex-direction: column;
    gap: 0.6em;
  }
  @keyframes worksMarqueeSp {
    from {
      transform: rotate(-17.1deg) translateX(0);
    }
    to {
      transform: rotate(-17.1deg) translateX(calc(-50% - 4.01vw));
    }
  }
  /*////////////////About/////////////*/
  .about {
    padding-top: 44.4vw;
  }
  /* SPカンプでは円は3つ（マーキーの下〜Aboutの上） */
  .deco_circle.is-about1 {
    top: -15.2vw;
    left: 58.7%;
    width: 18.84vw;
  }
  .deco_circle.is-about2 {
    top: 13.04vw;
    left: 34.06%;
    width: 12.56vw;
  }
  .deco_circle.is-about3 {
    top: 28.02vw;
    left: 61.35%;
    width: 7.73vw;
  }
  .deco_circle.is-about4, .deco_circle.is-about5 {
    display: none;
  }
  .about_inner {
    margin: 0 7.5%;
  }
  .about_title {
    margin-top: 0.3em;
    /* 「もうひとつの玄関です。」(11字)が、375pxでも1行に収まる大きさ（画面幅の7.2%まで） */
    font-size: min(max(0.37vw + 2.65rem, 2.2rem), 7.2vw);
    line-height: 1.5;
  }
  .about_text {
    margin-top: 1.2em;
    letter-spacing: 0.02em;
    line-height: 1.875;
  }
  .about_link {
    margin: 2em 0 0;
  }
  /*////////////////Service/////////////*/
  .service {
    padding-top: 25vw;
  }
  .service_list {
    gap: 7.25vw;
    margin-top: 7.5vw;
    > li, > li:nth-child(even) {
      width: 85.02%;
      margin-left: 7.5%;
    }
  }
  /* 縦長のカプセル。文字 → アイコン → 矢印 の順に縦に積む */
  .service_item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 22% 9.5% 8.8%;
    border-radius: 33.8vw;
    box-shadow: 10px 10px 0 var(--b2);
    li:hover > &, &:focus-visible {
      translate: 10px 10px;
    }
  }
  /* 文字の入れ物を外して、アイコン・矢印と同じ並びに入れる */
  .service_body {
    display: contents;
  }
  .service_en {
    order: 1;
  }
  .service_title {
    order: 2;
    margin-top: 0.3em;
  }
  .service_text {
    order: 3;
    margin: 1em 0 0;
  }
  .service_icon {
    order: 4;
    align-self: center;
    width: 46.6%;
    margin-top: 6.5%;
  }
  .service_arrow {
    order: 5;
    align-self: center;
    margin-right: 0;
    margin-top: 5.4%;
  }
  .service_link, .news_link {
    margin-top: 14.5vw;
  }
  /*////////////////News/////////////*/
  .news {
    padding-top: 25vw;
  }
  .news_list {
    gap: 6.76vw;
    margin-top: 9.4vw;
    > li, > li:nth-child(2), > li:nth-child(3) {
      width: 85.02%;
      margin-left: 7.5%;
    }
  }
  .news_item {
    padding: 0 2.84% 6.82%;
    border-radius: 15px;
  }
  .news_pic {
    width: 41.57%;
    margin-top: -2.41%;
    border-radius: 10px;
  }
  .news_body {
    margin-left: 4.2%;
    padding-top: 5.7%;
  }
  .news_meta {
    gap: 1em;
  }
  .news_date {}
  .news_cat {}
  .news_title {
    margin-top: 0;
    line-height: 1.6;
  }
  /*////////////////フッター（Contact含む）/////////////*/
  .contact {
    padding-top: 22vw;
  }
  .contact_inner {
    margin: 0 7.25%;
  }
  .contact_title {
    font-size: min(5.8vw, 3rem);
  }
  .contact_text {
    margin-top: 1em;
  }
  .contact_link {
    /* 414pxで47px（カンプ）。狭い端末でも1行で画面内に収める */
    font-size: max(11.35vw, 3.4rem);
    margin-top: 0.15em;
    padding-bottom: 0.3em;
    background-size: 100% 2px;
  }
  .footer_inner {
    flex-direction: column;
    margin: 13vw 7.5% 0;
  }
  .footer_info {
    width: auto;
    padding-right: 0;
  }
  .footer_logo {
    width: 24.15vw;
  }
  .footer_lead {
    margin-top: 1.6em;
    font-size: 1.2rem;
  }
  .footer_tel {
    margin-top: 1.1em;
    font-size: 1.6rem;
  }
  .footer_nav {
    margin-top: 9.4vw;
  }
  .footer_nav_list {
    gap: 11px 9px;
    > li:nth-child(even) {
      margin-top: 0;
    }
  }
  .footer_banner {
    margin-top: 14vw;
  }
  .copyright {
    margin: 16vw 0 0;
    padding-bottom: 3vw;
    text-align: center;
  }
  /*////////////////aboutページ/////////////*/
  /* ページ見出し：中央揃えで、日本語 → 縦線 → 英字 の順に縦に並べる */
  .sub_head {
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    padding-top: 30vw;
    text-align: center;
  }
  .sub_title_en {
    flex: none;
    flex-direction: column;
    gap: 2.2vw;
    &::before {
      flex: none;
      width: 1px;
      height: 12vw;
      background-color: var(--b1);
      /* 線は上から下へ伸びる */
      transform: scaleY(0);
      transform-origin: center top;
    }
  }
  .sub_head.is-inview .sub_title_en::before {
    transform: scaleY(1);
  }
  /* 英文・見出しは、PCと同じく中央揃え。本文はPCと同じ幅（max-width）で中央に置く（文字は左揃え） */
  .message {
    margin-top: 18vw;
  }
  .message_text {
    margin-top: 1.2em;
	font-size: 4vw;
  }
  .message_title {
    font-size: 5vw;
  }
  .message_en {
    font-size: 3vw;
  }
  /* Values：番号＋見出し → イラスト → 本文 の縦積み */
  .values {
    margin-top: 22vw;
  }
  .values_list {
    gap: 6vw;
    margin-top: 8vw;
  }
  /* カードが止まる位置（MENUボタンの下）。1枚ごとに少し下げる */
  .values_item {
    top: 7rem;
    min-height: 0;
    padding: 7% 7% 9%;
    border-radius: 40px 0 0 0;
  }
  .values_item:nth-child(2) {
    top: calc(7rem + 3vw);
  }
  .values_item:nth-child(3) {
    top: calc(7rem + 6vw);
  }
  .values_head {
    gap: 4vw;
  }
  .values_num {
    width: 16vw;
  }
  .values_title {
    margin-bottom: 0;
	font-size: 5vw;
  }
  .values_body {
    flex-direction: column;
    align-items: stretch;
    gap: 6vw;
    padding-top: 7vw;
  }
  .values_pic {
    justify-content: center;
    width: auto;
  }
  .values_item:nth-child(1) .values_pic img, .values_item:nth-child(2) .values_pic img {
    width: 30vw;
  }
  .values_item:nth-child(3) .values_pic img {
    width: 54vw;
  }
  .values_text {
    max-width: none;
    margin-bottom: 0;
  }
  /* 事業概要：項目名を上、内容を下に */
  .business {
    margin-top: 22vw;
  }
  /* 項目名と内容は横並びのまま */
  .business_row {
    padding: 1em 0 0.6em;
  }
  .area {
    margin-top: 16vw;
  }
  .business_map {
    width: 75%;
    margin-top: 10vw;
  }
  .page_about .contact {
    padding-top: 22vw;
  }
  /*////////////////サービス内容ページ/////////////*/
  /* ページ内リンク：中央に折り返して並べる */
  .sub_lead {
    margin-top: 18vw;
  }
  .sub_nav {
    margin-top: 8vw;
  }
  .sub_nav_list {
    gap: 2.4vw;
  }
  .sub_nav_link {
    font-size: 1.2rem;
  }
  .page_service [id] {
    scroll-margin-top: 9rem;
  }
  /* つくり方のこだわり：1列 */
  .craft,
  .flow,
  .faq {
    margin-top: 22vw;
  }
  .craft_list {
    grid-template-columns: 1fr;
    gap: 4vw;
    margin-top: 8vw;
    > li:nth-child(5) {
      grid-column: auto;
    }
  }
  .craft_item {
    padding: 6vw 6vw 7vw;
    border-radius: 40px 0 0 0;
  }
  .craft_pic {
    height: 20vw;
  }
  .craft_num {
    margin-top: 5vw;
  }
  /* 各サービス */
  .detail_list {
    gap: 20vw;
    margin-top: 22vw;
  }
  .detail,
  .detail:nth-child(even) {
    gap: 8vw;
  }
  .detail_pic {
    /* 横長にして、イラストの上下の余白を減らす */
    aspect-ratio: 2.2 / 1;
    border-radius: 40px 0 0 0;
    > img {
      width: 40%;
    }
  }
  /* 制作の流れ：横並び（左にイラスト、右に文章）のまま、イラストと余白を小さくする */
  .flow_list {
    gap: 4vw;
    margin-top: 8vw;
  }
  .flow_item {
    grid-template-columns: 22% 1fr;
    column-gap: 4vw;
    padding: 5vw 5vw 5.5vw 4vw;
    border-radius: 40px 0 0 0;
  }
  .flow_pic > img {
    max-height: 13vw;
  }
  /* よくある質問：質問が2行になっても両端が半円のまま */
  .faq_list {
    gap: 3vw;
    margin-top: 8vw;
  }
  .faq_item {
    border-radius: 3em;
  }
  .faq_q {
    gap: 0.9em;
    padding: 1.2em 1.3em 1.2em 1.4em;
  }
  .faq_a {
    gap: 0.9em;
    padding: 0 1.4em 1.5em 1.4em;
  }
  /*////////////////料金ページ/////////////*/
  .plan,
  .option,
  .payment {
    margin-top: 22vw;
  }
  .plan_inner {
    gap: 8vw;
    margin-top: 8vw;
  }
  .plan_spec_row {
    flex-direction: column;
    gap: 0.2em;
  }
  .plan_diagram {
    padding: 6vw 5vw 6.5vw;
    border-radius: 40px 0 0 0;
  }
  /* 構成図：横の線をやめて、縦に積む */
  .tree {
    font-size: 0.86em;
  }
  .tree_children {
    margin-left: 0.8em;
    > li {
      padding-left: 1.6em;
    }
    > li::after {
      width: 1em;
    }
  }
  .tree_chain {
    flex-direction: column;
    align-items: flex-start;
  }
  .tree_link {
    width: 0;
    height: 0.8em;
    margin-left: 1.2em;
    border-top: 0;
    border-left: 1.5px solid var(--b1);
  }
  .tree_bubble {
    margin-left: 0.6em;
  }
  .plan_notes {
    margin-top: 8vw;
  }
  .plan_sub {
    margin-top: 22vw;
  }
  .plan_sub_text .br_pc {
    display: none;
  }
  .option_list {
    margin-top: 8vw;
  }
  .option_item {
    grid-template-columns: 1fr;
    gap: 6vw;
    padding: 6vw 6vw 7vw;
    border-radius: 40px 0 0 0;
  }
  .payment_list {
    grid-template-columns: 1fr;
    gap: 4vw;
    margin-top: 8vw;
  }
  .payment_item {
    padding: 6vw 6vw 7vw;
    border-radius: 40px 0 0 0;
  }
  /*////////////////制作実績ページ（一覧）/////////////*/
  /* 業種・地域：見出しを上、タブを下に折り返して並べる */
  .work_tabs {
    gap: 5vw;
    margin-top: 10vw;
  }
  .work_tab_group {
    flex-direction: column;
    gap: 2.4vw;
  }
  .work_tab_title {
    width: auto;
    min-height: 0;
  }
  .work_tab,
  .work_tab_title {
    font-size: 1.2rem;
  }
  .work_tab_list {
    gap: 2vw;
  }
  /* カードは2列（幅が狭いので、文字と余白をカードの幅に合わせて小さくする） */
  .work_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 4vw 3vw;
    margin-top: 10vw;
  }
  .work_card {
    padding: 4vw 2.6vw 4.5vw;
    border-radius: 30px 0 0 0;
  }
  .work_thumb {
    border-radius: 6px;
  }
  .work_name {
    margin: 0.9em 0.2em 0;
    font-size: max(1.3rem, 2.9vw);
  }
  .work_label {
    margin: 0.4em 0.3em 0;
    font-size: max(1.0rem, 2.3vw);
  }
  .work_text {
    margin: 0.6em 0.3em 0;
    /* 上限は、タブレット（668px）の値に合わせて、境目で文字が急に変わらないようにする */
    font-size: clamp(1.1rem, 2.6vw, 1.44rem);
    line-height: 1.7;
  }
  .pager {
    margin-top: 12vw;
  }
  .pager_list {
    gap: 2.4vw;
  }
  /*////////////////制作実績ページ（詳細）/////////////*/
  .work_head {
    padding-top: 30vw;
  }
  .work_meta,
  .work_scope {
    font-size: 1.2rem;
  }
  .work_visual {
    margin-top: 8vw;
    /* 角が丸い上側だけ、余白を2倍にする */
    padding: 6vw 3vw 3vw;
    border-radius: 40px 0 0 0;
  }
  .work_lead {
    margin-top: 8vw;
  }
  .work_scope {
    margin-top: 6vw;
  }
  .overview,
  .gallery,
  .work_nav {
    margin-top: 22vw;
  }
  /* 制作概要：1列 */
  .overview_list {
    grid-template-columns: 1fr;
    gap: 4vw;
    margin-top: 8vw;
  }
  .overview_item {
    padding: 6vw 6vw 7vw;
    border-radius: 40px 0 0 0;
  }
  /* 画面ギャラリー：PC → スマホ の順に縦に並べる */
  .gallery_wrap {
    flex-direction: column;
    gap: 10vw;
    margin-top: 8vw;
  }
  .gallery_group--pc,
  .gallery_group--sp {
    flex: none;
    width: 100%;
  }
  .gallery_group--sp {
    width: 56%;
  }
  /* 前の実績・次の実績は上の段に左右へ、一覧へは下の段の中央に置く */
  .work_nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 8vw;
    /* 前（左）と次（右）は1段目。どちらかがなくても、一覧へは動かない */
    > :first-child {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
    }
    > :last-child {
      grid-column: 2;
      grid-row: 1;
      justify-self: end;
    }
  }
  .work_nav_all {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
  /*////////////////お知らせ・コラム（一覧・記事）・お問い合わせ/////////////*/
  /* 記事の一覧：トップページのNewsのSPと同じ形（左に写真、右に文字）。抜粋は2行まで */
  .news_archive {
    gap: 7vw;
    margin-top: 12vw;
    .news_item {
      padding: 0 3% 6%;
      border-radius: 15px;
    }
    .news_pic {
      width: 38%;
      margin-top: -2.4%;
      border-radius: 10px;
    }
    .news_body {
      margin-left: 4%;
      padding-top: 4.5%;
    }
  }
  /* 記事 */
  .article_head {
    padding-top: 30vw;
  }
  .article {
    margin-top: 8vw;
  }
  .related_news,
  .contact_form {
    margin-top: 22vw;
  }
  /* お問い合わせ */
  .contact_way {
    margin-top: 10vw;
  }
  .form,
  .contact_confirm,
  .contact_done {
    width: 85%;
    margin-top: 8vw;
    padding: 6vw 6vw 8vw;
    border-radius: 40px 0 0 0;
  }
  /* 項目名を上、入力欄を下に */
  .form_row {
    grid-template-columns: 1fr;
    gap: 0.6em;
    padding: 1.2em 0;
  }
  .form_label {
    padding-top: 0;
  }
  .form_agree {
    justify-content: flex-start;
  }
  .form_submit,
  .form_back {
    width: 100%;
  }
  .contact_btns {
    flex-direction: column-reverse;
  }
  /*////////////////プライバシーポリシー/////////////*/
  .privacy {
    margin-top: 12vw;
  }
  .privacy_info {
    margin-top: 22vw;
  }
  .privacy_info_list {
    margin-top: 8vw;
  }
  /* 項目名を上、本文を下に */
  .privacy_item,
  .privacy_info_row {
    grid-template-columns: 1fr;
    gap: 0.6em;
  }
  .privacy_head {
    display: flex;
    align-items: baseline;
    gap: 0.8em;
  }
  .privacy_title {
    margin-top: 0;
  }
}

