@charset "utf-8";
/*
 * Keisen Theme — re-implementation of BIRTH (TCD057) design
 * For Hugo static site: keisenshodo.com
 */

/* ==========================================================================
   Web Fonts
   ========================================================================== */
@font-face {
  font-family: 'design_plus';
  src: url('/fonts/design_plus.eot?v=1.6');
  src: url('/fonts/design_plus.eot?v=1.6#iefix') format('embedded-opentype'),
    url('/fonts/design_plus.woff?v=1.6') format('woff'),
    url('/fonts/design_plus.ttf?v=1.6') format('truetype'),
    url('/fonts/design_plus.svg?v=1.6#design_plus') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --color-primary: #b8d6db;
  --color-accent: #6698a1;
  --color-font: #65989f;
  --color-text: #666666;
  --color-copyright-bg: #65989f;
  --color-heading: #016d8e;
  --font-base: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Sans JP", sans-serif;
  --content-width: 1180px;
  --left-col-width: 830px;
  --side-col-width: 300px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--color-primary);
  color: #fff;
}

body {
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
  background: #fff;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

strong,
b {
  font-weight: bold;
}

em,
i {
  font-style: italic;
}

.rich_font,
.p-vertical {
  font-family: var(--font-serif);
  font-weight: 500;
}

.color_font {
  color: var(--color-font);
}

/* ==========================================================================
   Layout
   ========================================================================== */
#main_contents {
  max-width: var(--content-width);
  margin: 0 auto;
}

body.home #main_contents {
  max-width: none;
}

#main_col {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 50px 0;
}

#main_col.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

#left_col {
  float: left;
  width: 100%;
}

#side_col {
  float: right;
  width: var(--side-col-width);
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.design_button {
  text-align: center;
  margin: 30px 0;
}

.design_button a {
  display: inline-block;
  min-width: 220px;
  height: 55px;
  line-height: 55px;
  padding: 0 25px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  transition: background 0.3s;
}

.design_button a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
  position: relative;
  z-index: 100;
  width: 100%;
  height: 90px;
  background: #fff;
}

#header_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* Logo */
#logo_text .logo {
  font-size: 31px;
  font-weight: bold;
  line-height: 1.2;
}

#logo_text .logo a {
  color: inherit;
}

#logo_text .logo a:hover {
  color: var(--color-primary);
}

/* Header Button */
#header_button {
  margin-left: auto;
  margin-right: 20px;
}

#header_button a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
}

#header_button a:hover {
  background: var(--color-accent);
}

/* Global Menu */
#global_menu {
  display: flex;
  align-items: center;
}

#global_menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

#global_menu>ul>li {
  position: relative;
}

#global_menu>ul>li>a {
  display: block;
  padding: 0 15px;
  height: 90px;
  line-height: 90px;
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
}

#global_menu>ul>li>a:hover,
#global_menu>ul>li.active>a,
#global_menu>ul>li.current-menu-item>a {
  color: var(--color-accent);
}

/* Dropdown */
#global_menu ul ul {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  min-width: 220px;
  z-index: 200;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#global_menu ul li:hover>ul {
  display: block;
}

#global_menu>ul>li:last-child>ul {
  left: auto;
  right: 0;
}

#global_menu ul ul a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.6;
}

#global_menu ul ul a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Mobile menu button */
#menu_button {
  display: none;
  text-align: center;
  cursor: pointer;
}

/* mobile_menu: JS creates this at <=1280px, hide by default */
#mobile_menu {
  display: none;
}

#menu_button span {
  font-size: 10px;
  text-transform: uppercase;
}

/* ==========================================================================
   Header Slider (Front Page)
   ========================================================================== */
#header_slider {
  position: relative;
  width: 100%;
  padding-top: 42%;
  overflow: hidden;
  background: #f5f5f5;
}

#header_slider .item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

#header_slider .item .image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#header_slider .item .image-entity {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

#header_slider .item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 2;
}

#header_slider .item .caption {
  position: absolute;
  z-index: 5;
  padding: 30px 50px;
  max-width: 90%;
}

#header_slider .item .caption.type1 {
  left: 8%;
  bottom: 28%;
}

#header_slider .item .caption.type2 {
  right: 0;
  bottom: 28%;
  text-align: right;
}

#header_slider .item .caption.type3 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

#header_slider .item .caption .title {
  font-size: clamp(18px, 4.5vw, 38px);
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 0, 0, 0.3),
    2px 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

#header_slider .item .link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

/* Slider Animations */
#header_slider .item.animate .image {
  animation: zoomIn 7s ease-out forwards;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.15);
  }
}

@keyframes zoomOut {
  0% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* ==========================================================================
   Index Content Sections (Front Page)
   ========================================================================== */
.index_content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px;
}

.index_content .headline {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 25px;
}

.index_content .sub_title {
  text-align: center;
  margin-bottom: 30px;
  color: #999;
}

.index_content .desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 2;
}

/* --- 3 Box --- */
#index_3box {
  display: flex;
  gap: 0;
  padding-top: 30px;
  position: relative;
  z-index: 10;
}

#index_3box .box {
  width: calc(100% / 3);
  position: relative;
  overflow: hidden;
  border-right: 1px solid #fff;
  box-sizing: border-box;
}

#index_3box .box:last-child {
  border-right: none;
}

