@charset "UTF-8";
html{font-size: 100%;scroll-behavior: smooth;}
a{text-decoration: none;}
img{max-width: 100%;}
/*レイアウト*/
.wrapper{max-width: 1100px;margin: auto;padding: 0 1.5rem;}
.align-center{text-align: center;}
/*ヘッダーとホーム*/
header{margin-bottom: 0;}
.page-header{padding-top: .5rem;}
.site-title{position: absolute;top: 15px;left: 20px;}
.syosai-title{top: 15px;left: 20px;}
.logo{width: 50%;max-width: 350px;; border-style: outset;border-color: #b5b5b5; border-width: 5px;}
.logo:hover{opacity: 0.5;}
.lang-select{position: absolute;top: 15px;right: 20px; text-decoration: underline;font-size: xx-small;}
body{background-color: #c3f2ff;margin: 0;padding: 0;line-height: 1.8;}
.backwhite{background-color: #fff; border-radius: 16px;opacity: 0.9;}
.news{height: 80px;background-color: #c3f2ff;
	overflow-y: scroll;border-style: double;
}
.news time{text-align: left;}

/*文字*/
h1{margin: 0;}
h2{font-size: 30px ;text-align:center;font-family: "Kiwi Maru", serif;font-weight: 500;font-style: normal;font-style: normal;padding-top: 20px;margin: 0;}
h3{margin: 30px 10px 0;font-family: "Kiwi Maru", serif;font-weight: 500;font-style: normal;display: inline-block;}
h4,p,th,td,summary,li,div{font-family: "Kiwi Maru", serif; font-weight: 500; font-style: normal;}
a{font-family: "Kiwi Maru", serif;font-weight: 500;font-style: normal;}
p a:hover{opacity: 0.5;}
.sites-title{text-align: end;font-size: small;opacity: 0.6;}
.sites{font-size: small;opacity: 0.6;}
hr{margin-top: 0;height: 2px;background-color: #000;}
.pconly{display: none;}
.sponly{display: block;}
.menu{text-decoration: underline;color: #000000;}
.ul{text-align: left;background-color: #eef6ff;border: 2px #4dcaff dashed;margin: 30px auto;}
.back-top{margin-bottom: 50px;margin-top: 0;text-align: center;}
.back-top a{color: #4dcaff;}
.back-top a:hover{color: #90e7ff;}
.hukudai{border: #000 solid 2px;border-radius: 5px;display: inline-block;padding: 0 10px}
.hukudai-copy{font-style: oblique;text-decoration: underline;}

/*indexトップ*/
.map-hero {
  height: 100vh;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #a8d8e8, #e6f3f7);
  border-radius: 20px;
}
.map-area {
  position: relative;
  flex: 1;
}
.map {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* =======================
   コピー（スマホ）
======================= */

.map-copy {
  position: absolute;
  width:100%;
  height:100%;
  background: rgba(5, 139, 148, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align: center;
  opacity:0;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s ease;
}
.map-copy.fade-out{
  opacity: 0;
  pointer-events: none;
}
/* =======================
   アイコン（スマホ）
======================= */
.icons {
  position: static;   /* ← absolute解除（超重要） */
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ←6列 */
  gap: 8px;
  padding: 10px;
}
.icon {
  width: 100%;
  pointer-events: none;
}
.icon img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 50%;
}
.icon:hover img{
  transform: scale(1.1);
  box-shadow:
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(0,180,255,0.6),
    0 0 30px rgba(0,180,255,0.4);
}
.icon.active{
  pointer-events: auto;
}
.icon::after{
  content: attr(data-text);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
}
.icon.active:hover::after{
  opacity: 1;
}

/*カード*/
/* 導入 */
.intro{
  text-align:center;
  padding:80px 20px;
  font-size:22px;
}
/* タブ */
.tab-wrapper {
  position: relative;
}
.tab-menu{
  display:flex;
  justify-content:center;
  gap:30px;
  border-bottom:1px solid #ccc;
  position:sticky;
  top:0;
  z-index:10;
  background-color: #fff;
}
.tab{
  padding:15px 20px;
  cursor:pointer;
  border-bottom:3px solid transparent;
  transition:0.3s;
}
.tab.active{
  border-bottom:3px solid #333;
  font-weight:bold;
}
/* コンテンツ */
.tab-content{
  display:none;
  padding:60px 20px;
  max-width:1100px;
  margin:auto;
  opacity:0;
  transform:translateY(10px);
  transition:0.4s;
}
.tab-content.active{
  display:block;
  opacity:1;
  transform:translateY(0);
}
/* セクションタイトル */
.section-title{
  font-size:26px;
  margin-bottom:10px;
}
.section-sub{
  font-size:14px;
  opacity:0.7;
  margin-bottom:40px;
}
/* 左右レイアウト */
.row-header{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  margin-bottom:12px;
  font-size:13px;
  letter-spacing:0.05em;
}
.row-block{
  margin-bottom:80px;
}
.main-head{
  color:#c0392b;
  font-weight:bold;
}
.sub-head{
  color:#666;
}
.row{
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 20px;
  position: relative;
}
.row::after{
  content:"";
  position:absolute;
  left:52%;
  top:15%;
  height:70%;
  width:1px;
  background:rgba(0,0,0,0.08);
  display: none;
}
/* メインカード */
.main-card{
  border-left:6px solid #c0392b;
  background:#fff;
  padding:20px;
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
  transform:scale(1.02);
}
.main-card img{
  width:100%;
  border-radius:8px;
}
.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover img {
  transform: scale(1.05);
}
.card-cta {
  position: absolute;
  bottom: 2px;
  right: 14px;
  color: #fff;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 1px 8px;
  border-radius: 6px;
}
/* サブカード */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.sub-card{
  background:#f7f7f7;
  padding:10px;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  opacity:0.85;
  transition:0.3s;
  cursor:pointer;
}
.sub-card:hover{
  opacity:1;
  transform:translateY(-3px);
}
.sub-card img{
  width:100%;
  border-radius:5px;
}
/* 特別（原爆ドームなど） */
.special{
  text-align:center;
  margin:20px 0;
}
.special img{
  width:40%;
  max-width:400px;
}
/*色変化*/
/* タブ共通 */
.tab-menu .tab {
  padding: 10px 20px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}
/* アクティブタブの強調 */
.tab-menu .tab.active {
  filter: brightness(85%);
  border-bottom: 3px solid white;
}
/* コンテンツの基本スタイル */
.tab-content {
  display: none;
  padding: 20px;
}
.tab-content.active {
  display: block;
  transition: background-color 0.3s;
}

/*作成者について*/
.creator-info {
  text-align: center;
  padding: 20px;
  color: #000000; /* 明るい水色 */
  text-shadow: 0 0 6px rgba(0,0,0,0.5); /* 背景に映える */
  font-family: "Kiwi Maru", sans-serif;
}
.creator-info a {
  color: #000000;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
}
.creator-info a:hover {
  color: #313131;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}
.creator-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.creator-name-large {
  font-size: 3rem;
  font-weight: bold;
}
.creator-profile {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 12px;
}
.creator-contact {
  margin-bottom: 8px;
}
/*リンクタブ*/
.btn-yoko{display: grid;grid-template-columns: repeat(3,1fr);gap: 1rem 1rem;width: 90%;margin:1rem auto;}
.btn-yoko li{list-style: none;box-shadow: 0 2px 0 #777777;border: #000 1px solid;}
.btn-yoko li:hover{transform: translateY(2px);box-shadow: none;}
.btn-box{display: block;list-style: none;padding: 0px;}
.btn-box-inside{display: flex;align-items: center;gap: 10px;}
.btn-yajirusi{width: 32px;margin-top: 11px;color: #000;}
.btn-img{height: 60px;}
.btn-image{height: 100%;border: #000 0.5px solid;background-color: #fff;}
.btn-p{font-size: 16px;font-weight: 500;color: #000;margin-top: 11px;text-shadow: none;}




/*詳細ページ*/
/* 全体 */
.syosai-detail{
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 15px;
  border-radius: 16px;
  position: relative;
  z-index: 0;
}
.back-01{
  position: relative;
  background: linear-gradient(#074e8f, #a6d2ff);
  overflow: hidden;
}
/* 背景画像（スマホは1枚だけ） */
.back-01::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/01.png"); /* ←スマホ用メイン */
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
/* コンテンツを前面に */
.back-01 > *{
  position: relative;
  z-index: 1;
}
/* タイトル */
.syosai-header{
  text-align: center;
  margin-bottom: 30px;
}
.syosai-header h1{
  font-size: 30px;
  margin-bottom: 8px;
  color: #fff;
}
.catch{
  font-size: 16px;
  opacity: 0.8;
  color: #fff;
}
/* デフォルト＝スマホ（縦） */
.syosai-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
/* 画像（スマホは1列） */
.syosai-images{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  }
.syosai-images img{
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 5px 5px 5px #000;
}
/* 右カラム */
.syosai-info{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 基本情報 */
/* セクション共通 */
.info-section{
  display: flex;
  flex-direction: column;
}
/* タイトル（統一） */
.section-title{
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  opacity: 0.7;
  border-left: 3px solid rgba(255,255,255,0.4);
  padding-left: 8px;
}
/* 基本情報ボックス */
.info-box{
  background: rgba(255,255,255,0.1);
  padding: 0;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 0;
}
.info-box p{
  display: grid;
  grid-template-columns: 120px 1fr;
  margin-bottom: 8px;
}
.info-span{
  font-weight: bold;
  flex-shrink: 0;
}
/* キーワード */
.keywords-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.keywords-list span{
  background: rgba(255,255,255,0.2);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
}
/* 概要 */
.lead{
  font-size: 14px;
  line-height: 1.7;
}
/*地図表示*/
.map-link {
  cursor: pointer;
  text-decoration: underline;
  color: #000000;
}
/* モーダル全体 */
.map-modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
/* 中身 */
.map-content {
  position: relative;
  width: 90%;
  max-width: 700px;
  margin: 80px auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.custom-map {
  width: 100%;
  display: block;
}
.timeline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
}
.era {
  text-align: center;
  flex: 1;
}
.era h4 {
  font-size: 14px;
  margin-bottom: 5px;
}
/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 40px;
  cursor: pointer;
}


/*2カラム*/
.yokonarabi{margin-top: 50px;}
.sticky{background-color: #c3f2ff;}
.side-menu{list-style: none;padding-left: 0;}
.side-menu li{border-bottom:1px solid #c9c2bc;}
.side-menu a{color: #0077b2;display: block;padding: 5px;}
.side-menu a:hover{color: #00334d;}
.side-menu a.active {
  color: #000000;
  background-color: #fff;
  border-left: 4px solid #000000;}
.side-menu summary{color: #0077b2;font-size: x-small;padding-left: 20px;}
.side-side{list-style: disc;padding-left: 25px;color: #0077b2;}
.side-side li{padding-left: 0;}
.side-side-side{font-size: x-small;list-style: none;padding-left: 10px;}
.post{margin-top: 50px;}

/*デスクトップ版*/
@media(min-width:820px){
  .sponly{display: none;}
  .pconly{display: block;}
  /*ヘッダーとフッター*/
  .page-header{display: flex;justify-content: space-between;padding-top: 1.5rem;}
  .logo{width: 500px;}
  .lang-select{font-size:medium;}
  .main-nav{margin-top: 80px;}
  .honbun{width: 100%;margin: auto;}
  .news{width: 800px;margin: auto;}
 .sponly{display: none;}
  .pconly{display: block;}
 .map-hero {
    display: block;
  }
  .map-area {
    height: 100vh;
  }
  /* コピー中央 */
  .map-copy {
    font-size: 26px;
  }
  .map-copy p{top: 80%;}
  /* アイコンを地図上に戻す */
  .icons {
    position: absolute;
    inset: 0;
    display: block;
    background: none;
  }
  .icon {
    position: absolute;
    z-index: 1;
    width: 100px;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    animation: float 4s ease-in-out infinite;
  }
  .icon:hover{z-index: 100;}
  .icon:nth-child(2) { animation-delay: 0.3s; }
  .icon:nth-child(3) { animation-delay: 0.75s; }
  .icon:nth-child(4) { animation-delay: 0.1s; }
  .icon:nth-child(5) { animation-delay: 0.5s; }
  .icon:nth-child(6) { animation-delay: 1s; }
  .icon:nth-child(7) { animation-delay: 0.7s; }
  .icon:nth-child(8) { animation-delay: 0.4s; }
  .icon:nth-child(9) { animation-delay: 0.8s; }
  .icon:nth-child(10) { animation-delay: 0.2s; }
  .icon:nth-child(11) { animation-delay: 0.9s; }
  @keyframes float {
    0%,100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
  }
  .page-header{display: flex;justify-content: space-between;padding-top: 1.5rem;}
  .lang-select{font-size:medium;}
  .main-nav{margin-top: 80px;}
  .honbun{width: 100%;margin: auto;}
  .news{width: 800px;margin: auto;}
  .ul{margin-left: 20%;margin-right: 20%;}
  /*タブ*/
  .row {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
  }
  .row::after { display: block; }
  .main-card {
    flex: 1 1 50%;
  }
  .card-cta{font-size: 16px;}
  .sub-grid {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .row::after {
    display: none;
  }
  .special img{
    width:20%;
  }
  /*詳細の背景画像*/
  /* 左 */
  .back-01::before{
    width: 50%;
    height: 100%;
    left: 0;
    right: auto;
    background-image: url("img/1-古代山陰/izumotaisha-irasutoya.png");
    background-size: cover;
    background-position: center;
    opacity: 0.5;
  }
  /* 右 */
  .back-01::after{
    content: "";
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background-image: url("img/1-古代山陰/seidouki_kane-irasutoya.png");
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
      /* 画像傾け */
    transform: rotate(21deg) scale(0.9);
    transform-origin: center;
  }
  /*⇩詳細ページ*/
    .syosai-header h1{
    font-size: 40px;
  }
  .catch{
    font-size: 18px;
  }
  /* 2カラム化 */
  .syosai-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  /* 画像を2×2に */
  .syosai-images{
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .syosai-images img{
    border-radius: 15px;
  }
.syosai-images img{
  animation: floatImage 4s ease-in-out infinite;
}
/* 揺れアニメーション */
@keyframes floatImage{
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
  .info-box p{
    font-size: 16px;
  }
  .keywords span{
    font-size: 14px;
  }
  .lead{
    font-size: 16px;
  }
    /*２カラム*/
  .yokonarabi{display: flex;justify-content: space-around;gap: 2%;}
  .post{width: 80%;}
  .sidebar{width: 18%; }
  .side-menu{font-size: small;height: calc(100vh - 100px);overflow-y: auto;}
  .sticky{position: -webkit-sticky;position: sticky;top: 0;}
  .bottom-nav {display: none;}
  .bottom-nav-en{display: none;}
}

/*スマホ版*/
@media(max-width:820px){
/* =======================
   アイコン（スマホ）
   ↓ 地図の上に重ねたまま下部配置
======================= */
.map-wrapper{
  position: relative;
  height: auto;
}
.map{
  position: absolute;
  top: 30px;   /* ←上にくっつける */
  left: 50%;
  transform: translateX(-50%);
  object-position: top;
}
.map{object-position: top;}
.map-copy{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.map-copy p{font-size: 25px;text-align: left;padding-left: 10px;}
.icons {
  position: absolute;   /* ←ここ絶対消さない */
  bottom: 50px;         /* ←地図の下に配置 */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
}

/* スマホ時はabsolute座標を無効化 */
.icon {
  position: static;
}
.icon img {
  width: 100%;
  border-radius: 50%;
}
  .icon::after{
    display: none;
  }
.tooltip-box{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.3s;
  pointer-events: none; /* ←超重要 */
  z-index: 999;
}
/*詳細ページ*/
.info-box{text-align: left;}
.info-span{width: 100px;text-align: left;}
/*リンクタブ*/
 .btn-yoko{display: block;list-style: none;padding: 0;margin: auto;}
  .btn-yoko li{border-bottom: 1.5px solid #111;padding: 5px 10px;}
  .btn-box{display: block;list-style: none;padding: 0px;}
  .btn-box-inside{display: flex;align-items: stretch;gap: 10px;}
  aside{display: none;}
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(5,28px);
    grid-auto-flow: column;
    grid-auto-rows: 28px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: rgba(207, 246, 255, 0.95);
    border-top: 1px solid #ddd;
    z-index: 9999;
    transition: transform 0.25s ease;
    will-change: transform;
  }
  .teian-detail{
    display: flex;
    justify-content: center;
  }
  .teian-detail a{
    padding-right: 20px;
  }
  /* 隠す状態 */
  .bottom-nav.is-hidden {
    transform: translateY(100%);}
  .bottom-nav a {
    display: flex;
    text-align: center;
    font-size: 11px;
    color: #666;
    padding-top: 2px;
    padding-left: 20px;
  }
  .bottom-nav a.active {
    color: #0077b2;
    font-weight: bold;
  }
  .bottom-nav-en {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    background: rgba(207, 246, 255, 0.95);
    border-top: 1px solid #ddd;
    z-index: 9999;
    transition: transform 0.25s ease;
    will-change: transform;
  }
  /* 隠す状態 */
  .bottom-nav-en.is-hidden {
    transform: translateY(100%);}
  .bottom-nav-en a {
    display: flex;
    text-align: center;
    font-size: 11px;
    color: #666;
    padding-top: 2px;
    padding-left: 30px;
  }
  .bottom-nav-en a.active {
    color: #0077b2;
    font-weight: bold;
  }
  body {
    padding-bottom: 150px /* ナビ分の余白 */
  }

}