@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ========================================
   事業内容ページ 冒頭紹介
======================================== */

.post_content .service-intro {
  background: linear-gradient(
    135deg,
    #f3f8fc 0%,
    #ffffff 100%
  );
  border: 1px solid #dce8f2;
  border-radius: 14px;
  padding: 45px 50px;
  margin: 35px 0 50px;
  position: relative;
  overflow: hidden;
}

/* 左側のアクセント */
.post_content .service-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #245b8a;
}

/* 見出し */
.post_content .service-intro h2 {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 20px;
  margin: 0 0 25px;
  color: #245b8a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
}

/* 見出し下のライン */
.post_content .service-intro h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65px;
  height: 3px;
  background: #245b8a;
  border-radius: 3px;
}

/* 本文 */
.post_content .service-intro p {
  font-size: 15px;
  line-height: 2.1;
  color: #354b61;
  font-weight: 400;
  margin: 0 0 20px;
}

/* 最後の段落 */
.post_content .service-intro p:last-child {
  margin-bottom: 0;
}

/* 太字を自然な強調に */
.post_content .service-intro strong {
  font-weight: 500;
}

/* ========================================
   スマホ対応
======================================== */

@media screen and (max-width: 767px) {

  .post_content .service-intro {
    padding: 30px 24px;
    margin: 25px 0 35px;
    border-radius: 10px;
  }

  .post_content .service-intro h2 {
    font-size: 21px;
    line-height: 1.6;
    padding-bottom: 18px;
    margin-bottom: 20px;
  }

  .post_content .service-intro p {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 16px;
  }
}



/* ========================================
   SWELL 事業内容ページ
   メインカラー #245b8a
======================================== */

/* 事業内容全体 */
.post_content .service-detail {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 45px;
  margin: 45px 0;
  background: #f5f9fc;
  border: 1px solid #e1eaf2;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(36,91,138,.05);
}

/* カラム */
.post_content .service-detail > .wp-block-column {
  min-width: 0;
  margin: 0;
}

/* 写真 */
.post_content .service-detail figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.post_content .service-detail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .4s ease;
}


/* 事業名 H2 */
.post_content .service-detail h2 {
  background: transparent;
  color: #245b8a;
  border: none;
  box-shadow: none;
  padding: 0 0 18px;
  margin: 0 0 22px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
}

/* 見出し下のライン */
.post_content .service-detail h2::after {
  content: "";
  display: block;
  width: 55px;
  height: 3px;
  background: #245b8a;
  border-radius: 5px;
  margin-top: 15px;
}

/* 本文 */
.post_content .service-detail p {
  color: #405367;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

/* リスト */
.post_content .service-detail ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

/* リスト項目 */
.post_content .service-detail li {
  position: relative;
  background: #fff;
  border: 1px solid #e1eaf2;
  border-radius: 6px;
  padding: 9px 10px 9px 28px;
  margin: 0;
  color: #354b61;
  font-size: 13px;
  line-height: 1.6;
}

/* チェックマーク */
.post_content .service-detail li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 9px;
  color: #245b8a;
  font-weight: 700;
}

/* ========================================
   スマホ対応
======================================== */

@media screen and (max-width: 781px) {

  .post_content .service-detail {
    flex-direction: column;
    gap: 25px;
    padding: 22px;
    margin: 30px 0;
  }

  .post_content .service-detail > .wp-block-column {
    width: 100%;
    flex-basis: auto !important;
  }

  /* スマホは写真を先頭に */
  .post_content .service-detail > .wp-block-column:has(figure) {
    order: -1;
  }

  .post_content .service-detail img {
    aspect-ratio: 16 / 10;
  }

  .post_content .service-detail h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }

  .post_content .service-detail p {
    font-size: 14px;
    line-height: 1.9;
  }

  .post_content .service-detail ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post_content .service-detail li {
    font-size: 13px;
  }
}


/* ========================================
   看板犬紹介カード
======================================== */

.post_content .mascot-card {
  background: #f3f8fc;
  border: 1px solid #dce8f2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(36,91,138,.08);
  gap: 0;
  margin: 35px 0;
  align-items: stretch;
}

/* 左側の写真 */
.post_content .mascot-card > .wp-block-column:first-child {
  margin: 0;
}

.post_content .mascot-card figure {
  margin: 0;
  height: 100%;
}

.post_content .mascot-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
}

