@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.7
*/

/* ======================================
   TABLE OF CONTENTS:
   
   1. BASE STYLES & IMPORTS
   2. HEADER STYLES
   3. NAVIGATION STYLES
   4. CONTENT LAYOUT
   5. ARTICLE & POST STYLES
   6. HEADINGS
   7. SIDEBAR STYLES
   8. FOOTER STYLES
   9. MOBILE MENU STYLES
   10. RAILWAY LINE SPECIFIC STYLES
   11. BUTTONS & INTERACTIVE ELEMENTS
   12. MEDIA QUERIES
   13. UTILITY CLASSES
====================================== */

/* ======================================
   1. BASE STYLES & IMPORTS
====================================== 
@import "css/search-form.css";*/

/* Override default styles */
div {
  overflow-wrap: break-word;
}

/* Carousel adjustment */
.carousel {
  margin-bottom: 10px;
}


/* ======================================
   2. HEADER STYLES
====================================== */
#header-in {
  animation: none;
}

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

/* Hide entry metadata */
.entry-meta .entry-date.published,
.entry-meta .entry-date,
.entry-meta {
  display: none;
}

/* Font size utility */
.fz-10px {
  font-size: 10px;
}

/* ======================================
   3. NAVIGATION STYLES
====================================== */
.navi-in > ul li {
  line-height: 40px;
  height: 40px;
}

.norikae-picture {
  width: 100%; /* 親ブロックの幅を画面幅いっぱいに */
}

.norikae-picture img {
  width: 100%;   /* 画像を親の幅に合わせる */
  height: auto;  /* 縦横比を維持 */
  display: block; /* 画像下の余白防止 */
}

.navi-in a {
  font-size: 15px;
}

#navi .navi-in a:hover {
  transform: none !important;
}

.navi-in > ul .sub-menu a {
  padding: 0;
}

.sub-menu {
  box-shadow: 0px 2px 5px 0 rgba(0,0,0,.26);
}

.sub-menu .caption-wrap {
  color: #333;
  border-top: dotted #dddddd;
  background: #fff;
  padding: 0 0 0 2em;
  margin: 0;
}

.navi-in > ul .sub-menu a:hover {
  transform: none !important;
}

div#header-container {
  box-shadow: none;
}

div.item-label {
  font-weight: bold;
}

/* ======================================
   4. CONTENT LAYOUT
====================================== */
/* Make table backgrounds transparent */
.article td:first-child {
  background-color: transparent;
}

/* Appeals section (news/announcements) */
.appeal {
  padding: .1em 0 .2em;
  box-shadow: 0px 1px 4px 0 rgba(0,0,0,.1);
}

div#appeal-in.appeal-in.wrap {
  padding: 0;
  min-height: 0px;
  max-height: 30px;
}

div.appeal-content {
  padding: 0;
}

.appeal-content {
  background-color: #b5b5b5; /* Background color */
  margin: auto;
  max-width: 100%;
  opacity: 1;
  line-height: 1.6;
}

a.appeal-button {
  color: #fff !important;
  font-size: .85em;
  padding: 0 23em 0;
  margin: 0;
  max-width: 100%;
  white-space: nowrap;
  box-shadow: none;
}

.appeal-button:hover {
  transform: none;
  box-shadow: none;
}

/* Two-column layout for search */
.my_double_rectangle_wrapper {
  width: 100%;
  text-align: center;
}

.my_double_rectangle_wrapper > div {
  display: inline-block;
  margin: 15px;
}

/* ======================================
   5. ARTICLE & POST STYLES
====================================== */
/* Article header */
header.article-header.entry-header {
  text-align: center;
  margin-bottom: 3em;
}

.article-header h1 {
  position: static;
  font-size: 1.4em;
  color: #333333;
  background-color: #fff;
  line-height: 1.8em;
  text-shadow: none;
  margin: 0;
  padding: 1.5em .95em 1.1em;
}

/* Featured image (eye-catch) */
.eye-catch {
  box-shadow: 0px 3px 7px 0 rgba(0,0,0,.2);
}

.eye-catch img {
  height: auto !important;
  -webkit-filter: none;
  filter: none;
  opacity: 1;
  transform: none;
  width: 100%;
}

/* Categories and tags */
a.cat-link, a.tag-link {
  display: inline-block;
  font-size: .5em;
  border-radius: 10px;
  border: 0;
  margin: 0.5em;
  padding: 0 0.5em 0;
  background: #0050a0 !important; /* Tag color */
  color: #fff !important;
  word-break: break-all;
  position: absolute;
}

.cat-link:hover, .tag-link:hover {
  opacity: .5;
  transition: all .3s ease-in-out;
}

.entry-categories-tags {
  margin-bottom: 0.4em;
}

/* Category label positioning */
.eye-catch .cat-label, .cat-label {
  font-size: .7em;
  border-radius: 10px;
  margin: 0.5em;
  padding: 0 0.5em 0;
  background-color: #0050a0; /* Category label color */
  color: #fff;
}

.cat-link {
  top: 3.7em;
  left: 3em;
  transition: 0.4s;
}

.tag-link {
  top: 3.7em;
  left: 14.5em;
  transition: 0.4s;
}

/* Date display */
.date-tags {
  font-size: 0.9em;
  color: #7b7b7b;
  top: 0;
  right: 0;
  left: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}

.post-date, .post-update {
  margin-right: .5em !important;
  color: #7b7b7b;
  font-size: .8em;
}

