/*
Theme Name: BusinessPress
Theme URI: https://susumu-inc.jp/
Author: Susumu Inc.
Author URI: https://susumu-inc.jp/
Description: 株式会社ススムが開発したオリジナルテーマです。
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: businesspress
*/

:root {
  --main-color: #003F98;
  --accent-color: #FFB400;
  --text-color: #525252;
  --background-color: #fff;
  --link-color: #009CCF;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-1: 40px;
  --font-size-2: 28px;
  --font-size-h2: 22px;
  --font-size-h3: 20px;
}
html {
height: 100%;
}
body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text-color);
}
div{
  margin:0px;
}
p{
  margin:0px;
}
a {
  text-decoration: none;
}
a:hover{
  opacity: .7;
  transition: opacity 400ms ease;
}
ul {
  padding-inline-start: 0;
  margin: 0;
}
li {
  list-style: none;
}

div.left_box div.logo_img {
  height: 40px;
  overflow: hidden;
}

div.left_box div.logo_img img {
  height: 100%;
  width: auto;
}
header{
  position: fixed;
  background-color:var(--background-color);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* オプション */
}
div.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
}
div.right_box {
display: flex;
}
div.mail {
  background-color: #FFB400;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
div.mail a,
.guide-back a {
  color: var(--main-color);
  font-weight: bold;
}
div.mail a{
display: block;
}
div.mail a:hover {
  opacity: .7;
  transition: opacity 400ms ease;
}
div.tel{
  margin-right: 20px;
}
div.tel,
div.tel a {
  font-size: var(--font-size-2);
  font-weight: bold;
  color: var(--main-color);
  text-align: center;
}
div.tel p {
font-size: var(--font-size-base);
color:var(--text-color);
font-weight: normal;
margin-bottom: 10px;
}
.mobile-nav div.mail{
  padding: 22px 20px;
  font-size:16px;
  width:80%;
  margin:0 auto;
  border-radius: 32px;
  margin-bottom: 30px;
}
.mobile-nav ul{
  margin-bottom: 50px;
}
.mobile-nav div.tel p{
  font-size: 16px;

}
footer {
  background: #2d344b;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

nav {
  display: flex;
  justify-content: center;
  position: relative;
  background-color: #f0f8ff;
}

nav.global-nav a {
  padding:10px 15px;
  color: var(--main-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  position: relative;
}

nav.global-nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background-color: #D2D2D2;
}

.mainvisual {
  width: 100%;
  height: 50vh;
  background-color: rgb(49, 113, 202);
}

.mainvisual .container {
  width: 90%;
  max-width: 1100px;
  margin: 50px auto;
  text-align: left;
  display: flex;
}
.mainvisual .about {
  padding: 20px 20px;
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  border: 6px solid #e7e7e7;
}
.mainvisual .about li {
  font-size: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-bottom:16px;
}
.mainvisual .about li:last-child {
  margin-bottom: 0;
}
.mainvisual .about li div img {
  max-width: 20px;
  width: 20px;
  margin-right: 24px;
}

.mainvisual .about li p {
  border-bottom: 3px dashed var(--accent-color);
  display: inline-block; 
  padding-bottom: 3px;
}
.mainvisual h1 {
  font-size: var(--font-size-1);
  color: var(--background-color);
  margin: 0 auto;
  text-shadow: rgba(0, 26, 99, 0.2) 0px 4px 10px;
  margin-left: 0px;
}

.mainvisual h1 span {
  font-size: 14px;
  border: 1px solid;
  display: inline-block;
  padding: 5px;
  margin-bottom: 20px;
}

.content-area {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
}

.sidebar {
  width: 250px;
}

.main-content {
  flex: 1;
}

.main-content h2,
aside.sidebar h2 {
  font-size: var(--font-size-h2);
  padding: 5px 20px;
  background-color: var(--main-color);
  color: var(--background-color);
  margin-top: 40px;
}

aside.sidebar h3 {
  font-size: var(--font-size-base);
  padding: 5px 20px;
  background-color: var(--main-color);
  color: var(--background-color);
  border-radius: 7px;
}

aside.sidebar li {
  padding: 10px;
  background-color: #FCFCFC;
  border: 1px solid #E7E7E7;
  font-size: 14px;
}

aside.sidebar li a {
  color: var(--link-color);
}

.bullet {
  font-size: 12px;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -1.5px;
  margin-right: 6px;
  color: #999;
}

.guide-category.website .bullet {
  color: #FF7878;
}

.guide-category.workflow .bullet {
  color: #00B21E;
}

.category-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  display: inline-block;
  padding: 5px 20px;
  border-radius: 20px;
  color: #fff;
  line-height: 1.2;
}

.category-block.marketing .category-title{
  background-color: #FF7878;
}
.category-block.marketing .service-item {
  border-left: 4px solid #FF7878;
}

.category-block.workflow .category-title
{background-color: #00B21E;
}
.category-block.workflow .service-item {
  border-left: 4px solid #00B21E;
}

.category-block.customersuccess .category-title{
background-color: #5d64e1;
}
.category-block.customersuccess .service-item {
  border-left: 4px solid #5d64e1;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  border: 1px solid #E7E7E7;
  padding: 12px 16px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.service-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.service-title {
  font-weight: 600;
}

/* お知らせ */
.news-list li {
  margin-bottom: 20px;
  border-bottom: 1px solid #D2D2D2;
}

.news-list li a {
  display: block;
  color: var(--link-color);
  padding-bottom: 10px;
}

.news-list li a .news-title {
  display: block;
  margin-bottom: 4px;
}

.news-list li a .news-excerpt {
color:var(--text-color);
}
.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: var(--font-size-base);
}

.main-content th,
.main-content td {
  border: 1px solid #666;
  padding: 12px;
  vertical-align: top;
  text-align: left;
}

.main-content th {
  width: 20%;
  font-weight: bold;
  white-space: nowrap;
}

.guide-detail {
  padding: 40px 20px;
  margin: 0 auto;
  max-width: 770px;
}

h1.guide-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--main-color);
  background: linear-gradient(90deg, #003f98 0 40%, #dadada 40%) no-repeat 0 100% / 100% 5px;
  font-size: 1.75rem;
  line-height: 1.8;
  margin: 0 0 32px;
  padding-bottom: 10px;
}
.guide-date {
  font-size: var(--font-size-small);
  color: #999;
  margin-bottom: 24px;
}
.guide-content,.offer-content{
  max-width: 100%;
  font-weight: 500;
}
.guide-content img{
  max-width: 100%;
  height: auto;
}
.guide-content h2,
.related-guides h2 {
  font-size: 28px;
  color: var(--main-color);
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--main-color);
  background: none;
}
.guide-content h2{
  padding-left: 0px;
}