/* 右側の文章エリア */
.post_content .mascot-card > .wp-block-column:last-child {
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 英語の小見出し */
.post_content .mascot-card p:first-child {
  color: #245b8a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  margin-bottom: 10px;
}

/* 見出し */
.post_content .mascot-card h3 {
  background: none;
  border: none;
  box-shadow: none;
  color: #245b8a;
  font-size: 23px;
  font-weight: 700;
  padding: 0 0 18px;
  margin: 0 0 20px;
  border-bottom: 2px solid #d5e4f0;
}

/* 紹介文 */
.post_content .mascot-card p {
  color: #35475a;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 15px;
}

.post_content .mascot-card p:last-child {
  margin-bottom: 0;
}

/* スマホ */
@media screen and (max-width: 781px) {
  .post_content .mascot-card {
    flex-direction: column;
  }

  .post_content .mascot-card img {
    height: 260px;
    min-height: 0;
    object-position: center 45%;
  }

  .post_content .mascot-card > .wp-block-column:last-child {
    padding: 28px 24px;
  }

  .post_content .mascot-card h3 {
    font-size: 20px;
  }

  .post_content .mascot-card p {
    font-size: 14px;
  }
}

/* 看板犬カードをコンパクトに */
.post_content .mascot-card {
  align-items: center;
  padding: 25px;
  gap: 25px;
}

/* 写真エリア */
.post_content .mascot-card > .wp-block-column:first-child {
  flex: 0 0 180px !important;
  width: 180px;
}

/* 写真 */
.post_content .mascot-card img {
  width: 180px;
  height: 180px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}

/* 文章エリア */
.post_content .mascot-card > .wp-block-column:last-child {
  flex: 1;
  padding: 0;
}

/* スマホ */
@media screen and (max-width: 781px) {
  .post_content .mascot-card {
    padding: 22px;
    gap: 18px;
  }

  .post_content .mascot-card > .wp-block-column:first-child {
    flex: none !important;
    width: 150px;
    margin: 0 auto;
  }

  .post_content .mascot-card img {
    width: 150px;
    height: 150px;
  }

  .post_content .mascot-card > .wp-block-column:last-child {
    width: 100%;
    padding: 0;
  }
}

/* ========================================
   代表挨拶
======================================== */

.representative-message {
  background: #f5f9fc;
  border-left: 5px solid #245b8a;
  border-radius: 0 12px 12px 0;
  padding: 45px 50px;
  margin: 40px auto;
  box-shadow: 0 5px 25px rgba(36,91,138,.06);
}

/* キャッチコピー */
.representative-message h3 {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 0 20px;
  margin: 0 0 30px;
  color: #245b8a;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.7;
  border-bottom: 1px solid #d5e3ef;
}

/* 本文 */
.representative-message p {
  color: #35475a;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: .035em;
  margin-bottom: 22px;
}

/* 代表者名（最後の段落） */
.representative-message p:last-child {
  text-align: right;
  margin-top: 35px;
  margin-bottom: 0;
  color: #245b8a;
  font-size: 17px;
  font-weight: 700;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .representative-message {
    padding: 28px 22px;
    margin: 25px auto;
    border-left-width: 4px;
  }

  .representative-message h3 {
    font-size: 19px;
    margin-bottom: 22px;
  }

  .representative-message p {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 18px;
  }

  .representative-message p:last-child {
    font-size: 15px;
    margin-top: 25px;
  }
}



/* 事業内容カード */
.service-card {
  background: #fff;
  border: 1px solid #e1e9f1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(20,55,90,.07);
  transition: transform .3s, box-shadow .3s;
}

.service-card h3 {
  color: #245b8a;
  font-size: 19px;
  font-weight: 700;
  padding: 0 20px;
  border: none;
  background: none;
}

.service-card p {
  color: #526171;
  font-size: 14px;
  line-height: 1.9;
  padding: 0 20px 20px;
}



/* ========================================
   トップページ 冒頭紹介文
======================================== */

/* トップページ最初のH2 */
.home .post_content > h2:first-child,
.home .post_content > .wp-block-heading:first-child {
  background: transparent;
  color: #245b8a;
  border: none;
  border-bottom: none;
  padding: 0 0 22px;
  margin: 55px 0 30px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  position: relative;
  box-shadow: none;
}

/* 見出し下の装飾ライン */
.home .post_content > h2:first-child::after,
.home .post_content > .wp-block-heading:first-child::after {
  content: "";
  display: block;
  width: 65px;
  height: 4px;
  background: #245b8a;
  border-radius: 10px;
  margin: 22px auto 0;
}

/* 冒頭の本文 */
.home .post_content > h2:first-child ~ p,
.home .post_content > .wp-block-heading:first-child ~ p {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: .035em;
  color: #35475a;
  margin-bottom: 24px;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .home .post_content > h2:first-child,
  .home .post_content > .wp-block-heading:first-child {
    font-size: 22px;
    margin-top: 35px;
    padding-bottom: 15px;
  }

  .home .post_content > h2:first-child ~ p,
  .home .post_content > .wp-block-heading:first-child ~ p {
    font-size: 14px;
    line-height: 2;
  }
}



@media (min-width: 1600px){
.p-mainVisual__inner  {
   max-width: 1600px;!important;
   margin:auto!important;
   padding-top: 10px;!important;
}}


/* ========================================
   SWELL テーブルデザイン
======================================== */

/* テーブル全体 */
.post_content .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
  font-size: 15px;
  line-height: 1.8;
}

/* セル共通 */
.post_content .wp-block-table th,
.post_content .wp-block-table td {
  padding: 15px 20px;
  border: none;
  border-bottom: 1px solid #e9edf2;
  vertical-align: middle;
}

/* 見出し行 */
.post_content .wp-block-table thead th {
  background: #1a2e47;
  color: #fff;
  font-weight: 700;
  text-align: left;
  border-bottom: none;
}

/* 偶数行の背景 */
.post_content .wp-block-table tbody tr:nth-child(even) {
  background: #f5f7fa;
}

/* マウスを乗せた行 */
@media (hover: hover) {
  .post_content .wp-block-table tbody tr:hover {
    background: #edf3f9;
    transition: background .2s ease;
  }
}

/* 最終行の下線を削除 */
.post_content .wp-block-table tbody tr:last-child td,
.post_content .wp-block-table tbody tr:last-child th {
  border-bottom: none;
}

/* 左列を強調 */
.post_content .wp-block-table tbody td:first-child {
  font-weight: 600;
  color: #263d56;
}

/* リンク */
.post_content .wp-block-table a {
  color: #2366a0;
  text-decoration: none;
  font-weight: 600;
}

.post_content .wp-block-table a:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .post_content .wp-block-table table {
    font-size: 13px;
  }

  .post_content .wp-block-table th,
  .post_content .wp-block-table td {
    padding: 11px 12px;
    overflow-wrap: anywhere;
  }
}

/* SWELL テーブル THの背景色 */
.post_content .wp-block-table th {
  background-color: #245b8a;
  color: #fff;
  font-weight: 700;
  padding: 15px 20px;
  border-color: #e3e8ef;
}