@charset "UTF-8";/* CSS変数の宣言 */
/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */
:root {
  --secondaccentColor: #63559C;/* アクセントカラー2追記*/
  --secondaccentColorRGB: 99, 85, 156;/* アクセントカラー2rgb追記*/
}

span.br { display: inline-block;}

a {
  /*color:#0099ff;*/
  text-decoration: underline;
}
/*spのみ改行*/
@media (min-width : 768px){
  span.sp-br { display: inline;}
  }
@media(max-width : 767.99px){
  span.sp-br { display: inline-block;}
  }

body {
  background: #fff;
}
  main {
    padding-bottom:5rem;
  }

.top-image img {
  filter: brightness(70%);
}

#title {
  background: #e8ebf0;
  color:#262626;
  margin-top:0;
  padding-top:0;
  width: 100%;
  max-width: 1920px;
  background: linear-gradient(180deg, #fff 0%, #fff 10%, #e8ebf0 10%, #e8ebf0 100%);/*背景上部10%を白*/
}
/*h2*/
#title > h2 {
  /*width:100%;
  max-width:1280px;*/
  display: inline-block;
  height:100%;
  margin: 0 auto;
  margin-left:1.5rem;
  padding: 1.5rem 2.5rem;
  font-size: 2rem;
  color:#fff;
  background: #000;
  line-height:1.5;
}

@media (max-width: 767.999px) {
  #title > h2 {
     margin-left:0;
  }
}

/*ページ内リンク*/
ul.link-box {
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
  width:100%;
  background:rgba(var(--secondaccentColorRGB), 0.7);
  padding:.5%;
  padding-left:10%;
  padding-right:10%;
}

ul.link-box li {
  border-right:solid 1px #fff;
  width:22%;
  text-align: center;
}

ul.link-box li.long {
  width:33%;
}

ul.link-box li a {
  display: inline-block;
  font-size:1.0em;
  color:#fff;
  text-align: center;
  padding:0% 1.5%;
  text-decoration: none;
  white-space: nowrap;
}

ul.link-box li:last-child {
  border-right:none;
}

@media (max-width: 767.999px) {
  ul.link-box li, ul.link-box li.long {
    width:100%;
    border-right:none;
    border-bottom:dotted 1px #fff;
  }

  ul.link-box li a {
  text-align: center;
  }

  ul.link-box li:last-child {
  border-bottom:none;
}
}

/* intro
---------------------------------------------- */
#intro{
  position: relative;
 /* margin-top: 2rem;*/
 margin-top:1rem;
  font-size: 1.0rem;
  line-height: 2;
}

#intro > .intro-container{
  width:100%;
  padding: 0 5%;
  display:flex;
  flex-wrap:wrap;
}

#intro > .intro-container > .intro-txt{
  /*padding: 2rem 0;*/
  padding: 1rem 0 2rem 0;
  text-indent: 0;
}

/*装飾h3見出し*/
[class^="list-design"] h3 {
  position: relative;
  padding: .3em 0;
  margin-bottom: 0rem;
  /*left:10px;*/
  left:60px;
  background: transparent;
  z-index: 3;
  width:calc(100% - 60px);
}
[class^="list-design"] h3:before,
[class^="list-design"] h3::after {
  position: absolute;
  content: "";
}
[class^="list-design"] h3::before {
  top: 12px;
  /*left:-55px;*/
  left:-55px;
  width:40px;
  height:40px;
  background:#dcd6f5;
  transform:rotate(45deg);
  z-index: -1;
}
[class^="list-design"] h3::after {
  top: 20px;
  /*left:-55px;*/
  left:-55px;
  width:40px;
  height:40px;
  /*border:solid 1px var(--accentColor);*/
  border:solid 1px #000;
  transform:rotate(45deg);
  opacity: .8;
  z-index: -2;
}

@media (max-width:999px) {
    [class^="list-design"] h3 {
    left:20px;
  }
}

