/*
Theme Name:     generic Child
Description:    generic の子テーマです
Author:         オールイット
Author URI:     https://office-totalit.com
Template:       generic
Version:        1.0.0
*/

/* 必要なら子テーマ独自のCSSをここに書く */


@media (prefers-color-scheme: light),
@media (prefers-color-scheme: dark),
@media (prefers-color-scheme: dark) {
    body, #container, #content {
        background-color: #fff;
    }
}

body {
  color: #000;
  background-color: #fff;
}

/*レイアウト*/

#header,
#container,
#footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

#content {
  float: right;
  padding-left: 5%;
  padding-right: 0;
}

#sidebar {
  float: left;
}

.page #content p,
.single-post #content p {
  font-size: 16px;
  line-height: 1.5;
  margin: .5em 0;
}

h1 {
  border-bottom: 2px solid #31AA66;
  background: #f9f9f9;
  padding: .5em;
}

.home h1 {
  background: #fff;
  padding: 0;
}

h2 {
  background-image: url('img/h3_bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: .5em 1em;
}

h3 {
  border-bottom: 2px solid #31AA66;
  color: #31AA66;
  padding: .5em;
  margin: .5em 0;
}

.home h3 {
  text-align: center;
}

h4 {
  color: #31AA66;
    border-bottom: 1px solid #31AA66;
    padding: .5em;
    margin: .5em 0;
}

h5 {
  color: #31AA66;
  padding: .5em;
  margin: .5em 0;
}


header img {
  background-color: #fff;
}

img {
  padding: 10px;
  border: #eee;
  background-color: #f6f6f6;
}

figure {
  text-align: center;
  margin: .5em;
}

.wp-block-image :where(figcaption) {
  text-align: center;
}

/*ボタン*/

.wp-block-button__link {
  background: #FB6C44;
  border-radius: 0;
  font-weight: bold;
}

.wp-block-button__link:hover {
  background: #ff8563;
}

/*リスト*/

.entry-content ul {
  margin-left: 30px;
}

.entry-content ul li {
  list-style-type: circle;
  margin: .5em 0;
}
/*ヘッダー*/

#header {
  width: 100%;
  padding: 30px 0;
}

#branding {
  display: flex;
  float: none;
  overflow: hidden;
  justify-content: space-between; /* 左右にロゴとお問い合わせ画像を配置 */
  align-items: center;
}

.h-contact {
  display: flex;
  justify-content: flex-end; /* 右端に寄せる */
  align-items: center;       /* 高さ中央に揃える */
  height: 100px;             /* 適切な高さを指定（必要に応じて調整） */
  padding-right: 20px;       /* 任意で余白 */
}

.h-contact img {
  height: auto;
  max-height: 100%;          /* 親要素の高さに収める */
}

#site-title h1,
#site-title a {
  display: block;
}

#logo-container {
  height: auto;
  margin-bottom: 0;
}

#logo {
  max-height: 60px;
  padding: 0;
}


/*gn*/

#menu div:first-of-type {
  float: none;
}

#menu {
  float: none;
}

#menu ul {
  display: flex;
}

#menu ul li {
  flex: 1;
  border: 1px solid #1e6b42; /* 視認性のための装飾 */
}

#menu a {
  color: #fff;
  font-weight: bold;
  text-align: center;
  display: block;
  margin: 0;
  padding: 15px;
  background: #31AC69;
  background: linear-gradient(0deg, rgba(49, 172, 105, 1) 0%, rgba(49, 172, 105, 1) 50%, rgba(47, 161, 101, 1) 50%, rgba(47, 161, 101, 1) 100%);
  text-shadow: 
       3px  3px 0px #2b8353,
      -3px  3px 0px #2b8353,
       3px -3px 0px #2b8353,
      -3px -3px 0px #2b8353,
       3px  0px 0px #2b8353,
       0px  3px 0px #2b8353,
      -3px  0px 0px #2b8353,
       0px -3px 0px #2b8353;        /* 文字の影 */
  line-height: 1.75;
}

#menu a:after {
  display: block;
  font-size: .5em;
  color: #fff;
  text-shadow: none;
}

.menu-li-home a:after {
    content: 'HOME';
}

.menu-li-service a:after {
    content: 'Service';
}

.menu-li-example a:after {
    content: 'Example';
}

.menu-li-company a:after {
    content: 'Company';
}

.menu-li-contact a:after {
    content: 'Contact';
}

#menu a:hover,
#menu li.current-menu-item a,
#menu li.current_page_parent a {
  color: #fff;
  background: #3BCE7E;
  background: linear-gradient(0deg, rgba(59, 206, 126, 1) 0%, rgba(59, 206, 126, 1) 50%, rgba(55, 196, 120, 1) 50%, rgba(55, 196, 120, 1) 100%);
}

#footer {
  padding-top: 60px;
}

/*home*/

.home h1 {
  display: none;
  border: none;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 960 / 431; /* 横:縦 の比率 */
  overflow: hidden;
  margin: 0 auto;
}


.carousel-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
  z-index: 1;
}

/*table*/

.wp-block-table td,
.wp-block-table th,
th,
td {
    border: 1px solid #ccc;
    padding: 1em;
}

.wp-block-table td:first-child {
  font-weight: bold;
  vertical-align: middle;
}

.table-info table td:first-child {
  width: 33%;
}

.table-info table td:nth-child(2) {
  text-align: left;
}

/*サイド*/

.widget-container ul li {
  list-style-type: none;
  margin: 5px 0;
}

.widget-container ul {
  margin: 0;
  padding: 30px 0;
}

.widget-container a {
  display: block;
  font-size: 1.125em;
  text-align: center;
  text-decoration: none;
  border: 3px solid #30a966;
  padding: 20px;
  font-weight: 600;
  background-image: linear-gradient(0deg, #bbe3a4 0% 50%, #e5f5d8 50%, #e2f6d3);
  color: #30a966;
  text-shadow : 
      3px  3px 0px #ffffff,
      -3px  3px 0px #ffffff,
       3px -3px 0px #ffffff,
      -3px -3px 0px #ffffff,
       3px  0px 0px #ffffff,
       0px  3px 0px #ffffff,
      -3px  0px 0px #ffffff,
       0px -3px 0px #ffffff; 
}

.widget-container .li-accent a {
  border: 3px solid #3185aa;
  color: #3185aa;
  background-image: linear-gradient(0deg, #a4d6e1, #a4d6e1 50%, #cdeef5 50% 100%);
}

.widget-container a:hover {
    background-image: linear-gradient(0deg, #9be5c0 0% 50%, #cff6e1 50% 100%);
}

.widget-container .li-accent a:hover {
    background-image: linear-gradient(0deg, #aae6de, #aae6de 50%, #d2f5ef 50% 100%);
}

@media (max-width: 768px) {
  
  #header {
    padding: 15px;
  }
  
  #menu {
    display: none; 
  }
  
  #content {
    float: none;
    padding: 10px;
  }
  
   ul#menu-sidemenu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* 項目間の余白（任意） */
    padding: 10px;
  }

  ul#menu-sidemenu li {
    width: calc(50% - 8px); /* gapの半分を引く（左右に合計16pxの余白を確保） */
    box-sizing: border-box;
  }

  ul#menu-sidemenu li a {
    display: block;
    width: 100%;
  }
}