div.date-tags span.post-update {
  order: 1;
}

span.fas.fa-history::before {
  content: "\f2f1";
}

div.date-tags span.post-update, div.date-tags span.post-date {
  margin-right: 10px;
}

/* Hide admin page views */
div.admin-pv {
  display: none;
}

/* Card styles for posts */
a.entry-card-wrap.a-wrap.border-element.cf {
  padding: 0 0 .5em;
  border-radius: 10px;
  width: 48%;
  margin-bottom: 2em;
}

a.entry-card-wrap.a-wrap {
  transition: all .1s;
}

a.entry-card-wrap.a-wrap:hover {
  transform: translateY(-1px);
  transition: all .1s;
  background-color: #fff;
}

figure.entry-card-thumb.card-thumb.e-card-thumb {
  max-height: 150px;
  border-radius: 10px 10px 0 0/ 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.e-card-thumb .cat-label {
  margin-left: .8em;
}

/* Entry card titles */
h2.entry-card-title.card-title.e-card-title {
  font-size: 18px;
  color: #696969;
  font-weight: bold;
  text-align: center;
  line-height: 1.8em;
  margin-top: 3em;
  margin-bottom: 1em;
  padding: 0 1.5em 0;
}

/* Entry card snippets */
.entry-card-snippet {
  -webkit-line-clamp: unset;
}

.entry-card-snippet.card-snippet.e-card-snippet {
  font-size: 14px;
  color: #7b7b7b;
  text-align: center;
  border-top: 3px dotted #0050a0; /* Dotted line color */
  line-height: 1.8em;
  padding-top: 0.6em;
  margin-left: 2em;
  margin-right: 2em;
  margin-bottom: 4em;
  max-height: 20em;
}

/* Blog cards */
.blogcard {
  padding-bottom: .8%;
  border: 0px solid whitesmoke;
  border-radius: 4px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

a.blogcard-wrap.internal-blogcard-wrap.a-wrap.cf,
a.blogcard-wrap.external-blogcard-wrap.a-wrap.cf {
  transition: all 200ms;
}

a.blogcard-wrap.internal-blogcard-wrap.a-wrap.cf:hover,
a.blogcard-wrap.external-blogcard-wrap.a-wrap.cf:hover {
  background-color: #fafafa;
  box-shadow: none;
  transform: none;
}

.blogcard-footer {
  padding-top: 2%;
}

.blogcard:before {
  display: none;
}

.internal-blogcard::after,
.external-blogcard::after {
  content: "続きを読む ≫"; 
  position: absolute;
  bottom: 0.7em;
  right: 1em;
  font-size: 0.7em;
  background-color: #8b968d; /* "Read more" button background */
  padding: .4em 3em;
  font-weight: bold;
  color: #fff;
  border-radius: 2px;
}

.blogcard-content {
  max-height: none;
}

.blogcard-date {
  display: none;
}

.blogcard-title {
  font-size: 1em;
  padding: .2em .2em 0;
  line-height: 1.4em;
  text-align: justify;
}

.blogcard-snippet {
  padding: 0em .5em;
  color: #7b7b7b;
  text-align: justify;
}

/* Blogcard labels */
.bct-related .blogcard-label,
.bct-reference .blogcard-label,
.bct-reference-link .blogcard-label,
.bct-popular .blogcard-label,
.bct-together .blogcard-label,
.bct-detail .blogcard-label,
.bct-check .blogcard-label,
.bct-pickup .blogcard-label,
.bct-official .blogcard-label,
.bct-dl .blogcard-label {
  display: inline !important;
  background-color: #0050a0;
  margin-left: .5em;
}

/* ======================================
   6. HEADINGS
====================================== */
/* Basic heading styles */
h2.midashi_h2:before {
  background-image: none;
}

h2.midashi_h2 {
  line-height: 2;
  background-color: #0050a0;
  font-size: 24px;
  color: #fff;
  border-radius: 2px;
  padding: 1em;
  margin-top: 70px;
  box-shadow: 0px 2px 5px 0 rgba(0,0,0,.3);
}

h3.midashi_h3 {
  line-height: 2;
  font-size: 20px;
  border: none;
  display: inline-block;
  color: #333333;
  border-radius: 2px;
  border-left: 10px solid #0050a0;
  padding: 0.4em 0.8em;
  margin-top: 10px;
  margin-bottom: 35px;
}

p.midashi_p::before {
  content: "◆";
  color: #0050a0;
  position: absolute;
  left: 0;
  top: 0.6em;
  font-size: 0.9em;
  font-weight: bold;
}

p.midashi_p {
  position: relative;
  padding: 10px;
  padding-left: 1.3em;
  font-size: 1.1em;
  font-weight: bold;
}

/* Table of contents */
.toc-title {
  font-weight: bold;
}

.toc-title::after {
  color: #337ab7;
}

.toc-list > li a {
  font-weight: bold;
  display: block;
  margin-top: 10px;
  margin-left: 10px;
}

.toc-list > li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\f144";
  margin-right: 7px;
}

.toc-list > li li a {
  font-weight: normal;
  font-size: 95%;
  margin-top: 0;
  margin-left: 2em;
}

.toc-list > li li a::before {
  content: "";
  width: 7px;
  height: 7px;
  left: -2px;
  display: inline-block;
  border-radius: 50%;
  background: #90C31F; /* Green dot color */
  position: relative;
  margin-bottom: 2px;
}

.toc a:hover {
  color: #333333;
  text-decoration: underline;
}

.toc {
  box-shadow: 0px 2px 5px 0 rgba(0,0,0,.15);
}

/* ======================================
   7. SIDEBAR STYLES
====================================== */
.sidebar h3 {
  color: #7b7b7b;
  border-radius: 0%;
  border-bottom: 3px dotted;
  border-color: #0050a0;
  padding-bottom: 0.3em;
  margin-top: -0.5em;
  margin-bottom: 1em;
}

/* Widget styles */
.widget_recent_entries ul li a, 
.widget_categories ul li a, 
.widget_archive ul li a, 
.widget_pages ul li a, 
.widget_meta ul li a, 
.widget_rss ul li a, 
.widget_nav_menu ul li a {
  background-color: #f7f7f7;
  color: #afafb0 !important;
  margin: 6px 0;
  padding: 4px 10px;
  border-radius: 20px;
  transition: 0.4s;
}

.widget_recent_entries ul li a:hover, 
.widget_categories ul li a:hover, 
.widget_archive ul li a:hover, 
.widget_pages ul li a:hover, 
.widget_meta ul li a:hover, 
.widget_rss ul li a:hover, 
.widget_nav_menu ul li a:hover {
  background-color: #0050a0;
  color: #fffff4 !important;
}

/* Tag cloud */
.tagcloud a {
  background-color: #f7f7f7;
  color: #afafb0 !important;
}

.tagcloud a:hover {
  background-color: #0050a0;
  color: #fffff4 !important;
  transition: 0.4s;
}

/* Widget entry cards */
.widget-entry-cards .widget-entry-card-content {
  color: #7b7b7b;
  font-size: 13px;
  padding-left: .5em;
}

/* ======================================
   8. FOOTER STYLES
====================================== */
.footer-title {
  color: #7b7b7b;
  border-bottom: 3px dotted;
  border-color: #0050a0;
  margin-bottom: 1em;
}

#footer, #footer a {
  color: #7b7b7b;
}