@media (max-width: 767.999px) {
  [class^="list-design"] h3 {
    left:30px;
  }

  [class^="list-design"] h3::before, [class^="list-design"] h3::after {
    left:-40px;
    width:30px;
    height:30px;
}
}
/*sectionのh4*/
  [class^="list-design"] > h4, [class^="container"] h4 {
  position: relative;
  font-size:1.8em;
  padding: .3em 0;
  /*left:10px;
  left:50px;*/
  left:25px;
  z-index: 3;
  margin-top:2.5rem;
  }

  [class^="list-design"] > h4::before, [class^="container"] h4::before {
    position:absolute;
    content:"";
    top: 10px;
    /*left:-55px;*/
    left:-25px;
    width:8px;
    height:40px;
    background:rgba(var(--secondaccentColorRGB), 0.5);
    z-index: -1;
  }

  /*sesctionのh5*/
  [class^="list-design"] h5 {
 position: relative;
  font-size:1.4em;
  padding: .3em 0;
  margin-top:1rem;
  /*left:50px;*/
  left:.5rem;
  display:inline-block;
  }

  [class^="list-design"] h5::after {
    position:absolute;
    content:"";
    top: 2.2rem;
    left:0;
    width:100%;
    border:solid 1px var(--secondaccentColor);
    z-index: 2;
  }

  @media (max-width: 767.999px) {
      [class^="list-design"] h5 {
        left:0rem;
      }
  }

/*itemのh4*/
[class^="list-design"] .item h4 a{
  text-decoration: none;
  color:#4E4182;
}

[class^="list-design"] .item > p{
  padding: 1rem 1.5rem;
  /*margin-bottom:1.5rem;*/
 margin-bottom:2.5rem;
  font-size: 1.0rem;
  line-height:1.75;
}

[class^="list-design"] .list-txt {
  padding:1em 5%;
  text-indent: 1em;
  margin-bottom:0 !important;
}

/*※注記右寄せ*/
[class^="list-design"] .list-txt.reference {
  text-align: right;
  font-size:0.9em;
}

[class^="list-design"] .list-txt.pt-0 {
  margin-top:0;
  padding-top:0;
}

 [class^="list-design"] .item p.pt-0 {
  margin-top:0;
  margin-bottom:0;
  padding-top:0;
  padding-bottom:0;

 }

.source, .item p.source {
  text-align: right !important;
  font-size:.9em;
  line-height:1.2;
  padding-top:0;
}

.mb-5 {
  margin-bottom:5rem;
}

/*itemのボックス*/
[class^="list-design"] .item {
  margin: 0.5rem;
  border:none;
  /*background: #f8f8f8;*/
  padding:0;
  box-shadow: 0 1rem 2rem hsl(0 0% 0% / 20%);
   box-shadow: 0 .5rem 1rem hsl(0 0% 0% / 6%);
  /*border:solid 1px #e6e6e6;*/
}

  /*疑似要素のitem*/
[class^="list-design"] .item.dummy-box {
  box-shadow: none;
}

@media(max-width : 767.99px){
  .dummy-box {
    display: none;
  }
}

