/* =============================
   全体スタイル設定
============================= */
body, .address, .phone, .message, .company-name {
  font-family: sans-serif;
  color: navy;
}

body {
    margin: 0;
}

/* =============================
   ヘッダー部分
============================= */
.site-header {
    position: relative;        /* ロゴの中央配置に必要 */
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    height: 100px;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  width:100%;
  border-radius: 30px;
}
  

.company-info {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.company-name {
  font-size: 12px;
  font-weight: bold;
  margin: 0;
}

.address,
.phone,
.message {
  font-size: 12px;
  margin-top: 4px;
}

/* スマホ対応：縦並びに変更 */
@media screen and (max-width: 600px) {
    .site-header {
        height: auto;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    .company-info {
        position: static;
        transform: none;
        text-align: center;
    }

    .company-name {
        font-size: 1em;
    }

    .address,
    .phone,
    .message {
        font-size: 0.85em;
    }
}

 

/* =============================
   見出し・タイトル
============================= */
h1 {
  color: navy;
  padding: 30px 0 0 30px;
  text-align: center;
}

/* =============================
   メインメニュー
============================= */
.main-menu {
   display: flex; 
   padding: 0;
   margin:0 ;
}

ul.main-menu a {
  background-color: #eed13f;
  color: white;
  line-height: 40px;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.main-menu li {
  list-style-type: none;
  width: 100%;
  text-align: center;
}

.main-menu ul {
  display: none;
  padding: 0;
}

.main-menu li:hover ul {
  display: block;
}

.main-menu a:hover {
  opacity: 0.8;
}

/* =============================
   ハンバーガーメニュー
============================= */
.menu-trigger,
.menu-trigger span {
  display: inline-block;
  transition: all 0.4s;
  box-sizing: border-box;
}

.menu-trigger {
  margin: 9px;
  z-index: 10000;
  position: fixed;
  width: 50px;
  right: 0;
  height: 44px;
}

.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #008080;
  border-radius: 4px;
}

.menu-trigger span:nth-of-type(1) {
  top: 0;
}

.menu-trigger span:nth-of-type(2) {
  top: 20px;
}

.menu-trigger span:nth-of-type(3) {
  bottom: 0;
}

.menu-trigger.active span:nth-of-type(1) {
  transform: translateY(20px) rotate(-315deg);
}

.menu-trigger.active span:nth-of-type(2) {
  opacity: 0;
}

.menu-trigger.active span:nth-of-type(3) {
  transform: translateY(-20px) rotate(315deg);
}

.header-right-sp {
  display: none;
   position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

.ham-dis {
  display: none;
  transform: translateY(10px);
  text-align: center;
  position: fixed;
  background-color: white;
  height: 100%;
  width: 100%;
  top: -10px;
  z-index: 9999;
}

.ham-dis ul {
  padding: 0;
  position: relative;
  top: 4rem;
}

.ham-dis li {
  list-style-type: none;
  border-top: 1px dashed;
  border-bottom: 1px dashed;
  padding: 1rem 0;
}

.ham-dis a {
  text-decoration: none;
  color: black;
}

.backshow {
  background-color: #87cefa;
  display: block;
}

/* ハンバーガーメニューのレスポンシブ対応 */
@media screen and (max-width: 960px) {
  .main-menu-none {
    display: none;
  }

  .ham-dis .main-menu {
    display: block;
  }

  .ham-dis li {
    border: 0;
    padding: 0;
  }

  .ham-dis ul {
    position: initial;
  }

  .header-right-sp {
    display: block;
  }
}


h1 {
  font-size: 24px;
  margin-bottom: 40px;
}
.section {
  padding: 2rem 1rem;
  border-bottom: 1px solid #ddd;
}

.section h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.content img {
  width: 330px;
  height: auto;
  border-radius: 8px;
}

.content p {
  flex: 1;
  font-size: 1rem;
}

/* 画像右側にしたいとき用 */
.row.reverse {
  flex-direction: row-reverse;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .content {
    flex-direction: column !important;
    text-align: center;
  }

  .content img {
    width: 100%;
    max-width: 300px;
  }

  .content p {
    width: 100%;
  }

  .section h2{
    font-size:1.1em;
  }
}
/* =============================
   その他共通スタイル
============================= */
.info {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.info h4 {
  color: navy;
}

.info a:visited {
  color: red;
}

.info a:hover {
  color: green;
}

.page-top {
  margin: 0 auto;
  text-align: center;
  width: 200px;
}

footer {
  background: #eed13f;
  text-align: center;
  padding: 26px 0;
  margin-top: 50px;
  width: 100%;
}

footer p {
  color: #fff;
  font-size: 15px;
}

/* スマホ画面（例: 600px以下）では縦並びにする */
@media (max-width: 600px) {
  .info {
    flex-direction: column;
    align-items: center; /* 中央揃え（任意） */
    gap: 10px;
  }

  .info a {
    display: block;
    width: 90%; /* 任意: 横幅を調整 */
    text-align: center;
  }
}

