@charset "utf-8";
/* ============================================================
   tsuyoshioka.co.jp 見やすさ・使いやすさの調整（2026-10-27）
   テーマの style.css / style-responsive.css は変えず、この後から上書きする
   読み込み：mu-plugins/tsuyoshioka-site-improve.php
   ============================================================ */

/* ---------- 共通 ---------- */
header .logo .txt { font-size: 12px; }
footer .copyright { font-size: 13px; }
.pannavi { font-size: 13px; }

/* ---------- タブレット・スマホ（〜900px） ---------- */
@media only screen and (max-width: 900px) {
  /* フッターのメニューを押しやすく（高さ 44px） */
  footer .menu li a { display: inline-block; padding: 10px 0; line-height: 24px; }
  footer .label { font-size: 13px; }

  /* 記事のカテゴリー一覧 */
  .catlist a { padding: 15px 0; font-size: 15px; }

  /* 地域名のリンク（北海道・千歳市…）を押しやすく */
  .bottomlinks li { margin: 2px 0; }
  .bottomlinks a { display: inline-block; padding: 8px 2px; }
}

/* ---------- スマホ（〜640px） ---------- */
@media only screen and (max-width: 640px) {
  /* 本文 14px → 16px */
  body, .mfont { font-size: 16px; line-height: 1.85em; letter-spacing: 0.04em; }
  .mini { font-size: 15px; line-height: 1.8em; }
  .nano, .spnano { font-size: 13px; line-height: 1.7em; }
  .small0 { font-size: 15px; }

  /* 表 12.5px → 14.5px */
  .tbl { font-size: 14.5px; line-height: 1.75em; letter-spacing: 0.5px; }
  .tbl-company th { width: 104px; letter-spacing: 0; padding: 12px 10px; }
  .tbl-company td { padding: 12px 12px; }

  /* お問い合わせフォームの項目名・選択肢 */
  .tbl-form th { font-size: 15px; }
  .tbl-form label { font-size: 15px; }
  .tbl-form .cbox-radio .li, .tbl-form .cbox-checkbox .li { padding: 4px 0; }

  /* 記事一覧の日付・カテゴリー 12.5px → 13px */
  .magazine .meta, .magazine .meta span { font-size: 13px; }
  .magazine .title { font-size: 1.1em; line-height: 1.5em; }

  /* 制作実績スライダーの説明 */
  .works_slider .nano, .works .nano { font-size: 13px; }

  /* トップ「3つの強み」：文章をアイコンの右にそろえる */
  .joblist > li:nth-child(1n) { display: flex; align-items: flex-start; gap: 16px; }
  .joblist .img { float: none; flex: 0 0 72px; width: 72px; margin: 4px 0 0; }
  .joblist .txt { flex: 1 1 auto; min-width: 0; }
  .joblist .numline { text-align: left; padding-left: 4px; }
  .joblist .numline:before { bottom: auto; top: -0.35em; margin-left: -18px; font-size: 2.4em; }

  /* ホームページ制作ページのサービス説明 12px → 14px */
  .hpservice .spnano { font-size: 14px; }
}

