@charset "utf-8";

*, *::before, *::after {
	box-sizing: border-box;
}
html, body {
	margin: 0;
	padding: 0;
}
body {
	font-family: Meiryo, sans-serif;
  color: #231815;
	font-size: 17px;
  line-height: 1;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
	-webkit-text-size-adjust: 100%;
}
@media (max-width:768px) {
  body {
    font-size: clamp(12px, 4.857px + 2.232vw, 22px);
    letter-spacing: 0;
  }
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd {
	margin: 0;
	padding: 0;
}
ul, ol {
	list-style: none;
}
picture, video {
	display: block;
	max-width: 100%;
}
img {
	max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
a {
	color: inherit;
	text-decoration: none;
}
button, input, textarea, select {
	font: inherit;
	margin: 0;
}
button {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* 準備中 */

.provision {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.provision p {
  margin: 3em;
  padding: 1.5em 0;
  border-top: 1px solid #989a99;
  border-bottom: 1px solid #989a99;
  line-height: 1.6;
}
.provision p strong {
  display: block;
  color: red;
  font-size: 1.1em;
}

@media screen and (max-width: 768px) {
  .provision p br {
    display: none;
  }
}

/* 共通 */

main {
  max-width: 1200px;
  margin: 0 auto;
}

h2.title {
  padding: 0.6em 0 0.5em;
  background: #49a7db;
  color: #fff;
  text-align: center;
  font-size: clamp(25px, -1.763px + 3.48vw, 40px);
  font-weight: bold;
}
.column {
  display: flex;
}
.mt70 { margin-top: 70px; }
.mt60 { margin-top: 60px; }
.mt45 { margin-top: 45px; }
.mt30 { margin-top: 30px; }
.pb35 { padding-bottom: 35px; }
.px10vw { padding-left: 5%; padding-right: 5%; }

@media screen and (max-width: 768px) {
  h2.title {
    padding: 0.7em 0 0.5em;
    font-size: clamp(16px, 7.429px + 2.679vw, 28px);
  }
  .mt70 { margin-top: 30px; }
  .mt60 { margin-top: 25px; }
  .mt45 { margin-top: 20px; }
  .mt30 { margin-top: 15px; }
  .pb35 { padding-bottom: 15px; }
  .px10vw { padding-left: 0; padding-right: 0; }
}

/* ダウンロード */

.download__qr {
  max-width: 770px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 25% 1fr 25%;
  align-items: top;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .download.mt70 {
    margin-top: 0;
  }
  .download__qr {
    grid-template-columns: repeat(2, 1fr);
  }
  .download__qr a:first-of-type {
    order: 1;
  }
  .download__qr picture:nth-of-type(1) {
    order: 0;
    grid-column: 1 / -1;
  }
  .download__qr a:last-of-type {
    order: 2;
  }
}

/* お知らせ */

.news {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news h2 img {
  display: block;
  width: 235px;
  margin: 0 auto
}
.news__list {
  width: 100%;
  padding: 0 25px;
  list-style: none;
  text-align: left;
  border-top: 5px solid #49a8d8;
  background: #eaf6fb
}
.news__list li {
  display: grid;
  grid-template-columns: 8em 1fr;
  align-items: flex-start;
  padding: 0.75em 0 0.65em;
  line-height: 1.4;
}
.news__list li + li {
  border-top: 1px solid #989a99;
}
.news__list li .text {
  text-align: justify;
  word-break: break-all;
}
.news__list li img {
  width: auto;
  height: 1em;
  margin-left: 0.5em;
  margin-top: -0.15em;
  vertical-align: middle;
}
.news .button {
  width: fit-content;
  padding: 0.7em 1.25em 0.6em;
  background: #49a7db;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5em;
  font-size: clamp(18px, -3.411px + 2.784vw, 30px);
  font-weight: bold;
}

@media (max-width:768px) {
  .news {
    padding: 0 5vw;
  }
  .news h2 img {
    width: 45vw;
  }
  .news__list {
    padding: 0 2vw;
  }
  .news__list li {
    grid-template-columns: 7em 1fr;
    padding: 0.4em 0;
  }
  .news .button {
    font-size: clamp(14px, 11.143px + 0.893vw, 18px);
  }
}

/* アプリの利用方法と機能 */

.guide {
  background: #ddf0fb;
}
.guide .survey {
  background: #fff7c5;
  text-align: center;
}
.guide .info {
  background: #fff;
}

@media screen and (max-width: 768px) {
  .guide .column:first-of-type {
    flex-direction: column;
    justify-content: center;
  }
}

/* 情報配信機関 */

.institution {
  background: #ddf0fb;
}
.institution .full p {
  line-height: 1.4;
  word-break: break-all;
}
.institution ul .column a {
  flex: none;
  margin-left: auto;
}
.institution ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 4%;
  margin-top: 2.5%;
}
.institution ul p {
  font-size: clamp(11px, 2.079px + 1.16vw, 16px);
  line-height: 1.4;
  letter-spacing: 0;
  word-break: break-all;
}
@media screen and (min-width: 769px) {
  .institution .full {
    position: relative;
  }
  .institution .full h3 {
    width: 60%;
  }
  .institution .full p {
    width: 60%;
    font-size: clamp(16px, 8.863px + 0.928vw, 20px);
  }
  .institution .full a {
    position: absolute;
    top: 0;
    right: 0;
    width: 38%;
  }
  .institution .full a img {
    height: clamp(65px, 2.552px + 8.121vw, 100px);
  }
  .institution ul h3 img {
    height: clamp(18px, -3.411px + 2.784vw, 30px);
  }
  .institution ul a img {
    height: clamp(32px, 10.589px + 2.784vw, 44px);
  }
}
@media screen and (max-width: 768px) {
  .institution .inner {
    padding: 0 5vw;
  }
  .institution ul h3 {
    margin-top: 1em;
    margin-bottom: 0.2em;
  }
  .institution ul {
    display: block;
  }
  .institution .full h3 img, .institution ul h3 img {
    height: 5vw;
  }
  .institution .full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .institution .full h3 {
    grid-column: 1 / -1;
    margin-bottom: 0.2em;
  }
  .institution .full p, .institution ul p {
    font-size: clamp(9px, 1.143px + 2.455vw, 20px);
    line-height: 1.3;
  }
  .institution .full a {
    margin-left: auto;
  }
  .institution a img {
    height: 2.2em;
  }
}

/* お問い合わせ */

.contact {
  background: #fff7c5;
}
.contact p {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.4;
}
.contact p span {
  display: inline-block;
  padding-bottom: 0.3em;
  font-size: 1.1em;
}

@media screen and (max-width: 768px) {
  .contact p {
    font-size: 0.8em;
  }
}

/* よくあるお問い合わせ */

/* --- モーダルを開くトリガーボタン --- */
.open-modal-btn {
  display: inline-block;
  cursor: pointer;
}

/* --- モーダル背景（オーバーレイ） --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* --- モーダルウィンドウ本体 --- */
.modal-content {
  background-color: #fff;
  width: 92%;
  max-width: 850px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(-15px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

/* --- ヘッダー領域 --- */
.modal-header {
  background: #49A7DB;
  color: #fff;
  padding: 16px 20px 0 20px;
  position: relative;
}
.modal-header h2 {
  padding: 0.75em 0 1em;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.05em;
}
@media screen and (max-width: 768px) {
  .modal-header h2 {
  padding: 1em 0 1.5em;
    font-size: 18px;
  }
}

/* 閉じるボタン（×） */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.modal-close-btn span {
  display: inline-block;
  font-size: 0.6em;
  vertical-align: middle;
  margin-top: -0.1em;
  margin-right: 0.3em;
}
@media screen and (max-width: 768px) {
  .modal-close-btn {
    font-size: 20px;
  }
}

.modal-close-btn:hover {
  opacity: 1;
}

/* --- タブ切り替えデザイン --- */
.tab-nav {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tab-nav li {
  flex: 1;
}
.tab-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  text-align: center;
  border: none;
  border-radius: 8px 8px 0 0;
  background-color: #217eb1;
  color: #fffc;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #fff;
  background-color: #16426d;
}

/* アクティブなタブ */
.tab-btn.is-active {
  background-color: #fff;
  color: #1c5080;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

/* --- コンテンツ表示領域（iframe） --- */
.modal-body {
  flex: 1;
  position: relative;
  background-color: #fff;
}

/* 非アクティブ時は確実に非表示 */
.tab-panel {
  display: none !important;
  width: 100%;
  height: 100%;
}

/* アクティブ時のみ表示 */
.tab-panel.is-active {
  display: block !important;
}
.tab-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ----------------------------------------------------------------------
 FAQ 全体スタイル
---------------------------------------------------------------------- */

.faq-container {
  font-size: 14px;
  line-height: 1.6;
  padding: 15px 10px 15px 15px;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .faq-container {
    font-size: 13px;
    line-height: 1.4;
  }
}

/* --- CSS アコーディオン --- */
.faq-accordion {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
}
.faq-accordion summary {
  padding: 12px 35px 12px 14px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  list-style: none;
  user-select: none;
}
.faq-accordion summary::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 4px;
  height: 50%;
  background: #49a7db;
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 23px;
  font-weight: normal;
  color: #49a7db;
  line-height: 1;
}
.faq-accordion[open] summary {
  background-color: #fff;
}
.faq-accordion[open] summary::after {
  content: "−";
}
.faq-content {
  padding: 15px;
  background-color: #fff;
}
.faq-content p {
  margin: 0 0 10px 0;
}
.faq-content p:last-child {
  margin-bottom: 0;
}
.faq-content ul, .faq-content ol {
  margin: 8px 0 12px 20px;
  padding: 0;
}
.faq-content li {
  margin-bottom: 4px;
}
.faq-content a {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}
.faq-content h4 {
  margin: 10px 0 5px 0;
  font-size: 14px;
  color: #49a7db;
}

/* 路線情報などの横並びスタイル */

.info-row {
  margin: 0;
  line-height: 1.8;
  display: flex;
}
.pref {
  display: inline-block;
  width: 10em;
  flex-shrink: 0;
}
.route {
  display: inline-block;
  width: 7em;
  flex-shrink: 0;
}
.status {
  flex: 1;
}
.tweet {
  margin: 10px 0;
}
.tweet img, .iosimg img {
  max-width: 100%;
  height: auto;
}