/*
Theme Name: Kiribako Original Theme
Description: 桐箱山形用のオリジナルテーマ
Version: 1.0
*/

body{
  font-family: "source-han-serif-japanese",serif;
  background-color: #F5F5F5;
  color: #2C1A1F
}

.mb10{
  margin-bottom: 10px;
}
.mb20{
  margin-bottom: 20px;
}
.mb50{
  margin-bottom: 20px;
}
.mb100{
  margin-bottom: 100px;
}
.mt50{
  margin-top: 50px;
}
.center{
  text-align: center;
}
.bold{
  font-weight: bold;
}
.require{
  color: #fff;
  background-color: #E44141;
  padding: 2px 10px 2px 10px;
  border-radius: 16px;
  margin-right: 30px;
}
.any{
  color: #fff;
  background-color: #909090;
  padding: 2px 10px 2px 10px;
  border-radius: 16px;
  margin-right: 30px;
}


/* ヘッダー全体 */
.site-header {
    width: 100%;
    max-width: 1920px;  /* 必要なら上限を設定 */
    height: 118px;      /* 高さはそのまま固定でもOK */
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
}

.page-id-15 header.site-header {
  background: #F5F5F5;
      width: 100%;
    max-width: 1920px;  /* 必要なら上限を設定 */
    height: 118px;      /* 高さはそのまま固定でもOK */
    margin: 0 auto;
    display: flex;
    align-items: center;
}

/* 内側の横並び */
.header-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴ */
.site-logo img{
  max-width: 378px; /* ロゴサイズ調整 */
  height: auto;
  display: block;
  width: 100%;
}
/* お問い合わせボタン */
.contact-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 310px;
  height: 56px;
  background-color: #E44141;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 32px;
  transition: opacity 0.3s;
}

.contact-btn:hover {
  opacity: 0.8;
}

#front-page,
#privacy-form{
  max-width: 1920px;
  margin: 0 auto;
}
.fv {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* 左寄せ */
  align-items: center;         /* 縦中央 */
  background: url('/wp-content/themes/kiribako/images/top-bg.png') no-repeat left center;
  background-size: auto;       /* 元画像サイズを維持 */
  height: auto;                /* 画像に合わせて自動調整 */
  min-height: 780px;           /* 任意で最低高さを設定 */
}

/* flex縦並び */
.fv-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左寄せ */
  gap: 30px;               /* 縦の間隔 */
  margin-left: 110px;      /* 左余白 */
}

/* 中央文字 */
.fv-text h1 {
  font-size: clamp(20px, 2vw, 36px); /* 画面幅に応じて縮小 */
  line-height: 1.4;
  font-weight: bold;
  margin: 0;
  text-shadow: 1px 1px 2px #434141;
  color: #fff;
}

/* ロゴ */
.fv-logo img {
  width: 100%;
  max-width: 798px;
  height: auto;
  display: block;
}

/* ロゴレスポンシブ */
@media (max-width: 1200px) { .fv-logo img { max-width: 600px; } }
@media (max-width: 992px)  { .fv-logo img { max-width: 400px; } }
@media (max-width: 576px)  { .fv-logo img { max-width: 300px; } }

/* ボタン */
.fv-btn {
  display: inline-flex;
  align-items: center;
  background: #E44141;
  color: #fff;
  padding: clamp(8px, 1.5vw, 12px) clamp(20px, 2vw, 32px);
  text-decoration: none;
  border-radius: 44px;
  font-size: clamp(16px, 1.8vw, 26px);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  letter-spacing: clamp(1px, 0.2vw, 3px);
}

.fv-btn:hover {
  opacity: 0.8;
}

/* ボタンアイコン */
.btn-icon img {
  width: clamp(30px, 3vw, 60px);
  height: auto;
  margin-left: 20px;
}
.no-emoji {
  font-family: inherit; /* 通常フォントにする */
  color: #E44141;
  font-size: 16px;
  line-height: 1;
}
.story {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative; /* テキスト絶対配置用 */
  padding: 40px 0;
}