#index_3box .box .image {
  display: block;
  width: 100%;
  overflow: hidden;
}

#index_3box .box .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#index_3box .box .image:hover img {
  transform: scale(1.2);
}

#index_3box .box .title {
  text-align: center;
  padding: 0;
  margin: 0;
}

#index_3box .box .title a {
  display: block;
  height: 58px;
  line-height: 58px;
  text-align: center;
  background: #afcfd2;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}

#index_3box .box .title a:hover {
  background: var(--color-accent);
}

/* --- Intro --- */
#index_intro .headline {
  font-size: 22px;
}

#index_intro .image {
  position: relative;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

#index_intro .image .image-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.75s ease;
}

#index_intro .image:hover .image-bg {
  transform: scale(1.1);
}

#index_intro .button {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 15px 40px;
  background: #fff;
  color: #676767;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
}

#index_intro .button:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- News --- */
#index_news .headline {
  font-size: 30px;
}

#index_news_list {
  display: flex;
  gap: 20px;
}

#index_news_list .item {
  flex: 1;
  display: flex;
  gap: 15px;
}

#index_news_list .item .image {
  flex-shrink: 0;
  width: 40%;
  overflow: hidden;
}

#index_news_list .item .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#index_news_list .item .image:hover img {
  transform: scale(1.2);
}

#index_news_list .item .title_area {
  flex: 1;
}

#index_news_list .item .title {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

#index_news_list .item .date {
  font-size: 12px;
  color: #999;
}

/* --- Wide Content --- */
#index_wide_content {
  width: 100%;
  min-height: 440px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#index_wide_content .headline_area {
  text-align: center;
}

#index_wide_content .headline {
  font-size: 40px;
}

#index_wide_content .button {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  margin-top: 20px;
}

#index_wide_content .button:hover {
  background: var(--color-accent);
  color: #fff;
}

/* --- Course --- */
#index_course{
  margin-top: -20px;

}
#index_course .headline {
  font-size: 24px;
}

#index_course_list {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
}

#index_course_list.type1 li {
  flex: 1;
}

#index_course_list li a {
  display: block;
  color: inherit;
}

#index_course_list li .image {
  overflow: hidden;
  margin-bottom: 15px;
}

#index_course_list li .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#index_course_list li a:hover .image img {
  transform: scale(1.05);
}

#index_course_list li .title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#index_course_list li .short_desc {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
}

/* --- Blog (slick carousel) --- */
#index_blog {
  background: #f7f7f7;
  padding: 60px 0;
}

#index_blog_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

#index_blog .headline {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}

#index_blog .sub_title {
  text-align: center;
  margin-bottom: 30px;
  color: #999;
}

#index_blog_list {
  margin: 0 -10px;
}

#index_blog_list .item {
  padding: 0 10px;
}

#index_blog_list .item .image {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  height: 180px;
}

#index_blog_list .item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

#index_blog_list .item .image:hover img {
  transform: scale(1.2);
}

#index_blog_list .item .title_area {
  padding: 5px 0;
}

#index_blog_list .item .title {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

#index_blog_list .item .title a {
  color: #333;
}

#index_blog_list .item .title a:hover {
  color: var(--color-accent);
}

#index_blog_list .item .meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

#index_blog_list .item .meta .category a {
  color: var(--color-accent);
}

/* slick overrides */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  font-size: 0;
}

.slick-prev {
  left: -5px;
}

.slick-next {
  right: -5px;
}

.slick-prev:hover,
.slick-next:hover {
  background: var(--color-accent);
}

.slick-prev span,
.slick-next span {
  font-size: 12px;
}

/* --- Google Map --- */
#index_gmap .headline {
  font-size: 40px;
}

.p-access {
  width: 100%;
}

.p-access__map {
  width: 100%;
  height: 450px;
}

/* --- Company / Info --- */
#index_company {
  display: flex;
  gap: 40px;
}

#index_company .left_area {
  flex: 1;
}

#index_company .right_area {
  flex: 1;
}

#index_company .desc {
  line-height: 2;
  font-size: 14px;
}

#index_company .sns_button {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

#index_company .sns_button li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-size: 16px;
}

/* Instagram links in company section */
.company-sns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.company-sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.company-sns-link:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

.company-sns-icon {
  flex-shrink: 0;
}

/* Schedule Table */
#schedule_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#schedule_table thead {
  background: #fafafa;
}

#schedule_table th,
#schedule_table td {
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #eee;
}

#schedule_table .color {
  background: #eff5f6;
}

/* --- Headline Set --- */
.index_headline_set .headline {
  font-size: 40px;
  text-align: center;
}

.index_headline_set .desc {
  text-align: center;
}

/* --- Free Space --- */
.index_free_space {
  padding: 30px 20px;
}

.index_free_space .post_content {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Private Lesson 3-Box */
#index_private_boxes {
  padding: 20px;
  padding-top: 0px;
  padding-bottom: 0px;
}

#index_private_boxes .private-boxes-headline {
  text-align: center;
  font-size: 18px;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

#index_private_boxes .private-boxes-row {
  display: flex;
  gap: 0;
}

#index_private_boxes .box {
  width: calc(100% / 3);
  position: relative;
  overflow: hidden;
  border-right: 1px solid #fff;
  box-sizing: border-box;
}

#index_private_boxes .box:last-child {
  border-right: none;
}