.footer-widgets, .footer-widgets-mobile {
  margin: 0 auto;
}

.footer-left, .footer-center, .footer-right, .footer-mobile {
  padding: 0 10px;
}

.widget.widget-footer-mobile {
  padding: 0;
}

aside#popular_entries-3.widget.widget-footer-mobile.widget_popular_entries div.popular-entry-cards.widget-entry-cards.no-icon.cf {
  padding: 0 .4em 0;
}

.widget-footer-mobile div.tagcloud, .widget-footer-mobile ul li a {
  margin-right: .2em;
  margin-left: .2em;
}

/* Copyright text color */
.source-org.copyright {
  color: #7b7b7b;
}

/* Recommended cards */
div#recommended-in.recommended-in.wrap.cf {
  margin-top: 20px;
  max-height: 220px;
}

div#content.content.cf {
  margin-top: 0;
}

.widget-entry-cards .a-wrap:hover {
  transform: translateY(-1px);
  transition: all .3s;
}

figure.navi-entry-card-thumb.widget-entry-card-thumb.card-thumb {
  opacity: .8;
}

.recommended.rcs-center-white-title .a-wrap:hover .card-content {
  transition: all .1s;
  opacity: 1;
}

.widget-entry-cards.large-thumb-on .card-content {
  background: rgba(151, 151, 151, 0);
}

a.navi-entry-card-link.widget-entry-card-link.a-wrap {
  border-radius: 10px !important;
  margin: 1em .5em;
  background-color: #EFF1F5; /* Match Cocoon background color */
}

div.navi-entry-card-title.widget-entry-card-title.card-title {
  color: #333333;
  font-weight: bold;
  font-size: .8em;
  background-color: rgba(255, 255, 255, 0.8);
  padding: .6em .5em;
  border-radius: 30px;
}

/* ======================================
   9. MOBILE MENU STYLES
====================================== */
.mobile-menu-buttons {
  height: 50px;
}

.mobile-menu-buttons > li {
  padding-top: 0;
}

.menu-button {
  color: #0050a0 !important;
  margin: auto;
}

.mobile-menu-buttons .menu-button:hover {
  background-color: white;
}

span.fa.fa-search::before {
  margin-left: 1em;
  color: #0050a0 !important;
}

span.fa.fa-bars::before {
  margin-right: 1em;
}

.navi-menu-caption.menu-caption,
.home-menu-caption.menu-caption,
.search-menu-caption.menu-caption,
.top-menu-caption.menu-caption,
.sidebar-menu-caption.menu-caption {
  display: none;
}

span.fa.fa-close::before {
  font-family: FontAwesome;
  content: "\f060";
}

.menu-content .menu-drawer {
  padding: 0 1em;
  margin: 0;
}

ul.menu-drawer:before {
  font-size: 1.2em;
  display: block;
  font-weight: normal;
  background: white;
  color: #7b7b7b;
  padding: .5em;
  margin-bottom: 1em;
  font-family: sans-serif;
  text-align: center;
  border-bottom: 3px dotted #0050a0;
}

ul.menu-drawer:after {
  background: white;
}

.menu-drawer li {
  background-color: #fff;
  padding: 0;
  border-radius: 20px;
}

.menu-drawer a {
  font-size: 1.5em;
  background-color: #f7f7f7;
  color: #afafb0 !important;
  margin: 6px 0;
  padding: 4px 1em;
  border-radius: 20px;
}