/* ---------- スマホ・タブレットの下部固定ボタン（〜1200px：ヘッダーの「無料相談」が消える幅） ---------- */
.tsy-ctabar { display: none; }
@media only screen and (max-width: 1200px) {
  .tsy-ctabar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 390;
    background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .tsy-ctabar a {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; border-radius: 48px; font-size: 15px; font-weight: 700; letter-spacing: 0.05em;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .tsy-ctabar a.tsy-tel { color: #2c8537; background: #fff; border: 2px solid #2c8537; flex: 0 1 40%; }
  .tsy-ctabar a.tsy-mail { color: #fff; background: #2c8537; border: 2px solid #2c8537; }
  .tsy-ctabar a:before { font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 16px; }
  .tsy-ctabar a.tsy-tel:before { content: "\f095"; }
  .tsy-ctabar a.tsy-mail:before { content: "\f0e0"; font-weight: 400; }
  body.common { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.secondview .pagetop { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
  .grecaptcha-badge { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
  /* お問い合わせページでは出さない */
  body.page-id-24 .tsy-ctabar { display: none; }
  body.page-id-24.common { padding-bottom: 0; }
}
@media (hover: hover) {
  .tsy-ctabar a:hover { opacity: 0.85; }
}

/* ---------- 見出しの書体（2026-10-27）：Adobe Fonts の秀英丸ゴシック → Google Fonts「M PLUS Rounded 1c」太字
   読み込みはテーマの script.js（PC だけ）。スマホは今までどおり端末の書体 ---------- */
.gfont, .gfontn, .caption, .button, .link, .formBtn, .headline1, .headline3_lig, .headline2, th {
  font-family: 'M PLUS Rounded 1c', 'メイリオ', Meiryo, sans-serif !important; font-weight: 700 !important;
}

/* ---------- 制作・改善事例への導線（2026-10-30） ---------- */
.tsy-casebanner { max-width: 960px; margin: 40px auto 0; }
.tsy-casebanner a { display: flex; gap: 24px; align-items: center; background: #fff; border: 1px solid #d5e5d1; border-radius: 8px; padding: 16px; text-decoration: none; color: #433a34; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.tsy-casebanner__img { flex: 0 0 300px; }
.tsy-casebanner__img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.tsy-casebanner__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tsy-casebanner__lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: #2c8537; }
.tsy-casebanner__ttl { font-size: 18px; line-height: 1.6; font-weight: 700; color: #2c8537; }
.tsy-casebanner__more { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 700; color: #fff; background: #2c8537; border-radius: 40px; padding: 10px 24px; }
.top_works .tsy-caselink { display: inline-block; margin-top: 16px; padding: 9px 22px; border: 1px solid rgba(255,255,255,0.9); border-radius: 40px; color: #fff; font-size: 14px; line-height: 1.4; text-decoration: none; text-shadow: none; }
@media only screen and (max-width: 640px) {
  .tsy-casebanner { margin-top: 32px; }
  .tsy-casebanner a { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
  .tsy-casebanner__img { flex: none; }
  .tsy-casebanner__ttl { font-size: 16px; }
  .tsy-casebanner__more { align-self: stretch; text-align: center; padding: 12px 24px; }
}
@media (hover: hover) {
  .tsy-casebanner a:hover, .top_works .tsy-caselink:hover { opacity: 0.85; }
}

/* ---------- トップページの「改善ストーリー」（制作・改善事例）の欄（2026-10-31） ---------- */
.tsy-cases { background: #f4f1e4; padding: 72px 20px 80px; }
.tsy-cases__in { max-width: 1000px; margin: 0 auto; }
.tsy-cases .tsy-cases__name { font-size: 30px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; }
.tsy-cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.tsy-cases__grid.is-one { grid-template-columns: minmax(0, 560px); justify-content: center; }
.tsy-cases__card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; color: #433a34; box-shadow: 0 6px 20px rgba(0,0,0,0.07); transition: transform 0.2s; }
.tsy-cases__img img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1200 / 742; object-fit: cover; }
.tsy-cases__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tsy-cases__client { font-size: 13px; font-weight: 700; color: #2c8537; letter-spacing: 0.05em; }
.tsy-cases__ttl { font-size: 18px; line-height: 1.6; font-weight: 700; }
.tsy-cases__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tsy-cases__tags span { font-size: 12px; background: #eef5ea; color: #2c8537; border-radius: 20px; padding: 3px 10px; }
.tsy-cases__more { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 700; color: #fff; background: #2c8537; border-radius: 40px; padding: 9px 22px; }
.tsy-cases__all { text-align: center; margin-top: 40px; }
.tsy-cases__all a { display: inline-block; border: 1px solid #2c8537; color: #2c8537; background: #fff; padding: 12px 36px; border-radius: 40px; text-decoration: none; font-weight: 700; }
@media (hover: hover) { .tsy-cases__card:hover { transform: translateY(-3px); } .tsy-cases__all a:hover { opacity: 0.85; } }
@media only screen and (max-width: 640px) {
  .tsy-cases { padding: 48px 16px 56px; }
  .tsy-cases .tsy-cases__name { font-size: 24px; }
  .tsy-cases__grid, .tsy-cases__grid.is-one { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tsy-cases__ttl { font-size: 16px; }
  .tsy-cases__more { align-self: stretch; text-align: center; }
}


/* ---------- 記事の「あわせて読みたい」をカードに（2026-10-31） ---------- */
.singles .tsy-related { margin: 48px 0 40px; padding: 24px; background: #f4f1e4; border-radius: 10px; }
.singles .tsy-related__head { margin: 0 0 16px; padding-left: 12px; border-left: 4px solid #2c8537; font-size: 17px; font-weight: 700; color: #2c8537; line-height: 1.4; letter-spacing: 0.06em; }
.singles ul.tsy-related__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.singles ul.tsy-related__list > li { margin: 0; padding: 0; list-style: none; background: none; }
.singles ul.tsy-related__list > li::before, .singles ul.tsy-related__list > li::marker { content: none; display: none; }
.singles .tsy-related__list a { display: flex; gap: 12px; align-items: center; height: 100%; box-sizing: border-box; padding: 10px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none !important; border: none !important; color: #433a34; transition: transform 0.2s, box-shadow 0.2s; }
.singles .tsy-related__img { flex: 0 0 120px; width: 120px; aspect-ratio: 1200 / 742; border-radius: 4px; overflow: hidden; background: #e8eedf; }
.singles .tsy-related__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.singles .tsy-related__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.singles .tsy-related__ttl { font-size: 14px; line-height: 1.6; font-weight: 700; color: #433a34; }
.singles .tsy-related__meta { font-size: 12px; color: #2c8537; letter-spacing: 0.04em; }
@media (hover: hover) { .singles .tsy-related__list a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); opacity: 1; } .singles .tsy-related__list a:hover .tsy-related__ttl { color: #2c8537; } }
@media only screen and (max-width: 640px) {
  .singles .tsy-related { padding: 16px; margin: 36px 0 32px; }
  .singles ul.tsy-related__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .singles .tsy-related__img { flex-basis: 104px; width: 104px; }
}