#index_private_boxes .box .image {
  display: block;
  width: 100%;
  overflow: hidden;
  height: 280px;
}

#index_private_boxes .box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

#index_private_boxes .box .image:hover img {
  transform: scale(1.2);
}

#index_private_boxes .box .title {
  text-align: center;
  padding: 0;
  margin: 0;
}

#index_private_boxes .box .title a {
  display: block;
  height: 58px;
  line-height: 58px;
  text-align: center;
  background: #afcfd2;
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}

#index_private_boxes .box .title a:hover {
  background: var(--color-accent);
}

/* ==========================================================================
   Page Header (Inner Pages)
   ========================================================================== */
#page_header {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page_header.no_image {
  background: #f5f5f5;
  height: 200px;
}

.square_headline {
  background: #fff;
  padding: 40px 60px;
  text-align: center;
}

.square_headline .title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: #4d767c;
  font-weight: 500;
  line-height: 1.4;
}

.square_headline .sub_title {
  font-size: 16px;
  color: var(--color-text);
  margin-top: 8px;
}

/* ==========================================================================
   Post Content
   ========================================================================== */
.post_content {
  font-size: 15px;
  line-height: 2.0;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.post_content p {
  margin-bottom: 1.2em;
}

.post_content h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 2em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
  line-height: 1.5;
}

.post_content h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 1.5em 0 0.6em;
  line-height: 1.6;
}

.post_content h4 {
  font-size: 16px;
  font-weight: bold;
  margin: 1.5em 0 0.6em;
  line-height: 1.6;
}

.post_content img {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1.2em auto;
  border-radius: 3px;
}

.post_content a {
  color: var(--color-accent);
}

.post_content a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.post_content .article-link-card,
.post_content .article-link-card:hover {
  text-decoration: none;
}

.post_content ul,
.post_content ol {
  margin: 1em 0 1em 2em;
}

.post_content ul {
  list-style: disc;
}

.post_content ol {
  list-style: decimal;
}

.post_content ul li,
.post_content ol li {
  margin-bottom: 0.5em;
}

.post_content blockquote {
  margin: 1.5em 0;
  padding: 20px 25px;
  border-left: 4px solid var(--color-primary);
  background: #f9f9f9;
  line-height: 1.9;
}

.post_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.post_content table th,
.post_content table td {
  padding: 10px 15px;
  border: 1px solid #ddd;
}

.post_content table th {
  background: #f5f5f5;
  font-weight: bold;
}

.post_content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* body.page specific */
body.page .post_content {
  font-size: 15px;
  color: var(--color-text);
}

/* ==========================================================================
   Article (Single Post)
   ========================================================================== */
#article {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

#post_title {
  font-size: 44px;
  font-weight: bold;
  color: var(--color-heading);
  line-height: 1.4;
  margin-bottom: 15px;
}

#post_meta_top {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

#post_meta_top a {
  color: var(--color-accent);
}

#post_image {
  margin-bottom: 30px;
}

#post_image img {
  width: 100%;
  height: auto;
}

/* Course List */
.course-list {
  padding: 40px 20px;
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.course-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s, transform 0.3s;
}

.course-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.course-item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  transition: transform 0.75s ease;
}

.course-item:hover .course-item-bg {
  transform: scale(1.08);
}

.course-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.45));
}

.course-item-title {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
  z-index: 2;
}

.course-item-body {
  padding: 16px 18px 20px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-item-excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin: 0 0 12px;
  flex: 1;
}

.course-item-more {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 640px) {
  .course-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 12px;
  }

  .course-item-image {
    height: 180px;
  }
}

/* Previous / Next Post */
#previous_next_post {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Related Posts */
#related_post {
  margin-top: 50px;
  padding: 0 20px;
}

#related_post .headline {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  margin-bottom: 20px;
}

#related_post ol {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

#related_post ol li {
  width: calc(33.33% - 14px);
}

#related_post ol li .image {
  overflow: hidden;
  margin-bottom: 10px;
}

#related_post ol li .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#related_post ol li .image:hover img {
  transform: scale(1.2);
}

#related_post ol li .title {
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   Blog Archive
   ========================================================================== */
#blog_list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

#blog_list article {
  width: calc(33.33% - 20px);
}

#blog_list .image {
  overflow: hidden;
  margin-bottom: 10px;
}

#blog_list .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#blog_list .image:hover img {
  transform: scale(1.2);
}

#blog_list .title {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 5px;
}

#blog_list .meta {
  font-size: 12px;
  color: #999;
}

/* Page Navigation */
.page_navi {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}

.page_navi a,
.page_navi span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 13px;
}

.page_navi span.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.page_navi a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Archive Catch */
#archive_catch {
  text-align: center;
  padding: 20px 20px 10px;
}

#archive_catch .catch {
  font-size: 28px;
}

/* Blog List (category archive) */
#blog_list {
  padding: 0 20px 40px;
}

#blog_list article.item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  width: 100%;
}

#blog_list article.item .image {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  overflow: hidden;
}

#blog_list article.item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

#blog_list article.item .image:hover img {
  transform: scale(1.2);
}

#blog_list article.item .title_area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#blog_list article.item .title {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 8px;
}

#blog_list article.item .title a {
  color: #333;
  text-decoration: none;
}

#blog_list article.item .title a:hover {
  color: var(--color-accent);
}

#blog_list article.item .meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
  list-style: none;
}

