/*
Theme Name: Akebonoyakin
Theme URI: https://wordpress.org/themes/akebonoyakin/
Author: Shoryu Tabata
Author URI: None
Description: None
Requires at least:
Tested up to:
Requires PHP:
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akebonoyakin
*/

/*
 * Link styles
 * https://github.com/
 */

/* ========== ベーススタイル（スマホ） ========== */
body {
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ",
    "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  margin: 0;
  height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

h1 {
  font-size: 24px;
}

ul {
  list-style: none;
  padding: 0;
}

p {
  margin: 0;
  font-size: 16px;
}

/* header */
.header {
  width: 100%;
  position: fixed;
  z-index: 9999;
  background: #fff;
}

.header-top {
  display: flex;
  padding: 0.6rem;
  justify-content: space-between;
}

.header-left a {
  text-decoration: none;
  color: #000;
}

.header-left p {
  font-size: 14px;
}

.header-left span {
  display: none;
}

.header-right {
  display: none;
}

.header-right a {
  color: #0073aa;
  text-decoration: none;
}

.header-right a:hover {
  text-decoration: underline;
}

/* ハンバーガーアイコン */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: #79a9e9;
  color: white;
  font-size: 1.5rem;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 12px;
}

/* モバイルメニュー：開閉制御用 */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #f4f6f7;
  height: 100vh;
}

.bar {
  width: 30px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
  transition: 0.3s ease-in-out;
  position: relative;
}

.menu-label {
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 1px;
}

.menu-toggle.active .bar.top {
  transform: rotate(45deg) translateX(6px) translateY(6px);
}
.menu-toggle.active .bar.middle {
  opacity: 0;
}
.menu-toggle.active .bar.bottom {
  transform: rotate(-45deg) translateX(4px) translateY(-4px);
}

.mobile-menu.active {
  display: flex;
}

/* モバイルメニュー内リンクの見た目 */
.mobile-menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  text-decoration: none;
  text-align: center;
  padding: 0.5rem 2rem;
  transition: background 0.2s ease;
}

.mobile-menu p {
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
  margin-top: 0.5rem;
  background-color: #0073aa;
  border: 1px solid #0073aa;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
  color: #0073aa;
}

.mobile-menu-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
}

.mobile-menu-item svg {
  margin-right: 0.5rem;
}

main {
  padding-top: 4.6rem;
}

/*
  TOP
*/
.icons {
  width: 26px;
  height: 26px;
}

.key-visual {
  width: 100%;
}

.key-visual-inner {
  padding: 0 2rem;
  gap: 2rem;
  position: relative;
}

.key-visual-inner {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.visual-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  color: #fff;
  width: 100%;
}

.visual-text h1,
.visual-text p {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}

/* dimension-area */
.dimension-area {
  text-align: center;
  margin: 4rem 0;
}

.dimension-area h2 {
  margin-bottom: 1.2rem;
  text-align: center;
}

.dimension-area a {
  display: inline-block;
  background-color: #7aa9ea;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}

.dimension-area a:hover {
  opacity: 0.8;
}

.dimension-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0 auto 1.5rem auto;
}

.dimension-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #bbb;
  display: inline-block;
}

.dimension-list li {
  flex: 0 1 35%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  background: #f3f3f3;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.dimension-list p {
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #444;
}

