@charset "UTF-8";

/*-------------------------------------------
  Reset
-------------------------------------------*/

*,*::before,*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  overflow-x: hidden;
}

body {
  height: 100%;
  line-height: 1.5;
  font-size: 100%;
  font-family: 'Hiragino Mincho ProN', 'Georgia', serif;
  background-color: #333;
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

button,input,textarea,select,
pre,code,kbd,samp,
legend,table,caption,summary,
optgroup,option,output,
abbr,cite,dfn,var {
  font-family: inherit;
}

address {
  font-style: normal;
}

blockquote,
q {
  quotes: none;
}

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

fieldset {
  border: none;
}

summary {
  list-style: none;
  cursor: pointer;
}

video, audio {
  display: block;
}

mark {
  background: transparent;
}

hr {
  border: none;
}

/*-------------------------------------------
  Common
-------------------------------------------*/

.section-title {
  text-align: center;
  margin-bottom: 8px;
  grid-column: 1 / -1; /* これでグリッドの全カラムに跨って中央配置 */
}

.section-title .ja {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.5rem;
}

.section-title .en {
  font-weight: bold;
  font-size: 14px;
  color: #E0A547;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/*-------------------------------------------
  Header
-------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  padding: 8px;
  z-index: 999;
  margin-bottom: 32px;
}

.site-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 104px;
  height: 104px;
  padding: 8px;
  background-color: transparent;
  border: 2px solid #CDA434;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
}

.site-title a:hover {
  opacity: 0.5;
}

.site-title span {
  display: block;
  width: 100%;
  text-align: center;
}

.site-title-main {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

.site-title-sub {
  font-size: 12px;
  color: #D1A227;
}

.site-title-en {
  font-size: 10px;
  color: #B88A29;
}

.header-menu {
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 16px;
  margin: 8px 32px 0;
  gap: 16px;
  backdrop-filter: blur(1px);
}

.header-menu-item {
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.header-menu-item:hover {
  color: #D1A227;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*-------------------------------------------
  Hero-Section
-------------------------------------------*/
.hero-section {
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  z-index: 99;
}

.hero-section img {
  width: 100%;
  height: 20vh;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
}

/*-------------------------------------------
  News
-------------------------------------------*/
.news {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-top: 8px;
}

.news-article {
  flex: 1 1 calc(33.333% - 16px);
  background: #f9f9f9;
  border: 2px solid #CDA434;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.news-article:hover {
  transform: translateY(5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.date-area {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #555;
}

.category {
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}

.category.important {
  background: #d9534f;
}

.category.event {
  background: #5bc0de;
}

.news-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
}

.news-title a {
  text-decoration: none;
  color: #333;
  display: inline-block;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #444;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.8;
}

/*-------------------------------------------
  News-Modal
-------------------------------------------*/
.news-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  max-width: 600px;
  transform: translate(-50%, -50%);
}

.news-modal.show {
  display: flex;
}

.news-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  border: 4px solid #CDA434;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 48px;
  cursor: pointer;
  color: #333;
}

.modal-close:hover {
  opacity: 0.6;
}

.news-modal-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 15px;
}

.news-modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.news-modal-text {
  font-size: 1rem;
  color: #333;
  max-height: 280px;
  overflow-y: auto;
}

/*-------------------------------------------
  Message
-------------------------------------------*/

.message-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.message-img {
  flex: 0 0 46%;
  border: 2px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

.message-img:hover {
  opacity: 1;
}

.message-text {
  background: rgba(230, 180, 6, 0.6);
  padding: 8px;
  line-height: 1.8;
  position: absolute;
  left: 40%;
  z-index: 1;
  opacity: 0.9;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease-in-out;
}

.message-text:hover {
  opacity: 1;
}

.proprietor-name {
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px;
}

/*-------------------------------------------
  History
-------------------------------------------*/

.history-section {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  position: relative;
  max-width: 1000px;
  margin: auto;
  gap: 40px;
  padding-top: 160px;
}

.history-section::before {
  content: "";
  position: absolute;
  top: 288px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: #b5895b;
  height: var(--history-line-height, 92.5%);
}

.history-timeline {
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  align-items: start;
  justify-items: center;
  gap: 40px;
  position: relative;
}

.history-line {
  position: absolute;
  left: 50%;
  width: 4px;
  background-color: gold;
  height: 100%;
  transform: translateX(-50%);
}

.history-event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  background: #f9f9f9;
  border: 2px solid #CDA434;
  border-radius: 5px;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.08);
  opacity: 0;
  position: relative;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  margin-bottom: 32px;
  max-width: 480px;
  width: 100%;
}

.history-event:nth-of-type(odd) {
  grid-column: 1;
  transform: translateY(0);
  margin-right: auto;
  margin-left: 0;
}

.history-event:nth-of-type(even) {
  grid-column: 3;
  transform: translateY(0);
  margin-left: auto;
  margin-right: 0;
}

.history-event.show {
  opacity: 0.9;
  transform: translateY(0);
}