#blog_list article.item .meta .category a {
  color: var(--color-accent);
  text-decoration: none;
}

/* Column Card Grid */
.column-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 20px 40px;
}

.column-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.column-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.column-card-image {
  display: block;
  overflow: hidden;
  height: 200px;
}

.column-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.column-card-image:hover img {
  transform: scale(1.1);
}

.column-card-body {
  padding: 18px 20px 20px;
}

.column-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 10px;
}

.column-card-title a {
  color: #333;
  text-decoration: none;
}

.column-card-title a:hover {
  color: var(--color-accent);
}

.column-card-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.column-card-meta {
  font-size: 12px;
  color: #aaa;
}

/* Previous / Next Post */
#previous_next_post .prev_post,
#previous_next_post .next_post {
  max-width: 48%;
}

#previous_next_post a {
  display: block;
  text-decoration: none;
  color: #333;
}

#previous_next_post a:hover {
  color: var(--color-accent);
}

#previous_next_post .title {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 5px;
}

#previous_next_post .nav {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
}

#previous_next_post .next_post {
  text-align: right;
  margin-left: auto;
}

/* Post meta bottom */
#post_meta_bottom {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #999;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  list-style: none;
}

#post_meta_bottom a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ==========================================================================
   Course Archive & Single
   ========================================================================== */
#course_list {
  list-style: none;
}

#course_list li {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

#course_list li .headline {
  padding: 12px 20px;
  background: #e0b2b5;
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

#course_list li .title {
  color: #e0b2b5;
  font-size: 16px;
  font-weight: bold;
}

/* ==========================================================================
   FAQ Archive
   ========================================================================== */
#archive_faq_list {
  list-style: none;
}

#archive_faq_list .question {
  padding: 15px 20px 15px 50px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #eee;
  transition: color 0.3s;
}

#archive_faq_list .question::before {
  content: "Q";
  position: absolute;
  left: 15px;
  font-weight: bold;
  color: var(--color-accent);
  font-size: 18px;
}

#archive_faq_list .question:hover,
#archive_faq_list .question.active {
  color: var(--color-accent);
}

#archive_faq_list .answer {
  display: none;
  padding: 20px 20px 20px 50px;
  background: #f6f9f9;
  font-size: 14px;
  line-height: 1.8;
}

#archive_faq_list .answer.open {
  display: block;
}

#archive_faq_list .answer::before {
  content: "A";
  font-weight: bold;
  color: var(--color-primary);
  margin-right: 10px;
}

/* ==========================================================================
   News Archive
   ========================================================================== */
#archive_news_list .item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

#archive_news_list .item .image {
  flex-shrink: 0;
  width: 200px;
  overflow: hidden;
}

#archive_news_list .item .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#archive_news_list .item .image:hover img {
  transform: scale(1.2);
}

#archive_news_list .item .title {
  font-size: 16px;
  margin-bottom: 5px;
}

#archive_news_list .item .date {
  font-size: 12px;
  color: #999;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
#bread_crumb {
  background: var(--color-primary);
  padding: 10px 0;
  font-size: 12px;
}

#bread_crumb .inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

#bread_crumb a {
  color: #fff;
}

#bread_crumb a:hover {
  text-decoration: underline;
}

#bread_crumb span {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}

#bread_crumb .current {
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Footer Contact */
#footer_contact_area {
  background: #f7f7f7;
  padding: 50px 0;
}

#footer_contact_area_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 0 20px;
}

#footer_tel {
  text-align: center;
}

#footer_tel .headline {
  margin-bottom: 10px;
  font-size: 14px;
}

#footer_tel .number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 2px;
}

#footer_tel .time {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

#footer_contact {
  text-align: center;
}

#footer_contact .headline {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-contact-note {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}

.footer-contact-note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-note a:hover {
  opacity: 0.7;
}

/* Footer LINE CTA */
#footer_line_area {
  background: #06C755;
  padding: 8px 0;
  position: sticky;
  bottom: 0;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

#footer_line_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-line-text {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.footer-line-btn {
  display: inline-flex;
  align-items: center;
  background: #06C755;
  border: 1.6px solid #fff;
  border-radius: 2px;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-line-btn:hover {
  opacity: 0.85;
}

.footer-line-btn img {
  height: 28px;
  width: auto;
  display: block;
}

/* Footer Content (3 boxes) */
#footer_content {
  background: #f0f0f0;
}

#footer_content_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
}

#footer_content .item {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#footer_content .item .image {
  display: block;
  overflow: hidden;
}

#footer_content .item .image img {
  width: 100%;
  height: auto;
  transition: transform 0.75s ease;
}

#footer_content .item .image:hover img {
  transform: scale(1.2);
}

#footer_content .item .title {
  display: block;
  padding: 15px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* Footer Menu */
#footer_menu {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 25px 20px;
}

#footer_menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 20px;
}

#footer_menu a {
  font-size: 12px;
  color: #888;
}

#footer_menu a:hover {
  color: var(--color-accent);
}

/* Copyright */
#copyright {
  background: var(--color-copyright-bg);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
}

#copyright p {
  margin: 0;
}

#copyright_year {
  margin-bottom: 2px;
}

.copyright_notice {
  font-size: 10px;
  opacity: 0.7;
}

/* Return to Top */
#return_top {
  position: fixed;
  bottom: 78px;
  right: 30px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
}