.dimension-list p span {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* お知らせ */
.information-area {
  text-align: center;
  margin-bottom: 4rem;
}

.information-area h2 {
  margin-bottom: 1.2rem;
}

.information-link {
  text-decoration: none;
  color: #3976ca;
}

.information-link:hover {
  opacity: 0.8;
  cursor: pointer;
}

.information-area-link {
  display: inline-block;
  margin-top: 2rem;
  background-color: #7aa9ea;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.4rem;
  border-radius: 6px;
  cursor: pointer;
}

.access-area h2 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.access-area {
  margin: 0;
}

.access-info address {
  font-style: normal;
  margin-left: 40px;
}

.access-info dt {
  margin-left: 40px;
}

.access-info dt:nth-of-type(2) {
  margin-top: 0.5rem;
}

.google-map {
  text-align: center;
  width: 100%;
}

.google-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ========== 異次元の秘密 ========== */
.section-title {
  width: 100%;
  padding: 0.8rem 0;
  background-color: #7aa9ea;
}

.section-title-inner {
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.secret-section {
  margin: 2rem 1.4rem;
  margin-bottom: 2rem;
}

.secret-section h1 {
  text-align: center;
  margin-bottom: 1.4rem;
}

.strength-item {
  margin-bottom: 1.2rem;
}

.strength-item h3 {
  font-weight: bold;
  font-size: 16px;
}

.contact {
  text-align: center;
}

.contact p {
  color: #fff;
  display: inline-block;
  padding: 0.2rem 2.5rem;
  background: #ed6c1b;
  border-radius: 999px;
}

/* ========== 主要設備 ========== */
.main-facilities-section {
  max-width: 800px;
  margin: 2rem auto;
}

.main-facilities-item {
  width: 80%;
  margin: 0 auto 2rem auto;
}

.main-facilities-item h3 {
  font-size: 20px;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #ccc;
}

.main-facilities-item span {
  margin-left: 1.5rem;
}

/* ========== 会社概要 ========== */
.csBody {
  margin: 0 24px;
  width: auto;
}

.contentHead02 {
  margin-bottom: 35px !important;
  font-family: "Noto Sans JP";
  font-weight: 400;
  position: relative;
  font-size: 28px;
  letter-spacing: 2.6px;
  margin: 0 0 3px;
  text-align: center;
}

.contentHead02:before {
  background: #fa6414;
  bottom: -11px;
  content: "";
  display: inline-block;
  height: 3px;
  left: 50%;
  margin: 0 0 0 -18px;
  position: absolute;
  width: 36px;
}

.companyData .figCol {
  width: 100%;
}

.figureLayout {
  width: 100%;
}

.figureLayout dl {
  display: table;
  width: 100%;
  margin: 1.2rem 0;
}

.figureLayout dl dt {
  width: 100px;
}

.figureLayout dl dt,
.figureLayout dl dd {
  display: table-cell;
  border-bottom: 1px solid #e5e5e5;
}

.google-map-about {
  display: flex;
  justify-content: center;
}

/* ========== 投稿一覧 ========== */
.archive-list {
  margin: 2rem auto;
  max-width: 800px;
}

.archive-list a {
  text-decoration: none;
  color: #333;
  width: 100%;
}

.archive-list a:hover {
  opacity: 0.8;
  cursor: pointer;
}

.archive-list-item {
  display: flex;
  flex-direction: column;
  margin: 0 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #ccc;
}

/* ========== 投稿内容 ========== */
.post-back {
  margin-top: 2rem;
}

.post-back a {
  text-decoration: underline;
}

.post-back a:hover {
  opacity: 0.8;
  cursor: pointer;
}

/* フォーム全体 */
.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 0;
  border-radius: 8px;
}

/* ラベルと入力のブロック */
.wpcf7-form p {
  margin-bottom: 1.5rem;
}

/* ラベル */
.wpcf7-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* 入力フィールド共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

/* テキストエリアの高さ調整 */
.wpcf7-form textarea {
  min-height: 150px;
}

/* 送信ボタン */
.wpcf7-submit {
  background-color: #0062b1;
  color: #fff;
  padding: 0.6rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.wpcf7-submit:hover {
  background-color: #004a86;
}

/* 応答メッセージ */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  background: #e6ffe6;
  color: #006400;
  border-radius: 4px;
}

footer {
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  background-color: #376ab0;
}

/* ========== タブレット表示 ========== */
@media (min-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }

  main {
    padding-top: 0;
  }

  .menu-toggle,
  .menu-overlay {
    display: none;
  }

  .header {
    position: static;
    z-index: 1;
  }

  .header-top {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    justify-content: space-between;
  }

  .header-left p {
    font-size: 16px;
  }

  .header-left span {
    display: inline-block;
    font-weight: normal;
    margin-left: 0.5rem;
    font-size: 1rem;
  }

  .header-right {
    display: flex;
    margin-top: auto;
  }

  .header-right p {
    font-size: 16px;
    color: #fff;
    background-color: #7aa9ea;
    padding: 4px 10px;
    border-radius: 6px;
  }

  .mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    height: 100%;
  }

  .mobile-menu a {
    padding: 0.6rem 1rem;
    font-size: 16px;
    border: none;
  }

  .mobile-menu a:hover {
    background: #bbb;
  }

  .mobile-menu p {
    display: none;
  }

  .mobile-menu-item {
    margin: 0;
  }

  .key-visual {
    width: 100%;
    height: 360px;
    justify-content: center;
    align-items: center;
    background-color: #7aa9ea;
  }

  .key-visual-inner {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    justify-content: space-between;
    align-items: center;
  }

  .visual-image {
    display: block;
    position: static;
  }

  .visual-image img {
    object-fit: contain;
    margin: 0 auto;
  }

  .visual-text {
    position: static;
    transform: none;
    justify-content: center;
    align-items: center;
  }

  .visual-text h1,
  .visual-text p {
    font-size: 36px;
    font-weight: 400;
  }

  .dimension-area {
    margin-top: 4rem;
    margin-bottom: 4rem;
  }

  .dimension-list {
    max-width: 100%;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .dimension-list li {
    flex: 0 1 28%;
    min-height: 120px;
  }

  .dimension-list h3 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .dimension-list p {
    font-size: 1rem;
  }

  .information-area {
    margin-bottom: 4rem;
  }

  .access-area {
    margin-bottom: 3rem;
  }

  .access-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .google-map {
    width: 80%;
    margin: 1rem auto 0;
  }

  /* ========== 異次元の秘密-タブレット ========== */
  .section-title {
    padding: 1rem 0;
  }

  .secret-section {
    width: 90%;
    max-width: 800px;
    margin: 1rem auto 2rem;
    border: none;
  }

  .secret-section h1 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
  }

  .strength-item {
    margin-bottom: 1.5rem;
  }

  .strength-item h3 {
    font-size: 18px;
  }

  .strength-item p {
    font-size: 18px;
    margin-bottom: 1rem;
  }

  /* ========== 主要設備-タブレット ========== */
  .main-facilities-section {
    margin: 3rem auto;
    max-width: 90%;
  }

  .main-facilities-item h3 {
    font-size: 24px;
  }

  /* ========== 会社概要-タブレット ========== */
  .csBody {
    margin: 0 auto;
    width: 90%;
  }

  .contentHead02 {
    font-size: 32px;
  }

  .google-map-about {
    width: 100%;
    height: 400px;
  }

  .google-map-about iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