.story-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.story-image {
  width: 100%;
  max-width: 1213px; /* 元画像幅 */
  height: auto;
  aspect-ratio: 1213 / 620; /* アスペクト比維持 */
  background: url('/wp-content/themes/kiribako/images/story-img.png') no-repeat center;
  background-size: cover;
  flex-shrink: 0; /* 縮小防止 */
  position: relative;
  z-index: 1;
}

/* 文章パート */
.story-text {
  position: absolute;
  top: 50%;
  left: 60%; /* 初期位置は画像右端に少し重なる */
  transform: translateY(-50%);
  max-width: 700px;
  width: 50%;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  z-index: 2;
}

/* レスポンシブで左に寄せつつ縮小 */
@media (max-width: 1400px) { .story-text { left: 55%; width: 45%; } }
@media (max-width: 1200px) { .story-text { left: 50%; width: 45%; } }
@media (max-width: 992px)  { .story-text { left: 45%; width: 50%; } }
@media (max-width: 768px)  { .story-text { left: 20%; width: 70%; } }
@media (max-width: 576px)  { .story-text { left: 10%; width: 80%; } }

.story-text p {
  font-size: 18px;
  line-height: 2;
  margin: 0;
  font-family: "source-han-serif-japanese", serif;
}


.contact-form {
  max-width: 1030px;
  margin: 100px auto;
  background-color: #fff;
  padding: 100px;
}
.contact-form h2{
  font-size: 30px;
  font-family: "Noto Sans JP", sans-serif;
}
.decor-line {
  width: 88px;          /* 横幅 */
  height: 5px;          /* 高さ */
  background-color: #707070; /* 線の色 */
  border-radius: 4px;    /* 高さの半分で丸角に */
  margin: 30px auto;     /* 上下の余白＋中央寄せ */
}
.contact-form table,
.contact-form p{
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
.contact-form p{
  font-size: 18px;
  line-height: 2;
}
.contact-form table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 38px 66px; /* tr間のスペース */
}
.contact-form th {
  width: 180px; /* 左列幅調整 */
  white-space: nowrap; /* 改行せず1行に収める */
  text-align: left;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 500;
}
.contact-form td {
  width: 560px;
  height: 30px;
  padding: 5px 0px 0px 0px;
  vertical-align: middle;
  position: relative;
  border-radius: 12px;
}
.contact-form td p {
  margin: 5px 0 0 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.wh-bg{
  background-color: #fff!important;
}
.contact-form textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
}
.contact-form td .mw_wp_form_checkbox,
.contact-form td .mw_wp_form_checkbox label {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.contact-form #confirm-button input[type="submit"] {
  background-color: #E44141;
  color: #fff;
  width: 310px;
  height: 50px;
  border: none;
  border-radius: 29px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 30px auto 0 auto;
  transition: opacity 0.3s;
}
.contact-form #confirm-button input[type="submit"]:hover {
  opacity: 0.8;
}
/* td内のinput, textarea の統一スタイル */
.contact-form td input[type="text"],
.contact-form td input[type="email"],
.contact-form td textarea,
.contact-form td input[type="tel"] {
  background-color: #F7E4E4;   /* tdと同じ背景色 */
  width: 100%;                /* td幅に合わせる */
  height: 50px;                /* 高さ固定 */
  padding: 5px 10px;           /* 内側余白 */
  border: none;                /* 枠線を消す */
  box-sizing: border-box;      /* パディング込みで幅を計算 */
  font-size: 16px;
  line-height: 1.5;
  vertical-align: middle;
  border-radius: 12px;
}
/* textareaの高さだけ個別調整 */
.contact-form td textarea {
  height: 120px; /* 複数行用 */
  resize: none;  /* ユーザーによるサイズ変更不可 */
}
.contact-form td .note {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  background: #fff;
  padding: 0;
}
/* この箇所のチェックボックスのみ */
td.wh-bg input[type="checkbox"] {
  vertical-align: middle; /* 文字と縦位置を揃える */
}
/* この箇所のチェックボックス文字のみ */
td.wh-bg label {
  font-size: 16px;         /* 文字サイズ */
  line-height: 1.5;
  margin-left: 5px;        /* チェックボックスとの間隔 */
  display: inline-block; 
  margin: 0 auto;  /* 横並びのまま */
}
/* 中央寄せ */
td.wh-bg .mw_wp_form_checkbox {
  text-align: center!important;
}
/* 問い合わせコンテンツ全体 */
.contact-extra {
  max-width: 488px;
  margin: 96px auto 0; /* 上は送信ボタンから96px */
  padding: 0 30px 30px 30px;
  border: 7px solid #E44141;
  text-align: center;
}
/* 見出し */
.contact-extra h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}
/* 装飾の線 */
.contact-extra .decor-line {
  width: 88px;
  height: 3px;
  background-color: #707070;
  margin: 0 auto 20px;
  border-radius: 20px;
}
/* 電話番号部分 */
.contact-extra .contact-tel {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.contact-extra .tel-icon {
  width: 30px;
  height: auto;
  margin-right: 10px;
}
.contact-extra .tel-number {
  font-size: 30px;
  font-weight: bold;
  color: #E44141;
}
/* 補足テキスト */
.contact-extra .time {
  margin-bottom: 10px;
  font-size: 14px;
}
.contact-extra .desc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}
.top-rtn{
  margin: 50px auto;
  display: flex;
  justify-content: center;
}
.top-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 310px;
  height: 50px;
  background-color: #ffffff;
  color: #E44141;
  border: 3px solid #E44141;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 34px;
  transition: opacity 0.3s;
  font-family:"Noto Sans JP", sans-serif;
}