/*list-design1*/
/*adeac_style.cssコピー*/
[class^="list-design1"] .item p img{
  transition: transform .6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[class^="list-design1"] .item a{
  color: #ffffff;
  /*background:var(--accentColor);*/
  background:none;
}

/*list-design4*/
.list-design4 .item img{
  object-fit: cover;
  object-position:50% 0;
  width: 100%;
  /*height: 30%;*/
 /* height:30%;*/
 height:auto;
  min-height: 240px;
  max-height:auto;
 /* max-height: 320px;*/
  aspect-ratio: 1 / 1 ;
 /* flex-grow: 1;*/
}

.list-design4 .item > p{
  padding: 1rem 1.5rem;
  /*margin-bottom:1.5rem;*/
  margin-bottom:1rem;
  font-size: 1.0rem;
  line-height:1.75;
}


/*wide-size画像*/
.list-design4.column3 > .contents-wrap .item.wide-size {
  overflow: hidden;
  width: calc(100% / 2 - 1rem);
}

/*containの画像*/
.list-design4.column3 > .contents-wrap .item.contain{
  margin-right:10rem;
}

.list-design4.column3 > .contents-wrap .item.wide-size img, .item.contain img{
  object-fit: contain;
  object-position:auto;
  width: 100%;
  height:100%;
  min-height: auto;
  max-height:100%;
  /*max-height: 320px;*/
  aspect-ratio: auto;
}

@media (max-width: 767.999px) {
  .list-design4.column3 > .contents-wrap .item.wide-size {
  width: calc(100% - 1rem);
}

 .list-design4.column3 > .contents-wrap .item, .list-design4.column3 > .contents-wrap .item.contain {
      width: 95%;
      margin-left: auto;
      margin-right: auto;
    }
}

/*高精細・拡大画像icon*/
.pict-icon-wrap {
  width:100%;
  align-self: end;
  text-align: right;
}

.box-cotnents-caption-btn {
  display: inline-block;
  text-decoration: none!important;
  font-size: 1.0em;
  border:solid 1px #e7e3e3;
  background: #fff;
  border-radius: 5px;
  /*padding: 3px 8px 0px 8px;*/
  padding: 2px 8px 0px 8px;
  margin-top: 0em;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 1px;
  /*margin:.7% .5%;*/
  margin-right:1rem;
}


.box-cotnents-caption-btn span {
  color: var(--borderColor);
  vertical-align:top;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans", Meiryo, sans-serif;
}

.box-cotnents-caption-btn img {
  width: 32px;
  margin: 0;
  margin-right: 1em;
  vertical-align: central;
}


.zoom-icon:before {
  content: url(../images/icon/ei-zoom.png);
  display: inline-block;
  margin: 0px 5px -4px 0px;
  /*vertical-align: -10px; 上下位置を調整*/
  vertical-align: -15px;
}

.pict-icon:before {
  content: url(../images/icon/ei-picture.png);
  display: inline-block;
  margin: 3px 5px 1px 0px;
  vertical-align: -12px; /*上下位置を調整*/
}

.three-d-icon:before {
  content: url(../images/icon/3d.png);
  display: inline-block;
  margin: 1px 5px -2px 0px;
  vertical-align: -12px; /*上下位置を調整*/
}

.map-icon:before {
  content: url(../images/icon/map.png);
  display: inline-block;
  margin: 3px 5px 1px 0px;
  vertical-align: -12px; /*上下位置を調整*/
}

/*外部リンクマーク*/
a.gaibu {
    font-size: 1.0em;
    width: 100%;
    white-space: nowrap;
    box-sizing: border-box;
    margin-top: 1em;
    text-align: right;
}

a.gaibu::after {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background: url("../images/common/link_icon.png") no-repeat center center;
    background-size: 16px 16px;
    vertical-align: middle;
}

/*参考資料*/
ul.list-disc {
    margin-left: 4em;
    line-height: 2.2;
}

ul.list-disc li {
    list-style-type: disc !important;
}
@media (max-width: 767.999px) {
  .list-design4 > ul.list-disc {
  width:95%;
  }
      ul.list-disc {
        margin-left: 2em;
        line-height: 1.8;
    }
}

/*footer*/
footer {
 /* background: #4E4182;*/
 background: #000;;
  color:#fff;
}

footer li a{
  /*background: #4E4182;*/
  color:#fff;
}

.gray-scale {
filter: brightness(0.6);

}

#horikoshi .item div {
position:relative;
}

#horikoshi .item div span {
  position: absolute;
  top:50%;
  left:50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  margin: auto;
  font-weight:bold;
  font-size:1.5em;
  color:#fff;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  text-shadow: #262626;
}


/*高山社へのいざない*/
/*埋め込み動画*/
.iframe-aspect {
  /* ラッパー自身にアスペクト比を付ける */
  aspect-ratio: 16 / 9;            /* ★ 16:9 を維持 */
  max-width: 600px;                 /* 任意の最大幅 */
  width: 100%;                      /* 親幅に追従 */
}

.iframe-aspect iframe {
  /* iframeはラッパーの中でぴったりフィットさせる */
  width: 100%;                      /* ★ 横いっぱい */
  height: 100%;                     /* ★ 縦もラッパーに合わせる */
  border: 0;                        /* 既存の frameborder を無視させるための保険 */
  display: block;                   /* 余計な隙間防止（インライン要素の行間を消す） */
}


/*藤岡地域の温泉と人々の暮らしの歴史*/
/*温泉と塩のヒストリーマップ*/
/* ===============================
   intro-study（バナー）
   =============================== */

   