.guide-content h3,.offer-content h3 {
  font-size: var(--font-size-h3);
  margin-top: 40px;
  padding-left: 8px;
  border-left: 5px solid var(--main-color);
  color: var(--main-color);
  margin-bottom: 30px;
}
.guide-content h4 {
  position: relative;
  font-weight: 600;
  margin: 1.2em 0 0.6em;
  padding-left: 1em;
  color: var(--main-color);
  font-size:18px;
  border-bottom: 1px solid var(--main-color);
  display: inline-table;
}

.guide-content h4::before {
  content: '・';
  position: absolute;
  left: 0;
  color: #003f98;
}
.guide-content p, .offer-content p{
  margin-bottom: 1.3em;
  line-height: 2;
  font-weight: 400;
  font-size: 16px !important;
}
.guide-content p a,.offer-content p a{
  color: var(--link-color);
text-decoration: underline;
}
.guide-content p span,.offer-content p span{
  background-color: #ffff99;
}
.guide-content span[id] {
  display: block;
  scroll-margin-top: 110px; 
}

main.guide-detail div.mail,main.offer-content div.mail{
  max-width: 360px;
  margin: 0 auto;
}
.guide-content ul,.offer-content ul{
  padding: 20px;
  background-color: #f0f8ff;
  margin-bottom: 20px;
}
.guide-content li::marker,
.offer-content li::marker {
  color: var(--main-color);
  font-size: 1.2em;
}
.guide-content li,
.offer-content li{
  margin-bottom: 16px;
  list-style-type: disc;
  list-style-position: inside;
}
.guide-content li:last-child,.offer-content li:last-child{
  margin-bottom: 0;
}
.guide-content table ,.guide-content table{
font-size: var(--font-size-small);
color: var(--text-color);
}
.guide-content th,.offer-content th{
  background-color: #f0f8ff;
  color: #525252;
}
pre, code {
  white-space: pre-wrap;        
  word-wrap: break-word;        
  overflow-x: auto;             
  max-width: 100%;              
  font-size: 14px;              
  -webkit-text-size-adjust: 100%;  
  box-sizing: border-box;
}
div.banner-box{
width: 100%;
margin: 30px auto;
}
div.banner-box a{
display: inline;
}
div.banner-box img{
max-width: 100%;
}
.related-guides {
  margin-top: 60px;
}