#return_top.visible {
  opacity: 1;
}

#return_top a {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
}

#return_top a:hover {
  background: var(--color-accent);
}

#return_top a span {
  display: block;
  font-size: 9px;
  line-height: 50px;
}

/* ==========================================================================
   Sidebar (hidden by default per custom CSS)
   ========================================================================== */
.side_widget {
  margin-bottom: 30px;
}

.side_headline {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 15px;
  font-size: 14px;
  margin-bottom: 15px;
}

/* ==========================================================================
   Utility Classes (from design-plus.css)
   ========================================================================== */
/* Columns */
.post_row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.post_col-2 {
  width: calc(50% - 10px);
}

.post_col-3 {
  width: calc(33.33% - 14px);
}

/* Headings */
.style3a {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  font-size: 20px;
}

.style3b {
  border-left: 4px solid var(--color-primary);
  padding-left: 12px;
  font-size: 20px;
}

.style4a {
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.style4b {
  font-size: 18px;
  background: #f5f5f5;
  padding: 10px 15px;
}

.balloon {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
}

/* Frame / Well */
.well {
  padding: 20px;
  border: 1px solid #ddd;
  margin: 20px 0;
}

.well2 {
  padding: 20px;
  background: #f5f5f5;
  margin: 20px 0;
}

.well3 {
  padding: 20px;
  border: 2px solid var(--color-primary);
  margin: 20px 0;
}

/* Buttons */
.q_button {
  display: inline-block;
  padding: 10px 25px;
  text-align: center;
  color: #fff;
  border-radius: 3px;
  transition: opacity 0.3s;
}

.q_button:hover {
  opacity: 0.8;
}

.bt_blue {
  background: #5bc0de;
}

.bt_red {
  background: #d9534f;
}

.bt_green {
  background: #5cb85c;
}

.bt_yellow {
  background: #f0ad4e;
}

.rounded {
  border-radius: 5px;
}

.pill {
  border-radius: 50px;
}

/* YouTube responsive */
.ytube {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.ytube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Font size utilities */
.text70 {
  font-size: 70%;
}

.text80 {
  font-size: 80%;
}

.text90 {
  font-size: 90%;
}

.text100 {
  font-size: 100%;
}

.text110 {
  font-size: 110%;
}

.text120 {
  font-size: 120%;
}

.text130 {
  font-size: 130%;
}

.text140 {
  font-size: 140%;
}

.text150 {
  font-size: 150%;
}

.text160 {
  font-size: 160%;
}

.text180 {
  font-size: 180%;
}

.text200 {
  font-size: 200%;
}

.text220 {
  font-size: 220%;
}

/* Text color */
.red {
  color: #d9534f;
}

.blue {
  color: #428bca;
}

.green {
  color: #5cb85c;
}

.orange {
  color: #f0ad4e;
}

/* Alignment */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Custom CSS (from WP Customizer)
   ========================================================================== */

/* Page Builder - TCD */
#tcd-pb-wrap {
  max-width: 830px;
  margin: 0 auto;
}

.tcd-pb-widget {
  margin-bottom: 30px;
}

/* Staff List */
.pb_staff_list-item {
  border: 0px;
}

.pb_staff_list-item:first-child {
  border-top: 0px;
}

.pb_staff_list-item-upside.has-image {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
}

.pb_staff_list-image {
  flex-shrink: 0;
  width: 200px;
}

.pb_staff_list-image img {
  width: 100%;
  height: auto;
}

.pb_staff_list-names {
  flex: 1;
}

.pb_staff_list-position {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.pb_staff_list-name {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  font-family: var(--font-serif);
}

.pb_staff_list-othername {
  font-size: 14px;
  color: #999;
  font-family: var(--font-serif);
}

/* Page Builder Headlines */
.pb_headline {
  font-size: 20px;
  color: #333;
  text-align: left;
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.pb_font_family_type1 {
  font-family: var(--font-serif);
}

/* Page Builder Image */
.pb-widget-image img {
  width: 100%;
  height: auto;
}

/* Page Builder Slider */
.pb_slider_wrap {
  margin: 20px 0;
}

.pb_slider .pb_slider_item img {
  width: 100%;
  height: auto;
}

.pb_slider_nav {
  margin-top: 10px;
}

.pb_slider_nav .pb_slider_nav_item {
  padding: 0 3px;
  cursor: pointer;
}

.pb_slider_nav .pb_slider_nav_item img {
  width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.pb_slider_nav .pb_slider_nav_item.slick-current img,
.pb_slider_nav .pb_slider_nav_item:hover img {
  opacity: 1;
}

/* Page Builder Editor */
.pb-widget-editor ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.pb-widget-editor li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.pb-widget-editor p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.custom_header {
  font-size: 24px;
  line-height: 0px;
}

.custom_subheader {
  font-size: 18px;
  line-height: 0px;
}

.custom_linklist {
  line-height: 15px;
  font-size: 16px;
}

.custom_linklist li a {
  color: #0099FF;
  font-weight: bold;
}

.custom_list {
  line-height: 26px;
  font-size: 16px;
}

.custom_image {
  width: 90%;
  padding-left: 5%;
  padding-right: 5%;
}

/* Inline custom styles from theme options */
#related_post ol li {
  min-height: 320px;
}

.entry-date {
  display: none;
}

.updated {
  display: none;
}

#index_blog_list ul {
  display: none;
}

/* Custom box styles from content */
.box26 {
  position: relative;
  margin: 2em 0;
  padding: 1.2em 1.2em 1em;
  border-left: 3px solid var(--color-accent);
  background: #f7fafb;
}

.box26 .box-title {
  display: block;
  margin-bottom: 0.5em;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.box26 p {
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

.mylistbox {
  background: #f7fafb;
  border-left: 3px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 1em 1em 1em 2em;
}

.mylistbox li {
  line-height: 1.8;
  padding: 0.4em 0;
}

.box17 {
  margin: 2em 0;
  position: relative;
  padding: 0.5em 1.5em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
}

.box17::before,
.box17::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: calc(100% + 20px);
  background-color: black;
}

.box17::before {
  left: 10px;
}

.box17::after {
  right: 10px;
}

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

.arrow_box {
  position: relative;
  max-width: 800px;
  background: #CEEBF0;
  padding: 20px;
  text-align: left;
  color: #1A1717;
  font-size: 14px;
  border-radius: 15px;
}

/* ==========================================================================
   Review Cards — 食べログ風レビュー
   ========================================================================== */
.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0;
}

.review-card {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}

.review-card:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #ddd !important;
  flex-shrink: 0;
  margin: 0 !important;
  display: inline-block !important;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.review-body {
  font-size: 13.5px;
  line-height: 1.85;
  color: #444;
}

.review-body p {
  margin-bottom: 0.6em;
}

.review-body p:last-child {
  margin-bottom: 0;
}

.review-body strong {
  color: #222;
}

/* Speech bubble styles (legacy) */
.sb-box {
  position: relative;
  overflow: hidden;
}

.icon-img {
  position: absolute;
  overflow: hidden;
  top: 0;
  width: 80px;
  height: 80px;
}

.icon-img-left {
  left: 0;
}

.icon-img-right {
  right: 0;
}

.icon-img img {
  border-radius: 50%;
  border: 2px solid #eee;
}

.icon-name {
  position: absolute;
  width: 80px;
  text-align: center;
  top: 83px;
  color: #777;
  font-size: 10px;
}

.icon-name-left {
  left: 0;
}

.icon-name-right {
  right: 0;
}

.sb-side {
  position: relative;
  float: left;
  margin: 0 105px 40px 105px;
}

.sb-side-right {
  float: right;
}

.sb-txt {
  position: relative;
  border: 2px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  padding: 18px;
}

.sb-txt>p:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
}

.sb-txt::before {
  content: "";
  position: absolute;
  border-style: solid;
  top: 16px;
  z-index: 3;
}

.sb-txt::after {
  content: "";
  position: absolute;
  border-style: solid;
  top: 15px;
  z-index: 2;
}

.sb-txt-left::before {
  left: -7px;
  border-width: 7px 10px 7px 0;
  border-color: transparent #fff transparent transparent;
}

.sb-txt-left::after {
  left: -10px;
  border-width: 8px 10px 8px 0;
  border-color: transparent #eee transparent transparent;
}

.sb-txt-right::before {
  right: -7px;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent #fff;
}

.sb-txt-right::after {
  right: -10px;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #eee;
}

/* ==========================================================================
   WordPress Block Styles
   ========================================================================== */
.wp-block-button__link {
  color: #fff;
  background-color: #32373c;
  border-radius: 9999px;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
  text-decoration: none;
}

/* WordPress Block Image */
.wp-block-image {
  margin: 1.5em 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  margin: 0 auto;
}

/* Article image sizing — keep images readable, not full-bleed */
.post_content figure {
  margin: 1.5em 0;
  text-align: center;
}

.post_content figure img {
  max-width: 560px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.post_content figure.wp-block-image.size-large img,
.post_content figure.wp-block-image.size-full img {
  max-width: 560px;
  width: 100%;
}

.post_content figure.wp-block-image.size-medium img {
  max-width: 420px;
  width: 100%;
}

.post_content figure.wp-block-image.is-resized {
  max-width: 100%;
  overflow: visible;
}

.post_content figure.wp-block-image.is-resized img {
  max-width: 560px;
  width: auto;
  height: auto;
}

/* Portrait (vertical) figures — float right alongside text */
.post_content figure.wp-block-image.is-portrait {
  float: right;
  margin: 0 0 1em 1.5em;
  max-width: 40%;
}

.post_content figure.wp-block-image.is-portrait img {
  width: 100%;
  height: auto;
}

/* Clear float before article-links */
.article-links {
  clear: both;
}

/* Consecutive figures side-by-side (for future use) */
.figures-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 1.5em 0;
}

.figures-row figure {
  margin: 0;
  flex: 0 1 auto;
}

.figures-row figure img {
  max-width: 100%;
  height: auto;
}

.post_content figure figcaption {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 900px) {
  #header {
    height: 56px;
  }

  #header_inner {
    padding: 0 15px;
  }

  #logo_text .logo {
    font-size: 18px;
  }

  #main_col {
    padding: 20px 12px;
  }

  .index_content {
    padding: 20px 20px;
  }

  #global_menu {
    display: none;
  }

  #menu_button {
    display: inline-block;
  }

  /* Mobile layout - body positioning for slide menu */
  body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  /* Mobile menu - slide panel behind #container */
  #container {
    position: relative;
    right: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #fff;
    box-shadow: 0 -55px 10px 7px rgba(0, 0, 0, 0.3);
    transition: right 300ms cubic-bezier(0.190, 1.000, 0.220, 1.000);
    backface-visibility: hidden;
  }

  body.open_menu #container {
    right: 90%;
  }

  #mobile_menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    height: 100%;
    z-index: 9;
    background: var(--color-accent);
    overflow: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(0.190, 1.000, 0.220, 1.000),
                visibility 0s linear 300ms;
  }

  body.open_menu #mobile_menu {
    visibility: visible;
    transform: translateX(0);
    transition: transform 300ms cubic-bezier(0.190, 1.000, 0.220, 1.000),
                visibility 0s linear 0s;
  }

  /* White curtain overlay removed — #mobile_menu already uses
     visibility:hidden + transform:translateX(100%) to hide itself,
     and #container (z-index:9999, background:#fff) acts as a natural
     curtain. The old ::after with position:fixed inside a transformed
     parent caused a white strip to cover the left side of the menu. */

  #mobile_menu .close_button {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin: 0 15px 10px;
    position: relative;
    z-index: 11;
  }

  #mobile_menu .close_button::before {
    content: '\00d7';
  }

  #mobile_menu #global_menu {
    width: 100%;
    margin: 0;
    z-index: 11;
    position: relative;
    display: block;
  }

  #mobile_menu #global_menu ul {
    margin: 0;
  }

  #mobile_menu #global_menu ul ul {
    display: block;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
  }

  #mobile_menu .menu {
    display: block;
  }

  #mobile_menu li {
    display: block;
  }

  #mobile_menu #global_menu a,
  #mobile_menu #global_menu>ul>li>a {
    display: block;
    padding: 18px 20px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    position: relative;
    z-index: 11;
    height: auto;
    white-space: normal;
  }

  #mobile_menu #global_menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  #mobile_menu #global_menu ul ul a {
    padding-left: 32px;
  }

  #mobile_menu #global_menu ul ul ul a {
    padding-left: 47px;
  }

  /* Menu button */
  #menu_button {
    position: absolute;
    z-index: 9;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-block;
    font-size: 11px;
    padding: 8px 8px;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 4px;
    color: #fff;
    background: var(--color-accent, #6698a1);
    line-height: 1.4;
    white-space: nowrap;
  }

  #menu_button span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #fff;
  }

  #menu_button::before {
    display: none;
  }

  #menu_button:hover {
    background: #557f87;
    color: #fff;
  }

  #menu_button:hover span {
    color: #fff;
  }
}