:root {
  --intro-bg: #F8F6FB;           /* バナー背景 */
  --intro-border: #D6D0E8;       /* 枠線 */
  --intro-title: #4A3D73;        /* タイトル */
  --intro-text: #3D3D3D;         /* 説明文 */
  --intro-accent: #63559C;       /* アクセント（リンクやボタン） */
  --intro-accent-hover: #4F4680; /* ホバー時 */
}


.intro-study {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1.5px solid var(--intro-border);
  border-radius: 12px;
  background: var(--intro-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .06s ease;
}

/* ホバー効果はそのまま */
.intro-study:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.intro-study__inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

@media (min-width: 640px) {
  .intro-study__inner {
    grid-template-columns: 160px 1fr;
    padding: 20px;
    gap: 20px;
  }
}

.intro-study__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,186,145,.25), rgba(255,255,255,.25)),
    url("../images/07onsen/walkmap.jpg"); /* 画像があれば差し替え */
  background-size: cover;
  background-position: center;
  border: 1px solid var(--intro-border);
}

.intro-study__text {
  display: grid;
  gap: 6px;
}

/* kicker は削除するためスタイルも不要ですが、念のため残しても無害です */

/* タイトルのみ残す */
.intro-study__title {
  font-weight: 700;
  color: var(--intro-title);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.35;
}

/* 説明文はそのまま */
.intro-study__desc {
  font-size: .92rem;
  color: #3d3d3d;
  line-height: 1.6;
}

/* CTAは不要のためスタイルを削除（残っていても出力されない） */

/* 画面リーダー用の隠しテキスト（必要に応じて） */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===============================
   「intro-study」と「ul.link-box」の間に2行分の余白
   =============================== */

/* 行の高さを 1em 前後と想定し、2em ＝ 2行分の余白を付与 */
.intro-study {
  margin-bottom: 2em;  /* ← ここが「2行分」の余白 */
}

/* もし line-height を 1.5 にしているなど行高が異なる場合は、下記のように調整可 */
/* .intro-study { margin-bottom: calc(2 * 1lh); }  */ /* 1lh が使える環境ならより厳密 */


/*ふじおか三大人の足跡*/
/*秋葉神社算額*/
.sangaku-wrap {
  width:100%;
  display: block;
}

.sangaku-title {
  font-weight:bold;
}

/*算額adeac_style.cssのp-->ul*/
/*.list-design3 .item > p{*/
.list-design3 .item > ul {
  grid-area: intro;
}

/*.list-design3.inner-left .item > p{*/
.list-design3.inner-left .item > ul{
  text-align: left;
}

/*.list-design3.column1 > .contents-wrap .item p{*/
.list-design3.column2 > .contents-wrap .item ul{
  padding: 1rem 1.65rem 2rem;
  font-size: 1.0rem;
  line-height:1.65;
}



/*近世絹市*/
ul,ol,li {
  margin:0;
  padding:0;
  list-style: none;
}
/*商人たち年表*/
.list-design4 > ul.history {
  width:80%;
  margin:1rem 4rem 3rem auto;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  border:solid 1px #ccc;

}


/*温泉と塩のヒストリーマップ*/
.list-design4 > ul.history li.year {
  width:10em;
  text-align: right;
  background: #f1f1f1;
  line-height:2.2;
  border-bottom:dotted 1px #ccc;
  border-right:dotted 1px #ccc;
  padding-right:.5rem;
}

.list-design4 > ul.history li.events {
  width:calc(100% - 10em);
    line-height:2.2;
  border-bottom:dotted 1px #ccc;
  padding-left:1.1rem;
  padding-right:1rem;
}

.list-design4 > ul.history li.year:nth-last-child(2), .list-design4 > ul.history li.events:last-child {
    border-bottom:none;
}

@media (max-width: 767.999px) {
  .list-design4 > ul.history {
    width:100%;
    margin:0 auto;
  }
  .list-design4 > ul.history li.year, .list-design4 > ul.history li.events {
    width:100%;
    text-align: left;
  }

  .list-design4 > ul.history li.events {
    line-height:1.5;
  }
}

/* 外部リンクアイコンの追加 */
.intro-study__title::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-left: 0.5em;
  vertical-align: -0.15em; /* テキストとの中心線を微調整 */
  background: url("../images/common/link_icon_bl.png") no-repeat center center / contain;
}