.related-guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 auto;
  box-sizing: border-box;
}

.related-guide-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 0 1 calc(50% - 12px);
  max-width: 100%;
}

.related-guide-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.related-guide-top{
  padding:20px 20px;
  background-color: cornsilk;
  border-radius: 12px 12px 0px 0px;
  min-height: 190px;
}
.related-guide-category {
    font-size: 13px;
    color: #FFFFFF;
    margin-bottom: 10px;
    padding: 5px;
    background-color: var(--main-color);
    display: inline-block;
}

.related-guide-title {
  font-weight: bold;
  font-size:var(--font-size-h3);
  color:var(--main-color);
  margin-bottom: 10px;
  text-align: center;
}
.related-guide-bottom{
padding:20px;
}
.related-guide-bottom p{
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.read-more {
  font-weight: bold;
  color: var(--main-color);
  font-size: 14px;
  text-align: center;
}
.arrow::before {
  content: ">";
  font-family: sans-serif;
  font-weight: bold;
}
.archive-visual{
  width: 100%;
  height: 30vh;
  background-color: rgb(49, 113, 202);
  text-align: center;
  align-content: center;
}
.archive-visual h1 {
  color:white;
}
.breadcrumb-wrap {
  background-color: #f0f0f0;
  padding: 10px 0;
  display: block;
}

nav.breadcrumb {
  font-size: 12px;
  color: #999;
  padding: 0 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: #f0f0f0;
  justify-content: left;
  max-width: 1100px;
  margin:0 auto;
}

.breadcrumb a {
  color: #999;
  font-weight: bold;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #999;
}
.breadcrumb-separator {
  margin: 0 8px;
  color: #ccc;
}
.back-to-news a{
  color: var(--link-color);
}
main.company-content table{
  margin-top:60px;
}
main.company-content th{
  background-color:#f0f0f0;
}
/* -------------------------------
  ハンバーガーメニュー（768px以下で表示）
-------------------------------- */
.hamburger {
  display: none; 
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger .icon-bars,
.hamburger .icon-close {
  display: none;
  width: 24px;
  height: 24px;
}

/* 初期表示：三本線 */
.hamburger .icon-bars {
  display: inline;
}
.hamburger-wrapper {
  display: flex;
  align-items: center; /* ← 縦の中央揃え */
  height: 100%;
}

/* アクティブ時：×アイコンを表示 */
.hamburger.active .icon-bars {
  display: none;
}
.hamburger.active .icon-close {
  display: inline;
}
.mobile-nav {
  display: none;
  position: fixed;
  right: 0;
 width: 100%;
 height: 80vh;
  background: var(--background-color);
  box-shadow: -2px 0 1px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  line-height: 1.5;
}

.mobile-nav.open {
  display: block;
}
.mobile-nav nav {
  display: block;
  white-space: normal;
  background-color: var(--background-color);
}

.mobile-nav nav a {
  display: block;
  padding: 14px 20px ;
  color: var(--main-color);
  border-bottom: 1px solid #999;
  white-space: nowrap; 
  font-size: var(--font-size-small);
  font-weight: 500;
}

.sidebar-mobile h2,
.sidebar-mobile h3 {
  margin-top: 20px;
  color: var(--main-color);
}

.sidebar-mobile ul {
  margin: 0 0 16px;
  padding-left: 1em;
}

.sidebar-mobile li {
  font-size: 14px;
  padding: 5px 0;
  word-break: break-word;
}
#toc_container {
    background: #f9f9f9;
    border: 1px solid #aaa;
    display: table;
    margin: 40px auto 3em;
    padding: 25px 40px 10px;
    width: 80%;
}
#toc_container p.toc_title{
  text-align: center;
  font-weight: 700;
  margin: 0;
  padding: 0;
}
#toc_container ul{
  padding:0px;
  background-color: transparent;
}
#toc_container li{
  margin-bottom: 0px;

}
#toc_container span{
  display: none;
}
#toc_container .toc_list li>a {
  align-items: center;
  display: flex;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 0 6px;
  text-decoration: none;
  color: var(--main-color);
}
#toc_container .toc_list li>a:before {
  content: "●";
  display: block;
  margin-right: 7px;
  opacity: .4;
}
#toc_container .toc_list li {
list-style: none;
}
#toc_container .toc_list li ul li {
 padding-left:15px;
  }