.history-date {
  margin: 0;
  font-size: 18px;
  color: #b5895b;
}

.history-text {
  margin: 5px 0 0;
  font-size: 14px;
  color: #333;
}

/*-------------------------------------------
  Menu
-------------------------------------------*/
.menu-section {
  max-width: 1200px;
  padding: 104px 16px 48px;
  margin: 0 auto 8px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(304px, 1fr));
  padding-top: 8px;
}

.item {
  transition: box-shadow 0.3s ease;
  box-shadow: 0 0 8px 4px #ccc;
  display: flex;
  flex-direction: column;
}

.grid img {
  vertical-align: top;
  object-fit: cover;
  width: 100%;
  height: 240px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.item-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-section .grid .item-cat {
  font-size: 0.75rem;
  margin-bottom: 24px;
}

.item-text {
  font-weight: bold;
  margin-bottom: 8px;
}

.item-badge {
  display: inline-block;
  padding: 2px 4px;
  letter-spacing: 0.5px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 8px;
  background-color: #c9a14a;
  color: white;
  border: 1px solid #b08d37;
  box-shadow: 0 0 1px 1px #ccc;
  white-space: nowrap;
  margin-left: 8px;
}

.item-price {
  font-size: 14px;
  text-align: right;
  margin-top: 8px;
}

.item-description {
  display: none;
}

.item:hover img {
  opacity: 1;
}

/*-------------------------------------------
  Menu-Modal
-------------------------------------------*/

.menu-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.menu-modal.show {
  display: flex;
}

.menu-modal-content {
  background: #fff;
  color: #333;
  border: 4px solid #CDA434;
  border-radius: 8px;
  width: 100%;
  height: 100vh;
  max-width: 700px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  align-items: center;
  transform: translateY(-50%);
  top: 50%;
}

.menu-modal img {
  width: 60%;
  aspect-ratio: 3/2;
  margin: 48px auto 16px auto;
}

.menu-modal-name {
  font-size: 1.5rem;
  font-weight: bold;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
}

.menu-modal-price {
  font-size: 14px;
}

.menu-modal-description {
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
  text-align: left;
  padding: 10%;
  max-height: 280px;
  overflow-y: auto;
}

.store-button {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 16px;
  background-color: #c9a14a;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid #b08d37;
  transition: background 0.3s ease;
}

.store-button:hover {
  background-color: #b08d37;
}

/*-------------------------------------------
  Company
-------------------------------------------*/
.company-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.company-image {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 8px;
}

.company-image img {
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  border: 1px #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease-in-out;
}

.company-container {
  display: flex;
  gap: 120px;
  flex-wrap: wrap;
}

.company-info,
.company-access-info {
  flex: 1;
}

.company-details dt {
  font-weight: bold;
  font-size: 16px;
}

.company-details dd,
.train-details {
  font-size: 14px;
  margin-bottom: 16px;
}

.train-access {
  font-weight: bold;
}

.company-location-map {
  z-index: 2;
  width: 100%;
  max-width: 580px;
}

.company-location-map iframe {
  width: 100%;
  height: 288px;
  border: 2px solid #ccc;
}

/*-------------------------------------------
  Contact
-------------------------------------------*/
.contact-section {
  max-width: 1240px;
  padding: 104px 16px 48px 16px;
  margin: 0 auto 8px auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 0 8px 4px #ccc;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-left: 24px;
}

.form-group:first-of-type {
  margin-top: 32px;
}

.form-label {
  font-weight: bold;
  margin-bottom: 16px;
}

.form-input {
  width: 280px;
  height: 24px;
}

.form-textarea {
  width: 90%;
  height: 200px;
}

.form-select.contact-time {
  width: 24%;
}

.privacy-container .privacy-content {
  margin-top: 16px;
  margin-left: 24px;
}

.privacy-policy-text {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 8px;
  margin-bottom: 32px;
  margin-right: 24px;
}

.privacy-policy-text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #333;
}