/* メールボタン */
.contact-extra .mail-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 310px;
  height: 50px;
  background-color: #E44141;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 34px;
  transition: opacity 0.3s;
}
.contact-extra .mail-btn:hover {
  opacity: 0.8;
}
.contact-extra .mail-icon {
  width: 20px;
  height: auto;
  margin-right: 10px;
}
.contact-extra h3,
.contact-extra p,
.contact-extra a,
.contact-extra span{
  font-family:"Noto Sans JP", sans-serif;
}
.contact-extra h3,
.contact-extra a{
  font-weight: 400;
}
.input-wrap {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center; /* 入力欄を上下中央 */
  box-sizing: border-box;
}
.input-wrap input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-size: 16px;
}
.contact-form table th {
  vertical-align: text-top;
}
/* フッター */
.site-footer {
  background-color: #F5F5F5;
  padding: 40px 0px 40px 0px;
  font-size: 14px;
  color: #333;
  max-width: 1920px; /* 指定幅 */
  margin: 0 auto; /* 中央寄せ */
  font-family:"Noto Sans JP", sans-serif;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-left: 100px;
  padding-right: 100px;
}
.footer-left {
  display: flex;
  align-items: flex-start;
  gap: 60px; /* ロゴと会社情報の間隔 */
}
.footer-logo img{
  max-width: 452px; /* ロゴサイズ調整 */
  height: auto;
  display: block;
  width: 100%;
}
.footer-company p {
  margin: 0 0 6px;
  line-height: 1.6;
}
.footer-company a {
  margin: 0 0 6px;
  line-height: 1.6;
  color: #2C1A1F;
  text-decoration: none;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin-bottom: 26px;
  text-decoration: underline;
}
.footer-links a {
  color: #333;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 10px;
  background: #E44141;
  color: #fff;
  text-align: center;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-name{
  font-size: 22px;
}
.footer-company p{
  font-weight: 600
}


/* 共通設定 */
.page-id-13{
  background-color: #ffffff;
}
.story-page {
  font-family: "source-han-serif-japanese", serif;
  background-color: #fff;
  width: 100%;
}

.inner {
  width: 1920px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* FV */
.story-fv {
  position: relative;
  width: 100%;
  height: 578px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fv-white-band {
  width: 78px;
  height: 418px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 32px;
  font-weight: bold;
  color: #000;
  text-align: center;
}

/* 想いコンテンツ */
.story-text02 p {
  font-size: 18px;
  line-height: 2;
  color: #000;
  font-weight: 600;
  font-weight: 400;
}
.story-thoughts {
  margin-top: 130px;
  padding: 0 20px;
}
.story-thoughts .inner{
  max-width: 640px;
}
.story-heading {
  font-size: 36px;
  line-height: 1.5;
  text-align: left;
  font-weight: bold;
  margin-bottom: 35px;
}


/* 会社情報 */
.story-companies {
  display: flex;
  justify-content: center;
  margin-top: 150px;
  gap: 160px;
}

.company-left,
.company-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-left img,
.company-right img {
  max-width: 200px;
  height: auto;
}

/* 横並び画像3枚 */
.story-images {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 60px 0 100px 0;
  max-width: 1920px; /* 必要に応じて全体幅制限 */
  box-sizing: border-box;
}

.story-images img {
  flex: 0 1 33.333%;  /* 3枚並びで画面幅に合わせて縮小 */
  max-width: 33.333%;  /* 親要素に対する最大幅 */
  height: auto;        /* 縦横比を維持 */
  object-fit: cover;   /* トリミングはしない場合は不要 */
  display: block;
}

.company- img{
  max-width: 276px;
  width: 100%;
}
.company- p{
  font-weight: 600;
}
.ceo-name{
  font-size: 24px;
}

/* 沿革 */
.story-history {
  background-color: #F5F5F5;
  padding: 130px 20px 0 20px;
}
.story-history h2{
  text-align: center;
}
.story-history .story-heading {
  text-align: center;
}

/* お問い合わせコンテンツ */
.story-contact {
  padding: 100px 20px 100px 20px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
}

.story-contact p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 50px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 310px;
  height: 50px;
  background-color: #E44141;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  border-radius: 44px;
  transition: opacity 0.3s;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 2px;
}

.contact-btn:hover {
  opacity: 0.8;
}

.pc-icon{
  width: 30px;
  height: 26px;
}
.mail-icon{
  width: 36px;
  height: 23px;
}
.story-history {
  position: relative;
  background-color: #F5F5F5;
  padding: 130px 0 100px 0;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.story-history picture img {
  max-width: 1065px; /* ロゴサイズ調整 */
  height: auto;
  display: block;
  width: 100%;
  margin: 100px auto;
}
@media (max-width: 700px) {
  .story-history picture img {
    max-width: 310px;
    margin: 0 auto;
  }
  .story-history {
  background-color: #F5F5F5;
  padding: 60px 0 60px 0;
}
.site-logo img{
  max-width: 220px;
}
}

.privacy-policy {
  width: 100%;
  max-width: 700px;
  margin: 100px auto;
  background-color: #fff;
  padding: 100px;
  line-height: 2;
}
.privacy-extra h2{
  font-size: 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
.privacy-extra h3{
  font-size: 18px;
  font-family: "source-han-serif-japanese", serif;
  font-weight: bold;
  text-align: left!important;
  margin-top: 60px;
}
.privacy-extra h4{
  font-size: 18px;
  font-family: "source-han-serif-japanese", serif;
  font-weight: bold;
  text-align: left;
  margin-top: 10px;
}
.left-name{
  text-align: right;
  font-size: 16px;
  font-family: "source-han-serif-japanese", serif;
  margin-top: 0px;
}
.number{
  max-width: 782px;
  margin-top: 30px;
}
.number02{
  max-width: 725px;
  margin-top: 30px;
}
.number03{
  max-width: 725px;
  margin-top: 30px;
}
.privacy-extra .time{
  margin-top: 70px!important;
  font-size: 16px;
  font-family: "source-han-serif-japanese", serif;
  margin-top: -20px;
}
.privacy-extra p{
  font-size: 16px;
  font-family: "source-han-serif-japanese", serif;
}
.privacy-flex{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.all-number{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.number02 p,
.number03 p{
  margin-left: 40px;
}
.privacy-extra a{
  color: #2C1A1F;
  font-size: 16px;
  font-family: "source-han-serif-japanese", serif;
  word-break: break-all;       /* 単語途中でも折り返す */
  overflow-wrap: anywhere;     /* ブラウザによってはこちらが有効 */
  display: inline-block;       /* 行中の調整 */
  max-width: 100%;             /* 親幅を超えない */
  white-space: normal;         /* nowrap されていれば解除 */
}
.privacy-extra .text-mt50{
  margin-top: 50px;
}

/* 1200px以下用メディアクエリ */
@media screen and (max-width: 1200px) {

  .privacy-policy{
    max-width: 630px;
  }
    .number02{
    max-width: 90%;
  }
}
/* 1000px以下で縦並び */
@media screen and (max-width: 1000px) {
  .story-page .inner{
    padding: 0;
  }
  .contact-form {
    padding: 50px 80px; /* パディングを小さく調整 */
  }

  .contact-form table {
    border-spacing: 0 50px; /* tr間のスペースを調整 */
  }

  .contact-form table th,
  .contact-form table td {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .contact-form table th {
    margin-bottom: 16px;
    white-space: normal; /* ラベルの改行を許可 */
    font-size: 16px;
  }

  .contact-form table td {
    margin-bottom: 16px;
  }

  .contact-form td input[type="text"],
  .contact-form td input[type="email"],
  .contact-form td input[type="tel"],
  .contact-form td textarea {
    width: 100%;
    height: 50px;
    font-size: 16px;
    padding: 10px;
  }

  .contact-form td textarea {
    height: 120px;
  }

  /* チェックボックスも縦並びに */
  .contact-form td .mw_wp_form_checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  td.wh-bg label {
    margin-left: 0;
    margin-top: 5px;
  }
  .contact-extra .tel-number{
    font-size: 30px;
    font-weight: bold;
    color: #E44141;
    text-decoration: none;
  }
  .privacy-policy{
    max-width: 356px;
  }
    .number02{
    max-width: 90%;
  }
}
/* 700px以下用メディアクエリ */
@media screen and (max-width: 700px) {

  /* ファーストビュー */
  .fv {
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
    background-image: url('/wp-content/themes/kiribako/images/top-bg.png') no-repeat left center; /* 画像のパス */
    background-size: cover; /* 画像全体を表示 */
    background-position: center center; /* 画像の中心を表示 */
    background-repeat: no-repeat; /* 画像を繰り返さない */
  }

  .fv-flex {
    display: flex;
    justify-content: center; /* 横方向中央 */
    align-items: flex-start;  /* 縦方向中央 */
    text-align: center;      /* 内部テキストも中央揃え */
    flex-direction: column;  /* 必要なら縦方向に積む */
    margin: 0;
    gap: 16px;
  }

  .fv-flex img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .fv-text h1 {
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
  }

  .fv-logo img {
    max-width: 414px;
    margin: 10px 0;
  }

  .fv-btn {
    font-size: 22px;
    padding: 20px 16px;
  }

  .btn-icon img {
    width: 16px;
    height: auto;
    margin-left: 8px;
  }

  /* ストーリーセクション */
  .story-inner {
    flex-direction: column;
    align-items: center;
  }
  .site-logo{
    margin: 0 auto;
  }
  .story-image,
  .header-contact {
    display: none;
  }

  .story-text {
    position: static; /* 左右重なり解除 */
    width: 90%;
    max-width: none;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
    transform: none;
    background-color: #F5F5F5;
    text-align: center;
  }
    .story-text p,
    .contact-form p{
    font-size: 14px;
    line-height: 1.6;
    }
    .contact-form p{
      margin-bottom: 50px;
    }

  /* お問い合わせフォーム */
  .contact-form,
  .privacy-policy {
    padding: 40px 20px;
  }
  .contact-form{
    margin: 0 auto;
  }
  .contact-extra {
    width: 86%;
    padding: 20px;
    margin: 50px auto 0;
  }
  .contact-form h2{
    font-size: 18px;
  }
  /* 横並びボタン縦並びに */
  .contact-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .contact-btn,
  .contact-extra .mail-btn,
  .top-btn {
    width: 90%;
    max-width: 300px;
    height: 45px;
    font-size: 14px;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-logo img {
    max-width: 200px;
  }

  .footer-company p,
  .footer-company a {
    font-size: 14px;
  }

  .footer-links li {
    margin-bottom: 15px;
    text-align: center;
  }

  .footer-bottom {
    height: auto;
    padding: 10px 0;
    font-size: 14px;
  }

  /* 横並び画像3枚 */
  .story-images {
    flex-direction: column;
    gap: 20px;
  }

  .story-images img {
    max-width: 100%;
  }
  .story-text02 p{
  margin-bottom: 48px;
  text-align: center;
  }
  /* 会社情報 */
  .story-companies {
    flex-direction: column;
    gap: 40px;
    margin-top: 70px;
  }

  .company-left img,
  .company-right img {
    max-width: 150px;
  }

  /* 見出し調整 */
  .story-heading {
    font-size: 24px;
    text-align: center;
    margin-bottom: 70px;
  }
  .story-thoughts .inner{
  max-width: 334px;
}
.contact-extra .time,
.contact-extra .desc{
  font-size: 12px;
}
.story-fv{
  height: 230px;
}
.fv-white-band{
  width: 36px;
  height: 171px;
}
.vertical-text{
  font-size: 16px;
}
}
/* 400px以下用メディアクエリ */
@media screen and (max-width: 400px) {

  /* ファーストビュー */
  .fv-text h1 {
    font-size: 16px;
    line-height: 1.3;
  }

  .fv-logo img {
    max-width: 280px;
  }

  .fv-btn {
    font-size: 18px;
    padding: 17px 12px;
  }

  .btn-icon img {
    width: 14px;
    margin-left: 5px;
  }

  /* お問い合わせフォーム */
  .contact-form,
  .privacy-policy {
    padding: 20px 10px;
  }

  .contact-extra {
    width: 86%;
    padding: 15px;
    margin: 30px auto 0;
  }

  .contact-btn,
  .contact-extra .mail-btn,
  .top-btn {
    width: 95%;
    max-width: none;
    height: 40px;
    font-size: 12px;
  }

  .contact-buttons {
    gap: 10px;
  }

  /* フッター */
  .footer-company p,
  .footer-company a {
    font-size: 12px;
  }

  .footer-links li {
    margin-bottom: 10px;
  }

  .footer-bottom {
    font-size: 12px;
    padding: 5px 0;
  }

  /* ストーリー文章 */
  .story-text p{
    font-size: 16px;
    padding: 15px;
  }

  /* 横並び画像3枚 */
  .story-images img {
    max-width: 100%;
  }

  /* 会社情報画像 */
  .company-left img,
  .company-right img {
    max-width: 120px;
  }

  /* 見出し */
  .story-heading {
    font-size: 18px;
    margin-bottom: 70px;
    margin-top: -70px;
  }
    .story-thoughts .inner{
  max-width: 289px;
}
  .privacy-policy{
    max-width: 320px;
  }
  .number02{
    max-width: 90%;
  }
  .story-text02 p{
    font-size: 16px;
  }
  .company- p{
    font-size: 14px;
  }
  .story-contact p{
    font-size: 14px;
  }
}
/* デフォルトでは非表示 */
.sp-br {
  display: none;
}

/* 700px以下のスマホ向けで表示 */
@media screen and (max-width: 700px) {
  .sp-br {
    display: inline; /* inlineで表示すれば改行される */
  }
}
html{
  margin-top: 0!important;
}
/* 700px以下用のスタイル */
@media screen and (max-width: 700px) {
  /* お問い合わせSVGアイコンのスタイル */
  .contact-svg-container {
    position: fixed;  /* 固定位置に配置 */
    bottom: 20px;     /* 画面最下部に配置 */
    left: 50%;        /* 水平中央揃え */
    transform: translateX(-50%); /* 中央に揃える */
    z-index: 9999;    /* 他の要素の上に表示 */
  }

  .contact-svg-link {
    display: block;
    width: 95vw;   /* 画面幅の15%にアイコンを調整 */
    height: auto;  /* 高さを自動調整 */
  }

  .contact-svg {
    width: 100%;  /* アイコンをリンク幅に合わせる */
    height: auto; /* アスペクト比を維持 */
  }
}

/* 700px以上の場合は非表示 */
@media screen and (min-width: 701px) {
  .contact-svg-container {
    display: none; /* 700px以上では非表示にする */
  }
}