@media screen and (max-width: 700px) {
  #index_3box {
    flex-direction: row;
    padding-top: 20px;
  }

  #index_3box .box {
    width: calc(100% / 3);
    border-right: 1px solid #fff;
    margin: 0;
  }

  #index_3box .box:last-child {
    border-right: none;
  }

  #index_3box .box .title a {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
  }

  #index_private_boxes .private-boxes-row {
    flex-direction: column;
    gap: 0;
  }

  #index_private_boxes .box {
    width: 100%;
    min-width: 0;
    border-right: none;
    margin: 0;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 1px solid #ccc;
    border-bottom: none;
  }

  #index_private_boxes .box:last-child {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
  }

  #index_private_boxes .box .image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
  }

  #index_private_boxes .box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #index_private_boxes .box .title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }

  #index_private_boxes .box .title a {
    height: auto;
    line-height: 1.4;
    padding: 8px 12px;
    font-size: 13px;
    background: none;
    color: #333;
  }

  #index_private_boxes .box .title a:hover {
    background: none;
  }

  .column-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-item-image {
    height: 180px;
  }

  .course-item-title {
    font-size: 18px;
  }

  #index_intro .headline {
    font-size: 20px;
  }

  #index_intro .image {
    min-height: 250px;
  }

  #index_news .headline {
    font-size: 20px;
  }

  #index_news_list {
    flex-direction: column;
  }

  #index_wide_content {
    min-height: 240px;
  }

  #index_wide_content .headline {
    font-size: 24px;
  }

  #index_course .headline {
    font-size: 20px;
  }

  #index_course_list {
    flex-direction: column;
  }

  #index_blog .headline {
    font-size: 20px;
  }

  #index_gmap .headline {
    font-size: 24px;
  }

  .index_headline_set .headline {
    font-size: 24px;
  }

  #page_header {
    height: 220px;
  }

  .square_headline {
    padding: 25px 30px;
  }

  .square_headline .title {
    font-size: 20px;
  }

  #post_title {
    font-size: 27px;
  }

  .post_content {
    font-size: 14px;
    line-height: 1.9;
  }

  #blog_list article {
    width: 100%;
  }

  #related_post ol li {
    width: calc(50% - 10px);
  }

  #index_company {
    flex-direction: column;
  }

  #footer_contact_area_inner {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .icon-img {
    width: 60px;
    height: 60px;
  }

  .icon-name {
    width: 60px;
    top: 62px;
    font-size: 9px;
  }

  .sb-side {
    margin: 0 0 30px 78px;
  }

  .sb-side-right {
    margin: 0 78px 30px 0;
  }

  .sb-txt {
    padding: 12px;
  }

  .post_row {
    flex-direction: column;
  }

  .post_col-2,
  .post_col-3 {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  body {
    font-size: 16px;
  }

  #header_slider {
    padding-top: 0 !important;
    height: 50vh !important;
  }

  #header_slider .slick-list,
  #header_slider .slick-track,
  #header_slider .slick-slide,
  #header_slider .slick-slide > div,
  #header_slider .item {
    height: 100% !important;
  }

  #header_slider .item .caption.type1,
  #header_slider .item .caption.type2,
  #header_slider .item .caption.type3 {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  #header_slider .item .caption .title {
    font-size: clamp(22px, 6.5vw, 36px);
  }

  .index_content {
    padding: 24px 16px;
  }

  .index_content .headline {
    font-size: 22px;
  }

  .index_content .desc {
    font-size: 15px;
    line-height: 2;
  }

  #index_3box .box .title a {
    font-size: 15px;
    height: 50px;
    line-height: 50px;
  }
}