.required {
  background-color: #d9534f;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: bold;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 24px;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

button.submit-btn {
  display: inline-block;
  padding: 16px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
  margin-bottom: 32px;
  background-color: #1e88e5;
  color: #fff;
  margin-right: 16px;
}

button.submit-btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

button.submit-btn:active {
  background-color: #004085;
  transform: translateY(0);
}

.toast-message {
  display: none;
  opacity: 0;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #333;
  padding: 10px 20px;
  border-radius: 5px;
  transition: opacity 0.5s ease-in-out;
  z-index: 10000;
}

.toast-message.show {
  display: block;
  opacity: 1;
}

/*-------------------------------------------
  Footer
-------------------------------------------*/
.footer {
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #fff;
  padding: 24px 16px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-information {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: bold;
}

.footer-establishment-jp,
.footer-establishment-en {
  font-size: 0.75rem;
  color: rgb(205, 164, 52);
}

.footer-location-jp,
.footer-location-en {
  font-size: 0.75rem;
  font-weight: normal;
  margin-right: 4px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  line-height: 1.6;
  gap: 4px;
}

.footer-address-number {
  font-size: 0.75rem;
}

.footer-address-jp,
.footer-address-en {
  font-size: 0.875rem;
}

.footer-phone {
  font-size: 0.875rem;
  font-weight: bold;
  margin-top: 4px;
}

.footer-copyright,
.footer-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 16px;
  color: #ccc;
}

/*-------------------------------------------
  Responsive-Hamburger-Menu
-------------------------------------------*/

@media screen and (max-width: 768px) {
  .site-header {
    flex-direction: row;
  }

  .site-title {
    justify-content: flex-start;
    margin-left: 8px;
    margin-right: 0;
    align-items: center;
  }

  .header-menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }

  .header-menu-toggle span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
    transform: translateX(-50%);
  }

  .header-menu-toggle span:nth-child(1) {
    top: 8px;
  }

  .header-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .header-menu-toggle span:nth-child(3) {
    bottom: 8px;
  }

  .header-menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .header-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .header-menu-toggle.active span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .header-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    width: 200px;
    padding: 0 8px 8px;
    z-index: 999;
    flex-direction: column;
    writing-mode: horizontal-tb;
    gap: 16px;
  }

  .header-menu.active {
    display: flex;
  }
}

/*-------------------------------------------
  Responsive-News
-------------------------------------------*/

@media screen and (max-width: 768px) {
  .news-container {
    justify-content: center;
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }

  .news-article {
    width: 320px;
    max-width: 90vw;
  }
}

@media screen and (max-width: 768px) {
  .message-container {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center;    /* 横中央揃え */
    justify-content: flex-start;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .message-img {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
  }

  .message-img img {
    width: 100%;
    height: auto;        /* アスペクト比維持 */
    display: block;
    border: none;
    object-fit: contain;
  }

  .message-text {
    width: 100%;
    max-width: 700px;    /* 画像幅に揃える */
    text-align: center;  /* 中央寄せ */
    margin: 0;           /* 余白リセット */
    padding: 0;
    box-sizing: border-box;
    position: static !important; /* 位置指定解除 */
    z-index: auto !important;    /* 重なり解除 */
  }
}





/*-------------------------------------------
  Responsive-History
-------------------------------------------*/

@media screen and (max-width: 1024px) {
  .history-section {
    gap: 30px;
    padding-top: 120px;
  }

  .history-section::before {
    top: 180px;
    width: 3px;
  }

  .history-event {
    grid-column: 1 / span 3;
    max-width: 480px;
  }
}

@media screen and (max-width: 768px) {
  .history-section {
    padding-top: 60px;
    gap: 10px;
    display: block;
  }

  .history-event {
    display: block;
    max-width: 90%;
  }

  .history-event:nth-of-type(odd),
  .history-event:nth-of-type(even) {
    margin: 16px auto;
  }

  .history-date {
    font-size: 14px;
  }

  .history-text {
    font-size: 12px;
  }

  .history-section::before {
    display: none;
  }
}

/*-------------------------------------------
  Responsive-Menu-Modal
-------------------------------------------*/

@media screen and (max-width: 768px) {
  .menu-modal-content {
    width: 90%;
  }
}

/*-------------------------------------------
  Responsive-Company
-------------------------------------------*/

@media screen and (max-width: 1024px) {
  .company-container {
    gap: 40px;
  }

  .company-info,
  .company-access-info {
    flex: 1;
  }
}

@media screen and (max-width: 768px) {
  .company-container {
    gap: 24px;
  }

  .company-info,
  .company-access-info {
    flex-basis: 100%;
    text-align: center;
  }

  .company-location-map {
    margin: 0 auto;
    max-width: 100%;
  }
}

/*-------------------------------------------
  Responsive Contact
-------------------------------------------*/

@media screen and (max-width: 768px) {
  #contact {
    padding: 80px 16px 48px 16px;
    margin: 0 auto;
  }

  #contact-form {
    margin-top: 24px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .form-group {
    padding-left: 0;
    padding-right: 0;
  }

  .form-input {
    width: 100%;
    max-width: 100%;
  }

  .form-textarea {
    width: 100%;
  }

  #contact-time {
    width: 100%;
  }

  .privacy-content {
    margin-left: 0;
  }

  .privacy-policy-text {
    margin-right: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: center;
  }

  button[type="submit"] {
    margin-right: 0;
    width: 100%;
    max-width: 300px;
  }

  button[type="reset"] {
    width: 100%;
    max-width: 300px;
  }

  .required {
    font-size: 0.5rem;
    padding: 2px 4px;
  }
}

/*-------------------------------------------
  Responsive-Footer
-------------------------------------------*/

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
  }

  .footer-information {
    margin-left: 0;
    text-align: center;
  }

  .footer-address-number,
  .footer-address-jp,
  .footer-address-en {
    margin-right: 0;
    text-align: center;
  }

  .footer-location-jp,
  .footer-location-en {
    font-size: 10px;
  }

  .footer-phone {
    font-size: 12px;
  }

  .copyright {
    font-size: 0.6875rem;
    margin-top: 16px;
    text-align: center;
  }
}