/* ========== PC表示 ========== */
/* ========== TOP-PC ========== */
@media (min-width: 1025px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 18px;
  }

  main {
    padding-top: 0;
  }

  .icons {
    width: 32px;
    height: 32px;
  }

  .menu-toggle,
  .menu-overlay {
    display: none;
  }

  .header {
    position: static;
    z-index: 1;
  }

  .container {
    padding: 0;
  }

  .header-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.6rem 1.2rem;
    justify-content: space-between;
  }

  .header-left p {
    font-size: 18px;
  }

  .header-left span {
    display: inline-block;
    font-weight: normal;
    margin-left: 0.7rem;
    font-size: 1.2rem;
  }

  .header-right {
    display: flex;
    margin-top: auto;
  }

  .header-right p {
    font-size: 20px;
    color: #fff;
    background-color: #7aa9ea;
    padding: 4px 12px;
    border-radius: 6px;
  }

  .header-right tel {
    font-size: 20px;
    padding: 4px 12px;
  }

  .header-nav {
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
  }

  .header-nav a {
    font-size: 18px;
    margin: 0 8px;
    padding: 0.6rem 1rem;
    border: none;
  }

  .header-nav a:hover {
    background: #bbb;
  }

  .mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    height: 100%;
  }

  .mobile-menu a {
    padding: 0.8rem 1.4rem;
    font-size: 18px;
    border: none;
  }

  .mobile-menu a:hover {
    background: #bbb;
  }

  .mobile-menu p {
    display: none;
  }

  .mobile-menu-item {
    margin: 0;
  }

  .menu-toggle {
    display: none;
  }

  .key-visual {
    width: 100%;
    height: 480px;
    justify-content: center;
    align-items: center;
    background-color: #7aa9ea;
  }

  .key-visual-inner {
    display: flex;
    flex-direction: row;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
  }

  .visual-image {
    display: block;
    position: static;
  }

  .visual-image img {
    object-fit: contain;
    margin: 0 auto;
  }

  .visual-text {
    position: static;
    transform: none;
    justify-content: center;
    align-items: center;
  }

  .visual-text h1,
  .visual-text p {
    font-size: 50px;
    font-weight: 400;
  }

  .dimension-area {
    margin-top: 6rem;
    margin-bottom: 6rem;
  }

  .dimension-list {
    max-width: 1200px;
    gap: 2rem;
  }

  .dimension-list li {
    flex: 0 1 20%;
    min-height: 140px;
  }

  .dimension-list h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
  }

  .dimension-list p {
    font-size: 1.2rem;
  }

  .information-area {
    margin-bottom: 6rem;
  }

  .access-area {
    margin-bottom: 4rem;
  }

  .access-content {
    display: flex;
    justify-content: center;
  }

  .google-map {
    width: 30%;
    margin-left: 2rem;
  }

  /* ========== 異次元の秘密-PC ========== */
  .section-title {
    padding: 1.2rem 0;
  }

  .section-title-inner {
    max-width: 1280px;
  }

  .secret-section {
    max-width: 800px;
    margin: 1rem auto 2rem;
    margin-left: auto;
    margin-right: auto;
    border: none;
  }

  .secret-section h1 {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.4rem;
  }

  .strength-item {
    margin-bottom: 2rem;
  }

  .strength-item h3 {
    font-size: 22px;
  }

  .strength-item p {
    font-size: 22px;
    margin-bottom: 1.4rem;
  }

  .contact p {
    padding: 0.5rem 3rem;
    border-radius: 999px;
  }

  /* ========== 主要設備-PC ========== */
  .main-facilities-section {
    margin: 4rem auto;
  }

  .main-facilities-item h3 {
    font-size: 28px;
  }

  /* ========== 会社概要-PC ========== */
  .csBody {
    margin: 0 auto;
    width: 1000px;
  }

  .contentHead02 {
    margin-bottom: 35px !important;
    font-family: "Noto Sans JP";
    font-weight: 400;
    position: relative;
    font-size: 40px;
    letter-spacing: 2.6px;
    margin: 0 0 3px;
    text-align: center;
  }

  .contentHead02:before {
    background: #fa6414;
    bottom: -11px;
    content: "";
    display: inline-block;
    height: 3px;
    left: 50%;
    margin: 0 0 0 -18px;
    position: absolute;
    width: 36px;
  }

  .companyData .figCol {
    width: 100%;
  }

  .figureLayout {
    width: 100%;
  }

  .figureLayout dl {
    display: table;
    width: 100%;
    margin: 1.2rem 0;
  }

  .figureLayout dl dt {
    width: 100px;
  }

  .figureLayout dl dt,
  .figureLayout dl dd {
    display: table-cell;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
  }

  .google-map-about {
    text-align: center;
    margin: 0 auto;
    width: 1280px;
    height: 600px;
  }

  .google-map-about iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}