#toc_container .toc_list li ul li>a {
  font-size: 16px;
  }
  #toc_container .toc_list li ul li>a:before {
    display: none;
    }
  .supervised-box {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

.supervised-header {
  color: var(--main-color);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.supervised-icon img {
  width: 48px;
  height: auto;
}

.supervised-heading {
  font-size: 1.2em;
  margin: 0;
}

.supervised-text p {
  margin-bottom: 10px;
  line-height: 1.6;
}

  .mobile-article-list {
    display: none;
  }

/* -------------------------------
  レスポンシブ切り替え
-------------------------------- */
@media screen and (max-width: 768px) {
  .global-nav,
  .sidebar,
  .header .right_box {
    display: none;
  }
  .main-content h2, aside.sidebar h2{
    font-size: 20px;
  }
  .hamburger {
    display: flex;
    position: absolute;
    top: 16px;
    right: 20px;
  }
  .header {
    position: relative;
    padding: 16px 20px;
  }
  .mainvisual{
    height: 60vh;
}
  .mainvisual .container {
    display: block;
    margin:20px auto;
    text-align: center;
}
.mainvisual h1{
  font-size:24px;
  text-align: center;
  margin-bottom: 20px;
}
.mainvisual h1 span {
  margin-bottom: 0px;
}
.mainvisual .about {
  padding: 10px 20px;
    margin: 0 auto;
}
.mainvisual .about li {
  font-size: 16px;
  margin-bottom: 10px;
}
.content-area{
  width:90%;
}
h1.guide-title {
  font-size:28px;
}
.mobile-article-list {
  display: block;
}
.mobile-article-list a{
  display: block;
  color: var(--link-color);
  padding-bottom: 10px;
}
.mobile-article-list li{
  margin-bottom: 20px;
  border-bottom: 1px solid #D2D2D2;
}
  .guide-detail pre,
  .guide-detail  code {
    font-size: 14px !important; /* iPhoneの拡大対策 */
    max-width: 100% !important; /* 親要素からはみ出させない */
    white-space: pre-wrap !important; /* 折り返しを許可 */
    word-break: break-word !important; /* 長い単語で折る */
    overflow-x: auto !important; /* 横にスクロール可 */
    -webkit-text-size-adjust: 100% !important; /* Safariの強制拡大を防止 */
    box-sizing: border-box !important; /* paddingで拡大しないように */
  }
}

@media screen and (max-width: 480px) {
  .mainvisual h1 {
    font-size: 24px;
    margin-bottom: 20px;
}
.mainvisual .about li div img {
  margin-right: 20px;
}

.mainvisual h1 span {
  margin-bottom: 10px;
}
.mainvisual .about {
    padding: 10px 20px;
}
  .mainvisual .container {
    margin: 20px auto;
}
.mainvisual .about li {
  font-size: 14px;
}
  .service-list {
    display: block;
}
.service-item:not(:last-child) {
  margin-bottom: 12px;
}
.archive-visual {
  height: 20vh;
}
.archive-visual h1 {
  font-size: var(--font-size-h2);
}
.related-guide-list {
  display:block;
}
.guide-detail{
  padding:40px 0px;
}
.related-guide-top {
  padding: 10px 20px;
  min-height: unset;
}
.related-guide-card{
  margin-bottom: 16px;
}
#toc_container .toc_list li ul li>a
 {
    display: none;
}
}
@media screen and (max-width: 375px) {
.mainvisual h1 {
  font-size: 24px;
 margin-bottom: 40px;
}
.mainvisual h1 span {
  margin-bottom: 12px;
}
.mainvisual .about li{
  font-size:14px;
}
.mainvisual h1 {
  font-size: 22px;
}
}
/* 初期状態では非表示 */
.br-768,
.br-480,
.br-pc {
  display: none;
}

/* 768px以下で表示（スマホ・タブレット） */
@media screen and (max-width: 768px) {
  .br-768 {
    display: inline;
  }
}

/* 480px以下で表示（スマホ縦など） */
@media screen and (max-width: 480px) {
  .br-480 {
    display: inline;
  }
}

/* 769px以上で表示（PC） */
@media screen and (min-width: 769px) {
  .br-pc {
    display: inline;
  }
}