.menu-drawer a:hover {
  background-color: #0050a0 !important;
  color: #fffff4 !important;
  transition: 0.2s;
}

.menu-drawer .sub-menu {
  padding-left: 30px;
  margin-top: 0;
}

/* ======================================
   10. RAILWAY LINE SPECIFIC STYLES
====================================== */
/* Line colors (marker-under styles) */
.marker-under-lightgreen {
  background: linear-gradient(transparent 60%, #00DEC9 50%);
}

.marker-under-cream {
  background: linear-gradient(transparent 60%, #fff3b8 50%);
}

.marker-under-jobanrapid-narita {
  background: linear-gradient(transparent 60%, #49C6C3 50%);
}

.marker-under-hachiko-kawagoe,
.marker-under-metrohibiya {
  background: linear-gradient(transparent 60%, #D4D1CE 50%);
}

.marker-under-yamanote-yokohama-negishi {
  background: linear-gradient(transparent 60%, #ACC78B 50%);
}

.marker-under-tobutojo,
.marker-under-tobunoda {
  background: linear-gradient(transparent 60%, #fd7e00 50%);
}

.marker-under-seibuikebukuro,
.marker-under-metroginza,
.marker-under-tokyuoimachi,
.marker-under-utsunomiya-takasaki,
.marker-under-tokaido,
.marker-under-naritaskyaccess {
  background: linear-gradient(transparent 60%, #FFB871 50%);
}

.marker-under-metroyurakucho {
  background: linear-gradient(transparent 60%, #CFB991 50%);
}

.marker-under-metrohanzomon {
  background: linear-gradient(transparent 60%, #AD9BE1 50%);
}

.marker-under-toeishinjuku {
  background: linear-gradient(transparent 60%, #b0c124 50%);
}

.marker-under-sttozai {
  background: linear-gradient(transparent 60%, #FF9A4F 50%);
}

.marker-under-st-bureau {
  background: linear-gradient(transparent 60%, #35b4de 50%);
}

/* JR East & Hokkaido headings */
h2[id*="jre"].midashi_h2, 
h2[id*="jrh"].midashi_h2 {
  background-color: #3eb370;
}

h3[id*="jre"].midashi_h3, 
h3[id*="jrh"].midashi_h3 {
  border-left: 10px solid #3eb370;
}

p[id*="jre"].midashi_p::before, 
p[id*="jre_norikae_route_kanren"].midashi_p::before, 
p[id*="jrh"].midashi_p::before {
  color: #3eb370;
}

/* JR West headings */
h2[id*="jrw"].midashi_h2 {
  background-color: #128FA8;
}

h3[id*="jrw"].midashi_h3 {
  border-left: 10px solid #128FA8;
}

p[id*="jrw"].midashi_p::before {
  color: #128FA8;
}

/* JR Central headings */
h2[id*="jrc"].midashi_h2 {
  background-color: #F66F0A;
}

h3[id*="jrc"].midashi_h3 {
  border-left: 10px solid #F66F0A;
}

p[id*="jrc"].midashi_p::before,
p[id*="jrc_norikae_route_kanren1"].midashi_p::before,
p[id*="jrc_norikae_route_kanren2"].midashi_p::before,
p[id*="jrc_norikae_route_kanren3"].midashi_p::before,
p[id*="jrc_norikae_route_kanren4"].midashi_p::before {
  color: #F66F0A;
}

/* JR Kyushu headings */
h2[id*="jrq"].midashi_h2 {
  background-color: #D94363;
}

h3[id*="jrq"].midashi_h3 {
  border-left: 10px solid #D94363;
}

p[id*="jrq"].midashi_p::before {
  color: #D94363;
}

/* Sapporo Municipal Subway headings */
h2[id*="st-bureau"].midashi_h2 {
  background-color: #0286b2;
}

h3[id*="st-bureau"].midashi_h3 {
  border-left: 10px solid #0286b2;
}

p[id*="st-bureau"].midashi_p::before {
  color: #0286b2;
}

/* Tokyu Railways headings */
h2[id*="tokyu"].midashi_h2 {
  background-color: #EE6214;
}

h3[id*="tokyu"].midashi_h3 {
  border-left: 10px solid #EE6214;
}

p[id*="tokyu"].midashi_p::before,
p[id*="tokyu_norikae_route_kanren"].midashi_p::before {
  color: #EE6214;
}

/* Narita Sky Access headings */
h2[id*="narita_skyaccess"].midashi_h2 {
  background-color: #ff8620;
}

h3[id*="narita_skyaccess"].midashi_h3 {
  border-left: 10px solid #ff8620;
}

p[id*="narita_skyaccess"].midashi_p::before {
  color: #ff8620;
}

/* Seibu Railway headings */
h2[id*="seibu"].midashi_h2 {
  background-color: #3366cc;
}

h3[id*="seibu"].midashi_h3 {
  border-left: 10px solid #3366cc;
}

p[id*="seibu"].midashi_p::before {
  color: #3366cc;
}

/* Tokyo Metro headings */
h2[id*="tokyometro"].midashi_h2 {
  background-color: #23C7CF;
}

h3[id*="tokyometro"].midashi_h3 {
  border-left: 10px solid #23C7CF;
}

p[id*="tokyometro"].midashi_p::before,
p[id*="tokyometro_norikae_route_kanren"].midashi_p::before {
  color: #23C7CF;
}

/* Tokyo Transportation Bureau headings */
h2[id*="toei_transportation"].midashi_h2 {
  background-color: #2d917c;
}

h3[id*="toei_transportation"].midashi_h3 {
  border-left: 10px solid #2d917c;
}

p[id*="toei_transportation"].midashi_p::before,
p[id*="toei_transportation_norikae_route_kanren"].midashi_p::before {
  color: #2d917c;
}

/* Keio Railways headings */
h2[id*="keio"].midashi_h2 {
  background-color: #e63e7e;
}

h3[id*="keio"].midashi_h3 {
  border-left: 10px solid #e63e7e;
}

p[id*="keio"].midashi_p::before,
p[id*="keio_norikae_route_kanren"].midashi_p::before {
  color: #e63e7e;
}

/* Odakyu Railways headings */
h2[id*="odakyu"].midashi_h2 {
  background-color: #076db5;
}

h3[id*="odakyu"].midashi_h3 {
  border-left: 10px solid #076db5;
}

p[id*="odakyu"].midashi_p::before {
  color: #076db5;
}

/* Yokohama Municipal Subway Blue Line headings */
h2[id*="yokohama-blueline"].midashi_h2 {
  background-color: #0362ED;
}

h3[id*="yokohama-blueline"].midashi_h3 {
  border-left: 10px solid #0362ED;
}

p[id*="yokohama-blueline"].midashi_p::before {
  color: #0362ED;
}

/* Station platform summary styles */
p.stationhome-matome {
  color: #000;
  border-left: solid 5px #0050a0;
  padding: 0.25em 0.5em;
  font-weight: bold;
  background: transparent;
  padding-left: 1.3em;
  font-size: 1.1em;
}

/* JR Hokkaido/East and Toyo Kosoku */
p[id*="jr_h"].stationhome-matome, 
p[id*="jr_e"].stationhome-matome, 
p[id*="toyo_kosoku"].stationhome-matome {
  border-left: solid 5px #3eb370;
}

/* JR Central */
p[id*="jr_c"].stationhome-matome {
  border-left: solid 5px #F66F0A;
}

/* JR West */
p[id*="jr_w"].stationhome-matome {
  border-left: solid 5px #128FA8;
}

/* JR Kyushu */
p[id*="jr_q"].stationhome-matome {
  border-left: solid 5px #D94363;
}

/* Tokyo Metro */
p[id*="tokyo_metro"].stationhome-matome {
  border-left: solid 5px #00ace6;
}

/* Toei Transportation */
p[id*="toeitransportation"].stationhome-matome {
  border-left: solid 5px #2d917c;
}

/* Tokyu */
p[id*="tokyurailway"].stationhome-matome {
  border-left: solid 5px #f55a0c;
}

/* Seibu */
p[id*="seibu"].stationhome-matome {
  border-left: solid 5px #3366cc;
}

/* Yokohama Subway Blue Line */
p[id*="yokohama_blueline"].stationhome-matome {
  border-left: solid 5px #0362ed;
}

/* Keio */
p[id*="keio"].stationhome-matome {
  border-left: solid 5px #e63e7e;
}

/* ======================================
   11. BUTTONS & INTERACTIVE ELEMENTS
====================================== */
/* Base button style */
a.station-btn-border {
  display: -webkit-flex;
  display: flex;
  justify-content: center;
  list-style-type: none;
  margin: 0; 
  padding: 0;
  background: #0050a0;
  border: solid 3px #0050a0;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  transition: .4s;
  font-size: 1.3em;
  font-weight: bold;
}

a.station-btn-border:hover {
  background: #fff;
  border: solid 3px #0050a0;
  border-radius: 10px;
  color: #0050a0;
}

/* JR Hokkaido & East buttons */
a[id*="jrh"].station-btn-border,
a[id*="jre"].station-btn-border {
  background: #3eb370;
  border: solid 3px #3eb370;
}

a[id*="jrh"].station-btn-border:hover,
a[id*="jre"].station-btn-border:hover {
  border: solid 3px #3eb370;
  color: #3eb370;
  background: #fff;
}

/* JR West buttons */
a[id*="jrw"].station-btn-border {
  background: #128FA8;
  border: solid 3px #128FA8;
}

a[id*="jrw"].station-btn-border:hover {
  border: solid 3px #128FA8;
  color: #128FA8;
  background: #fff;
}

/* JR Kyushu buttons */
a[id*="jrq"].station-btn-border {
  background: #D94363;
  border: solid 3px #D94363;
}

a[id*="jrq"].station-btn-border:hover {
  border: solid 3px #D94363;
  color: #D94363;
  background: #fff;
}

/* JR Central & Narita Sky Access buttons */
a[id*="jrc"].station-btn-border,
a[id*="naritaskyaccess"].station-btn-border {
  background: #F66F0A;
  border: solid 3px #F66F0A;
}

a[id*="jrc"].station-btn-border:hover,
a[id*="naritaskyaccess"].station-btn-border:hover {
  border: solid 3px #F66F0A;
  color: #F66F0A;
  background: #fff;
}

/* Seibu Railway buttons */
a[id*="seibu"].station-btn-border {
  background: #3366cc;
  border: solid 3px #3366cc;
}

a[id*="seibu"].station-btn-border:hover {
  border: solid 3px #3366cc;
  color: #3366cc;
  background: #fff;
}

/* Odakyu Railway buttons */
a[id*="odakyu"].station-btn-border {
  background: #076db5;
  border: solid 3px #076db5;
}

a[id*="odakyu"].station-btn-border:hover {
  background: #fff;
  border: solid 3px #076db5;
  color: #076db5;
}

/* Keio Railway buttons */
a[id*="keio"].station-btn-border {
  background: #e63e7e;
  border: solid 3px #e63e7e;
}

a[id*="keio"].station-btn-border:hover {
  background: #fff;
  border: solid 3px #e63e7e;
  color: #e63e7e;
}

/* Tokyu Railway buttons */
a[id*="tokyu"].station-btn-border {
  background: #EE6214;
  border: solid 3px #EE6214;
}

a[id*="tokyu"].station-btn-border:hover {
  background: #fff;
  border: solid 3px #EE6214;
  color: #EE6214;
}

/* Tokyo Metro buttons */
a[id*="tokyometro"].station-btn-border {
  background: #23C7CF;
  border: solid 3px #23C7CF;
}

a[id*="tokyometro"].station-btn-border:hover {
  border: solid 3px #23C7CF;
  color: #23C7CF;
  background: #fff;
}

/* Toei Transportation buttons */
a[id*="toei_transportation"].station-btn-border {
  background: #2d917c;
  border: solid 3px #2d917c;
}

a[id*="toei_transportation"].station-btn-border:hover {
  border: solid 3px #2d917c;
  color: #2d917c;
  background: #fff;
}

/* Sapporo Municipal Subway buttons */
a[id*="st-bureau"].station-btn-border {
  background: #0286b2;
  border: solid 3px #0286b2;
}

a[id*="st-bureau"].station-btn-border:hover {
  border: solid 3px #0286b2;
  color: #0286b2;
  background: #fff;
}

/* Yokohama Municipal Subway Blue Line buttons */
a[id*="yokohama-blueline"].station-btn-border {
  background: #0362ED;
  border: solid 3px #0362ED;
}

a[id*="yokohama-blueline"].station-btn-border:hover {
  border: solid 3px #0362ED;
  color: #0362ED;
  background: #fff;
}

/* Mark style */
p.mark::before {
  content: "※";
  color: #0050a0;
  position: absolute;
  left: 0;
  top: 0.6em;
  font-size: 0.9em;
}

p.mark {
  position: relative;
  padding: 10px;
  padding-left: 1.3em;
}

/* Box design */
.box {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1em;
  border: solid 3px #0050a0;
}

.box .box-title {
  position: absolute;
  display: inline-block;
  top: -27px;
  left: -3px;
  padding: 0 9px;
  height: 25px;
  line-height: 25px;
  font-size: 17px;
  background: #0050a0;
  color: #ffffff;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}

.box p {
  margin: 0; 
  padding: 0;
}

/* Table styles */
.table3 th, .table3 td {
  border: 1px solid gray;
}

.th_jrhokkaido {
  background: #44af35;
  color: #fff;
}

.td_wadattsu {
  background: #fff2cc;
  color: #000;
}

/* Keyboard style */
.keyboard.key {
  padding: 1px 3px;
  background-color: #f9f9f9;
  background-image: -moz-linear-gradient(center top, #eee, #f9f9f9, #eee);
  border: 1px solid #aaa;
  border-radius: 2px;
  box-shadow: 1px 2px 2px #ddd;
  font-family: inherit;
  font-weight: bold;
  font-size: 0.85em;
}

/* Border style */
.border {
  border: solid 1px #454545;
  padding: 5px;
}

/* Google Maps responsive container */
.google-maps {
  position: relative;
  padding-bottom: 75%; 
  height: 0;
  overflow: hidden;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Animated button */
.btn-4 {
  background-color: #1da1f2; /* Button background color */
  color: #fff; /* Button text color */
  box-shadow: 0 5px 0 0 #126599; /* Button shadow color */
  font-weight: bold;
  border-radius: 4px;
  max-width: 100%;
  margin: 2em auto;
  padding: 0;
  text-align: center;
  line-height: 1.4;
  transition: all .2s ease;
  animation: jumpbtn 3s ease-out 0s infinite; /* Jump frequency */
}

@keyframes jumpbtn {
  from, 10%, 20%, 100% {transform: translateY(0%);}
  5%, 15% {transform: translateY(-0.5em);} /* Jump height */
}

.btn-4:hover {
  opacity: 0.8;
}

.btn-4 a {
  text-decoration: none !important;
  color: #fff !important;
  display: block;
  margin: 0;
  padding: 0.5em;
}

.btn-4 > img { float: left; }
.btn-4::after { content: ''; clear: left; }

/* Tab styles */
.tab-wrap {
  margin-bottom: 40px;
}

.tab-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tab {
  flex-grow: 1;
  background: #58A9EF;
  border-radius: 10px 10px 0 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  margin: 0 5px;
  padding: 14px 0 12px;
  text-align: center;
  transition: 1s;
  vertical-align: bottom;
}

.panel-group {
  min-height: 100px;
  border: solid 1px #CCC;
  border-top: 8px solid #C8E4FF;
  padding: 10px;
}

.panel {
  display: none;
}

.tab.is-active {
  color: #FFF;
  transition: 1s;
  opacity: 0.6;
  padding-bottom: 20px;
}

.panel.is-show {
  display: block;
}

/* SNS sharing & follow buttons */
#main .button-caption {
  display: none; /* Hide caption */
}

.sns-share-message {
  font-weight: bold;
  color: #875d5b;
}

.sns-share-buttons {
  flex-wrap: nowrap; /* Don't wrap */
  justify-content: center; /* Center align */
}

.sns-share-buttons a {
  border-radius: 50%; /* Make round */
  font-size: 20px; /* Icon size */
  margin: 0 10px; /* Button spacing */
}

#main .sns-share a {
  width: 40px; /* Button width */
  height: 40px; /* Button height */
}

.sns-follow-message {
  font-weight: bold;
  color: #875d5b;
}

.sns-follow-buttons {
  justify-content: center; /* Center align */
}

.sns-follow-buttons a {
  border-radius: 50%; /* Make round */
  font-size: 20px; /* Icon size */
  margin: 0 10px; /* Button spacing */
}

#main .sns-follow a {
  width: 40px; /* Button width */
  height: 40px; /* Button height */
}

/* ======================================
   12. SEARCH FORM STYLES
====================================== */
/* 2-column search box */
.search-box-2column {
  background: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Search box and category/tab list dropdown */
.input-group-2column input,
.input-group-2column select {
  width: 100%;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  margin-bottom: 15px; /* Dropdown spacing */
}

/* Search button (button color is site color) */
.search-button {
  margin-top: 20px; /* Spacing from dropdown */
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: .4s;
  background: #0050a0;
}

/* Search button hover */
.search-button:hover {
  background: #00B0F0;
}

/* 2-column layout */
.search-select-wrapper {
  display: flex;
  gap: 20px; /* Spacing */
}

/* Make each select box 50% */
.select-half {
  border: 1px solid #ccc;
  width: 50%;
}

.select-half {
  flex: 1;
}

/* Search form basic style */
.search-form {
  padding: 10px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Search input field style */
.search-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Select wrapper */
.select-wrapper {
  margin-top: 10px;
  position: relative;
}

/* Filter group */
.filter-group {
  text-align: left !important;
  margin: 15px 0;
}

.filter-group p {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* Filter button */
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 20px;
  border: 2px solid var(--swell-main-color, #04384c);
  background-color: white;
  color: var(--swell-main-color, #04384c);
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  position: relative;
}

/* Selected button style */
.filter-button.selected {
  background-color: var(--swell-main-color, #04384c);
  color: white;
  font-weight: bold;
}

/* Category/tag label style */
.filter-label {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  margin-bottom: 8px;
}

.filter-label i {
  font-size: 18px;
  color: var(--swell-main-color, #04384c);
}

/* Error message style */
.search-error-message {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Search result options style */
.p-searchOptions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 40px;
}

.p-searchForm {
  margin-top: 10px !important;
}

/* Accordion UI styles */
.accordion-header {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--swell-main-color, #04384c);
  padding: 10px 0;
  font-weight: bold;
  position: relative;
  cursor: pointer;
}

.accordion-header.active {
  color: var(--swell-main-color, #04384c);
}

.accordion-header::after {
  float: right;
  content: "+";
  font-size: 16px;
  color: var(--swell-main-color, #04384c);
  transition: transform 0.3s ease-in-out;
}

.accordion-header.active::after {
  content: "−";
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 10px;
}

/* ======================================
   13. MEDIA QUERIES
====================================== */
/* Width 1100px and below */
@media screen and (max-width: 1100px) {
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 120px;
  }
}

/* Width 1023px and below */
@media screen and (max-width: 1023px) {
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 180px;
  }
  
  a.entry-card-wrap.a-wrap:hover {
    transform: none;
    background-color: #f7f7f7;
  }
  
  .date-tags {
    top: .5em;
    right: 1em;
  }
  
  .cat-link {
    top: 2.3em;
    left: 3em;
  }
  
  .tag-link {
    top: 2.3em;
    left: 14.5em;
  }
  
  a.appeal-button {
    padding: 0 18em 0;
  }
  
  .blogcard-title {
    padding: .3em .3em 0em .2em;
    line-height: 1.5em;
  }
  
  .blogcard-snippet {
    font-size: .9em;
    margin-top: .3em;
  }
  
  div#list a {
    box-shadow: 0px 1px 5px 0 rgba(0,0,0,.2);
  }
  
  .footer {
    margin-top: 0;
    padding-top: 0;
  }
}

/* Width 960px and below */
@media screen and (max-width: 960px) {
  .blogcard-title {
    padding: .3em .3em .2em .2em;
    line-height: 1.5em;
  }
  
  .blogcard-snippet {
    font-size: .8em;
    max-height: 15em;
  }
}

/* Width 900px and below */
@media screen and (max-width: 900px) {
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 160px;
  }
}

/* Width 880px and below */
@media screen and (max-width: 880px) {
  .toc-list > li a {
    margin-left: -10px;
  }
  
  .toc-list > li li a {
    margin-left: -2em;
  }
  
  .toc-list > li li a::before {
    left: 3px;
    margin-bottom: 1px;
  }
  
  .footer-title {
    margin-top: 2em;
  }
}

/* Width 834px and below */
@media screen and (max-width: 834px) {
  .date-tags {
    top: .6em;
    right: .5em;
  }
  
  .cat-link {
    top: .3em;
    left: .5em;
  }
  
  .tag-link {
    top: .3em;
    left: 12em;
  }
  
  main.main, div.sidebar {
    padding: 0;
  }
  
  a.appeal-button {
    padding: 0 13em 0;
  }
  
  .blogcard-title {
    font-size: 1.1em;
    padding: .2em .3em .5em .2em;
  }
  
  .blogcard-snippet {
    font-size: .9em;
  }
  
  h2.entry-card-title.card-title.e-card-title {
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.7em;
    padding: 1.5em .8em 1em;
    margin: 0;
  }
  
  .entry-card-snippet.card-snippet.e-card-snippet {
    font-size: 13px;
    text-align: center;
    border-top: 3px dotted #79c06e; /* Dotted line color */
    line-height: 1.8em;
    padding: 1em 0.5em 0;
    margin: 0 1em 1.5em;
  }
  
  main.main, div.sidebar {
    padding: 0;
  }
  
  .sub-menu {
    box-shadow: none !important;
  }
}

/* Width between 601px and 834px */
@media screen and (min-width: 601px) and (max-width: 834px) {
  div#content.content.cf {
    margin: 1em;
  }
}

/* Width 768px and below */
@media screen and (max-width: 768px) {
  .blogcard-title {
    padding: .3em;
  }
  
  /* Make search columns one column on mobile */
  .search-select-wrapper {
    flex-direction: column; /* Vertical stack */
    gap: 20px; /* Mobile spacing */
  }
  
  .select-half {
    width: 100%; /* Full width display */
  }
}

/* Width 750px and below */
@media screen and (max-width: 750px) {
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 130px;
  }
}

/* Width 673px and below */
@media screen and (max-width: 673px) {
  .blogcard-title {
    padding: .3em .5em 1em .2em;
    line-height: 1.8em;
  }
  
  .blogcard-snippet {
    display: none;
  }
}

/* Width 652px and below */
@media screen and (max-width: 652px) {
  a.appeal-button {
    padding: 0 8em 0;
  }
}

/* Width 600px and below */
@media screen and (max-width: 600px) {
  figure.entry-card-thumb.card-thumb.e-card-thumb {
    max-height: 250px;
  }
  
  a.entry-card-wrap.a-wrap.border-element.cf {
    margin: .5em 1em !important;
  }
  
  .ect-vertical-card .entry-card-wrap {
    width: 95% !important;
  }
  
  .blogcard-label {
    margin-left: -0.3em !important;
  }
  
  .content {
    margin-top: 0px;
  }
}

/* Width 500px and below */
@media screen and (max-width: 500px) {
  a.appeal-button {
    padding: 0 6em 0;
  }
}

/* Width 480px and below */
@media screen and (max-width: 480px) {
  .e-card-thumb .cat-label {
    margin-left: 1em;
  }
  
  h2, h3 {
    font-size: 1.17em;
  }
  
  .widget-entry-cards .widget-entry-card-content {
    line-height: 1.3;
  }
  
  .tab {
    padding: 10px 0 7px;
  }
  
  .tab.is-active {
    padding-bottom: 15px;
  }
}

/* Width 420px and below */
@media screen and (max-width: 420px) {
  .article-header h1 {
    font-size: 1.2em;
  }
  
  .date-tags {
    top: .7em;
    right: .2em;
  }
  
  .cat-link {
    top: .4em;
    left: .5em;
  }
  
  .tag-link {
    top: .4em;
    left: 12em;
  }
  
  a.appeal-button {
    padding: 0 3em 0;
  }
}

/* Width 410px and below */
@media screen and (max-width: 410px) {
  .blogcard-domain {
    max-width: 11em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Width 375px and below */
@media screen and (max-width: 375px) {
  .blogcard-domain {
    max-width: 9em;
  }
}

/* Googleカスタム検索のレイアウト修正 */
.gsc-control-cse {
  padding: 0 !important;
  border: none !important;
  background-color: transparent !important;
}

/* 検索ボックスとボタンのコンテナ */
.gsc-search-box-tools .gsc-search-box .gsc-input-box {
  height: 34px;
  border-radius: 2px 0 0 2px;
  border: 1px solid #ccc;
  border-right: none;
}

/* 検索ボックス */
.gsc-input {
  padding-right: 0 !important;
}

.gsc-input-box-focus {
  box-shadow: 0 0 3px #4285f4 !important;
}

.gsc-input-box-hover {
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15) !important;
}

/* 検索ボタン */
.gsc-search-button {
  margin-left: 0 !important;
}

.gsc-search-button-v2 {
  padding: 9px 15px !important;
  border-radius: 0 2px 2px 0 !important;
  background-color: #4285f4 !important;
  border-color: #4285f4 !important;
}

/* 検索結果ページのレイアウト */
.gsc-table-result, .gsc-thumbnail-inside, .gsc-url-top {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 検索ボックスと検索ボタンを横並びに固定 */
.gsc-search-box td {
  vertical-align: top !important;
}

/* 検索ボックスを横幅いっぱいに広げる */
.gsib_a {
  width: 100%;
  padding: 4px 6px 0;
}

/* 入力フィールドの高さを調整 */
.gsc-input-box .gsib_a input.gsc-input {
  height: 26px !important;
  font-size: 14px !important;
}

/* クリアボタンの位置調整 */
.gsib_b {
  padding: 3px 0 0 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .gsc-search-box-tools .gsc-search-box .gsc-input {
    padding-right: 0 !important;
  }
  
  .gsc-input-box {
    width: 100% !important;
  }
  
  .gsc-search-button-v2 {
    padding: 8px 12px !important;
  }
}

/* カスタム検索コンテナ */
.google-custom-search {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* 検索欄全体の表示調整 */
.google-custom-search .gsc-control-cse {
  width: 100%;
  max-width: 100%;
}