/* --- LINE Popup --- */
#line-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 380px;
  width: auto;
}

#line-popup-inner {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  padding: 20px 24px 18px;
  position: relative;
}

#line-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

#line-popup-close:hover {
  color: #333;
}

.line-popup-text {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 12px;
  padding-right: 20px;
}

.line-popup-btn a {
  display: inline-block;
}

.line-popup-btn img {
  height: 36px;
  width: auto;
}

@media screen and (max-width: 767px) {
  #line-popup {
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
  }

  #line-popup-inner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

/* --- Column Related Articles (carousel) --- */
.column-related-section {
  background: #f7f7f7;
  padding: 50px 0;
  margin-top: 40px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.column-related-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.column-related-section .headline {
  font-size: 24px;
  text-align: center;
  margin-bottom: 30px;
}

.column-related-list {
  margin: 0 -10px;
}

.column-related-list .item {
  padding: 0 10px;
}

.column-related-list .item .image {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  height: 180px;
}

.column-related-list .item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}

.column-related-list .item .image:hover img {
  transform: scale(1.2);
}

.column-related-list .item .title_area {
  padding: 5px 0;
}

.column-related-list .item .title {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.column-related-list .item .title a {
  color: #333;
}

.column-related-list .item .title a:hover {
  color: var(--color-accent);
}

.column-related-list .item .meta {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: #999;
}

.column-related-list .item .meta .category a {
  color: var(--color-accent);
}

/* In-content LINE CTA (shortcode) */
.line-cta {
  background: #06C755;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.line-cta-text {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.line-cta-btn {
  display: block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.line-cta-btn:hover {
  opacity: 0.85;
}

.line-cta-btn img {
  height: 32px;
  width: auto;
  border: 1px solid #fff;
  border-radius: 1.6px;
  vertical-align: middle;
}

/* =========================================
   Timetable — CSS Grid time-mapped layout
   13:00–21:00 = 32 columns (15min each)
   ========================================= */

.tt {
  margin: 1.5em 0;
  overflow: hidden;
}

.tt-row {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e8e8e8;
}

.tt-row:last-of-type {
  border-bottom: none;
}

.tt-day {
  flex-shrink: 0;
  width: 60px;
  font-size: 1.7em;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.tt-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  column-gap: 5px;
  align-items: stretch;
}

.tt-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 3px;
  text-align: center;
  min-height: 90px;
}

.tt-slot--students,
.tt-slot--students-advanced {
  background: #c8dde0;
}

.tt-slot--adults {
  background: #f5cece;
}

.tt-start {
  font-size: 1.15em;
  font-weight: 700;
  font-style: italic;
  color: #333;
  line-height: 1.2;
  white-space: nowrap;
}

.tt-end {
  font-size: 0.8em;
  color: #555;
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
}

.tt-label {
  font-size: 0.82em;
  font-weight: 700;
  color: #333;
  margin-top: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.tt-note {
  text-align: right;
  font-size: 0.85em;
  color: #666;
  margin-top: 16px;
  padding-right: 4px;
}

/* Responsive — stack on narrow screens */
@media (max-width: 640px) {
  .tt-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
  }

  .tt-day {
    width: 100%;
    font-size: 1.3em;
    text-align: left;
    padding-left: 4px;
  }

  .tt-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .tt-slot {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 2px;
    min-height: auto;
  }

  .tt-start {
    font-size: 0.78em;
  }

  .tt-end {
    font-size: 0.62em;
  }

  .tt-label {
    font-size: 0.65em;
  }
}

/* ==========================================================================
   Article Links — compact tile cards at bottom of columns
   ========================================================================== */
.article-links {
  margin: 2em 0 1em;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.2em;
}

.article-links-group {
  margin-bottom: 1em;
}

.article-links-heading {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.article-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.article-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f7f7f7;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  min-height: 52px;
}

.article-link-card:hover {
  background: #eef4f5;
  color: var(--color-accent);
  text-decoration: none;
}

.article-link-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  background-color: #e0e0e0;
}

.article-link-thumb--empty {
  background-color: var(--color-primary);
  opacity: 0.4;
}

.article-link-title {
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 500px) {
  .article-links-grid {
    grid-template-columns: 1fr;
  }

  /* Portrait figures: stack on narrow screens */
  .post_content figure.wp-block-image.is-portrait {
    float: none;
    max-width: 60%;
    margin: 1em auto;
  }

  .post_content img {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1em auto;
  }

  .figures-row {
    flex-direction: column;
    align-items: center;
  }
}